[03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27: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:51]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:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]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:18]accept exits with 7 [04:05:18]New connection [04:05:18]New thread 3067084132 created [04:05:18]Thread 3067227492 joined [04:05:18]Waiting for new connection... [04:05:18] Sock 7.Parse request [04:05:18]Sock 7.Check first char [04:05:18]Sock 7.First char is OK [04:05:18]request: POST /json_proto HTTP/1.0 [04:05:18]Method: POST [04:05:18]URL: /json_proto [04:05:18]Method is POST - this is cgi request [04:05:18]url: /json_proto [04:05:18]query_string will be loaded in cgi processing [04:05:18]execute_cgi json_proto POST (null) [04:05:18]execute_cgi path=json_proto method=POST [04:05:18]POST find Content-Length [04:05:18]Host: 172.17.38.133:8080 [04:05:18]Content-Length: 682 [04:05:18]Content-Type: application/json [04:05:18] [04:05:18]POST finish read [04:05:18]Found Content-Length = 682 [04:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [04:05:18]execute_script... [04:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [04:05:18]POST & json_proto [04:05:18]process_json_proto [04:05:18]json parsed OK: [04:05:18]protocol is kg_v1.0 [04:05:18]action value=close_receipt [04:05:18]process_action close_receipt [04:05:18]cmd_close_receipt [04:05:18]MH_GetDate [04:05:18]Write to MH i2c: F0 00 00 49 39 71 [04:05:18]Write i2c OK [04:05:18]MH_I2C_Read... [04:05:18]Read from MH i2c: F0 [04:05:18]MH_I2C_Read... [04:05:18]Read from MH i2c: F0 09 00 [04:05:18]MH_I2C_Read... [04:05:18]Read from MH i2c: F0 09 00 49 39 00 83 07 71 66 BD 8F 7C 64 07 [04:05:18]GetLastDocTimeStamp 1718679606 [04:05:18]current date 1718683523 [04:05:18]FM_GetShiftState [04:05:18]SAM_PROTO_GetShiftState [04:05:18]wFMCommunicate request_size=4 [04:05:18]MH_SAM_APDU [04:05:18]CAPDU: 80 13 01 00 [04:05:18]Write to MH i2c: E2 08 00 4A 39 80 13 01 00 00 00 00 00 00 [04:05:18]Write i2c OK [04:05:18]MH_I2C_Read... [04:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:18]Read from MH i2c: E2 [04:05:18]MH_I2C_Read... [04:05:18]Read from MH i2c: E2 0E 00 [04:05:18]MH_I2C_Read... [04:05:18]Read from MH i2c: E2 0E 00 4A 39 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 81 [04:05:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:05:18]wFMCommunicate OK [04:05:18]SAM_PROTO_GetShiftState done [04:05:18]FM_GetShiftState done [04:05:18]opened in 1718670284 [04:05:18]opened+sec_in_day 1718756684 [04:05:18]quantity*price = 150064 [04:05:18]sum+1 = 150065 [04:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 18.06.2024 04:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103324 ФПД: 128656895339044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T040523&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103324&fm=128656895339044&tin=02508201610067®Number=0000000000092785&sum=150000 [04:05:19]StoreToDocumentArchive [04:05:19]shift 352 fd 103324 [04:05:19]save to /storage/0352/doc_00103324 [04:05:19]save last doc name /storage/0352/doc_00103324 to /storage/kkm_last_doc_name [04:05:19]save OK [04:05:19]Clear old archive folders... [04:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:05:19]tlvbuf is 013F6230 [04:05:19]SAM_PROTO_ClearQueue [04:05:19]wFMCommunicate request_size=4 [04:05:19]MH_SAM_APDU [04:05:19]CAPDU: 80 09 00 00 [04:05:19]Write to MH i2c: E2 08 00 57 39 80 09 00 00 00 00 00 00 02 [04:05:19]Write i2c OK [04:05:19]MH_I2C_Read... [04:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:19]Read from MH i2c: E2 [04:05:19]MH_I2C_Read... [04:05:19]Read from MH i2c: E2 03 00 [04:05:19]MH_I2C_Read... [04:05:19]Read from MH i2c: E2 03 00 57 39 00 90 00 04 [04:05:19]RAPDU: 90 00 [04:05:19]wFMCommunicate OK [04:05:19]SAM_PROTO_ClearQueue done [04:05:19]KKMCreateOFDPacket [04:05:19]OFDProtocolAddRootSTLVToBuf [04:05:19]FM_MakeSignedData [04:05:19]FM_MakeSignedData [04:05:19]SAM_PROTO_SignData [04:05:19]wFMCommunicate request_size=4 [04:05:19]MH_SAM_APDU [04:05:19]CAPDU: 80 0D 01 02 [04:05:19]Write to MH i2c: E2 08 00 58 39 80 0D 01 02 00 00 00 00 0A [04:05:19]Write i2c OK [04:05:19]MH_I2C_Read... [04:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:20]Read from MH i2c: E2 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 58 39 00 90 00 05 [04:05:20]RAPDU: 90 00 [04:05:20]wFMCommunicate OK [04:05:20]wFMCommunicate request_size=255 [04:05:20]MH_SAM_APDU [04:05:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 08 00 00 00 F4 03 04 00 83 07 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 93 01 00 35 04 06 00 75 [04:05:20]Write to MH i2c: E2 02 01 59 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 08 00 00 00 F4 03 04 00 83 07 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 93 01 00 35 04 06 00 75 00 00 D7 [04:05:20]Write i2c OK [04:05:20]MH_I2C_Read... [04:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:20]Read from MH i2c: E2 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 59 39 00 90 00 06 [04:05:20]RAPDU: 90 00 [04:05:20]wFMCommunicate OK [04:05:20]wFMCommunicate request_size=10 [04:05:20]MH_SAM_APDU [04:05:20]CAPDU: 80 0D 02 02 05 03 44 8B 6A 24 [04:05:20]Write to MH i2c: E2 0D 00 5A 39 80 0D 02 02 05 00 03 44 8B 6A 24 00 00 77 [04:05:20]Write i2c OK [04:05:20]MH_I2C_Read... [04:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:20]Read from MH i2c: E2 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 03 00 5A 39 00 90 00 07 [04:05:20]RAPDU: 90 00 [04:05:20]wFMCommunicate OK [04:05:20]wFMCommunicate request_size=4 [04:05:20]MH_SAM_APDU [04:05:20]CAPDU: 80 0D 03 02 [04:05:20]Write to MH i2c: E2 08 00 5B 39 80 0D 03 02 00 00 00 00 0F [04:05:20]Write i2c OK [04:05:20]MH_I2C_Read... [04:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:20]Read from MH i2c: E2 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 0B 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 0B 00 5B 39 00 0A D2 FD DA 6E 7A 3B 73 90 00 59 [04:05:20]RAPDU: 0A D2 FD DA 6E 7A 3B 73 90 00 [04:05:20]wFMCommunicate OK [04:05:20]SAM_PROTO_SignData done [04:05:20]FM_MakeSignedData done [04:05:20]CreateOFDProtocolMessage [04:05:20]wFMCommunicate request_size=4 [04:05:20]MH_SAM_APDU [04:05:20]CAPDU: 80 11 00 00 [04:05:20]Write to MH i2c: E2 08 00 5C 39 80 11 00 00 00 00 00 00 0F [04:05:20]Write i2c OK [04:05:20]MH_I2C_Read... [04:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:20]Read from MH i2c: E2 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 17 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: E2 17 00 5C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [04:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:05:20]wFMCommunicate OK [04:05:20]CreateOFDProtocolMessage done [04:05:20]OFDSenderStorePacket 103324 [04:05:20]StoreOFDPacket docnum=103324 [04:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 54 07 01 56 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 08 00 00 00 F4 03 04 00 83 07 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 93 01 00 35 04 06 00 75 03 44 8B 6A 24 0A D2 FD DA 6E 7A 3B 73 [04:05:20]CheckFolder [04:05:20]dirname=/storage/ofd_packets [04:05:20]CheckFolder done [04:05:20]ProducePacketName [04:05:20]name=ofd_packets/00103324 [04:05:20]NVStorageSaveData ofd_packets/00103324 [04:05:20]File name is /storage/ofd_packets/00103324 [04:05:20]Write 301 bytes [04:05:20]NVStorageSaveData done [04:05:20]OFDSenderStorePacket done [04:05:20]KKMCreateOFDPacket done [04:05:20]NVStorageSaveData kkm_last_timestamp [04:05:20]File name is /storage/kkm_last_timestamp [04:05:20]Write 4 bytes [04:05:20]NVStorageSaveData done [04:05:20]ExternCall_PrintAddStr [04:05:20]wPrintStart [04:05:20]Write to MH i2c: 01 00 00 5D 39 96 [04:05:20]Write i2c OK [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: 01 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: 01 07 00 [04:05:20]MH_I2C_Read... [04:05:20]Read from MH i2c: 01 07 00 5D 39 00 00 00 00 00 FF 0F AB [04:05:20]RasterBufferAndPrint [04:05:20]line Счет N : (1)672460 [04:05:20]line ИНН: 02508201610067 [04:05:20]line Контрольно-Кассовый Чек [04:05:20]line ПРОДАЖА [04:05:20]line ТРК (МРК, ГНК) : 32 [04:05:20]line Товар: 2710124130 [04:05:20]line Аи-92-К-5 [04:05:20]line 22.600 * 66.40 [04:05:20]line = 1500.64 [04:05:20]line НДС 12% НСП 1% [04:05:20]line > о реализуемом товаре [04:05:20]line ОКРУГЛЕНИЕ: -0.64 [04:05:20]line ИТОГО: 1500.00 [04:05:20]line Внесено: 1500.00 [04:05:20]line СДАЧА: 0.00 [04:05:20]line НСП 1% : 13.28 [04:05:20]line НДС 12% : 159.36 [04:05:20]line Наличными: 1500.00 [04:05:20]line Безнал.: 0.00 [04:05:20]line Место: АЗС № 120 "Партнер Нефть" [04:05:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:05:20]line СНО: Общий режим [04:05:20]line Чек 8 18.06.2024 04:05 [04:05:20]line Смена: 352 ФФД: 1.0 [04:05:20]line ЗНМ: 0300000164 [04:05:20]line РНМ: 0000000000092785 [04:05:20]line Версия ККМ: 001 [04:05:20]line ФМ: 0000000000875093 [04:05:20]line ФД: 103324 [04:05:20]line ФПД: 128656895339044 [04:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T040523&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103324&fm=128656895339044&tin=02508201610067®Number=0000000000092785&sum=150000 [04:05:20]OFD Sender: Processing packet 103324 [packets to send 17, broken 16] [04:05:20]ProducePacketName [04:05:20]name=ofd_packets/00103324 [04:05:20]OFD Sender: To server: pG, [04:05:20]CommunicateWithHost lk.salyk.kg:30040 [04:05:20]ConnectInit lk.salyk.kg [04:05:20]written 0, free lines is 4095 [04:05:20]Connected sock=10 [04:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 54 07 01 56 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 08 00 00 00 F4 03 04 00 83 07 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 93 01 00 35 04 06 00 75 03 44 8B 6A 24 0A D2 FD DA 6E 7A 3B 73 [04:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 58 29 47 00 28 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 35 30 39 33 10 04 04 00 9C 93 01 00 F4 03 04 00 10 AE 70 66 B6 04 01 00 00 ED AC D9 41 73 40 9C 94 [04:05:21]CommunicateWithHost err = 0 [04:05:21]CheckOFDResponse [04:05:21]1017 (14) - 77093643461234 [04:05:21]1041 (16) - 0000000000875093 [04:05:21]1040 (4) - 103324 [04:05:21]1012 (4) - 17.06.2024 21:43 [04:05:21]1206 (1) - 0 [04:05:21]OFD Sender: Remove packet 103324 [04:05:21]ProducePacketName [04:05:21]name=ofd_packets/00103324 [04:05:21]NVStorageDeleteData [04:05:21]Write to MH i2c: 01 00 00 88 39 C1 [04:05:21]Write i2c OK [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: 01 [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: 01 07 00 [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: 01 07 00 88 39 00 00 00 00 00 CA 0C 9E [04:05:21]RasterBufferAndPrint [04:05:21]line [04:05:21]line [04:05:21]line [04:05:21]line [04:05:21]line [04:05:21]written 0, free lines is 3281 [04:05:21]MH_Cut [04:05:21]Write to MH i2c: D1 01 00 8F 39 01 9A [04:05:21]Write i2c OK [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: D1 [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: D1 01 00 [04:05:21]MH_I2C_Read... [04:05:21]Read from MH i2c: D1 01 00 8F 39 00 99 [04:05:21]Write to MH i2c: 01 00 00 90 39 C9 [04:05:21]Write i2c OK [04:05:21]MH_I2C_Read... [04:05:21]OFD Sender: No OFD packet to send [04:05:22]*** Cut start [04:05:22]*** Partial cut [04:05:22]*** CUTSNS_PIN = 1 [04:05:22]*** CUTSNS_PIN = 0 [04:05:22]*** Brake cut motor [04:05:22]Read from MH i2c: 01 [04:05:22]MH_I2C_Read... [04:05:22]*** Stop cut motor [04:05:22]*** Cut end [04:05:22]Read from MH i2c: 01 07 00 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: 01 07 00 90 39 00 00 00 00 00 FF 0F DE [04:05:22]process_action close_receipt done [04:05:22]requested_data is exist [04:05:22]produce_requested_data [04:05:22]requested_item fm.sn is exist - process it [04:05:22]wFMCommunicate request_size=4 [04:05:22]MH_SAM_APDU [04:05:22]CAPDU: 80 11 00 00 [04:05:22]Write to MH i2c: E2 08 00 91 39 80 11 00 00 00 00 00 00 44 [04:05:22]Write i2c OK [04:05:22]MH_I2C_Read... [04:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:22]Read from MH i2c: E2 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 17 00 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 17 00 91 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [04:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:05:22]wFMCommunicate OK [04:05:22]requested_item fd.num is exist - process it [04:05:22]SAM_PROTO_GetFieldsCounters [04:05:22]wFMCommunicate request_size=4 [04:05:22]MH_SAM_APDU [04:05:22]CAPDU: 80 13 00 00 [04:05:22]Write to MH i2c: E2 08 00 92 39 80 13 00 00 00 00 00 00 47 [04:05:22]Write i2c OK [04:05:22]MH_I2C_Read... [04:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:22]Read from MH i2c: E2 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 62 00 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 62 00 92 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [04:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:22]wFMCommunicate OK [04:05:22]SAM_PROTO_GetFieldsCounters done [04:05:22]requested_item shift.num is exist - process it [04:05:22]requested_item shift.opened is exist - process it [04:05:22]req_shift_opened [04:05:22]FM_GetShiftState [04:05:22]SAM_PROTO_GetShiftState [04:05:22]wFMCommunicate request_size=4 [04:05:22]MH_SAM_APDU [04:05:22]CAPDU: 80 13 01 00 [04:05:22]Write to MH i2c: E2 08 00 93 39 80 13 01 00 00 00 00 00 49 [04:05:22]Write i2c OK [04:05:22]MH_I2C_Read... [04:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:22]Read from MH i2c: E2 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 0E 00 [04:05:22]MH_I2C_Read... [04:05:22]Read from MH i2c: E2 0E 00 93 39 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CA [04:05:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:05:22]wFMCommunicate OK [04:05:22]SAM_PROTO_GetShiftState done [04:05:22]FM_GetShiftState done [04:05:22]req_shift_opened done [04:05:22]requested_item shift.open_date is exist - process it [04:05:22]req_shift_open_date [04:05:22]req_shift_open_date done [04:05:22]produce_requested_data done [04:05:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103324,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [04:05:22]process_action_free close_receipt [04:05:22]json_value_free [04:05:22]json_value_free done [04:05:22]process_json_proto returns [04:05:22]Send response to host [04:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103324,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [04:05:22]free response buf [04:05:22]execute_script done [04:05:22]execute_script returns [04:05:22]free content buf [04:05:22]Sock 7.Close socket [04:05:22]Sock 7.Thread stoped [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:17]accept exits with 9 [04:12:17]New connection [04:12:17]New thread 3067227492 created [04:12:17]Thread 3067084132 joined [04:12:17]Waiting for new connection... [04:12:17] Sock 9.Parse request [04:12:17]Sock 9.Check first char [04:12:17]Sock 9.First char is OK [04:12:17]request: POST /json_proto HTTP/1.0 [04:12:17]Method: POST [04:12:17]URL: /json_proto [04:12:17]Method is POST - this is cgi request [04:12:17]url: /json_proto [04:12:17]query_string will be loaded in cgi processing [04:12:17]execute_cgi json_proto POST (null) [04:12:17]execute_cgi path=json_proto method=POST [04:12:17]POST find Content-Length [04:12:17]Host: 172.17.38.133:8080 [04:12:17]Content-Length: 677 [04:12:17]Content-Type: application/json [04:12:17] [04:12:17]POST finish read [04:12:17]Found Content-Length = 677 [04:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:17]execute_script... [04:12:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:17]POST & json_proto [04:12:17]process_json_proto [04:12:17]json parsed OK: [04:12:17]protocol is kg_v1.0 [04:12:17]action value=close_receipt [04:12:17]process_action close_receipt [04:12:17]cmd_close_receipt [04:12:17]MH_GetDate [04:12:17]Write to MH i2c: F0 00 00 94 39 BC [04:12:17]Write i2c OK [04:12:17]MH_I2C_Read... [04:12:17]Read from MH i2c: F0 [04:12:17]MH_I2C_Read... [04:12:17]Read from MH i2c: F0 09 00 [04:12:17]MH_I2C_Read... [04:12:17]Read from MH i2c: F0 09 00 94 39 00 26 09 71 66 BD 8F 7C 64 F7 [04:12:17]GetLastDocTimeStamp 1718683523 [04:12:17]current date 1718683942 [04:12:17]FM_GetShiftState [04:12:17]SAM_PROTO_GetShiftState [04:12:17]wFMCommunicate request_size=4 [04:12:17]MH_SAM_APDU [04:12:17]CAPDU: 80 13 01 00 [04:12:17]Write to MH i2c: E2 08 00 95 39 80 13 01 00 00 00 00 00 4B [04:12:17]Write i2c OK [04:12:17]MH_I2C_Read... [04:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:17]Read from MH i2c: E2 [04:12:17]MH_I2C_Read... [04:12:17]Read from MH i2c: E2 0E 00 [04:12:17]MH_I2C_Read... [04:12:17]Read from MH i2c: E2 0E 00 95 39 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CC [04:12:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:12:17]wFMCommunicate OK [04:12:17]SAM_PROTO_GetShiftState done [04:12:17]FM_GetShiftState done [04:12:17]opened in 1718670284 [04:12:17]opened+sec_in_day 1718756684 [04:12:17]quantity*price = 40039 [04:12:17]sum+1 = 40040 [04:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 18.06.2024 04:12 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103325 ФПД: 268095014464574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T041222&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103325&fm=268095014464574&tin=02508201610067®Number=0000000000092785&sum=40000 [04:12:19]StoreToDocumentArchive [04:12:19]shift 352 fd 103325 [04:12:19]save to /storage/0352/doc_00103325 [04:12:19]save last doc name /storage/0352/doc_00103325 to /storage/kkm_last_doc_name [04:12:19]save OK [04:12:19]Clear old archive folders... [04:12:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:12:19]tlvbuf is 01390B10 [04:12:19]SAM_PROTO_ClearQueue [04:12:19]wFMCommunicate request_size=4 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 09 00 00 [04:12:19]Write to MH i2c: E2 08 00 A2 39 80 09 00 00 00 00 00 00 4D [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 A2 39 00 90 00 4F [04:12:19]RAPDU: 90 00 [04:12:19]wFMCommunicate OK [04:12:19]SAM_PROTO_ClearQueue done [04:12:19]KKMCreateOFDPacket [04:12:19]OFDProtocolAddRootSTLVToBuf [04:12:19]FM_MakeSignedData [04:12:19]FM_MakeSignedData [04:12:19]SAM_PROTO_SignData [04:12:19]wFMCommunicate request_size=4 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 0D 01 02 [04:12:19]Write to MH i2c: E2 08 00 A3 39 80 0D 01 02 00 00 00 00 55 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:19]Read from MH i2c: E2 03 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 A3 39 00 90 00 50 [04:12:19]RAPDU: 90 00 [04:12:19]wFMCommunicate OK [04:12:19]wFMCommunicate request_size=255 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 09 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 93 01 00 35 04 06 00 F3 [04:12:19]Write to MH i2c: E2 02 01 A4 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 09 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 93 01 00 35 04 06 00 F3 00 00 71 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 A4 39 00 90 00 51 [04:12:19]RAPDU: 90 00 [04:12:19]wFMCommunicate OK [04:12:19]wFMCommunicate request_size=10 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 0D 02 02 05 D4 BC 1A 6C 3E [04:12:19]Write to MH i2c: E2 0D 00 A5 39 80 0D 02 02 05 00 D4 BC 1A 6C 3E 00 00 B6 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 03 00 A5 39 00 90 00 52 [04:12:19]RAPDU: 90 00 [04:12:19]wFMCommunicate OK [04:12:19]wFMCommunicate request_size=4 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 0D 03 02 [04:12:19]Write to MH i2c: E2 08 00 A6 39 80 0D 03 02 00 00 00 00 5A [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 0B 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 0B 00 A6 39 00 3C 38 96 BE CA 5A F3 1F 90 00 59 [04:12:19]RAPDU: 3C 38 96 BE CA 5A F3 1F 90 00 [04:12:19]wFMCommunicate OK [04:12:19]SAM_PROTO_SignData done [04:12:19]FM_MakeSignedData done [04:12:19]CreateOFDProtocolMessage [04:12:19]wFMCommunicate request_size=4 [04:12:19]MH_SAM_APDU [04:12:19]CAPDU: 80 11 00 00 [04:12:19]Write to MH i2c: E2 08 00 A7 39 80 11 00 00 00 00 00 00 5A [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:19]Read from MH i2c: E2 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 17 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: E2 17 00 A7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [04:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:12:19]wFMCommunicate OK [04:12:19]CreateOFDProtocolMessage done [04:12:19]OFDSenderStorePacket 103325 [04:12:19]StoreOFDPacket docnum=103325 [04:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 46 07 01 F5 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 09 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 93 01 00 35 04 06 00 F3 D4 BC 1A 6C 3E 3C 38 96 BE CA 5A F3 1F [04:12:19]CheckFolder [04:12:19]dirname=/storage/ofd_packets [04:12:19]CheckFolder done [04:12:19]ProducePacketName [04:12:19]name=ofd_packets/00103325 [04:12:19]NVStorageSaveData ofd_packets/00103325 [04:12:19]File name is /storage/ofd_packets/00103325 [04:12:19]Write 301 bytes [04:12:19]NVStorageSaveData done [04:12:19]OFDSenderStorePacket done [04:12:19]KKMCreateOFDPacket done [04:12:19]NVStorageSaveData kkm_last_timestamp [04:12:19]File name is /storage/kkm_last_timestamp [04:12:19]Write 4 bytes [04:12:19]NVStorageSaveData done [04:12:19]ExternCall_PrintAddStr [04:12:19]wPrintStart [04:12:19]Write to MH i2c: 01 00 00 A8 39 E1 [04:12:19]Write i2c OK [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 07 00 [04:12:19]MH_I2C_Read... [04:12:19]Read from MH i2c: 01 07 00 A8 39 00 00 00 00 00 FF 0F F6 [04:12:19]RasterBufferAndPrint [04:12:19]line Счет N : (1)672461 [04:12:19]line ИНН: 02508201610067 [04:12:19]line Контрольно-Кассовый Чек [04:12:19]line ПРОДАЖА [04:12:19]line ТРК (МРК, ГНК) : 32 [04:12:19]line Товар: 2710124130 [04:12:19]line Аи-92-К-5 [04:12:19]line 6.030 * 66.40 [04:12:19]line = 400.39 [04:12:19]line НДС 12% НСП 1% [04:12:19]line > о реализуемом товаре [04:12:19]line ОКРУГЛЕНИЕ: -0.39 [04:12:19]line ИТОГО: 400.00 [04:12:19]line Внесено: 400.00 [04:12:19]line СДАЧА: 0.00 [04:12:19]line НСП 1% : 3.54 [04:12:19]line НДС 12% : 42.52 [04:12:19]line Наличными: 400.00 [04:12:19]line Безнал.: 0.00 [04:12:19]line Место: АЗС № 120 "Партнер Нефть" [04:12:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:12:19]line СНО: Общий режим [04:12:19]line Чек 9 18.06.2024 04:12 [04:12:19]line Смена: 352 ФФД: 1.0 [04:12:19]line ЗНМ: 0300000164 [04:12:19]line РНМ: 0000000000092785 [04:12:19]line Версия ККМ: 001 [04:12:19]line ФМ: 0000000000875093 [04:12:19]line ФД: 103325 [04:12:19]line ФПД: 268095014464574 [04:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T041222&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103325&fm=268095014464574&tin=02508201610067®Number=0000000000092785&sum=40000 [04:12:19]OFD Sender: Processing packet 103325 [packets to send 17, broken 16] [04:12:19]ProducePacketName [04:12:19]name=ofd_packets/00103325 [04:12:19]OFD Sender: To server: pG, [04:12:19]CommunicateWithHost lk.salyk.kg:30040 [04:12:19]ConnectInit lk.salyk.kg [04:12:19]written 0, free lines is 4095 [04:12:19]Connected sock=10 [04:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 46 07 01 F5 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 09 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 93 01 00 35 04 06 00 F3 D4 BC 1A 6C 3E 3C 38 96 BE CA 5A F3 1F [04:12:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FB 1F 47 00 CE 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 93 01 00 F4 03 04 00 B3 AF 70 66 B6 04 01 00 00 7F 56 FE 72 0C 59 32 A5 [04:12:20]CommunicateWithHost err = 0 [04:12:20]CheckOFDResponse [04:12:20]1017 (14) - 77093643461234 [04:12:20]1041 (16) - 0000000000875093 [04:12:20]1040 (4) - 103325 [04:12:20]1012 (4) - 17.06.2024 21:50 [04:12:20]1206 (1) - 0 [04:12:20]OFD Sender: Remove packet 103325 [04:12:20]ProducePacketName [04:12:20]name=ofd_packets/00103325 [04:12:20]NVStorageDeleteData [04:12:20]Write to MH i2c: 01 00 00 D3 39 0C [04:12:20]Write i2c OK [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: 01 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: 01 07 00 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 DD 0C FC [04:12:20]RasterBufferAndPrint [04:12:20]line [04:12:20]line [04:12:20]line [04:12:20]line [04:12:20]line [04:12:20]written 0, free lines is 3300 [04:12:20]MH_Cut [04:12:20]Write to MH i2c: D1 01 00 DA 39 01 E5 [04:12:20]Write i2c OK [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: D1 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: D1 01 00 [04:12:20]MH_I2C_Read... [04:12:20]Read from MH i2c: D1 01 00 DA 39 00 E4 [04:12:20]Write to MH i2c: 01 00 00 DB 39 14 [04:12:20]Write i2c OK [04:12:20]MH_I2C_Read... [04:12:20]OFD Sender: No OFD packet to send [04:12:21]*** Cut start [04:12:21]*** Partial cut [04:12:21]*** CUTSNS_PIN = 1 [04:12:21]*** CUTSNS_PIN = 0 [04:12:21]*** Brake cut motor [04:12:21]Read from MH i2c: 01 [04:12:21]MH_I2C_Read... [04:12:21]*** Stop cut motor [04:12:21]*** Cut end [04:12:21]Read from MH i2c: 01 07 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: 01 07 00 DB 39 00 00 00 00 00 FF 0F 29 [04:12:21]process_action close_receipt done [04:12:21]requested_data is exist [04:12:21]produce_requested_data [04:12:21]requested_item fm.sn is exist - process it [04:12:21]wFMCommunicate request_size=4 [04:12:21]MH_SAM_APDU [04:12:21]CAPDU: 80 11 00 00 [04:12:21]Write to MH i2c: E2 08 00 DC 39 80 11 00 00 00 00 00 00 8F [04:12:21]Write i2c OK [04:12:21]MH_I2C_Read... [04:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:21]Read from MH i2c: E2 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 17 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 17 00 DC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [04:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:12:21]wFMCommunicate OK [04:12:21]requested_item fd.num is exist - process it [04:12:21]SAM_PROTO_GetFieldsCounters [04:12:21]wFMCommunicate request_size=4 [04:12:21]MH_SAM_APDU [04:12:21]CAPDU: 80 13 00 00 [04:12:21]Write to MH i2c: E2 08 00 DD 39 80 13 00 00 00 00 00 00 92 [04:12:21]Write i2c OK [04:12:21]MH_I2C_Read... [04:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:21]Read from MH i2c: E2 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 62 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 62 00 DD 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [04:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:12:21]wFMCommunicate OK [04:12:21]SAM_PROTO_GetFieldsCounters done [04:12:21]requested_item shift.num is exist - process it [04:12:21]requested_item shift.opened is exist - process it [04:12:21]req_shift_opened [04:12:21]FM_GetShiftState [04:12:21]SAM_PROTO_GetShiftState [04:12:21]wFMCommunicate request_size=4 [04:12:21]MH_SAM_APDU [04:12:21]CAPDU: 80 13 01 00 [04:12:21]Write to MH i2c: E2 08 00 DE 39 80 13 01 00 00 00 00 00 94 [04:12:21]Write i2c OK [04:12:21]MH_I2C_Read... [04:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:21]Read from MH i2c: E2 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 0E 00 [04:12:21]MH_I2C_Read... [04:12:21]Read from MH i2c: E2 0E 00 DE 39 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 15 [04:12:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:12:21]wFMCommunicate OK [04:12:21]SAM_PROTO_GetShiftState done [04:12:21]FM_GetShiftState done [04:12:21]req_shift_opened done [04:12:21]requested_item shift.open_date is exist - process it [04:12:21]req_shift_open_date [04:12:21]req_shift_open_date done [04:12:21]produce_requested_data done [04:12:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103325,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [04:12:21]process_action_free close_receipt [04:12:21]json_value_free [04:12:21]json_value_free done [04:12:21]process_json_proto returns [04:12:21]Send response to host [04:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103325,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [04:12:21]free response buf [04:12:21]execute_script done [04:12:21]execute_script returns [04:12:21]free content buf [04:12:21]Sock 9.Close socket [04:12:21]Sock 9.Thread stoped [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:02]accept exits with 7 [04:38:02]New connection [04:38:02]New thread 3067084132 created [04:38:02]Thread 3067227492 joined [04:38:02]Waiting for new connection... [04:38:02] Sock 7.Parse request [04:38:02]Sock 7.Check first char [04:38:02]Sock 7.First char is OK [04:38:02]request: POST /json_proto HTTP/1.0 [04:38:02]Method: POST [04:38:02]URL: /json_proto [04:38:02]Method is POST - this is cgi request [04:38:02]url: /json_proto [04:38:02]query_string will be loaded in cgi processing [04:38:02]execute_cgi json_proto POST (null) [04:38:02]execute_cgi path=json_proto method=POST [04:38:02]POST find Content-Length [04:38:02]Host: 172.17.38.133:8080 [04:38:02]Content-Length: 687 [04:38:02]Content-Type: application/json [04:38:02] [04:38:02]POST finish read [04:38:02]Found Content-Length = 687 [04:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:02]execute_script... [04:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:02]POST & json_proto [04:38:02]process_json_proto [04:38:02]json parsed OK: [04:38:02]protocol is kg_v1.0 [04:38:02]action value=close_receipt [04:38:02]process_action close_receipt [04:38:02]cmd_close_receipt [04:38:02]MH_GetDate [04:38:02]Write to MH i2c: F0 00 00 DF 39 07 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: F0 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: F0 09 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: F0 09 00 DF 39 00 2F 0F 71 66 BD 8F 7C 64 51 [04:38:02]GetLastDocTimeStamp 1718683942 [04:38:02]current date 1718685487 [04:38:02]FM_GetShiftState [04:38:02]SAM_PROTO_GetShiftState [04:38:02]wFMCommunicate request_size=4 [04:38:02]MH_SAM_APDU [04:38:02]CAPDU: 80 13 01 00 [04:38:02]Write to MH i2c: E2 08 00 E0 39 80 13 01 00 00 00 00 00 96 [04:38:02]Write i2c OK [04:38:02]MH_I2C_Read... [04:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:02]Read from MH i2c: E2 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 0E 00 [04:38:02]MH_I2C_Read... [04:38:02]Read from MH i2c: E2 0E 00 E0 39 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 17 [04:38:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:38:02]wFMCommunicate OK [04:38:02]SAM_PROTO_GetShiftState done [04:38:02]FM_GetShiftState done [04:38:02]opened in 1718670284 [04:38:02]opened+sec_in_day 1718756684 [04:38:02]quantity*price = 100018 [04:38:02]sum+1 = 100020 [04:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 18.06.2024 04:38 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103326 ФПД: 113677679419688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T043807&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103326&fm=113677679419688&tin=02508201610067®Number=0000000000092785&sum=100000 [04:38:03]StoreToDocumentArchive [04:38:03]shift 352 fd 103326 [04:38:03]save to /storage/0352/doc_00103326 [04:38:03]save last doc name /storage/0352/doc_00103326 to /storage/kkm_last_doc_name [04:38:03]save OK [04:38:03]Clear old archive folders... [04:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:38:03]tlvbuf is 0132D620 [04:38:03]SAM_PROTO_ClearQueue [04:38:03]wFMCommunicate request_size=4 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 09 00 00 [04:38:03]Write to MH i2c: E2 08 00 ED 39 80 09 00 00 00 00 00 00 98 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 ED 39 00 90 00 9A [04:38:03]RAPDU: 90 00 [04:38:03]wFMCommunicate OK [04:38:03]SAM_PROTO_ClearQueue done [04:38:03]KKMCreateOFDPacket [04:38:03]OFDProtocolAddRootSTLVToBuf [04:38:03]FM_MakeSignedData [04:38:03]FM_MakeSignedData [04:38:03]SAM_PROTO_SignData [04:38:03]wFMCommunicate request_size=4 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 0D 01 02 [04:38:03]Write to MH i2c: E2 08 00 EE 39 80 0D 01 02 00 00 00 00 A0 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 EE 39 00 90 00 9B [04:38:03]RAPDU: 90 00 [04:38:03]wFMCommunicate OK [04:38:03]wFMCommunicate request_size=255 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2F 0F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 93 01 00 35 04 06 00 [04:38:03]Write to MH i2c: E2 02 01 EF 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2F 0F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 93 01 00 35 04 06 00 00 00 A6 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 EF 39 00 90 00 9C [04:38:03]RAPDU: 90 00 [04:38:03]wFMCommunicate OK [04:38:03]wFMCommunicate request_size=11 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 0D 02 02 06 67 63 A5 B3 61 28 [04:38:03]Write to MH i2c: E2 0E 00 F0 39 80 0D 02 02 06 00 67 63 A5 B3 61 28 00 00 5A [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 03 00 F0 39 00 90 00 9D [04:38:03]RAPDU: 90 00 [04:38:03]wFMCommunicate OK [04:38:03]wFMCommunicate request_size=4 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 0D 03 02 [04:38:03]Write to MH i2c: E2 08 00 F1 39 80 0D 03 02 00 00 00 00 A5 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:03]Read from MH i2c: E2 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 0B 00 [04:38:03]MH_I2C_Read... [04:38:03]Read from MH i2c: E2 0B 00 F1 39 00 17 BB 97 7A 3A 62 8F 52 90 00 06 [04:38:03]RAPDU: 17 BB 97 7A 3A 62 8F 52 90 00 [04:38:03]wFMCommunicate OK [04:38:03]SAM_PROTO_SignData done [04:38:03]FM_MakeSignedData done [04:38:03]CreateOFDProtocolMessage [04:38:03]wFMCommunicate request_size=4 [04:38:03]MH_SAM_APDU [04:38:03]CAPDU: 80 11 00 00 [04:38:03]Write to MH i2c: E2 08 00 F2 39 80 11 00 00 00 00 00 00 A5 [04:38:03]Write i2c OK [04:38:03]MH_I2C_Read... [04:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:04]Read from MH i2c: E2 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: E2 17 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: E2 17 00 F2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [04:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:38:04]wFMCommunicate OK [04:38:04]CreateOFDProtocolMessage done [04:38:04]OFDSenderStorePacket 103326 [04:38:04]StoreOFDPacket docnum=103326 [04:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 29 09 08 01 B2 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2F 0F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 93 01 00 35 04 06 00 67 63 A5 B3 61 28 17 BB 97 7A 3A 62 8F 52 [04:38:04]CheckFolder [04:38:04]dirname=/storage/ofd_packets [04:38:04]CheckFolder done [04:38:04]ProducePacketName [04:38:04]name=ofd_packets/00103326 [04:38:04]NVStorageSaveData ofd_packets/00103326 [04:38:04]File name is /storage/ofd_packets/00103326 [04:38:04]Write 302 bytes [04:38:04]NVStorageSaveData done [04:38:04]OFDSenderStorePacket done [04:38:04]KKMCreateOFDPacket done [04:38:04]NVStorageSaveData kkm_last_timestamp [04:38:04]File name is /storage/kkm_last_timestamp [04:38:04]Write 4 bytes [04:38:04]NVStorageSaveData done [04:38:04]ExternCall_PrintAddStr [04:38:04]wPrintStart [04:38:04]Write to MH i2c: 01 00 00 F3 39 2C [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 F3 39 00 00 00 00 00 FF 0F 41 [04:38:04]RasterBufferAndPrint [04:38:04]line Счет N : (1)672462 [04:38:04]line ИНН: 02508201610067 [04:38:04]line Контрольно-Кассовый Чек [04:38:04]line ПРОДАЖА [04:38:04]line ТРК (МРК, ГНК) : 21 [04:38:04]line Товар: 2710194210 [04:38:04]line ДТ(л)-К-5 [04:38:04]line 13.720 * 72.90 [04:38:04]line = 1000.19 [04:38:04]line НДС 12% НСП 1% [04:38:04]line > о реализуемом товаре [04:38:04]line ОКРУГЛЕНИЕ: -0.19 [04:38:04]line ИТОГО: 1000.00 [04:38:04]line Внесено: 1000.00 [04:38:04]line СДАЧА: 0.00 [04:38:04]line НСП 1% : 8.85 [04:38:04]line НДС 12% : 106.21 [04:38:04]line Наличными: 1000.00 [04:38:04]line Безнал.: 0.00 [04:38:04]line Место: АЗС № 120 "Партнер Нефть" [04:38:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:38:04]line СНО: Общий режим [04:38:04]line Чек 10 18.06.2024 04:38 [04:38:04]line Смена: 352 ФФД: 1.0 [04:38:04]line ЗНМ: 0300000164 [04:38:04]line РНМ: 0000000000092785 [04:38:04]line Версия ККМ: 001 [04:38:04]line ФМ: 0000000000875093 [04:38:04]line ФД: 103326 [04:38:04]line ФПД: 113677679419688 [04:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T043807&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103326&fm=113677679419688&tin=02508201610067®Number=0000000000092785&sum=100000 [04:38:04]OFD Sender: Processing packet 103326 [packets to send 17, broken 16] [04:38:04]ProducePacketName [04:38:04]name=ofd_packets/00103326 [04:38:04]OFD Sender: To server: pG, [04:38:04]CommunicateWithHost lk.salyk.kg:30040 [04:38:04]ConnectInit lk.salyk.kg [04:38:04]written 0, free lines is 4095 [04:38:04]Connected sock=10 [04:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 29 09 08 01 B2 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2F 0F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 93 01 00 35 04 06 00 67 63 A5 B3 61 28 17 BB 97 7A 3A 62 8F 52 [04:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 61 F1 47 00 AE AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 93 01 00 F4 03 04 00 BC B5 70 66 B6 04 01 00 00 49 19 77 28 10 F3 BE 93 [04:38:04]CommunicateWithHost err = 0 [04:38:04]CheckOFDResponse [04:38:04]1017 (14) - 77093643461234 [04:38:04]1041 (16) - 0000000000875093 [04:38:04]1040 (4) - 103326 [04:38:04]1012 (4) - 17.06.2024 22:16 [04:38:04]1206 (1) - 0 [04:38:04]OFD Sender: Remove packet 103326 [04:38:04]ProducePacketName [04:38:04]name=ofd_packets/00103326 [04:38:04]NVStorageDeleteData [04:38:04]Write to MH i2c: 01 00 00 1E 3A 58 [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: 01 07 00 1E 3A 00 00 00 00 00 E0 0C 4B [04:38:04]RasterBufferAndPrint [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]line [04:38:04]written 0, free lines is 3302 [04:38:04]MH_Cut [04:38:04]Write to MH i2c: D1 01 00 25 3A 01 31 [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 01 00 [04:38:04]MH_I2C_Read... [04:38:04]Read from MH i2c: D1 01 00 25 3A 00 30 [04:38:04]Write to MH i2c: 01 00 00 26 3A 60 [04:38:04]Write i2c OK [04:38:04]MH_I2C_Read... [04:38:05]OFD Sender: No OFD packet to send [04:38:05]*** Cut start [04:38:05]*** Partial cut [04:38:05]*** CUTSNS_PIN = 1 [04:38:05]*** CUTSNS_PIN = 0 [04:38:05]*** Brake cut motor [04:38:06]Read from MH i2c: 01 [04:38:06]MH_I2C_Read... [04:38:06]*** Stop cut motor [04:38:06]*** Cut end [04:38:06]Read from MH i2c: 01 07 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: 01 07 00 26 3A 00 00 00 00 00 FF 0F 75 [04:38:06]process_action close_receipt done [04:38:06]requested_data is exist [04:38:06]produce_requested_data [04:38:06]requested_item fm.sn is exist - process it [04:38:06]wFMCommunicate request_size=4 [04:38:06]MH_SAM_APDU [04:38:06]CAPDU: 80 11 00 00 [04:38:06]Write to MH i2c: E2 08 00 27 3A 80 11 00 00 00 00 00 00 DB [04:38:06]Write i2c OK [04:38:06]MH_I2C_Read... [04:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:06]Read from MH i2c: E2 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 17 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 17 00 27 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [04:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:38:06]wFMCommunicate OK [04:38:06]requested_item fd.num is exist - process it [04:38:06]SAM_PROTO_GetFieldsCounters [04:38:06]wFMCommunicate request_size=4 [04:38:06]MH_SAM_APDU [04:38:06]CAPDU: 80 13 00 00 [04:38:06]Write to MH i2c: E2 08 00 28 3A 80 13 00 00 00 00 00 00 DE [04:38:06]Write i2c OK [04:38:06]MH_I2C_Read... [04:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:06]Read from MH i2c: E2 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 62 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 62 00 28 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [04:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:06]wFMCommunicate OK [04:38:06]SAM_PROTO_GetFieldsCounters done [04:38:06]requested_item shift.num is exist - process it [04:38:06]requested_item shift.opened is exist - process it [04:38:06]req_shift_opened [04:38:06]FM_GetShiftState [04:38:06]SAM_PROTO_GetShiftState [04:38:06]wFMCommunicate request_size=4 [04:38:06]MH_SAM_APDU [04:38:06]CAPDU: 80 13 01 00 [04:38:06]Write to MH i2c: E2 08 00 29 3A 80 13 01 00 00 00 00 00 E0 [04:38:06]Write i2c OK [04:38:06]MH_I2C_Read... [04:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:06]Read from MH i2c: E2 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 0E 00 [04:38:06]MH_I2C_Read... [04:38:06]Read from MH i2c: E2 0E 00 29 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 61 [04:38:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [04:38:06]wFMCommunicate OK [04:38:06]SAM_PROTO_GetShiftState done [04:38:06]FM_GetShiftState done [04:38:06]req_shift_opened done [04:38:06]requested_item shift.open_date is exist - process it [04:38:06]req_shift_open_date [04:38:06]req_shift_open_date done [04:38:06]produce_requested_data done [04:38:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103326,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [04:38:06]process_action_free close_receipt [04:38:06]json_value_free [04:38:06]json_value_free done [04:38:06]process_json_proto returns [04:38:06]Send response to host [04:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103326,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [04:38:06]free response buf [04:38:06]execute_script done [04:38:06]execute_script returns [04:38:06]free content buf [04:38:06]Sock 7.Close socket [04:38:06]Sock 7.Thread stoped [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24: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:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33: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:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:14]accept exits with 9 [05:42:14]New connection [05:42:14]New thread 3067227492 created [05:42:14]Thread 3067084132 joined [05:42:14]Waiting for new connection... [05:42:14] Sock 9.Parse request [05:42:14]Sock 9.Check first char [05:42:14]Sock 9.First char is OK [05:42:14]request: POST /json_proto HTTP/1.0 [05:42:14]Method: POST [05:42:14]URL: /json_proto [05:42:14]Method is POST - this is cgi request [05:42:14]url: /json_proto [05:42:14]query_string will be loaded in cgi processing [05:42:14]execute_cgi json_proto POST (null) [05:42:14]execute_cgi path=json_proto method=POST [05:42:14]POST find Content-Length [05:42:14]Host: 172.17.38.133:8080 [05:42:14]Content-Length: 682 [05:42:14]Content-Type: application/json [05:42:14] [05:42:14]POST finish read [05:42:14]Found Content-Length = 682 [05:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [05:42:14]execute_script... [05:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [05:42:14]POST & json_proto [05:42:14]process_json_proto [05:42:14]json parsed OK: [05:42:14]protocol is kg_v1.0 [05:42:14]action value=close_receipt [05:42:14]process_action close_receipt [05:42:14]cmd_close_receipt [05:42:14]MH_GetDate [05:42:14]Write to MH i2c: F0 00 00 2A 3A 53 [05:42:14]Write i2c OK [05:42:14]MH_I2C_Read... [05:42:14]Read from MH i2c: F0 [05:42:14]MH_I2C_Read... [05:42:14]Read from MH i2c: F0 09 00 [05:42:14]MH_I2C_Read... [05:42:14]Read from MH i2c: F0 09 00 2A 3A 00 3B 1E 71 66 BD 8F 7C 64 B8 [05:42:14]GetLastDocTimeStamp 1718685487 [05:42:14]current date 1718689339 [05:42:14]FM_GetShiftState [05:42:14]SAM_PROTO_GetShiftState [05:42:14]wFMCommunicate request_size=4 [05:42:14]MH_SAM_APDU [05:42:14]CAPDU: 80 13 01 00 [05:42:14]Write to MH i2c: E2 08 00 2B 3A 80 13 01 00 00 00 00 00 E2 [05:42:14]Write i2c OK [05:42:14]MH_I2C_Read... [05:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:14]Read from MH i2c: E2 [05:42:14]MH_I2C_Read... [05:42:14]Read from MH i2c: E2 0E 00 [05:42:14]MH_I2C_Read... [05:42:14]Read from MH i2c: E2 0E 00 2B 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 63 [05:42:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [05:42:14]wFMCommunicate OK [05:42:14]SAM_PROTO_GetShiftState done [05:42:14]FM_GetShiftState done [05:42:14]opened in 1718670284 [05:42:14]opened+sec_in_day 1718756684 [05:42:14]quantity*price = 150064 [05:42:14]sum+1 = 150065 [05:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 18.06.2024 05:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103327 ФПД: 112106261404489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T054219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103327&fm=112106261404489&tin=02508201610067®Number=0000000000092785&sum=150000 [05:42:15]StoreToDocumentArchive [05:42:15]shift 352 fd 103327 [05:42:15]save to /storage/0352/doc_00103327 [05:42:15]save last doc name /storage/0352/doc_00103327 to /storage/kkm_last_doc_name [05:42:15]save OK [05:42:15]Clear old archive folders... [05:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:42:15]tlvbuf is 013EC020 [05:42:15]SAM_PROTO_ClearQueue [05:42:15]wFMCommunicate request_size=4 [05:42:15]MH_SAM_APDU [05:42:15]CAPDU: 80 09 00 00 [05:42:15]Write to MH i2c: E2 08 00 38 3A 80 09 00 00 00 00 00 00 E4 [05:42:15]Write i2c OK [05:42:15]MH_I2C_Read... [05:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:15]Read from MH i2c: E2 [05:42:15]MH_I2C_Read... [05:42:15]Read from MH i2c: E2 03 00 [05:42:15]MH_I2C_Read... [05:42:15]Read from MH i2c: E2 03 00 38 3A 00 90 00 E6 [05:42:15]RAPDU: 90 00 [05:42:15]wFMCommunicate OK [05:42:15]SAM_PROTO_ClearQueue done [05:42:15]KKMCreateOFDPacket [05:42:15]OFDProtocolAddRootSTLVToBuf [05:42:15]FM_MakeSignedData [05:42:15]FM_MakeSignedData [05:42:15]SAM_PROTO_SignData [05:42:15]wFMCommunicate request_size=4 [05:42:15]MH_SAM_APDU [05:42:15]CAPDU: 80 0D 01 02 [05:42:15]Write to MH i2c: E2 08 00 39 3A 80 0D 01 02 00 00 00 00 EC [05:42:15]Write i2c OK [05:42:15]MH_I2C_Read... [05:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:15]Read from MH i2c: E2 [05:42:15]MH_I2C_Read... [05:42:15]Read from MH i2c: E2 03 00 [05:42:15]MH_I2C_Read... [05:42:15]Read from MH i2c: E2 03 00 39 3A 00 90 00 E7 [05:42:15]RAPDU: 90 00 [05:42:15]wFMCommunicate OK [05:42:15]wFMCommunicate request_size=255 [05:42:15]MH_SAM_APDU [05:42:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0B 00 00 00 F4 03 04 00 3B 1E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 93 01 00 35 04 06 00 65 [05:42:15]Write to MH i2c: E2 02 01 3A 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0B 00 00 00 F4 03 04 00 3B 1E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 93 01 00 35 04 06 00 65 00 00 7E [05:42:15]Write i2c OK [05:42:15]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 3A 3A 00 90 00 E8 [05:42:16]RAPDU: 90 00 [05:42:16]wFMCommunicate OK [05:42:16]wFMCommunicate request_size=10 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 0D 02 02 05 F5 C5 E3 5B 49 [05:42:16]Write to MH i2c: E2 0D 00 3B 3A 80 0D 02 02 05 00 F5 C5 E3 5B 49 00 00 3A [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 3B 3A 00 90 00 E9 [05:42:16]RAPDU: 90 00 [05:42:16]wFMCommunicate OK [05:42:16]wFMCommunicate request_size=4 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 0D 03 02 [05:42:16]Write to MH i2c: E2 08 00 3C 3A 80 0D 03 02 00 00 00 00 F1 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 0B 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 0B 00 3C 3A 00 90 2B 26 B9 3E E3 BE AF 90 00 1A [05:42:16]RAPDU: 90 2B 26 B9 3E E3 BE AF 90 00 [05:42:16]wFMCommunicate OK [05:42:16]SAM_PROTO_SignData done [05:42:16]FM_MakeSignedData done [05:42:16]CreateOFDProtocolMessage [05:42:16]wFMCommunicate request_size=4 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 11 00 00 [05:42:16]Write to MH i2c: E2 08 00 3D 3A 80 11 00 00 00 00 00 00 F1 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 17 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 17 00 3D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [05:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:42:16]wFMCommunicate OK [05:42:16]CreateOFDProtocolMessage done [05:42:16]OFDSenderStorePacket 103327 [05:42:16]StoreOFDPacket docnum=103327 [05:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 87 66 07 01 00 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0B 00 00 00 F4 03 04 00 3B 1E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 93 01 00 35 04 06 00 65 F5 C5 E3 5B 49 90 2B 26 B9 3E E3 BE AF [05:42:16]CheckFolder [05:42:16]dirname=/storage/ofd_packets [05:42:16]CheckFolder done [05:42:16]ProducePacketName [05:42:16]name=ofd_packets/00103327 [05:42:16]NVStorageSaveData ofd_packets/00103327 [05:42:16]File name is /storage/ofd_packets/00103327 [05:42:16]Write 301 bytes [05:42:16]NVStorageSaveData done [05:42:16]OFDSenderStorePacket done [05:42:16]KKMCreateOFDPacket done [05:42:16]NVStorageSaveData kkm_last_timestamp [05:42:16]File name is /storage/kkm_last_timestamp [05:42:16]Write 4 bytes [05:42:16]NVStorageSaveData done [05:42:16]ExternCall_PrintAddStr [05:42:16]wPrintStart [05:42:16]Write to MH i2c: 01 00 00 3E 3A 78 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: 01 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: 01 07 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: 01 07 00 3E 3A 00 00 00 00 00 FF 0F 8D [05:42:16]RasterBufferAndPrint [05:42:16]line Счет N : (1)672463 [05:42:16]line ИНН: 02508201610067 [05:42:16]line Контрольно-Кассовый Чек [05:42:16]line ПРОДАЖА [05:42:16]line ТРК (МРК, ГНК) : 32 [05:42:16]line Товар: 2710124130 [05:42:16]line Аи-92-К-5 [05:42:16]line 22.600 * 66.40 [05:42:16]line = 1500.64 [05:42:16]line НДС 12% НСП 1% [05:42:16]line > о реализуемом товаре [05:42:16]line ОКРУГЛЕНИЕ: -0.64 [05:42:16]line ИТОГО: 1500.00 [05:42:16]line Внесено: 1500.00 [05:42:16]line СДАЧА: 0.00 [05:42:16]line НСП 1% : 13.28 [05:42:16]line НДС 12% : 159.36 [05:42:16]line Наличными: 1500.00 [05:42:16]line Безнал.: 0.00 [05:42:16]line Место: АЗС № 120 "Партнер Нефть" [05:42:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:42:16]line СНО: Общий режим [05:42:16]line Чек 11 18.06.2024 05:42 [05:42:16]line Смена: 352 ФФД: 1.0 [05:42:16]line ЗНМ: 0300000164 [05:42:16]line РНМ: 0000000000092785 [05:42:16]line Версия ККМ: 001 [05:42:16]line ФМ: 0000000000875093 [05:42:16]line ФД: 103327 [05:42:16]line ФПД: 112106261404489 [05:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T054219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103327&fm=112106261404489&tin=02508201610067®Number=0000000000092785&sum=150000 [05:42:16]OFD Sender: Processing packet 103327 [packets to send 17, broken 16] [05:42:16]ProducePacketName [05:42:16]name=ofd_packets/00103327 [05:42:16]OFD Sender: To server: pG, [05:42:16]CommunicateWithHost lk.salyk.kg:30040 [05:42:16]ConnectInit lk.salyk.kg [05:42:16]written 0, free lines is 4095 [05:42:16]Connected sock=10 [05:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 87 66 07 01 00 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0B 00 00 00 F4 03 04 00 3B 1E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 93 01 00 35 04 06 00 65 F5 C5 E3 5B 49 90 2B 26 B9 3E E3 BE AF [05:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F6 B1 47 00 8D 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 93 01 00 F4 03 04 00 C8 C4 70 66 B6 04 01 00 00 39 37 EE 7A 1E DD B0 25 [05:42:16]CommunicateWithHost err = 0 [05:42:16]CheckOFDResponse [05:42:16]1017 (14) - 77093643461234 [05:42:16]1041 (16) - 0000000000875093 [05:42:16]1040 (4) - 103327 [05:42:16]1012 (4) - 17.06.2024 23:20 [05:42:16]1206 (1) - 0 [05:42:16]OFD Sender: Remove packet 103327 [05:42:16]ProducePacketName [05:42:16]name=ofd_packets/00103327 [05:42:16]NVStorageDeleteData [05:42:17]Write to MH i2c: 01 00 00 69 3A A3 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 69 3A 00 00 00 00 00 D6 0C 8C [05:42:17]RasterBufferAndPrint [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]written 0, free lines is 3289 [05:42:17]MH_Cut [05:42:17]Write to MH i2c: D1 01 00 70 3A 01 7C [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 01 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 01 00 70 3A 00 7B [05:42:17]Write to MH i2c: 01 00 00 71 3A AB [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]OFD Sender: No OFD packet to send [05:42:17]*** Cut start [05:42:17]*** Partial cut [05:42:17]*** CUTSNS_PIN = 1 [05:42:17]*** CUTSNS_PIN = 0 [05:42:18]*** Brake cut motor [05:42:18]Read from MH i2c: 01 [05:42:18]MH_I2C_Read... [05:42:18]*** Stop cut motor [05:42:18]*** Cut end [05:42:18]Read from MH i2c: 01 07 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: 01 07 00 71 3A 00 00 00 00 00 FF 0F C0 [05:42:18]process_action close_receipt done [05:42:18]requested_data is exist [05:42:18]produce_requested_data [05:42:18]requested_item fm.sn is exist - process it [05:42:18]wFMCommunicate request_size=4 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 11 00 00 [05:42:18]Write to MH i2c: E2 08 00 72 3A 80 11 00 00 00 00 00 00 26 [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 17 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 17 00 72 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [05:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:42:18]wFMCommunicate OK [05:42:18]requested_item fd.num is exist - process it [05:42:18]SAM_PROTO_GetFieldsCounters [05:42:18]wFMCommunicate request_size=4 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 13 00 00 [05:42:18]Write to MH i2c: E2 08 00 73 3A 80 13 00 00 00 00 00 00 29 [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 62 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 62 00 73 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [05:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:42:18]wFMCommunicate OK [05:42:18]SAM_PROTO_GetFieldsCounters done [05:42:18]requested_item shift.num is exist - process it [05:42:18]requested_item shift.opened is exist - process it [05:42:18]req_shift_opened [05:42:18]FM_GetShiftState [05:42:18]SAM_PROTO_GetShiftState [05:42:18]wFMCommunicate request_size=4 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 13 01 00 [05:42:18]Write to MH i2c: E2 08 00 74 3A 80 13 01 00 00 00 00 00 2B [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 0E 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 0E 00 74 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AC [05:42:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [05:42:18]wFMCommunicate OK [05:42:18]SAM_PROTO_GetShiftState done [05:42:18]FM_GetShiftState done [05:42:18]req_shift_opened done [05:42:18]requested_item shift.open_date is exist - process it [05:42:18]req_shift_open_date [05:42:18]req_shift_open_date done [05:42:18]produce_requested_data done [05:42:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103327,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [05:42:18]process_action_free close_receipt [05:42:18]json_value_free [05:42:18]json_value_free done [05:42:18]process_json_proto returns [05:42:18]Send response to host [05:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103327,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [05:42:18]free response buf [05:42:18]execute_script done [05:42:18]execute_script returns [05:42:18]free content buf [05:42:18]Sock 9.Close socket [05:42:18]Sock 9.Thread stoped [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:27]accept exits with 7 [05:56:27]New connection [05:56:27]New thread 3067084132 created [05:56:27]Thread 3067227492 joined [05:56:27]Waiting for new connection... [05:56:27] Sock 7.Parse request [05:56:27]Sock 7.Check first char [05:56:27]Sock 7.First char is OK [05:56:27]request: POST /json_proto HTTP/1.0 [05:56:27]Method: POST [05:56:27]URL: /json_proto [05:56:27]Method is POST - this is cgi request [05:56:27]url: /json_proto [05:56:27]query_string will be loaded in cgi processing [05:56:27]execute_cgi json_proto POST (null) [05:56:27]execute_cgi path=json_proto method=POST [05:56:27]POST find Content-Length [05:56:27]Host: 172.17.38.133:8080 [05:56:27]Content-Length: 682 [05:56:27]Content-Type: application/json [05:56:27] [05:56:27]POST finish read [05:56:27]Found Content-Length = 682 [05:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [05:56:27]execute_script... [05:56:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [05:56:27]POST & json_proto [05:56:27]process_json_proto [05:56:27]json parsed OK: [05:56:27]protocol is kg_v1.0 [05:56:27]action value=close_receipt [05:56:27]process_action close_receipt [05:56:27]cmd_close_receipt [05:56:27]MH_GetDate [05:56:27]Write to MH i2c: F0 00 00 75 3A 9E [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: F0 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: F0 09 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: F0 09 00 75 3A 00 90 21 71 66 BD 8F 7C 64 5B [05:56:27]GetLastDocTimeStamp 1718689339 [05:56:27]current date 1718690192 [05:56:27]FM_GetShiftState [05:56:27]SAM_PROTO_GetShiftState [05:56:27]wFMCommunicate request_size=4 [05:56:27]MH_SAM_APDU [05:56:27]CAPDU: 80 13 01 00 [05:56:27]Write to MH i2c: E2 08 00 76 3A 80 13 01 00 00 00 00 00 2D [05:56:27]Write i2c OK [05:56:27]MH_I2C_Read... [05:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:27]Read from MH i2c: E2 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 0E 00 [05:56:27]MH_I2C_Read... [05:56:27]Read from MH i2c: E2 0E 00 76 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AE [05:56:27]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [05:56:27]wFMCommunicate OK [05:56:27]SAM_PROTO_GetShiftState done [05:56:27]FM_GetShiftState done [05:56:27]opened in 1718670284 [05:56:27]opened+sec_in_day 1718756684 [05:56:27]quantity*price = 150064 [05:56:27]sum+1 = 150065 [05:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 18.06.2024 05:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103328 ФПД: 85850802455250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T055632&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103328&fm=85850802455250&tin=02508201610067®Number=0000000000092785&sum=150000 [05:56:28]StoreToDocumentArchive [05:56:28]shift 352 fd 103328 [05:56:28]save to /storage/0352/doc_00103328 [05:56:28]save last doc name /storage/0352/doc_00103328 to /storage/kkm_last_doc_name [05:56:28]save OK [05:56:28]Clear old archive folders... [05:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:56:28]tlvbuf is 0144D880 [05:56:28]SAM_PROTO_ClearQueue [05:56:28]wFMCommunicate request_size=4 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 09 00 00 [05:56:28]Write to MH i2c: E2 08 00 83 3A 80 09 00 00 00 00 00 00 2F [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:28]Read from MH i2c: E2 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 03 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 03 00 83 3A 00 90 00 31 [05:56:28]RAPDU: 90 00 [05:56:28]wFMCommunicate OK [05:56:28]SAM_PROTO_ClearQueue done [05:56:28]KKMCreateOFDPacket [05:56:28]OFDProtocolAddRootSTLVToBuf [05:56:28]FM_MakeSignedData [05:56:28]FM_MakeSignedData [05:56:28]SAM_PROTO_SignData [05:56:28]wFMCommunicate request_size=4 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 0D 01 02 [05:56:28]Write to MH i2c: E2 08 00 84 3A 80 0D 01 02 00 00 00 00 37 [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:28]Read from MH i2c: E2 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 03 00 [05:56:28]MH_I2C_Read... [05:56:28]Read from MH i2c: E2 03 00 84 3A 00 90 00 32 [05:56:28]RAPDU: 90 00 [05:56:28]wFMCommunicate OK [05:56:28]wFMCommunicate request_size=255 [05:56:28]MH_SAM_APDU [05:56:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0C 00 00 00 F4 03 04 00 90 21 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 93 01 00 35 04 06 00 4E [05:56:28]Write to MH i2c: E2 02 01 85 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0C 00 00 00 F4 03 04 00 90 21 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 93 01 00 35 04 06 00 4E 00 00 0C [05:56:28]Write i2c OK [05:56:28]MH_I2C_Read... [05:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:29]Read from MH i2c: E2 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 03 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 03 00 85 3A 00 90 00 33 [05:56:29]RAPDU: 90 00 [05:56:29]wFMCommunicate OK [05:56:29]wFMCommunicate request_size=10 [05:56:29]MH_SAM_APDU [05:56:29]CAPDU: 80 0D 02 02 05 14 B2 95 82 D2 [05:56:29]Write to MH i2c: E2 0D 00 86 3A 80 0D 02 02 05 00 14 B2 95 82 D2 00 00 F3 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:29]Read from MH i2c: E2 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 03 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 03 00 86 3A 00 90 00 34 [05:56:29]RAPDU: 90 00 [05:56:29]wFMCommunicate OK [05:56:29]wFMCommunicate request_size=4 [05:56:29]MH_SAM_APDU [05:56:29]CAPDU: 80 0D 03 02 [05:56:29]Write to MH i2c: E2 08 00 87 3A 80 0D 03 02 00 00 00 00 3C [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:29]Read from MH i2c: E2 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 0B 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 0B 00 87 3A 00 38 AD 4E ED E0 6E CA 80 90 00 F5 [05:56:29]RAPDU: 38 AD 4E ED E0 6E CA 80 90 00 [05:56:29]wFMCommunicate OK [05:56:29]SAM_PROTO_SignData done [05:56:29]FM_MakeSignedData done [05:56:29]CreateOFDProtocolMessage [05:56:29]wFMCommunicate request_size=4 [05:56:29]MH_SAM_APDU [05:56:29]CAPDU: 80 11 00 00 [05:56:29]Write to MH i2c: E2 08 00 88 3A 80 11 00 00 00 00 00 00 3C [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:29]Read from MH i2c: E2 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 17 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 17 00 88 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [05:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:56:29]wFMCommunicate OK [05:56:29]CreateOFDProtocolMessage done [05:56:29]OFDSenderStorePacket 103328 [05:56:29]StoreOFDPacket docnum=103328 [05:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F F2 07 01 BF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0C 00 00 00 F4 03 04 00 90 21 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 93 01 00 35 04 06 00 4E 14 B2 95 82 D2 38 AD 4E ED E0 6E CA 80 [05:56:29]CheckFolder [05:56:29]dirname=/storage/ofd_packets [05:56:29]CheckFolder done [05:56:29]ProducePacketName [05:56:29]name=ofd_packets/00103328 [05:56:29]NVStorageSaveData ofd_packets/00103328 [05:56:29]File name is /storage/ofd_packets/00103328 [05:56:29]Write 301 bytes [05:56:29]NVStorageSaveData done [05:56:29]OFDSenderStorePacket done [05:56:29]KKMCreateOFDPacket done [05:56:29]NVStorageSaveData kkm_last_timestamp [05:56:29]File name is /storage/kkm_last_timestamp [05:56:29]Write 4 bytes [05:56:29]NVStorageSaveData done [05:56:29]ExternCall_PrintAddStr [05:56:29]wPrintStart [05:56:29]Write to MH i2c: 01 00 00 89 3A C3 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 07 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 07 00 89 3A 00 00 00 00 00 FF 0F D8 [05:56:29]RasterBufferAndPrint [05:56:29]line Счет N : (1)672464 [05:56:29]line ИНН: 02508201610067 [05:56:29]line Контрольно-Кассовый Чек [05:56:29]line ПРОДАЖА [05:56:29]line ТРК (МРК, ГНК) : 32 [05:56:29]line Товар: 2710124130 [05:56:29]line Аи-92-К-5 [05:56:29]line 22.600 * 66.40 [05:56:29]line = 1500.64 [05:56:29]line НДС 12% НСП 1% [05:56:29]line > о реализуемом товаре [05:56:29]line ОКРУГЛЕНИЕ: -0.64 [05:56:29]line ИТОГО: 1500.00 [05:56:29]line Внесено: 1500.00 [05:56:29]line СДАЧА: 0.00 [05:56:29]line НСП 1% : 13.28 [05:56:29]line НДС 12% : 159.36 [05:56:29]line Наличными: 1500.00 [05:56:29]line Безнал.: 0.00 [05:56:29]line Место: АЗС № 120 "Партнер Нефть" [05:56:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:56:29]line СНО: Общий режим [05:56:29]line Чек 12 18.06.2024 05:56 [05:56:29]line Смена: 352 ФФД: 1.0 [05:56:29]line ЗНМ: 0300000164 [05:56:29]line РНМ: 0000000000092785 [05:56:29]line Версия ККМ: 001 [05:56:29]line ФМ: 0000000000875093 [05:56:29]line ФД: 103328 [05:56:29]line ФПД: 85850802455250 [05:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T055632&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103328&fm=85850802455250&tin=02508201610067®Number=0000000000092785&sum=150000 [05:56:29]written 0, free lines is 4095 [05:56:29]OFD Sender: Processing packet 103328 [packets to send 17, broken 16] [05:56:29]ProducePacketName [05:56:29]name=ofd_packets/00103328 [05:56:29]OFD Sender: To server: pG, [05:56:29]CommunicateWithHost lk.salyk.kg:30040 [05:56:29]ConnectInit lk.salyk.kg [05:56:29]Connected sock=11 [05:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F F2 07 01 BF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0C 00 00 00 F4 03 04 00 90 21 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 93 01 00 35 04 06 00 4E 14 B2 95 82 D2 38 AD 4E ED E0 6E CA 80 [05:56:29]Write to MH i2c: 01 00 00 B4 3A EE [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 07 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: 01 07 00 B4 3A 00 00 00 00 00 D7 0C D8 [05:56:29]RasterBufferAndPrint [05:56:29]line [05:56:29]line [05:56:29]line [05:56:29]line [05:56:29]line [05:56:29]written 0, free lines is 3290 [05:56:29]MH_Cut [05:56:29]Write to MH i2c: D1 01 00 BB 3A 01 C7 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: D1 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: D1 01 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: D1 01 00 BB 3A 00 C6 [05:56:29]Write to MH i2c: 01 00 00 BC 3A F6 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F4 3D 47 00 52 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 35 30 39 33 10 04 04 00 A0 93 01 00 F4 03 04 00 1D C8 70 66 B6 04 01 00 00 17 1E 94 BC 37 CA 3F CB [05:56:29]CommunicateWithHost err = 0 [05:56:29]CheckOFDResponse [05:56:29]1017 (14) - 77093643461234 [05:56:29]1041 (16) - 0000000000875093 [05:56:29]1040 (4) - 103328 [05:56:29]1012 (4) - 17.06.2024 23:34 [05:56:29]1206 (1) - 0 [05:56:29]OFD Sender: Remove packet 103328 [05:56:29]ProducePacketName [05:56:29]name=ofd_packets/00103328 [05:56:29]NVStorageDeleteData [05:56:30]OFD Sender: No OFD packet to send [05:56:30]*** Cut start [05:56:30]*** Partial cut [05:56:30]*** CUTSNS_PIN = 1 [05:56:30]*** CUTSNS_PIN = 0 [05:56:30]*** Brake cut motor [05:56:31]Read from MH i2c: 01 [05:56:31]MH_I2C_Read... [05:56:31]*** Stop cut motor [05:56:31]*** Cut end [05:56:31]Read from MH i2c: 01 07 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: 01 07 00 BC 3A 00 00 00 00 00 FF 0F 0B [05:56:31]process_action close_receipt done [05:56:31]requested_data is exist [05:56:31]produce_requested_data [05:56:31]requested_item fm.sn is exist - process it [05:56:31]wFMCommunicate request_size=4 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 11 00 00 [05:56:31]Write to MH i2c: E2 08 00 BD 3A 80 11 00 00 00 00 00 00 71 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 17 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 17 00 BD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [05:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:56:31]wFMCommunicate OK [05:56:31]requested_item fd.num is exist - process it [05:56:31]SAM_PROTO_GetFieldsCounters [05:56:31]wFMCommunicate request_size=4 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 13 00 00 [05:56:31]Write to MH i2c: E2 08 00 BE 3A 80 13 00 00 00 00 00 00 74 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 62 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 62 00 BE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [05:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:56:31]wFMCommunicate OK [05:56:31]SAM_PROTO_GetFieldsCounters done [05:56:31]requested_item shift.num is exist - process it [05:56:31]requested_item shift.opened is exist - process it [05:56:31]req_shift_opened [05:56:31]FM_GetShiftState [05:56:31]SAM_PROTO_GetShiftState [05:56:31]wFMCommunicate request_size=4 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 13 01 00 [05:56:31]Write to MH i2c: E2 08 00 BF 3A 80 13 01 00 00 00 00 00 76 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 0E 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 0E 00 BF 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F7 [05:56:31]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [05:56:31]wFMCommunicate OK [05:56:31]SAM_PROTO_GetShiftState done [05:56:31]FM_GetShiftState done [05:56:31]req_shift_opened done [05:56:31]requested_item shift.open_date is exist - process it [05:56:31]req_shift_open_date [05:56:31]req_shift_open_date done [05:56:31]produce_requested_data done [05:56:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103328,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [05:56:31]process_action_free close_receipt [05:56:31]json_value_free [05:56:31]json_value_free done [05:56:31]process_json_proto returns [05:56:31]Send response to host [05:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103328,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [05:56:31]free response buf [05:56:31]execute_script done [05:56:31]execute_script returns [05:56:31]free content buf [05:56:31]Sock 7.Close socket [05:56:31]Sock 7.Thread stoped [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [06:04:40]New connection [06:04:40]New thread 3067227492 created [06:04:40]Thread 3067084132 joined [06:04:40]Waiting for new connection... [06:04:40] Sock 9.Parse request [06:04:40]Sock 9.Check first char [06:04:40]Sock 9.First char is OK [06:04:40]request: POST /json_proto HTTP/1.0 [06:04:40]Method: POST [06:04:40]URL: /json_proto [06:04:40]Method is POST - this is cgi request [06:04:40]url: /json_proto [06:04:40]query_string will be loaded in cgi processing [06:04:40]execute_cgi json_proto POST (null) [06:04:40]execute_cgi path=json_proto method=POST [06:04:40]POST find Content-Length [06:04:40]Host: 172.17.38.133:8080 [06:04:40]Content-Length: 677 [06:04:40]Content-Type: application/json [06:04:40] [06:04:40]POST finish read [06:04:40]Found Content-Length = 677 [06:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:40]execute_script... [06:04:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:40]POST & json_proto [06:04:40]process_json_proto [06:04:40]json parsed OK: [06:04:40]protocol is kg_v1.0 [06:04:40]action value=close_receipt [06:04:40]process_action close_receipt [06:04:40]cmd_close_receipt [06:04:40]MH_GetDate [06:04:40]Write to MH i2c: F0 00 00 C0 3A E9 [06:04:40]Write i2c OK [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: F0 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: F0 09 00 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: F0 09 00 C0 3A 00 7E 23 71 66 BD 8F 7C 64 96 [06:04:40]GetLastDocTimeStamp 1718690192 [06:04:40]current date 1718690686 [06:04:40]FM_GetShiftState [06:04:40]SAM_PROTO_GetShiftState [06:04:40]wFMCommunicate request_size=4 [06:04:40]MH_SAM_APDU [06:04:40]CAPDU: 80 13 01 00 [06:04:40]Write to MH i2c: E2 08 00 C1 3A 80 13 01 00 00 00 00 00 78 [06:04:40]Write i2c OK [06:04:40]MH_I2C_Read... [06:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:40]Read from MH i2c: E2 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: E2 0E 00 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: E2 0E 00 C1 3A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F9 [06:04:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:04:40]wFMCommunicate OK [06:04:40]SAM_PROTO_GetShiftState done [06:04:40]FM_GetShiftState done [06:04:40]opened in 1718670284 [06:04:40]opened+sec_in_day 1718756684 [06:04:40]quantity*price = 40039 [06:04:40]sum+1 = 40040 [06:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 13 18.06.2024 06:04 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103329 ФПД: 56634342042421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T060446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103329&fm=56634342042421&tin=02508201610067®Number=0000000000092785&sum=40000 [06:04:41]StoreToDocumentArchive [06:04:41]shift 352 fd 103329 [06:04:41]save to /storage/0352/doc_00103329 [06:04:41]save last doc name /storage/0352/doc_00103329 to /storage/kkm_last_doc_name [06:04:41]save OK [06:04:41]Clear old archive folders... [06:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:04:41]tlvbuf is 01390AC0 [06:04:41]SAM_PROTO_ClearQueue [06:04:41]wFMCommunicate request_size=4 [06:04:41]MH_SAM_APDU [06:04:41]CAPDU: 80 09 00 00 [06:04:41]Write to MH i2c: E2 08 00 CE 3A 80 09 00 00 00 00 00 00 7A [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 CE 3A 00 90 00 7C [06:04:42]RAPDU: 90 00 [06:04:42]wFMCommunicate OK [06:04:42]SAM_PROTO_ClearQueue done [06:04:42]KKMCreateOFDPacket [06:04:42]OFDProtocolAddRootSTLVToBuf [06:04:42]FM_MakeSignedData [06:04:42]FM_MakeSignedData [06:04:42]SAM_PROTO_SignData [06:04:42]wFMCommunicate request_size=4 [06:04:42]MH_SAM_APDU [06:04:42]CAPDU: 80 0D 01 02 [06:04:42]Write to MH i2c: E2 08 00 CF 3A 80 0D 01 02 00 00 00 00 82 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 CF 3A 00 90 00 7D [06:04:42]RAPDU: 90 00 [06:04:42]wFMCommunicate OK [06:04:42]wFMCommunicate request_size=255 [06:04:42]MH_SAM_APDU [06:04:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7E 23 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 93 01 00 35 04 06 00 33 [06:04:42]Write to MH i2c: E2 02 01 D0 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7E 23 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 93 01 00 35 04 06 00 33 00 00 58 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 D0 3A 00 90 00 7E [06:04:42]RAPDU: 90 00 [06:04:42]wFMCommunicate OK [06:04:42]wFMCommunicate request_size=10 [06:04:42]MH_SAM_APDU [06:04:42]CAPDU: 80 0D 02 02 05 82 35 D6 EB 35 [06:04:42]Write to MH i2c: E2 0D 00 D1 3A 80 0D 02 02 05 00 82 35 D6 EB 35 00 00 3C [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 03 00 D1 3A 00 90 00 7F [06:04:42]RAPDU: 90 00 [06:04:42]wFMCommunicate OK [06:04:42]wFMCommunicate request_size=4 [06:04:42]MH_SAM_APDU [06:04:42]CAPDU: 80 0D 03 02 [06:04:42]Write to MH i2c: E2 08 00 D2 3A 80 0D 03 02 00 00 00 00 87 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 0B 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 0B 00 D2 3A 00 6F 02 31 94 E7 43 DA 01 90 00 C3 [06:04:42]RAPDU: 6F 02 31 94 E7 43 DA 01 90 00 [06:04:42]wFMCommunicate OK [06:04:42]SAM_PROTO_SignData done [06:04:42]FM_MakeSignedData done [06:04:42]CreateOFDProtocolMessage [06:04:42]wFMCommunicate request_size=4 [06:04:42]MH_SAM_APDU [06:04:42]CAPDU: 80 11 00 00 [06:04:42]Write to MH i2c: E2 08 00 D3 3A 80 11 00 00 00 00 00 00 87 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:42]Read from MH i2c: E2 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 17 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: E2 17 00 D3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [06:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:04:42]wFMCommunicate OK [06:04:42]CreateOFDProtocolMessage done [06:04:42]OFDSenderStorePacket 103329 [06:04:42]StoreOFDPacket docnum=103329 [06:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8C AB 07 01 5D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7E 23 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 93 01 00 35 04 06 00 33 82 35 D6 EB 35 6F 02 31 94 E7 43 DA 01 [06:04:42]CheckFolder [06:04:42]dirname=/storage/ofd_packets [06:04:42]CheckFolder done [06:04:42]ProducePacketName [06:04:42]name=ofd_packets/00103329 [06:04:42]NVStorageSaveData ofd_packets/00103329 [06:04:42]File name is /storage/ofd_packets/00103329 [06:04:42]Write 301 bytes [06:04:42]NVStorageSaveData done [06:04:42]OFDSenderStorePacket done [06:04:42]KKMCreateOFDPacket done [06:04:42]NVStorageSaveData kkm_last_timestamp [06:04:42]File name is /storage/kkm_last_timestamp [06:04:42]Write 4 bytes [06:04:42]NVStorageSaveData done [06:04:42]ExternCall_PrintAddStr [06:04:42]wPrintStart [06:04:42]Write to MH i2c: 01 00 00 D4 3A 0E [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 07 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 07 00 D4 3A 00 00 00 00 00 FF 0F 23 [06:04:42]RasterBufferAndPrint [06:04:42]line Счет N : (1)672465 [06:04:42]line ИНН: 02508201610067 [06:04:42]line Контрольно-Кассовый Чек [06:04:42]line ПРОДАЖА [06:04:42]line ТРК (МРК, ГНК) : 42 [06:04:42]line Товар: 2710124130 [06:04:42]line Аи-92-К-5 [06:04:42]line 6.030 * 66.40 [06:04:42]line = 400.39 [06:04:42]line НДС 12% НСП 1% [06:04:42]line > о реализуемом товаре [06:04:42]line ОКРУГЛЕНИЕ: -0.39 [06:04:42]line ИТОГО: 400.00 [06:04:42]line Внесено: 400.00 [06:04:42]line СДАЧА: 0.00 [06:04:42]line НСП 1% : 3.54 [06:04:42]line НДС 12% : 42.52 [06:04:42]line Наличными: 400.00 [06:04:42]line Безнал.: 0.00 [06:04:42]line Место: АЗС № 120 "Партнер Нефть" [06:04:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:04:42]line СНО: Общий режим [06:04:42]line Чек 13 18.06.2024 06:04 [06:04:42]line Смена: 352 ФФД: 1.0 [06:04:42]line ЗНМ: 0300000164 [06:04:42]line РНМ: 0000000000092785 [06:04:42]line Версия ККМ: 001 [06:04:42]line ФМ: 0000000000875093 [06:04:42]line ФД: 103329 [06:04:42]line ФПД: 56634342042421 [06:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T060446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103329&fm=56634342042421&tin=02508201610067®Number=0000000000092785&sum=40000 [06:04:42]written 0, free lines is 4095 [06:04:42]OFD Sender: Processing packet 103329 [packets to send 17, broken 16] [06:04:42]ProducePacketName [06:04:42]name=ofd_packets/00103329 [06:04:42]OFD Sender: To server: pG, [06:04:42]CommunicateWithHost lk.salyk.kg:30040 [06:04:42]ConnectInit lk.salyk.kg [06:04:42]Connected sock=10 [06:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8C AB 07 01 5D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7E 23 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 93 01 00 35 04 06 00 33 82 35 D6 EB 35 6F 02 31 94 E7 43 DA 01 [06:04:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5F 59 47 00 DC FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 93 01 00 F4 03 04 00 0B CA 70 66 B6 04 01 00 00 2C D1 77 12 F6 8D B4 49 [06:04:43]CommunicateWithHost err = 0 [06:04:43]CheckOFDResponse [06:04:43]1017 (14) - 77093643461234 [06:04:43]1041 (16) - 0000000000875093 [06:04:43]1040 (4) - 103329 [06:04:43]1012 (4) - 17.06.2024 23:43 [06:04:43]1206 (1) - 0 [06:04:43]OFD Sender: Remove packet 103329 [06:04:43]ProducePacketName [06:04:43]name=ofd_packets/00103329 [06:04:43]NVStorageDeleteData [06:04:43]Write to MH i2c: 01 00 00 FF 3A 39 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: 01 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: 01 07 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: 01 07 00 FF 3A 00 00 00 00 00 D0 0C 1C [06:04:43]RasterBufferAndPrint [06:04:43]line [06:04:43]line [06:04:43]line [06:04:43]line [06:04:43]line [06:04:43]written 0, free lines is 3288 [06:04:43]MH_Cut [06:04:43]Write to MH i2c: D1 01 00 06 3B 01 13 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: D1 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: D1 01 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: D1 01 00 06 3B 00 12 [06:04:43]Write to MH i2c: 01 00 00 07 3B 42 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]OFD Sender: No OFD packet to send [06:04:44]*** Cut start [06:04:44]*** Partial cut [06:04:44]*** CUTSNS_PIN = 1 [06:04:44]*** CUTSNS_PIN = 0 [06:04:44]*** Brake cut motor [06:04:44]Read from MH i2c: 01 [06:04:44]MH_I2C_Read... [06:04:44]*** Stop cut motor [06:04:44]*** Cut end [06:04:44]Read from MH i2c: 01 07 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: 01 07 00 07 3B 00 00 00 00 00 FF 0F 57 [06:04:44]process_action close_receipt done [06:04:44]requested_data is exist [06:04:44]produce_requested_data [06:04:44]requested_item fm.sn is exist - process it [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 11 00 00 [06:04:44]Write to MH i2c: E2 08 00 08 3B 80 11 00 00 00 00 00 00 BD [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 17 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 17 00 08 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [06:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:04:44]wFMCommunicate OK [06:04:44]requested_item fd.num is exist - process it [06:04:44]SAM_PROTO_GetFieldsCounters [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 13 00 00 [06:04:44]Write to MH i2c: E2 08 00 09 3B 80 13 00 00 00 00 00 00 C0 [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 62 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 62 00 09 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [06:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:44]wFMCommunicate OK [06:04:44]SAM_PROTO_GetFieldsCounters done [06:04:44]requested_item shift.num is exist - process it [06:04:44]requested_item shift.opened is exist - process it [06:04:44]req_shift_opened [06:04:44]FM_GetShiftState [06:04:44]SAM_PROTO_GetShiftState [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 13 01 00 [06:04:44]Write to MH i2c: E2 08 00 0A 3B 80 13 01 00 00 00 00 00 C2 [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 0E 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 0E 00 0A 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 43 [06:04:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:04:44]wFMCommunicate OK [06:04:44]SAM_PROTO_GetShiftState done [06:04:44]FM_GetShiftState done [06:04:44]req_shift_opened done [06:04:44]requested_item shift.open_date is exist - process it [06:04:44]req_shift_open_date [06:04:44]req_shift_open_date done [06:04:44]produce_requested_data done [06:04:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103329,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:04:44]process_action_free close_receipt [06:04:44]json_value_free [06:04:44]json_value_free done [06:04:44]process_json_proto returns [06:04:44]Send response to host [06:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103329,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:04:44]free response buf [06:04:44]execute_script done [06:04:44]execute_script returns [06:04:44]free content buf [06:04:44]Sock 9.Close socket [06:04:44]Sock 9.Thread stoped [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:43]accept exits with 7 [06:23:43]New connection [06:23:43]New thread 3067084132 created [06:23:43]Thread 3067227492 joined [06:23:43]Waiting for new connection... [06:23:43] Sock 7.Parse request [06:23:43]Sock 7.Check first char [06:23:43]Sock 7.First char is OK [06:23:43]request: POST /json_proto HTTP/1.0 [06:23:43]Method: POST [06:23:43]URL: /json_proto [06:23:43]Method is POST - this is cgi request [06:23:43]url: /json_proto [06:23:43]query_string will be loaded in cgi processing [06:23:43]execute_cgi json_proto POST (null) [06:23:43]execute_cgi path=json_proto method=POST [06:23:43]POST find Content-Length [06:23:43]Host: 172.17.38.133:8080 [06:23:43]Content-Length: 682 [06:23:43]Content-Type: application/json [06:23:43] [06:23:43]POST finish read [06:23:43]Found Content-Length = 682 [06:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [06:23:43]execute_script... [06:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [06:23:43]POST & json_proto [06:23:43]process_json_proto [06:23:43]json parsed OK: [06:23:43]protocol is kg_v1.0 [06:23:43]action value=close_receipt [06:23:43]process_action close_receipt [06:23:43]cmd_close_receipt [06:23:43]MH_GetDate [06:23:43]Write to MH i2c: F0 00 00 0B 3B 35 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: F0 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: F0 09 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: F0 09 00 0B 3B 00 F4 27 71 66 BD 8F 7C 64 5C [06:23:43]GetLastDocTimeStamp 1718690686 [06:23:43]current date 1718691828 [06:23:43]FM_GetShiftState [06:23:43]SAM_PROTO_GetShiftState [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 13 01 00 [06:23:43]Write to MH i2c: E2 08 00 0C 3B 80 13 01 00 00 00 00 00 C4 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 0E 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 0E 00 0C 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 45 [06:23:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:23:43]wFMCommunicate OK [06:23:43]SAM_PROTO_GetShiftState done [06:23:43]FM_GetShiftState done [06:23:43]opened in 1718670284 [06:23:43]opened+sec_in_day 1718756684 [06:23:43]quantity*price = 150064 [06:23:43]sum+1 = 150065 [06:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 18.06.2024 06:23 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103330 ФПД: 67222391038025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T062348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103330&fm=67222391038025&tin=02508201610067®Number=0000000000092785&sum=150000 [06:23:44]StoreToDocumentArchive [06:23:44]shift 352 fd 103330 [06:23:44]save to /storage/0352/doc_00103330 [06:23:44]save last doc name /storage/0352/doc_00103330 to /storage/kkm_last_doc_name [06:23:44]save OK [06:23:44]Clear old archive folders... [06:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:23:44]tlvbuf is 01390C10 [06:23:44]SAM_PROTO_ClearQueue [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 09 00 00 [06:23:44]Write to MH i2c: E2 08 00 19 3B 80 09 00 00 00 00 00 00 C6 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 19 3B 00 90 00 C8 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]SAM_PROTO_ClearQueue done [06:23:44]KKMCreateOFDPacket [06:23:44]OFDProtocolAddRootSTLVToBuf [06:23:44]FM_MakeSignedData [06:23:44]FM_MakeSignedData [06:23:44]SAM_PROTO_SignData [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 01 02 [06:23:44]Write to MH i2c: E2 08 00 1A 3B 80 0D 01 02 00 00 00 00 CE [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 1A 3B 00 90 00 C9 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=255 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0E 00 00 00 F4 03 04 00 F4 27 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 93 01 00 35 04 06 00 3D [06:23:44]Write to MH i2c: E2 02 01 1B 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0E 00 00 00 F4 03 04 00 F4 27 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 93 01 00 35 04 06 00 3D 00 00 00 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 1B 3B 00 90 00 CA [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=10 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 02 02 05 23 6E BD 20 49 [06:23:44]Write to MH i2c: E2 0D 00 1C 3B 80 0D 02 02 05 00 23 6E BD 20 49 00 00 92 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 1C 3B 00 90 00 CB [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 03 02 [06:23:44]Write to MH i2c: E2 08 00 1D 3B 80 0D 03 02 00 00 00 00 D3 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]OFD Sender: No OFD packet to send [06:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 1D 3B 00 F9 FD 85 88 37 CE 50 7F 90 00 AB [06:23:44]RAPDU: F9 FD 85 88 37 CE 50 7F 90 00 [06:23:44]wFMCommunicate OK [06:23:44]SAM_PROTO_SignData done [06:23:44]FM_MakeSignedData done [06:23:44]CreateOFDProtocolMessage [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 11 00 00 [06:23:44]Write to MH i2c: E2 08 00 1E 3B 80 11 00 00 00 00 00 00 D3 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 1E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [06:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:23:44]wFMCommunicate OK [06:23:44]CreateOFDProtocolMessage done [06:23:44]OFDSenderStorePacket 103330 [06:23:44]StoreOFDPacket docnum=103330 [06:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 89 07 01 D4 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0E 00 00 00 F4 03 04 00 F4 27 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 93 01 00 35 04 06 00 3D 23 6E BD 20 49 F9 FD 85 88 37 CE 50 7F [06:23:44]CheckFolder [06:23:44]dirname=/storage/ofd_packets [06:23:44]CheckFolder done [06:23:44]ProducePacketName [06:23:44]name=ofd_packets/00103330 [06:23:44]NVStorageSaveData ofd_packets/00103330 [06:23:44]File name is /storage/ofd_packets/00103330 [06:23:44]Write 301 bytes [06:23:44]NVStorageSaveData done [06:23:44]OFDSenderStorePacket done [06:23:44]KKMCreateOFDPacket done [06:23:44]NVStorageSaveData kkm_last_timestamp [06:23:44]File name is /storage/kkm_last_timestamp [06:23:44]Write 4 bytes [06:23:44]NVStorageSaveData done [06:23:44]ExternCall_PrintAddStr [06:23:44]wPrintStart [06:23:44]Write to MH i2c: 01 00 00 1F 3B 5A [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 1F 3B 00 00 00 00 00 FF 0F 6F [06:23:44]RasterBufferAndPrint [06:23:44]line Счет N : (1)672466 [06:23:44]line ИНН: 02508201610067 [06:23:44]line Контрольно-Кассовый Чек [06:23:44]line ПРОДАЖА [06:23:44]line ТРК (МРК, ГНК) : 42 [06:23:44]line Товар: 2710124130 [06:23:44]line Аи-92-К-5 [06:23:44]line 22.600 * 66.40 [06:23:44]line = 1500.64 [06:23:44]line НДС 12% НСП 1% [06:23:44]line > о реализуемом товаре [06:23:44]line ОКРУГЛЕНИЕ: -0.64 [06:23:44]line ИТОГО: 1500.00 [06:23:44]line Внесено: 1500.00 [06:23:44]line СДАЧА: 0.00 [06:23:44]line НСП 1% : 13.28 [06:23:44]line НДС 12% : 159.36 [06:23:44]line Наличными: 1500.00 [06:23:44]line Безнал.: 0.00 [06:23:44]line Место: АЗС № 120 "Партнер Нефть" [06:23:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:23:44]line СНО: Общий режим [06:23:44]line Чек 14 18.06.2024 06:23 [06:23:44]line Смена: 352 ФФД: 1.0 [06:23:44]line ЗНМ: 0300000164 [06:23:44]line РНМ: 0000000000092785 [06:23:44]line Версия ККМ: 001 [06:23:44]line ФМ: 0000000000875093 [06:23:44]line ФД: 103330 [06:23:44]line ФПД: 67222391038025 [06:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T062348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103330&fm=67222391038025&tin=02508201610067®Number=0000000000092785&sum=150000 [06:23:45]OFD Sender: Processing packet 103330 [packets to send 17, broken 16] [06:23:45]ProducePacketName [06:23:45]name=ofd_packets/00103330 [06:23:45]OFD Sender: To server: pG, [06:23:45]CommunicateWithHost lk.salyk.kg:30040 [06:23:45]ConnectInit lk.salyk.kg [06:23:45]written 0, free lines is 4095 [06:23:45]Connected sock=10 [06:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 89 07 01 D4 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0E 00 00 00 F4 03 04 00 F4 27 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 93 01 00 35 04 06 00 3D 23 6E BD 20 49 F9 FD 85 88 37 CE 50 7F [06:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0F F0 47 00 35 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 35 30 39 33 10 04 04 00 A2 93 01 00 F4 03 04 00 81 CE 70 66 B6 04 01 00 00 42 0F 4F 51 DF 5A 55 30 [06:23:45]CommunicateWithHost err = 0 [06:23:45]CheckOFDResponse [06:23:45]1017 (14) - 77093643461234 [06:23:45]1041 (16) - 0000000000875093 [06:23:45]1040 (4) - 103330 [06:23:45]1012 (4) - 18.06.2024 00:02 [06:23:45]1206 (1) - 0 [06:23:45]OFD Sender: Remove packet 103330 [06:23:45]ProducePacketName [06:23:45]name=ofd_packets/00103330 [06:23:45]NVStorageDeleteData [06:23:45]Write to MH i2c: 01 00 00 4A 3B 85 [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 4A 3B 00 00 00 00 00 DE 0C 76 [06:23:45]RasterBufferAndPrint [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]written 0, free lines is 3301 [06:23:45]MH_Cut [06:23:45]Write to MH i2c: D1 01 00 51 3B 01 5E [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 51 3B 00 5D [06:23:45]Write to MH i2c: 01 00 00 52 3B 8D [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]OFD Sender: No OFD packet to send [06:23:46]*** Cut start [06:23:46]*** Partial cut [06:23:46]*** CUTSNS_PIN = 1 [06:23:46]*** CUTSNS_PIN = 0 [06:23:46]*** Brake cut motor [06:23:46]Read from MH i2c: 01 [06:23:46]MH_I2C_Read... [06:23:46]*** Stop cut motor [06:23:46]*** Cut end [06:23:46]Read from MH i2c: 01 07 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: 01 07 00 52 3B 00 00 00 00 00 FF 0F A2 [06:23:46]process_action close_receipt done [06:23:46]requested_data is exist [06:23:46]produce_requested_data [06:23:46]requested_item fm.sn is exist - process it [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 11 00 00 [06:23:46]Write to MH i2c: E2 08 00 53 3B 80 11 00 00 00 00 00 00 08 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 53 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [06:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:23:46]wFMCommunicate OK [06:23:46]requested_item fd.num is exist - process it [06:23:46]SAM_PROTO_GetFieldsCounters [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 13 00 00 [06:23:46]Write to MH i2c: E2 08 00 54 3B 80 13 00 00 00 00 00 00 0B [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:47]Read from MH i2c: E2 [06:23:47]MH_I2C_Read... [06:23:47]Read from MH i2c: E2 62 00 [06:23:47]MH_I2C_Read... [06:23:47]Read from MH i2c: E2 62 00 54 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [06:23: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:47]wFMCommunicate OK [06:23:47]SAM_PROTO_GetFieldsCounters done [06:23:47]requested_item shift.num is exist - process it [06:23:47]requested_item shift.opened is exist - process it [06:23:47]req_shift_opened [06:23:47]FM_GetShiftState [06:23:47]SAM_PROTO_GetShiftState [06:23:47]wFMCommunicate request_size=4 [06:23:47]MH_SAM_APDU [06:23:47]CAPDU: 80 13 01 00 [06:23:47]Write to MH i2c: E2 08 00 55 3B 80 13 01 00 00 00 00 00 0D [06:23:47]Write i2c OK [06:23:47]MH_I2C_Read... [06:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:47]Read from MH i2c: E2 [06:23:47]MH_I2C_Read... [06:23:47]Read from MH i2c: E2 0E 00 [06:23:47]MH_I2C_Read... [06:23:47]Read from MH i2c: E2 0E 00 55 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8E [06:23:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:23:47]wFMCommunicate OK [06:23:47]SAM_PROTO_GetShiftState done [06:23:47]FM_GetShiftState done [06:23:47]req_shift_opened done [06:23:47]requested_item shift.open_date is exist - process it [06:23:47]req_shift_open_date [06:23:47]req_shift_open_date done [06:23:47]produce_requested_data done [06:23:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103330,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:23:47]process_action_free close_receipt [06:23:47]json_value_free [06:23:47]json_value_free done [06:23:47]process_json_proto returns [06:23:47]Send response to host [06:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103330,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:23:47]free response buf [06:23:47]execute_script done [06:23:47]execute_script returns [06:23:47]free content buf [06:23:47]Sock 7.Close socket [06:23:47]Sock 7.Thread stoped [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:34]accept exits with 9 [06:33:34]New connection [06:33:34]New thread 3067227492 created [06:33:34]Thread 3067084132 joined [06:33:34]Waiting for new connection... [06:33:34] Sock 9.Parse request [06:33:34]Sock 9.Check first char [06:33:34]Sock 9.First char is OK [06:33:34]request: POST /json_proto HTTP/1.0 [06:33:34]Method: POST [06:33:34]URL: /json_proto [06:33:34]Method is POST - this is cgi request [06:33:34]url: /json_proto [06:33:34]query_string will be loaded in cgi processing [06:33:34]execute_cgi json_proto POST (null) [06:33:34]execute_cgi path=json_proto method=POST [06:33:34]POST find Content-Length [06:33:34]Host: 172.17.38.133:8080 [06:33:34]Content-Length: 817 [06:33:34]Content-Type: application/json [06:33:34] [06:33:34]POST finish read [06:33:34]Found Content-Length = 817 [06:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 14.140, "sum" : 938.90, "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" : 938.90 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:34]execute_script... [06:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 14.140, "sum" : 938.90, "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" : 938.90 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:34]POST & json_proto [06:33:34]process_json_proto [06:33:34]json parsed OK: [06:33:34]protocol is kg_v1.0 [06:33:34]action value=close_receipt [06:33:34]process_action close_receipt [06:33:34]cmd_close_receipt [06:33:34]MH_GetDate [06:33:34]Write to MH i2c: F0 00 00 56 3B 80 [06:33:34]Write i2c OK [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 09 00 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: F0 09 00 56 3B 00 43 2A 71 66 BD 8F 7C 64 F9 [06:33:34]GetLastDocTimeStamp 1718691828 [06:33:34]current date 1718692419 [06:33:34]FM_GetShiftState [06:33:34]SAM_PROTO_GetShiftState [06:33:34]wFMCommunicate request_size=4 [06:33:34]MH_SAM_APDU [06:33:34]CAPDU: 80 13 01 00 [06:33:34]Write to MH i2c: E2 08 00 57 3B 80 13 01 00 00 00 00 00 0F [06:33:34]Write i2c OK [06:33:34]MH_I2C_Read... [06:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:34]Read from MH i2c: E2 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: E2 0E 00 [06:33:34]MH_I2C_Read... [06:33:34]Read from MH i2c: E2 0E 00 57 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 90 [06:33:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:33:34]wFMCommunicate OK [06:33:34]SAM_PROTO_GetShiftState done [06:33:34]FM_GetShiftState done [06:33:34]opened in 1718670284 [06:33:34]opened+sec_in_day 1718756684 [06:33:34]quantity*price = 93889 [06:33:34]sum+1 = 93891 [06:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 938.90 НСП 1% : 8.31 НДС 12% : 99.71 Наличными: 0.00 Безнал.: 938.90 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 18.06.2024 06:33 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103331 ФПД: 262572248063406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063339&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103331&fm=262572248063406&tin=02508201610067®Number=0000000000092785&sum=93890 [06:33:35]StoreToDocumentArchive [06:33:35]shift 352 fd 103331 [06:33:35]save to /storage/0352/doc_00103331 [06:33:35]save last doc name /storage/0352/doc_00103331 to /storage/kkm_last_doc_name [06:33:35]save OK [06:33:35]Clear old archive folders... [06:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:33:35]tlvbuf is 013886E0 [06:33:35]SAM_PROTO_ClearQueue [06:33:35]wFMCommunicate request_size=4 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 09 00 00 [06:33:35]Write to MH i2c: E2 08 00 64 3B 80 09 00 00 00 00 00 00 11 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 64 3B 00 90 00 13 [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]SAM_PROTO_ClearQueue done [06:33:35]KKMCreateOFDPacket [06:33:35]OFDProtocolAddRootSTLVToBuf [06:33:35]FM_MakeSignedData [06:33:35]FM_MakeSignedData [06:33:35]SAM_PROTO_SignData [06:33:35]wFMCommunicate request_size=4 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 0D 01 02 [06:33:35]Write to MH i2c: E2 08 00 65 3B 80 0D 01 02 00 00 00 00 19 [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:35]Read from MH i2c: E2 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 [06:33:35]MH_I2C_Read... [06:33:35]Read from MH i2c: E2 03 00 65 3B 00 90 00 14 [06:33:35]RAPDU: 90 00 [06:33:35]wFMCommunicate OK [06:33:35]wFMCommunicate request_size=255 [06:33:35]MH_SAM_APDU [06:33:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 37 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C2 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 6E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 43 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 93 01 00 35 04 06 00 EE [06:33:35]Write to MH i2c: E2 02 01 66 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 37 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C2 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 6E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 43 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 93 01 00 35 04 06 00 EE 00 00 6C [06:33:35]Write i2c OK [06:33:35]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 03 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 03 00 66 3B 00 90 00 15 [06:33:36]RAPDU: 90 00 [06:33:36]wFMCommunicate OK [06:33:36]wFMCommunicate request_size=10 [06:33:36]MH_SAM_APDU [06:33:36]CAPDU: 80 0D 02 02 05 CE DD 92 DD AE [06:33:36]Write to MH i2c: E2 0D 00 67 3B 80 0D 02 02 05 00 CE DD 92 DD AE 00 00 EE [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 03 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 03 00 67 3B 00 90 00 16 [06:33:36]RAPDU: 90 00 [06:33:36]wFMCommunicate OK [06:33:36]wFMCommunicate request_size=4 [06:33:36]MH_SAM_APDU [06:33:36]CAPDU: 80 0D 03 02 [06:33:36]Write to MH i2c: E2 08 00 68 3B 80 0D 03 02 00 00 00 00 1E [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 0B 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 0B 00 68 3B 00 AF 99 A5 86 6D 2D 8E D4 90 00 8E [06:33:36]RAPDU: AF 99 A5 86 6D 2D 8E D4 90 00 [06:33:36]wFMCommunicate OK [06:33:36]SAM_PROTO_SignData done [06:33:36]FM_MakeSignedData done [06:33:36]CreateOFDProtocolMessage [06:33:36]wFMCommunicate request_size=4 [06:33:36]MH_SAM_APDU [06:33:36]CAPDU: 80 11 00 00 [06:33:36]Write to MH i2c: E2 08 00 69 3B 80 11 00 00 00 00 00 00 1E [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:36]Read from MH i2c: E2 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 17 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: E2 17 00 69 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [06:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:33:36]wFMCommunicate OK [06:33:36]CreateOFDProtocolMessage done [06:33:36]OFDSenderStorePacket 103331 [06:33:36]StoreOFDPacket docnum=103331 [06:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 A3 07 01 FD 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 37 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C2 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 6E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 43 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 93 01 00 35 04 06 00 EE CE DD 92 DD AE AF 99 A5 86 6D 2D 8E D4 [06:33:36]CheckFolder [06:33:36]dirname=/storage/ofd_packets [06:33:36]CheckFolder done [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00103331 [06:33:36]NVStorageSaveData ofd_packets/00103331 [06:33:36]File name is /storage/ofd_packets/00103331 [06:33:36]Write 301 bytes [06:33:36]NVStorageSaveData done [06:33:36]OFDSenderStorePacket done [06:33:36]KKMCreateOFDPacket done [06:33:36]NVStorageSaveData kkm_last_timestamp [06:33:36]File name is /storage/kkm_last_timestamp [06:33:36]Write 4 bytes [06:33:36]NVStorageSaveData done [06:33:36]ExternCall_PrintAddStr [06:33:36]wPrintStart [06:33:36]Write to MH i2c: 01 00 00 6A 3B A5 [06:33:36]Write i2c OK [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 [06:33:36]MH_I2C_Read... [06:33:36]Read from MH i2c: 01 07 00 6A 3B 00 00 00 00 00 FF 0F BA [06:33:36]RasterBufferAndPrint [06:33:36]line Счет N : (1)672468 [06:33:36]line ИНН: 02508201610067 [06:33:36]line Контрольно-Кассовый Чек [06:33:36]line ПРОДАЖА [06:33:36]line ТРК (МРК, ГНК) : 32 [06:33:36]line Товар: 2710124130 [06:33:36]line Аи-92-К-5 [06:33:36]line 14.140 * 66.40 [06:33:36]line = 938.90 [06:33:36]line НДС 12% НСП 1% [06:33:36]line > о реализуемом товаре [06:33:36]line ИТОГО: 938.90 [06:33:36]line НСП 1% : 8.31 [06:33:36]line НДС 12% : 99.71 [06:33:36]line Наличными: 0.00 [06:33:36]line Безнал.: 938.90 [06:33:36]line Место: АЗС № 120 "Партнер Нефть" [06:33:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:33:36]line СНО: Общий режим [06:33:36]line Чек 15 18.06.2024 06:33 [06:33:36]line Смена: 352 ФФД: 1.0 [06:33:36]line ЗНМ: 0300000164 [06:33:36]line РНМ: 0000000000092785 [06:33:36]line Версия ККМ: 001 [06:33:36]line Платежная система: Бакай Банк [06:33:36]line ФМ: 0000000000875093 [06:33:36]line ФД: 103331 [06:33:36]line ФПД: 262572248063406 [06:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063339&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103331&fm=262572248063406&tin=02508201610067®Number=0000000000092785&sum=93890 [06:33:36]written 0, free lines is 4095 [06:33:36]OFD Sender: Processing packet 103331 [packets to send 17, broken 16] [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00103331 [06:33:36]OFD Sender: To server: pG, [06:33:36]CommunicateWithHost lk.salyk.kg:30040 [06:33:36]ConnectInit lk.salyk.kg [06:33:36]Connected sock=7 [06:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 A3 07 01 FD 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 37 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C2 6E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C2 6E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C2 6E 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 43 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 93 01 00 35 04 06 00 EE CE DD 92 DD AE AF 99 A5 86 6D 2D 8E D4 [06:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A6 0F 47 00 9E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 93 01 00 F4 03 04 00 D0 D0 70 66 B6 04 01 00 00 70 BF DB 1B 94 4D 3C 99 [06:33:36]CommunicateWithHost err = 0 [06:33:36]CheckOFDResponse [06:33:36]1017 (14) - 77093643461234 [06:33:36]1041 (16) - 0000000000875093 [06:33:36]1040 (4) - 103331 [06:33:36]1012 (4) - 18.06.2024 00:12 [06:33:36]1206 (1) - 0 [06:33:36]OFD Sender: Remove packet 103331 [06:33:36]ProducePacketName [06:33:36]name=ofd_packets/00103331 [06:33:37]NVStorageDeleteData [06:33:37]Write to MH i2c: 01 00 00 94 3B CF [06:33:37]Write i2c OK [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: 01 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: 01 07 00 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: 01 07 00 94 3B 00 00 00 00 00 D9 0C BB [06:33:37]RasterBufferAndPrint [06:33:37]line [06:33:37]line [06:33:37]line [06:33:37]line [06:33:37]line [06:33:37]written 0, free lines is 3296 [06:33:37]MH_Cut [06:33:37]Write to MH i2c: D1 01 00 9B 3B 01 A8 [06:33:37]Write i2c OK [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: D1 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: D1 01 00 [06:33:37]MH_I2C_Read... [06:33:37]Read from MH i2c: D1 01 00 9B 3B 00 A7 [06:33:37]Write to MH i2c: 01 00 00 9C 3B D7 [06:33:37]Write i2c OK [06:33:37]MH_I2C_Read... [06:33:37]OFD Sender: No OFD packet to send [06:33:37]*** Cut start [06:33:37]*** Partial cut [06:33:37]*** CUTSNS_PIN = 1 [06:33:37]*** CUTSNS_PIN = 0 [06:33:38]*** Brake cut motor [06:33:38]Read from MH i2c: 01 [06:33:38]MH_I2C_Read... [06:33:38]*** Stop cut motor [06:33:38]*** Cut end [06:33:38]Read from MH i2c: 01 07 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: 01 07 00 9C 3B 00 00 00 00 00 FF 0F EC [06:33:38]process_action close_receipt done [06:33:38]requested_data is exist [06:33:38]produce_requested_data [06:33:38]requested_item fm.sn is exist - process it [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 11 00 00 [06:33:38]Write to MH i2c: E2 08 00 9D 3B 80 11 00 00 00 00 00 00 52 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 17 00 9D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [06:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:33:38]wFMCommunicate OK [06:33:38]requested_item fd.num is exist - process it [06:33:38]SAM_PROTO_GetFieldsCounters [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 13 00 00 [06:33:38]Write to MH i2c: E2 08 00 9E 3B 80 13 00 00 00 00 00 00 55 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 62 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 62 00 9E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [06:33: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_GetFieldsCounters done [06:33:38]requested_item shift.num is exist - process it [06:33:38]requested_item shift.opened is exist - process it [06:33:38]req_shift_opened [06:33:38]FM_GetShiftState [06:33:38]SAM_PROTO_GetShiftState [06:33:38]wFMCommunicate request_size=4 [06:33:38]MH_SAM_APDU [06:33:38]CAPDU: 80 13 01 00 [06:33:38]Write to MH i2c: E2 08 00 9F 3B 80 13 01 00 00 00 00 00 57 [06:33:38]Write i2c OK [06:33:38]MH_I2C_Read... [06:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:38]Read from MH i2c: E2 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 0E 00 [06:33:38]MH_I2C_Read... [06:33:38]Read from MH i2c: E2 0E 00 9F 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D8 [06:33:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:33:38]wFMCommunicate OK [06:33:38]SAM_PROTO_GetShiftState done [06:33:38]FM_GetShiftState done [06:33:38]req_shift_opened done [06:33:38]requested_item shift.open_date is exist - process it [06:33:38]req_shift_open_date [06:33:38]req_shift_open_date done [06:33:38]produce_requested_data done [06:33:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103331,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:33:38]process_action_free close_receipt [06:33:38]json_value_free [06:33:38]json_value_free done [06:33:38]process_json_proto returns [06:33:38]Send response to host [06:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103331,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:33:38]free response buf [06:33:38]execute_script done [06:33:38]execute_script returns [06:33:38]free content buf [06:33:38]Sock 9.Close socket [06:33:38]Sock 9.Thread stoped [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:30]accept exits with 10 [06:36:30]New connection [06:36:30]New thread 3067084132 created [06:36:30]Thread 3067227492 joined [06:36:30]Waiting for new connection... [06:36:30] Sock 10.Parse request [06:36:30]Sock 10.Check first char [06:36:30]Sock 10.First char is OK [06:36:30]request: POST /json_proto HTTP/1.0 [06:36:30]Method: POST [06:36:30]URL: /json_proto [06:36:30]Method is POST - this is cgi request [06:36:30]url: /json_proto [06:36:30]query_string will be loaded in cgi processing [06:36:30]execute_cgi json_proto POST (null) [06:36:30]execute_cgi path=json_proto method=POST [06:36:30]POST find Content-Length [06:36:30]Host: 172.17.38.133:8080 [06:36:30]Content-Length: 811 [06:36:30]Content-Type: application/json [06:36:30] [06:36:30]POST finish read [06:36:30]Found Content-Length = 811 [06:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:30]execute_script... [06:36:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:30]POST & json_proto [06:36:30]process_json_proto [06:36:30]json parsed OK: [06:36:30]protocol is kg_v1.0 [06:36:30]action value=close_receipt [06:36:30]process_action close_receipt [06:36:30]cmd_close_receipt [06:36:30]MH_GetDate [06:36:30]Write to MH i2c: F0 00 00 A0 3B CA [06:36:30]Write i2c OK [06:36:30]MH_I2C_Read... [06:36:30]Read from MH i2c: F0 [06:36:30]MH_I2C_Read... [06:36:30]Read from MH i2c: F0 09 00 [06:36:30]MH_I2C_Read... [06:36:30]Read from MH i2c: F0 09 00 A0 3B 00 F3 2A 71 66 BD 8F 7C 64 F3 [06:36:30]GetLastDocTimeStamp 1718692419 [06:36:30]current date 1718692595 [06:36:30]FM_GetShiftState [06:36:30]SAM_PROTO_GetShiftState [06:36:30]wFMCommunicate request_size=4 [06:36:30]MH_SAM_APDU [06:36:30]CAPDU: 80 13 01 00 [06:36:30]Write to MH i2c: E2 08 00 A1 3B 80 13 01 00 00 00 00 00 59 [06:36:30]Write i2c OK [06:36:30]MH_I2C_Read... [06:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:30]Read from MH i2c: E2 [06:36:30]MH_I2C_Read... [06:36:30]Read from MH i2c: E2 0E 00 [06:36:30]MH_I2C_Read... [06:36:30]Read from MH i2c: E2 0E 00 A1 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DA [06:36:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:36:30]wFMCommunicate OK [06:36:30]SAM_PROTO_GetShiftState done [06:36:30]FM_GetShiftState done [06:36:30]opened in 1718670284 [06:36:30]opened+sec_in_day 1718756684 [06:36:30]quantity*price = 1000042 [06:36:30]sum+1 = 1000043 [06:36:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 18.06.2024 06:36 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103332 ФПД: 59295145053479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063635&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103332&fm=59295145053479&tin=02508201610067®Number=0000000000092785&sum=1000042 [06:36:31]StoreToDocumentArchive [06:36:31]shift 352 fd 103332 [06:36:31]save to /storage/0352/doc_00103332 [06:36:31]save last doc name /storage/0352/doc_00103332 to /storage/kkm_last_doc_name [06:36:31]save OK [06:36:31]Clear old archive folders... [06:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:36:31]tlvbuf is 01445E50 [06:36:31]SAM_PROTO_ClearQueue [06:36:31]wFMCommunicate request_size=4 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 09 00 00 [06:36:31]Write to MH i2c: E2 08 00 AE 3B 80 09 00 00 00 00 00 00 5B [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:31]Read from MH i2c: E2 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 AE 3B 00 90 00 5D [06:36:31]RAPDU: 90 00 [06:36:31]wFMCommunicate OK [06:36:31]SAM_PROTO_ClearQueue done [06:36:31]KKMCreateOFDPacket [06:36:31]OFDProtocolAddRootSTLVToBuf [06:36:31]FM_MakeSignedData [06:36:31]FM_MakeSignedData [06:36:31]SAM_PROTO_SignData [06:36:31]wFMCommunicate request_size=4 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 0D 01 02 [06:36:31]Write to MH i2c: E2 08 00 AF 3B 80 0D 01 02 00 00 00 00 63 [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:31]Read from MH i2c: E2 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 AF 3B 00 90 00 5E [06:36:31]RAPDU: 90 00 [06:36:31]wFMCommunicate OK [06:36:31]wFMCommunicate request_size=255 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F3 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 93 01 00 35 04 06 00 [06:36:31]Write to MH i2c: E2 02 01 B0 3B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F3 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 93 01 00 35 04 06 00 00 00 31 [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:31]Read from MH i2c: E2 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 B0 3B 00 90 00 5F [06:36:31]RAPDU: 90 00 [06:36:31]wFMCommunicate OK [06:36:31]wFMCommunicate request_size=11 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 0D 02 02 06 35 ED BA 0E CD 27 [06:36:31]Write to MH i2c: E2 0E 00 B1 3B 80 0D 02 02 06 00 35 ED BA 0E CD 27 00 00 50 [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:31]Read from MH i2c: E2 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 03 00 B1 3B 00 90 00 60 [06:36:31]RAPDU: 90 00 [06:36:31]wFMCommunicate OK [06:36:31]wFMCommunicate request_size=4 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 0D 03 02 [06:36:31]Write to MH i2c: E2 08 00 B2 3B 80 0D 03 02 00 00 00 00 68 [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:31]Read from MH i2c: E2 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 0B 00 [06:36:31]MH_I2C_Read... [06:36:31]Read from MH i2c: E2 0B 00 B2 3B 00 5F FB 11 26 B1 EF 96 31 90 00 61 [06:36:31]RAPDU: 5F FB 11 26 B1 EF 96 31 90 00 [06:36:31]wFMCommunicate OK [06:36:31]SAM_PROTO_SignData done [06:36:31]FM_MakeSignedData done [06:36:31]CreateOFDProtocolMessage [06:36:31]wFMCommunicate request_size=4 [06:36:31]MH_SAM_APDU [06:36:31]CAPDU: 80 11 00 00 [06:36:31]Write to MH i2c: E2 08 00 B3 3B 80 11 00 00 00 00 00 00 68 [06:36:31]Write i2c OK [06:36:31]MH_I2C_Read... [06:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:32]Read from MH i2c: E2 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: E2 17 00 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: E2 17 00 B3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [06:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:36:32]wFMCommunicate OK [06:36:32]CreateOFDProtocolMessage done [06:36:32]OFDSenderStorePacket 103332 [06:36:32]StoreOFDPacket docnum=103332 [06:36:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B9 D7 08 01 50 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F3 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 93 01 00 35 04 06 00 35 ED BA 0E CD 27 5F FB 11 26 B1 EF 96 31 [06:36:32]CheckFolder [06:36:32]dirname=/storage/ofd_packets [06:36:32]CheckFolder done [06:36:32]ProducePacketName [06:36:32]name=ofd_packets/00103332 [06:36:32]NVStorageSaveData ofd_packets/00103332 [06:36:32]File name is /storage/ofd_packets/00103332 [06:36:32]Write 302 bytes [06:36:32]NVStorageSaveData done [06:36:32]OFDSenderStorePacket done [06:36:32]KKMCreateOFDPacket done [06:36:32]NVStorageSaveData kkm_last_timestamp [06:36:32]File name is /storage/kkm_last_timestamp [06:36:32]Write 4 bytes [06:36:32]NVStorageSaveData done [06:36:32]ExternCall_PrintAddStr [06:36:32]wPrintStart [06:36:32]Write to MH i2c: 01 00 00 B4 3B EF [06:36:32]Write i2c OK [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 07 00 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 07 00 B4 3B 00 00 00 00 00 FF 0F 04 [06:36:32]RasterBufferAndPrint [06:36:32]line Счет N : (1)672467 [06:36:32]line ИНН: 02508201610067 [06:36:32]line Контрольно-Кассовый Чек [06:36:32]line ПРОДАЖА [06:36:32]line ТРК (МРК, ГНК) : 11 [06:36:32]line Товар: 2710194210 [06:36:32]line ДТ(л)-К-5 [06:36:32]line 137.180 * 72.90 [06:36:32]line = 10000.42 [06:36:32]line НДС 12% НСП 1% [06:36:32]line > о реализуемом товаре [06:36:32]line ИТОГО: 10000.42 [06:36:32]line НСП 1% : 88.50 [06:36:32]line НДС 12% : 1061.99 [06:36:32]line Наличными: 0.00 [06:36:32]line Безнал.: 10000.42 [06:36:32]line Место: АЗС № 120 "Партнер Нефть" [06:36:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:36:32]line СНО: Общий режим [06:36:32]line Чек 16 18.06.2024 06:36 [06:36:32]line Смена: 352 ФФД: 1.0 [06:36:32]line ЗНМ: 0300000164 [06:36:32]line РНМ: 0000000000092785 [06:36:32]line Версия ККМ: 001 [06:36:32]line Платежная система: O! деньги [06:36:32]line ФМ: 0000000000875093 [06:36:32]line ФД: 103332 [06:36:32]line ФПД: 59295145053479 [06:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063635&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103332&fm=59295145053479&tin=02508201610067®Number=0000000000092785&sum=1000042 [06:36:32]OFD Sender: Processing packet 103332 [packets to send 17, broken 16] [06:36:32]ProducePacketName [06:36:32]name=ofd_packets/00103332 [06:36:32]OFD Sender: To server: pG, [06:36:32]CommunicateWithHost lk.salyk.kg:30040 [06:36:32]ConnectInit lk.salyk.kg [06:36:32]written 0, free lines is 4095 [06:36:32]Connected sock=9 [06:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B9 D7 08 01 50 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F3 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 93 01 00 35 04 06 00 35 ED BA 0E CD 27 5F FB 11 26 B1 EF 96 31 [06:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 46 85 47 00 D9 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 93 01 00 F4 03 04 00 80 D1 70 66 B6 04 01 00 00 FE 05 AF 1A 8D 01 91 47 [06:36:32]CommunicateWithHost err = 0 [06:36:32]CheckOFDResponse [06:36:32]1017 (14) - 77093643461234 [06:36:32]1041 (16) - 0000000000875093 [06:36:32]1040 (4) - 103332 [06:36:32]1012 (4) - 18.06.2024 00:14 [06:36:32]1206 (1) - 0 [06:36:32]OFD Sender: Remove packet 103332 [06:36:32]ProducePacketName [06:36:32]name=ofd_packets/00103332 [06:36:32]NVStorageDeleteData [06:36:32]Write to MH i2c: 01 00 00 DE 3B 19 [06:36:32]Write i2c OK [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 07 00 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: 01 07 00 DE 3B 00 00 00 00 00 DE 0C 0A [06:36:32]RasterBufferAndPrint [06:36:32]line [06:36:32]line [06:36:32]line [06:36:32]line [06:36:32]line [06:36:32]written 0, free lines is 3300 [06:36:32]MH_Cut [06:36:32]Write to MH i2c: D1 01 00 E5 3B 01 F2 [06:36:32]Write i2c OK [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: D1 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: D1 01 00 [06:36:32]MH_I2C_Read... [06:36:32]Read from MH i2c: D1 01 00 E5 3B 00 F1 [06:36:32]Write to MH i2c: 01 00 00 E6 3B 21 [06:36:32]Write i2c OK [06:36:32]MH_I2C_Read... [06:36:33]OFD Sender: No OFD packet to send [06:36:33]*** Cut start [06:36:33]*** Partial cut [06:36:33]*** CUTSNS_PIN = 1 [06:36:33]*** CUTSNS_PIN = 0 [06:36:33]*** Brake cut motor [06:36:34]Read from MH i2c: 01 [06:36:34]MH_I2C_Read... [06:36:34]*** Stop cut motor [06:36:34]*** Cut end [06:36:34]Read from MH i2c: 01 07 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: 01 07 00 E6 3B 00 00 00 00 00 FF 0F 36 [06:36:34]process_action close_receipt done [06:36:34]requested_data is exist [06:36:34]produce_requested_data [06:36:34]requested_item fm.sn is exist - process it [06:36:34]wFMCommunicate request_size=4 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 11 00 00 [06:36:34]Write to MH i2c: E2 08 00 E7 3B 80 11 00 00 00 00 00 00 9C [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 [06:36:34]MH_I2C_Read... [06:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:34]Read from MH i2c: E2 17 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 17 00 E7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [06:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:36:34]wFMCommunicate OK [06:36:34]requested_item fd.num is exist - process it [06:36:34]SAM_PROTO_GetFieldsCounters [06:36:34]wFMCommunicate request_size=4 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 13 00 00 [06:36:34]Write to MH i2c: E2 08 00 E8 3B 80 13 00 00 00 00 00 00 9F [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:34]Read from MH i2c: E2 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 62 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 62 00 E8 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [06:36:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:34]wFMCommunicate OK [06:36:34]SAM_PROTO_GetFieldsCounters done [06:36:34]requested_item shift.num is exist - process it [06:36:34]requested_item shift.opened is exist - process it [06:36:34]req_shift_opened [06:36:34]FM_GetShiftState [06:36:34]SAM_PROTO_GetShiftState [06:36:34]wFMCommunicate request_size=4 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 13 01 00 [06:36:34]Write to MH i2c: E2 08 00 E9 3B 80 13 01 00 00 00 00 00 A1 [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:34]Read from MH i2c: E2 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 0E 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 0E 00 E9 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [06:36:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:36:34]wFMCommunicate OK [06:36:34]SAM_PROTO_GetShiftState done [06:36:34]FM_GetShiftState done [06:36:34]req_shift_opened done [06:36:34]requested_item shift.open_date is exist - process it [06:36:34]req_shift_open_date [06:36:34]req_shift_open_date done [06:36:34]produce_requested_data done [06:36:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103332,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:36:34]process_action_free close_receipt [06:36:34]json_value_free [06:36:34]json_value_free done [06:36:34]process_json_proto returns [06:36:34]Send response to host [06:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103332,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:36:34]free response buf [06:36:34]execute_script done [06:36:34]execute_script returns [06:36:34]free content buf [06:36:34]Sock 10.Close socket [06:36:34]Sock 10.Thread stoped [06:36:38]OFD Sender: No OFD packet to send [06:36:39]accept exits with 7 [06:36:39]New connection [06:36:39]New thread 3067227492 created [06:36:39]Thread 3067084132 joined [06:36:39]Waiting for new connection... [06:36:39] Sock 7.Parse request [06:36:39]Sock 7.Check first char [06:36:39]Sock 7.First char is OK [06:36:39]request: POST /json_proto HTTP/1.0 [06:36:39]Method: POST [06:36:39]URL: /json_proto [06:36:39]Method is POST - this is cgi request [06:36:39]url: /json_proto [06:36:39]query_string will be loaded in cgi processing [06:36:39]execute_cgi json_proto POST (null) [06:36:39]execute_cgi path=json_proto method=POST [06:36:39]POST find Content-Length [06:36:39]Host: 172.17.38.133:8080 [06:36:39]Content-Length: 816 [06:36:39]Content-Type: application/json [06:36:39] [06:36:39]POST finish read [06:36:39]Found Content-Length = 816 [06:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.880, "sum" : 390.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 390.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:39]execute_script... [06:36:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.880, "sum" : 390.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 390.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:39]POST & json_proto [06:36:39]process_json_proto [06:36:39]json parsed OK: [06:36:39]protocol is kg_v1.0 [06:36:39]action value=close_receipt [06:36:39]process_action close_receipt [06:36:39]cmd_close_receipt [06:36:39]MH_GetDate [06:36:39]Write to MH i2c: F0 00 00 EA 3B 14 [06:36:39]Write i2c OK [06:36:39]MH_I2C_Read... [06:36:39]Read from MH i2c: F0 [06:36:39]MH_I2C_Read... [06:36:39]Read from MH i2c: F0 09 00 [06:36:39]MH_I2C_Read... [06:36:39]Read from MH i2c: F0 09 00 EA 3B 00 FC 2A 71 66 BD 8F 7C 64 46 [06:36:39]GetLastDocTimeStamp 1718692595 [06:36:39]current date 1718692604 [06:36:39]FM_GetShiftState [06:36:39]SAM_PROTO_GetShiftState [06:36:39]wFMCommunicate request_size=4 [06:36:39]MH_SAM_APDU [06:36:39]CAPDU: 80 13 01 00 [06:36:39]Write to MH i2c: E2 08 00 EB 3B 80 13 01 00 00 00 00 00 A3 [06:36:39]Write i2c OK [06:36:39]MH_I2C_Read... [06:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:39]Read from MH i2c: E2 [06:36:39]MH_I2C_Read... [06:36:39]Read from MH i2c: E2 0E 00 [06:36:39]MH_I2C_Read... [06:36:39]Read from MH i2c: E2 0E 00 EB 3B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 24 [06:36:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:36:39]wFMCommunicate OK [06:36:39]SAM_PROTO_GetShiftState done [06:36:39]FM_GetShiftState done [06:36:39]opened in 1718670284 [06:36:39]opened+sec_in_day 1718756684 [06:36:39]quantity*price = 39043 [06:36:39]sum+1 = 39044 [06:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.43 НСП 1% : 3.45 НДС 12% : 41.46 Наличными: 0.00 Безнал.: 390.43 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 17 18.06.2024 06:36 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103333 ФПД: 87904474647651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063644&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103333&fm=87904474647651&tin=02508201610067®Number=0000000000092785&sum=39043 [06:36:40]StoreToDocumentArchive [06:36:40]shift 352 fd 103333 [06:36:40]save to /storage/0352/doc_00103333 [06:36:40]save last doc name /storage/0352/doc_00103333 to /storage/kkm_last_doc_name [06:36:40]save OK [06:36:40]Clear old archive folders... [06:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:36:40]tlvbuf is 0141CB70 [06:36:40]SAM_PROTO_ClearQueue [06:36:40]wFMCommunicate request_size=4 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 09 00 00 [06:36:40]Write to MH i2c: E2 08 00 F8 3B 80 09 00 00 00 00 00 00 A5 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 F8 3B 00 90 00 A7 [06:36:40]RAPDU: 90 00 [06:36:40]wFMCommunicate OK [06:36:40]SAM_PROTO_ClearQueue done [06:36:40]KKMCreateOFDPacket [06:36:40]OFDProtocolAddRootSTLVToBuf [06:36:40]FM_MakeSignedData [06:36:40]FM_MakeSignedData [06:36:40]SAM_PROTO_SignData [06:36:40]wFMCommunicate request_size=4 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 0D 01 02 [06:36:40]Write to MH i2c: E2 08 00 F9 3B 80 0D 01 02 00 00 00 00 AD [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 F9 3B 00 90 00 A8 [06:36:40]RAPDU: 90 00 [06:36:40]wFMCommunicate OK [06:36:40]wFMCommunicate request_size=255 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 93 01 00 35 04 06 00 4F [06:36:40]Write to MH i2c: E2 02 01 FA 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 93 01 00 35 04 06 00 4F 00 00 B8 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 FA 3B 00 90 00 A9 [06:36:40]RAPDU: 90 00 [06:36:40]wFMCommunicate OK [06:36:40]wFMCommunicate request_size=10 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 0D 02 02 05 F2 DA FC 4C 63 [06:36:40]Write to MH i2c: E2 0D 00 FB 3B 80 0D 02 02 05 00 F2 DA FC 4C 63 00 00 31 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 03 00 FB 3B 00 90 00 AA [06:36:40]RAPDU: 90 00 [06:36:40]wFMCommunicate OK [06:36:40]wFMCommunicate request_size=4 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 0D 03 02 [06:36:40]Write to MH i2c: E2 08 00 FC 3B 80 0D 03 02 00 00 00 00 B2 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 0B 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 0B 00 FC 3B 00 D8 F1 05 DC 97 34 7A 9E 90 00 40 [06:36:40]RAPDU: D8 F1 05 DC 97 34 7A 9E 90 00 [06:36:40]wFMCommunicate OK [06:36:40]SAM_PROTO_SignData done [06:36:40]FM_MakeSignedData done [06:36:40]CreateOFDProtocolMessage [06:36:40]wFMCommunicate request_size=4 [06:36:40]MH_SAM_APDU [06:36:40]CAPDU: 80 11 00 00 [06:36:40]Write to MH i2c: E2 08 00 FD 3B 80 11 00 00 00 00 00 00 B2 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:40]Read from MH i2c: E2 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 17 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: E2 17 00 FD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [06:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:36:40]wFMCommunicate OK [06:36:40]CreateOFDProtocolMessage done [06:36:40]OFDSenderStorePacket 103333 [06:36:40]StoreOFDPacket docnum=103333 [06:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 D7 07 01 0A 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 93 01 00 35 04 06 00 4F F2 DA FC 4C 63 D8 F1 05 DC 97 34 7A 9E [06:36:40]CheckFolder [06:36:40]dirname=/storage/ofd_packets [06:36:40]CheckFolder done [06:36:40]ProducePacketName [06:36:40]name=ofd_packets/00103333 [06:36:40]NVStorageSaveData ofd_packets/00103333 [06:36:40]File name is /storage/ofd_packets/00103333 [06:36:40]Write 301 bytes [06:36:40]NVStorageSaveData done [06:36:40]OFDSenderStorePacket done [06:36:40]KKMCreateOFDPacket done [06:36:40]NVStorageSaveData kkm_last_timestamp [06:36:40]File name is /storage/kkm_last_timestamp [06:36:40]Write 4 bytes [06:36:40]NVStorageSaveData done [06:36:40]ExternCall_PrintAddStr [06:36:40]wPrintStart [06:36:40]Write to MH i2c: 01 00 00 FE 3B 39 [06:36:40]Write i2c OK [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: 01 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: 01 07 00 [06:36:40]MH_I2C_Read... [06:36:40]Read from MH i2c: 01 07 00 FE 3B 00 00 00 00 00 FF 0F 4E [06:36:40]RasterBufferAndPrint [06:36:40]line Счет N : (1)672469 [06:36:40]line ИНН: 02508201610067 [06:36:40]line Контрольно-Кассовый Чек [06:36:40]line ПРОДАЖА [06:36:40]line ТРК (МРК, ГНК) : 32 [06:36:40]line Товар: 2710124130 [06:36:40]line Аи-92-К-5 [06:36:40]line 5.880 * 66.40 [06:36:40]line = 390.43 [06:36:40]line НДС 12% НСП 1% [06:36:40]line > о реализуемом товаре [06:36:40]line ИТОГО: 390.43 [06:36:40]line НСП 1% : 3.45 [06:36:40]line НДС 12% : 41.46 [06:36:40]line Наличными: 0.00 [06:36:40]line Безнал.: 390.43 [06:36:40]line Место: АЗС № 120 "Партнер Нефть" [06:36:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:36:40]line СНО: Общий режим [06:36:40]line Чек 17 18.06.2024 06:36 [06:36:40]line Смена: 352 ФФД: 1.0 [06:36:40]line ЗНМ: 0300000164 [06:36:40]line РНМ: 0000000000092785 [06:36:40]line Версия ККМ: 001 [06:36:40]line Платежная система: Бакай Банк [06:36:40]line ФМ: 0000000000875093 [06:36:40]line ФД: 103333 [06:36:40]line ФПД: 87904474647651 [06:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T063644&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103333&fm=87904474647651&tin=02508201610067®Number=0000000000092785&sum=39043 [06:36:40]written 0, free lines is 4095 [06:36:40]OFD Sender: Processing packet 103333 [packets to send 17, broken 16] [06:36:40]ProducePacketName [06:36:40]name=ofd_packets/00103333 [06:36:40]OFD Sender: To server: pG, [06:36:40]CommunicateWithHost lk.salyk.kg:30040 [06:36:40]ConnectInit lk.salyk.kg [06:36:41]Connected sock=10 [06:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 D7 07 01 0A 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC 2A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 93 01 00 35 04 06 00 4F F2 DA FC 4C 63 D8 F1 05 DC 97 34 7A 9E [06:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7E 74 47 00 35 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 93 01 00 F4 03 04 00 89 D1 70 66 B6 04 01 00 00 44 40 6C 48 F5 E2 7D C6 [06:36:41]CommunicateWithHost err = 0 [06:36:41]CheckOFDResponse [06:36:41]1017 (14) - 77093643461234 [06:36:41]1041 (16) - 0000000000875093 [06:36:41]1040 (4) - 103333 [06:36:41]1012 (4) - 18.06.2024 00:15 [06:36:41]1206 (1) - 0 [06:36:41]OFD Sender: Remove packet 103333 [06:36:41]ProducePacketName [06:36:41]name=ofd_packets/00103333 [06:36:41]NVStorageDeleteData [06:36:41]Write to MH i2c: 01 00 00 28 3C 64 [06:36:41]Write i2c OK [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: 01 [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: 01 07 00 [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: 01 07 00 28 3C 00 00 00 00 00 18 0D 90 [06:36:41]RasterBufferAndPrint [06:36:41]line [06:36:41]line [06:36:41]line [06:36:41]line [06:36:41]line [06:36:41]written 0, free lines is 3363 [06:36:41]MH_Cut [06:36:41]Write to MH i2c: D1 01 00 2F 3C 01 3D [06:36:41]Write i2c OK [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: D1 [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: D1 01 00 [06:36:41]MH_I2C_Read... [06:36:41]Read from MH i2c: D1 01 00 2F 3C 00 3C [06:36:41]Write to MH i2c: 01 00 00 30 3C 6C [06:36:41]Write i2c OK [06:36:41]MH_I2C_Read... [06:36:41]OFD Sender: No OFD packet to send [06:36:42]*** Cut start [06:36:42]*** Partial cut [06:36:42]*** CUTSNS_PIN = 1 [06:36:42]*** CUTSNS_PIN = 0 [06:36:42]*** Brake cut motor [06:36:42]Read from MH i2c: 01 [06:36:42]MH_I2C_Read... [06:36:42]*** Stop cut motor [06:36:42]*** Cut end [06:36:42]Read from MH i2c: 01 07 00 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: 01 07 00 30 3C 00 00 00 00 00 FF 0F 81 [06:36:42]process_action close_receipt done [06:36:42]requested_data is exist [06:36:42]produce_requested_data [06:36:42]requested_item fm.sn is exist - process it [06:36:42]wFMCommunicate request_size=4 [06:36:42]MH_SAM_APDU [06:36:42]CAPDU: 80 11 00 00 [06:36:42]Write to MH i2c: E2 08 00 31 3C 80 11 00 00 00 00 00 00 E7 [06:36:42]Write i2c OK [06:36:42]MH_I2C_Read... [06:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:42]Read from MH i2c: E2 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 17 00 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 17 00 31 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [06:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:36:42]wFMCommunicate OK [06:36:42]requested_item fd.num is exist - process it [06:36:42]SAM_PROTO_GetFieldsCounters [06:36:42]wFMCommunicate request_size=4 [06:36:42]MH_SAM_APDU [06:36:42]CAPDU: 80 13 00 00 [06:36:42]Write to MH i2c: E2 08 00 32 3C 80 13 00 00 00 00 00 00 EA [06:36:42]Write i2c OK [06:36:42]MH_I2C_Read... [06:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:42]Read from MH i2c: E2 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 62 00 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 62 00 32 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [06:36:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:42]wFMCommunicate OK [06:36:42]SAM_PROTO_GetFieldsCounters done [06:36:42]requested_item shift.num is exist - process it [06:36:42]requested_item shift.opened is exist - process it [06:36:42]req_shift_opened [06:36:42]FM_GetShiftState [06:36:42]SAM_PROTO_GetShiftState [06:36:42]wFMCommunicate request_size=4 [06:36:42]MH_SAM_APDU [06:36:42]CAPDU: 80 13 01 00 [06:36:42]Write to MH i2c: E2 08 00 33 3C 80 13 01 00 00 00 00 00 EC [06:36:42]Write i2c OK [06:36:42]MH_I2C_Read... [06:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:42]Read from MH i2c: E2 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 0E 00 [06:36:42]MH_I2C_Read... [06:36:42]Read from MH i2c: E2 0E 00 33 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6D [06:36:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:36:42]wFMCommunicate OK [06:36:42]SAM_PROTO_GetShiftState done [06:36:42]FM_GetShiftState done [06:36:42]req_shift_opened done [06:36:42]requested_item shift.open_date is exist - process it [06:36:42]req_shift_open_date [06:36:42]req_shift_open_date done [06:36:42]produce_requested_data done [06:36:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103333,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:36:42]process_action_free close_receipt [06:36:42]json_value_free [06:36:42]json_value_free done [06:36:42]process_json_proto returns [06:36:42]Send response to host [06:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103333,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:36:42]free response buf [06:36:42]execute_script done [06:36:42]execute_script returns [06:36:42]free content buf [06:36:42]Sock 7.Close socket [06:36:42]Sock 7.Thread stoped [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:18]accept exits with 9 [06:51:18]New connection [06:51:18]New thread 3067084132 created [06:51:18]Thread 3067227492 joined [06:51:18]Waiting for new connection... [06:51:18] Sock 9.Parse request [06:51:18]Sock 9.Check first char [06:51:18]Sock 9.First char is OK [06:51:18]request: POST /json_proto HTTP/1.0 [06:51:18]Method: POST [06:51:18]URL: /json_proto [06:51:18]Method is POST - this is cgi request [06:51:18]url: /json_proto [06:51:18]query_string will be loaded in cgi processing [06:51:18]execute_cgi json_proto POST (null) [06:51:18]execute_cgi path=json_proto method=POST [06:51:18]POST find Content-Length [06:51:18]Host: 172.17.38.133:8080 [06:51:18]Content-Length: 687 [06:51:18]Content-Type: application/json [06:51:18] [06:51:18]POST finish read [06:51:18]Found Content-Length = 687 [06:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:18]execute_script... [06:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:18]POST & json_proto [06:51:18]process_json_proto [06:51:18]json parsed OK: [06:51:18]protocol is kg_v1.0 [06:51:18]action value=close_receipt [06:51:18]process_action close_receipt [06:51:18]cmd_close_receipt [06:51:18]MH_GetDate [06:51:18]Write to MH i2c: F0 00 00 34 3C 5F [06:51:18]Write i2c OK [06:51:18]MH_I2C_Read... [06:51:18]Read from MH i2c: F0 [06:51:18]MH_I2C_Read... [06:51:18]Read from MH i2c: F0 09 00 [06:51:18]MH_I2C_Read... [06:51:18]Read from MH i2c: F0 09 00 34 3C 00 6B 2E 71 66 BD 8F 7C 64 04 [06:51:18]GetLastDocTimeStamp 1718692604 [06:51:18]current date 1718693483 [06:51:18]FM_GetShiftState [06:51:18]SAM_PROTO_GetShiftState [06:51:18]wFMCommunicate request_size=4 [06:51:18]MH_SAM_APDU [06:51:18]CAPDU: 80 13 01 00 [06:51:18]Write to MH i2c: E2 08 00 35 3C 80 13 01 00 00 00 00 00 EE [06:51:18]Write i2c OK [06:51:18]MH_I2C_Read... [06:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:18]Read from MH i2c: E2 [06:51:18]MH_I2C_Read... [06:51:18]Read from MH i2c: E2 0E 00 [06:51:18]MH_I2C_Read... [06:51:18]Read from MH i2c: E2 0E 00 35 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6F [06:51:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:51:18]wFMCommunicate OK [06:51:18]SAM_PROTO_GetShiftState done [06:51:18]FM_GetShiftState done [06:51:18]opened in 1718670284 [06:51:18]opened+sec_in_day 1718756684 [06:51:18]quantity*price = 100018 [06:51:18]sum+1 = 100020 [06:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 18.06.2024 06:51 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103334 ФПД: 222203430374500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T065123&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103334&fm=222203430374500&tin=02508201610067®Number=0000000000092785&sum=100000 [06:51:19]StoreToDocumentArchive [06:51:19]shift 352 fd 103334 [06:51:19]save to /storage/0352/doc_00103334 [06:51:19]save last doc name /storage/0352/doc_00103334 to /storage/kkm_last_doc_name [06:51:19]save OK [06:51:19]Clear old archive folders... [06:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:51:19]tlvbuf is 0139E470 [06:51:19]SAM_PROTO_ClearQueue [06:51:19]wFMCommunicate request_size=4 [06:51:19]MH_SAM_APDU [06:51:19]CAPDU: 80 09 00 00 [06:51:19]Write to MH i2c: E2 08 00 42 3C 80 09 00 00 00 00 00 00 F0 [06:51:19]Write i2c OK [06:51:19]MH_I2C_Read... [06:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:19]Read from MH i2c: E2 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 03 00 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 03 00 42 3C 00 90 00 F2 [06:51:19]RAPDU: 90 00 [06:51:19]wFMCommunicate OK [06:51:19]SAM_PROTO_ClearQueue done [06:51:19]KKMCreateOFDPacket [06:51:19]OFDProtocolAddRootSTLVToBuf [06:51:19]FM_MakeSignedData [06:51:19]FM_MakeSignedData [06:51:19]SAM_PROTO_SignData [06:51:19]wFMCommunicate request_size=4 [06:51:19]MH_SAM_APDU [06:51:19]CAPDU: 80 0D 01 02 [06:51:19]Write to MH i2c: E2 08 00 43 3C 80 0D 01 02 00 00 00 00 F8 [06:51:19]Write i2c OK [06:51:19]MH_I2C_Read... [06:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:19]Read from MH i2c: E2 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 03 00 [06:51:19]MH_I2C_Read... [06:51:19]Read from MH i2c: E2 03 00 43 3C 00 90 00 F3 [06:51:19]RAPDU: 90 00 [06:51:19]wFMCommunicate OK [06:51:19]wFMCommunicate request_size=255 [06:51:19]MH_SAM_APDU [06:51:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 2E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 93 01 00 35 04 06 00 [06:51:19]Write to MH i2c: E2 02 01 44 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 2E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 93 01 00 35 04 06 00 00 00 69 [06:51:19]Write i2c OK [06:51:19]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 03 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 03 00 44 3C 00 90 00 F4 [06:51:20]RAPDU: 90 00 [06:51:20]wFMCommunicate OK [06:51:20]wFMCommunicate request_size=11 [06:51:20]MH_SAM_APDU [06:51:20]CAPDU: 80 0D 02 02 06 CA 17 C4 89 0C 64 [06:51:20]Write to MH i2c: E2 0E 00 45 3C 80 0D 02 02 06 00 CA 17 C4 89 0C 64 00 00 A5 [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 03 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 03 00 45 3C 00 90 00 F5 [06:51:20]RAPDU: 90 00 [06:51:20]wFMCommunicate OK [06:51:20]wFMCommunicate request_size=4 [06:51:20]MH_SAM_APDU [06:51:20]CAPDU: 80 0D 03 02 [06:51:20]Write to MH i2c: E2 08 00 46 3C 80 0D 03 02 00 00 00 00 FD [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0B 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0B 00 46 3C 00 5D C9 0B C9 2B 39 47 51 90 00 F4 [06:51:20]RAPDU: 5D C9 0B C9 2B 39 47 51 90 00 [06:51:20]wFMCommunicate OK [06:51:20]SAM_PROTO_SignData done [06:51:20]FM_MakeSignedData done [06:51:20]CreateOFDProtocolMessage [06:51:20]wFMCommunicate request_size=4 [06:51:20]MH_SAM_APDU [06:51:20]CAPDU: 80 11 00 00 [06:51:20]Write to MH i2c: E2 08 00 47 3C 80 11 00 00 00 00 00 00 FD [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 17 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 17 00 47 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [06:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:51:20]wFMCommunicate OK [06:51:20]CreateOFDProtocolMessage done [06:51:20]OFDSenderStorePacket 103334 [06:51:20]StoreOFDPacket docnum=103334 [06:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 70 7D 08 01 7A 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 2E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 93 01 00 35 04 06 00 CA 17 C4 89 0C 64 5D C9 0B C9 2B 39 47 51 [06:51:20]CheckFolder [06:51:20]dirname=/storage/ofd_packets [06:51:20]CheckFolder done [06:51:20]ProducePacketName [06:51:20]name=ofd_packets/00103334 [06:51:20]NVStorageSaveData ofd_packets/00103334 [06:51:20]File name is /storage/ofd_packets/00103334 [06:51:20]Write 302 bytes [06:51:20]NVStorageSaveData done [06:51:20]OFDSenderStorePacket done [06:51:20]KKMCreateOFDPacket done [06:51:20]NVStorageSaveData kkm_last_timestamp [06:51:20]File name is /storage/kkm_last_timestamp [06:51:20]Write 4 bytes [06:51:20]NVStorageSaveData done [06:51:20]ExternCall_PrintAddStr [06:51:20]wPrintStart [06:51:20]Write to MH i2c: 01 00 00 48 3C 84 [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: 01 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: 01 07 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: 01 07 00 48 3C 00 00 00 00 00 FF 0F 99 [06:51:20]RasterBufferAndPrint [06:51:20]line Счет N : (1)672470 [06:51:20]line ИНН: 02508201610067 [06:51:20]line Контрольно-Кассовый Чек [06:51:20]line ПРОДАЖА [06:51:20]line ТРК (МРК, ГНК) : 21 [06:51:20]line Товар: 2710194210 [06:51:20]line ДТ(л)-К-5 [06:51:20]line 13.720 * 72.90 [06:51:20]line = 1000.19 [06:51:20]line НДС 12% НСП 1% [06:51:20]line > о реализуемом товаре [06:51:20]line ОКРУГЛЕНИЕ: -0.19 [06:51:20]line ИТОГО: 1000.00 [06:51:20]line Внесено: 1000.00 [06:51:20]line СДАЧА: 0.00 [06:51:20]line НСП 1% : 8.85 [06:51:20]line НДС 12% : 106.21 [06:51:20]line Наличными: 1000.00 [06:51:20]line Безнал.: 0.00 [06:51:20]line Место: АЗС № 120 "Партнер Нефть" [06:51:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:51:20]line СНО: Общий режим [06:51:20]line Чек 18 18.06.2024 06:51 [06:51:20]line Смена: 352 ФФД: 1.0 [06:51:20]line ЗНМ: 0300000164 [06:51:20]line РНМ: 0000000000092785 [06:51:20]line Версия ККМ: 001 [06:51:20]line ФМ: 0000000000875093 [06:51:20]line ФД: 103334 [06:51:20]line ФПД: 222203430374500 [06:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T065123&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103334&fm=222203430374500&tin=02508201610067®Number=0000000000092785&sum=100000 [06:51:20]OFD Sender: Processing packet 103334 [packets to send 17, broken 16] [06:51:20]ProducePacketName [06:51:20]name=ofd_packets/00103334 [06:51:20]OFD Sender: To server: pG, [06:51:20]CommunicateWithHost lk.salyk.kg:30040 [06:51:20]ConnectInit lk.salyk.kg [06:51:20]written 0, free lines is 4095 [06:51:20]Connected sock=10 [06:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 70 7D 08 01 7A 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6B 2E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 93 01 00 35 04 06 00 CA 17 C4 89 0C 64 5D C9 0B C9 2B 39 47 51 [06:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 02 5E 47 00 13 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 35 30 39 33 10 04 04 00 A6 93 01 00 F4 03 04 00 F8 D4 70 66 B6 04 01 00 00 E9 40 BC 06 EB 1F F8 2B [06:51:20]CommunicateWithHost err = 0 [06:51:20]CheckOFDResponse [06:51:20]1017 (14) - 77093643461234 [06:51:20]1041 (16) - 0000000000875093 [06:51:20]1040 (4) - 103334 [06:51:20]1012 (4) - 18.06.2024 00:29 [06:51:20]1206 (1) - 0 [06:51:20]OFD Sender: Remove packet 103334 [06:51:20]ProducePacketName [06:51:20]name=ofd_packets/00103334 [06:51:20]NVStorageDeleteData [06:51:21]Write to MH i2c: 01 00 00 73 3C AF [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 73 3C 00 00 00 00 00 C8 0C 8A [06:51:21]RasterBufferAndPrint [06:51:21]line [06:51:21]line [06:51:21]line [06:51:21]line [06:51:21]line [06:51:21]written 0, free lines is 3279 [06:51:21]MH_Cut [06:51:21]Write to MH i2c: D1 01 00 7A 3C 01 88 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: D1 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: D1 01 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: D1 01 00 7A 3C 00 87 [06:51:21]Write to MH i2c: 01 00 00 7B 3C B7 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]OFD Sender: No OFD packet to send [06:51:21]*** Cut start [06:51:21]*** Partial cut [06:51:21]*** CUTSNS_PIN = 1 [06:51:21]*** CUTSNS_PIN = 0 [06:51:22]*** Brake cut motor [06:51:22]Read from MH i2c: 01 [06:51:22]MH_I2C_Read... [06:51:22]*** Stop cut motor [06:51:22]*** Cut end [06:51:22]Read from MH i2c: 01 07 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 07 00 7B 3C 00 00 00 00 00 FF 0F CC [06:51:22]process_action close_receipt done [06:51:22]requested_data is exist [06:51:22]produce_requested_data [06:51:22]requested_item fm.sn is exist - process it [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 11 00 00 [06:51:22]Write to MH i2c: E2 08 00 7C 3C 80 11 00 00 00 00 00 00 32 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 17 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 17 00 7C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [06:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:51:22]wFMCommunicate OK [06:51:22]requested_item fd.num is exist - process it [06:51:22]SAM_PROTO_GetFieldsCounters [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 13 00 00 [06:51:22]Write to MH i2c: E2 08 00 7D 3C 80 13 00 00 00 00 00 00 35 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 62 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 62 00 7D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [06:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:22]wFMCommunicate OK [06:51:22]SAM_PROTO_GetFieldsCounters done [06:51:22]requested_item shift.num is exist - process it [06:51:22]requested_item shift.opened is exist - process it [06:51:22]req_shift_opened [06:51:22]FM_GetShiftState [06:51:22]SAM_PROTO_GetShiftState [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 13 01 00 [06:51:22]Write to MH i2c: E2 08 00 7E 3C 80 13 01 00 00 00 00 00 37 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 0E 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 0E 00 7E 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B8 [06:51:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [06:51:22]wFMCommunicate OK [06:51:22]SAM_PROTO_GetShiftState done [06:51:22]FM_GetShiftState done [06:51:22]req_shift_opened done [06:51:22]requested_item shift.open_date is exist - process it [06:51:22]req_shift_open_date [06:51:22]req_shift_open_date done [06:51:22]produce_requested_data done [06:51:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103334,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [06:51:22]process_action_free close_receipt [06:51:22]json_value_free [06:51:22]json_value_free done [06:51:22]process_json_proto returns [06:51:22]Send response to host [06:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103334,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [06:51:22]free response buf [06:51:22]execute_script done [06:51:22]execute_script returns [06:51:22]free content buf [06:51:22]Sock 9.Close socket [06:51:22]Sock 9.Thread stoped [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:49]accept exits with 7 [07:01:49]New connection [07:01:49]New thread 3067227492 created [07:01:49]Thread 3067084132 joined [07:01:49]Waiting for new connection... [07:01:49] Sock 7.Parse request [07:01:49]Sock 7.Check first char [07:01:49]Sock 7.First char is OK [07:01:49]request: POST /json_proto HTTP/1.0 [07:01:49]Method: POST [07:01:49]URL: /json_proto [07:01:49]Method is POST - this is cgi request [07:01:49]url: /json_proto [07:01:49]query_string will be loaded in cgi processing [07:01:49]execute_cgi json_proto POST (null) [07:01:49]execute_cgi path=json_proto method=POST [07:01:49]POST find Content-Length [07:01:49]Host: 172.17.38.133:8080 [07:01:49]Content-Length: 682 [07:01:49]Content-Type: application/json [07:01:49] [07:01:49]POST finish read [07:01:49]Found Content-Length = 682 [07:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:49]execute_script... [07:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:49]POST & json_proto [07:01:49]process_json_proto [07:01:49]json parsed OK: [07:01:49]protocol is kg_v1.0 [07:01:49]action value=close_receipt [07:01:49]process_action close_receipt [07:01:49]cmd_close_receipt [07:01:49]MH_GetDate [07:01:49]Write to MH i2c: F0 00 00 7F 3C AA [07:01:49]Write i2c OK [07:01:49]MH_I2C_Read... [07:01:49]Read from MH i2c: F0 [07:01:49]MH_I2C_Read... [07:01:49]Read from MH i2c: F0 09 00 [07:01:49]MH_I2C_Read... [07:01:49]Read from MH i2c: F0 09 00 7F 3C 00 E3 30 71 66 BD 8F 7C 64 C9 [07:01:49]GetLastDocTimeStamp 1718693483 [07:01:49]current date 1718694115 [07:01:49]FM_GetShiftState [07:01:49]SAM_PROTO_GetShiftState [07:01:49]wFMCommunicate request_size=4 [07:01:49]MH_SAM_APDU [07:01:49]CAPDU: 80 13 01 00 [07:01:49]Write to MH i2c: E2 08 00 80 3C 80 13 01 00 00 00 00 00 39 [07:01:49]Write i2c OK [07:01:49]MH_I2C_Read... [07:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:49]Read from MH i2c: E2 [07:01:49]MH_I2C_Read... [07:01:49]Read from MH i2c: E2 0E 00 [07:01:49]MH_I2C_Read... [07:01:49]Read from MH i2c: E2 0E 00 80 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BA [07:01:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:01:49]wFMCommunicate OK [07:01:49]SAM_PROTO_GetShiftState done [07:01:49]FM_GetShiftState done [07:01:49]opened in 1718670284 [07:01:49]opened+sec_in_day 1718756684 [07:01:49]quantity*price = 100064 [07:01:49]sum+1 = 100066 [07:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 19 18.06.2024 07:01 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103335 ФПД: 1822260653563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T070155&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103335&fm=1822260653563&tin=02508201610067®Number=0000000000092785&sum=100000 [07:01:51]StoreToDocumentArchive [07:01:51]shift 352 fd 103335 [07:01:51]save to /storage/0352/doc_00103335 [07:01:51]save last doc name /storage/0352/doc_00103335 to /storage/kkm_last_doc_name [07:01:51]save OK [07:01:51]Clear old archive folders... [07:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:51]tlvbuf is 01394B90 [07:01:51]SAM_PROTO_ClearQueue [07:01:51]wFMCommunicate request_size=4 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 09 00 00 [07:01:51]Write to MH i2c: E2 08 00 8D 3C 80 09 00 00 00 00 00 00 3B [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 8D 3C 00 90 00 3D [07:01:51]RAPDU: 90 00 [07:01:51]wFMCommunicate OK [07:01:51]SAM_PROTO_ClearQueue done [07:01:51]KKMCreateOFDPacket [07:01:51]OFDProtocolAddRootSTLVToBuf [07:01:51]FM_MakeSignedData [07:01:51]FM_MakeSignedData [07:01:51]SAM_PROTO_SignData [07:01:51]wFMCommunicate request_size=4 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 0D 01 02 [07:01:51]Write to MH i2c: E2 08 00 8E 3C 80 0D 01 02 00 00 00 00 43 [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 8E 3C 00 90 00 3E [07:01:51]RAPDU: 90 00 [07:01:51]wFMCommunicate OK [07:01:51]wFMCommunicate request_size=255 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E3 30 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 93 01 00 35 04 06 00 01 [07:01:51]Write to MH i2c: E2 02 01 8F 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E3 30 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 93 01 00 35 04 06 00 01 00 00 E7 [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 8F 3C 00 90 00 3F [07:01:51]RAPDU: 90 00 [07:01:51]wFMCommunicate OK [07:01:51]wFMCommunicate request_size=10 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 0D 02 02 05 A8 47 32 ED FB [07:01:51]Write to MH i2c: E2 0D 00 90 3C 80 0D 02 02 05 00 A8 47 32 ED FB 00 00 59 [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 03 00 90 3C 00 90 00 40 [07:01:51]RAPDU: 90 00 [07:01:51]wFMCommunicate OK [07:01:51]wFMCommunicate request_size=4 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 0D 03 02 [07:01:51]Write to MH i2c: E2 08 00 91 3C 80 0D 03 02 00 00 00 00 48 [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 0B 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 0B 00 91 3C 00 3E 78 67 B3 8B 63 CB 99 90 00 6B [07:01:51]RAPDU: 3E 78 67 B3 8B 63 CB 99 90 00 [07:01:51]wFMCommunicate OK [07:01:51]SAM_PROTO_SignData done [07:01:51]FM_MakeSignedData done [07:01:51]CreateOFDProtocolMessage [07:01:51]wFMCommunicate request_size=4 [07:01:51]MH_SAM_APDU [07:01:51]CAPDU: 80 11 00 00 [07:01:51]Write to MH i2c: E2 08 00 92 3C 80 11 00 00 00 00 00 00 48 [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:51]Read from MH i2c: E2 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 17 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: E2 17 00 92 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [07:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:01:51]wFMCommunicate OK [07:01:51]CreateOFDProtocolMessage done [07:01:51]OFDSenderStorePacket 103335 [07:01:51]StoreOFDPacket docnum=103335 [07:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 E2 07 01 46 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E3 30 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 93 01 00 35 04 06 00 01 A8 47 32 ED FB 3E 78 67 B3 8B 63 CB 99 [07:01:51]CheckFolder [07:01:51]dirname=/storage/ofd_packets [07:01:51]CheckFolder done [07:01:51]ProducePacketName [07:01:51]name=ofd_packets/00103335 [07:01:51]NVStorageSaveData ofd_packets/00103335 [07:01:51]File name is /storage/ofd_packets/00103335 [07:01:51]Write 301 bytes [07:01:51]NVStorageSaveData done [07:01:51]OFDSenderStorePacket done [07:01:51]KKMCreateOFDPacket done [07:01:51]NVStorageSaveData kkm_last_timestamp [07:01:51]File name is /storage/kkm_last_timestamp [07:01:51]Write 4 bytes [07:01:51]NVStorageSaveData done [07:01:51]ExternCall_PrintAddStr [07:01:51]wPrintStart [07:01:51]Write to MH i2c: 01 00 00 93 3C CF [07:01:51]Write i2c OK [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: 01 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: 01 07 00 [07:01:51]MH_I2C_Read... [07:01:51]Read from MH i2c: 01 07 00 93 3C 00 00 00 00 00 FF 0F E4 [07:01:51]RasterBufferAndPrint [07:01:51]line Счет N : (1)672471 [07:01:51]line ИНН: 02508201610067 [07:01:51]line Контрольно-Кассовый Чек [07:01:51]line ПРОДАЖА [07:01:51]line ТРК (МРК, ГНК) : 32 [07:01:51]line Товар: 2710124130 [07:01:51]line Аи-92-К-5 [07:01:51]line 15.070 * 66.40 [07:01:51]line = 1000.65 [07:01:51]line НДС 12% НСП 1% [07:01:51]line > о реализуемом товаре [07:01:51]line ОКРУГЛЕНИЕ: -0.65 [07:01:51]line ИТОГО: 1000.00 [07:01:51]line Внесено: 1000.00 [07:01:51]line СДАЧА: 0.00 [07:01:51]line НСП 1% : 8.85 [07:01:51]line НДС 12% : 106.26 [07:01:51]line Наличными: 1000.00 [07:01:51]line Безнал.: 0.00 [07:01:51]line Место: АЗС № 120 "Партнер Нефть" [07:01:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:01:51]line СНО: Общий режим [07:01:51]line Чек 19 18.06.2024 07:01 [07:01:51]line Смена: 352 ФФД: 1.0 [07:01:51]line ЗНМ: 0300000164 [07:01:51]line РНМ: 0000000000092785 [07:01:51]line Версия ККМ: 001 [07:01:51]line ФМ: 0000000000875093 [07:01:51]line ФД: 103335 [07:01:51]line ФПД: 1822260653563 [07:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T070155&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103335&fm=1822260653563&tin=02508201610067®Number=0000000000092785&sum=100000 [07:01:51]OFD Sender: Processing packet 103335 [packets to send 17, broken 16] [07:01:51]ProducePacketName [07:01:51]name=ofd_packets/00103335 [07:01:51]OFD Sender: To server: pG, [07:01:51]CommunicateWithHost lk.salyk.kg:30040 [07:01:51]ConnectInit lk.salyk.kg [07:01:51]written 0, free lines is 4095 [07:01:52]Connected sock=10 [07:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 E2 07 01 46 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E3 30 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 93 01 00 35 04 06 00 01 A8 47 32 ED FB 3E 78 67 B3 8B 63 CB 99 [07:01:52]Write to MH i2c: 01 00 00 BE 3C FA [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 07 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 D0 0C DD [07:01:52]RasterBufferAndPrint [07:01:52]line [07:01:52]line [07:01:52]line [07:01:52]line [07:01:52]line [07:01:52]written 0, free lines is 3288 [07:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C0 95 47 00 F9 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 93 01 00 F4 03 04 00 70 D7 70 66 B6 04 01 00 00 4C A7 A9 8B 01 44 C1 68 [07:01:52]CommunicateWithHost err = 0 [07:01:52]CheckOFDResponse [07:01:52]1017 (14) - 77093643461234 [07:01:52]1041 (16) - 0000000000875093 [07:01:52]1040 (4) - 103335 [07:01:52]1012 (4) - 18.06.2024 00:40 [07:01:52]1206 (1) - 0 [07:01:52]OFD Sender: Remove packet 103335 [07:01:52]ProducePacketName [07:01:52]name=ofd_packets/00103335 [07:01:52]NVStorageDeleteData [07:01:52]MH_Cut [07:01:52]Write to MH i2c: D1 01 00 C5 3C 01 D3 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: D1 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: D1 01 00 [07:01:52]MH_I2C_Read... [07:01:52]Read from MH i2c: D1 01 00 C5 3C 00 D2 [07:01:52]Write to MH i2c: 01 00 00 C6 3C 02 [07:01:52]Write i2c OK [07:01:52]MH_I2C_Read... [07:01:52]OFD Sender: No OFD packet to send [07:01:53]*** Cut start [07:01:53]*** Partial cut [07:01:53]*** CUTSNS_PIN = 1 [07:01:53]*** CUTSNS_PIN = 0 [07:01:53]*** Brake cut motor [07:01:53]Read from MH i2c: 01 [07:01:53]MH_I2C_Read... [07:01:53]*** Stop cut motor [07:01:53]*** Cut end [07:01:53]Read from MH i2c: 01 07 00 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: 01 07 00 C6 3C 00 00 00 00 00 FF 0F 17 [07:01:53]process_action close_receipt done [07:01:53]requested_data is exist [07:01:53]produce_requested_data [07:01:53]requested_item fm.sn is exist - process it [07:01:53]wFMCommunicate request_size=4 [07:01:53]MH_SAM_APDU [07:01:53]CAPDU: 80 11 00 00 [07:01:53]Write to MH i2c: E2 08 00 C7 3C 80 11 00 00 00 00 00 00 7D [07:01:53]Write i2c OK [07:01:53]MH_I2C_Read... [07:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:53]Read from MH i2c: E2 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: E2 17 00 [07:01:53]MH_I2C_Read... [07:01:53]Read from MH i2c: E2 17 00 C7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [07:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:01:53]wFMCommunicate OK [07:01:53]requested_item fd.num is exist - process it [07:01:53]SAM_PROTO_GetFieldsCounters [07:01:53]wFMCommunicate request_size=4 [07:01:53]MH_SAM_APDU [07:01:53]CAPDU: 80 13 00 00 [07:01:53]Write to MH i2c: E2 08 00 C8 3C 80 13 00 00 00 00 00 00 80 [07:01:53]Write i2c OK [07:01:53]MH_I2C_Read... [07:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:54]Read from MH i2c: E2 [07:01:54]MH_I2C_Read... [07:01:54]Read from MH i2c: E2 62 00 [07:01:54]MH_I2C_Read... [07:01:54]Read from MH i2c: E2 62 00 C8 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [07:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:54]wFMCommunicate OK [07:01:54]SAM_PROTO_GetFieldsCounters done [07:01:54]requested_item shift.num is exist - process it [07:01:54]requested_item shift.opened is exist - process it [07:01:54]req_shift_opened [07:01:54]FM_GetShiftState [07:01:54]SAM_PROTO_GetShiftState [07:01:54]wFMCommunicate request_size=4 [07:01:54]MH_SAM_APDU [07:01:54]CAPDU: 80 13 01 00 [07:01:54]Write to MH i2c: E2 08 00 C9 3C 80 13 01 00 00 00 00 00 82 [07:01:54]Write i2c OK [07:01:54]MH_I2C_Read... [07:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:54]Read from MH i2c: E2 [07:01:54]MH_I2C_Read... [07:01:54]Read from MH i2c: E2 0E 00 [07:01:54]MH_I2C_Read... [07:01:54]Read from MH i2c: E2 0E 00 C9 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [07:01:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:01:54]wFMCommunicate OK [07:01:54]SAM_PROTO_GetShiftState done [07:01:54]FM_GetShiftState done [07:01:54]req_shift_opened done [07:01:54]requested_item shift.open_date is exist - process it [07:01:54]req_shift_open_date [07:01:54]req_shift_open_date done [07:01:54]produce_requested_data done [07:01:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103335,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [07:01:54]process_action_free close_receipt [07:01:54]json_value_free [07:01:54]json_value_free done [07:01:54]process_json_proto returns [07:01:54]Send response to host [07:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103335,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [07:01:54]free response buf [07:01:54]execute_script done [07:01:54]execute_script returns [07:01:54]free content buf [07:01:54]Sock 7.Close socket [07:01:54]Sock 7.Thread stoped [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]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:05:58]accept exits with 9 [07:05:58]New connection [07:05:58]New thread 3067084132 created [07:05:58]Thread 3067227492 joined [07:05:58]Waiting for new connection... [07:05:58] Sock 9.Parse request [07:05:58]Sock 9.Check first char [07:05:58]Sock 9.First char is OK [07:05:58]request: POST /json_proto HTTP/1.0 [07:05:58]Method: POST [07:05:58]URL: /json_proto [07:05:58]Method is POST - this is cgi request [07:05:58]url: /json_proto [07:05:58]query_string will be loaded in cgi processing [07:05:58]execute_cgi json_proto POST (null) [07:05:58]execute_cgi path=json_proto method=POST [07:05:58]POST find Content-Length [07:05:58]Host: 172.17.38.133:8080 [07:05:58]Content-Length: 682 [07:05:58]Content-Type: application/json [07:05:58] [07:05:58]POST finish read [07:05:58]Found Content-Length = 682 [07:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:58]execute_script... [07:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:58]POST & json_proto [07:05:58]process_json_proto [07:05:58]json parsed OK: [07:05:58]protocol is kg_v1.0 [07:05:58]action value=close_receipt [07:05:58]process_action close_receipt [07:05:58]cmd_close_receipt [07:05:58]MH_GetDate [07:05:58]Write to MH i2c: F0 00 00 CA 3C F5 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: F0 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: F0 09 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: F0 09 00 CA 3C 00 DC 31 71 66 BD 8F 7C 64 0E [07:05:58]GetLastDocTimeStamp 1718694115 [07:05:58]current date 1718694364 [07:05:58]FM_GetShiftState [07:05:58]SAM_PROTO_GetShiftState [07:05:58]wFMCommunicate request_size=4 [07:05:58]MH_SAM_APDU [07:05:58]CAPDU: 80 13 01 00 [07:05:58]Write to MH i2c: E2 08 00 CB 3C 80 13 01 00 00 00 00 00 84 [07:05:58]Write i2c OK [07:05:58]MH_I2C_Read... [07:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:58]Read from MH i2c: E2 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0E 00 [07:05:58]MH_I2C_Read... [07:05:58]Read from MH i2c: E2 0E 00 CB 3C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [07:05:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:05:58]wFMCommunicate OK [07:05:58]SAM_PROTO_GetShiftState done [07:05:58]FM_GetShiftState done [07:05:58]opened in 1718670284 [07:05:58]opened+sec_in_day 1718756684 [07:05:58]quantity*price = 100064 [07:05:58]sum+1 = 100066 [07:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 18.06.2024 07:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103336 ФПД: 40816864920745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T070604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103336&fm=40816864920745&tin=02508201610067®Number=0000000000092785&sum=100000 [07:05:59]StoreToDocumentArchive [07:05:59]shift 352 fd 103336 [07:05:59]save to /storage/0352/doc_00103336 [07:05:59]save last doc name /storage/0352/doc_00103336 to /storage/kkm_last_doc_name [07:05:59]save OK [07:05:59]Clear old archive folders... [07:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:59]tlvbuf is 013EC060 [07:05:59]SAM_PROTO_ClearQueue [07:05:59]wFMCommunicate request_size=4 [07:05:59]MH_SAM_APDU [07:05:59]CAPDU: 80 09 00 00 [07:05:59]Write to MH i2c: E2 08 00 D8 3C 80 09 00 00 00 00 00 00 86 [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:59]Read from MH i2c: E2 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 03 00 [07:05:59]MH_I2C_Read... [07:05:59]Read from MH i2c: E2 03 00 D8 3C 00 90 00 88 [07:05:59]RAPDU: 90 00 [07:05:59]wFMCommunicate OK [07:05:59]SAM_PROTO_ClearQueue done [07:05:59]KKMCreateOFDPacket [07:05:59]OFDProtocolAddRootSTLVToBuf [07:05:59]FM_MakeSignedData [07:05:59]FM_MakeSignedData [07:05:59]SAM_PROTO_SignData [07:05:59]wFMCommunicate request_size=4 [07:05:59]MH_SAM_APDU [07:05:59]CAPDU: 80 0D 01 02 [07:05:59]Write to MH i2c: E2 08 00 D9 3C 80 0D 01 02 00 00 00 00 8E [07:05:59]Write i2c OK [07:05:59]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 D9 3C 00 90 00 89 [07:06:00]RAPDU: 90 00 [07:06:00]wFMCommunicate OK [07:06:00]wFMCommunicate request_size=255 [07:06:00]MH_SAM_APDU [07:06:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 31 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 93 01 00 35 04 06 00 25 [07:06:00]Write to MH i2c: E2 02 01 DA 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 31 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 93 01 00 35 04 06 00 25 00 00 52 [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 DA 3C 00 90 00 8A [07:06:00]RAPDU: 90 00 [07:06:00]wFMCommunicate OK [07:06:00]wFMCommunicate request_size=10 [07:06:00]MH_SAM_APDU [07:06:00]CAPDU: 80 0D 02 02 05 1F 6A BC 04 A9 [07:06:00]Write to MH i2c: E2 0D 00 DB 3C 80 0D 02 02 05 00 1F 6A BC 04 A9 00 00 8D [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 03 00 DB 3C 00 90 00 8B [07:06:00]RAPDU: 90 00 [07:06:00]wFMCommunicate OK [07:06:00]wFMCommunicate request_size=4 [07:06:00]MH_SAM_APDU [07:06:00]CAPDU: 80 0D 03 02 [07:06:00]Write to MH i2c: E2 08 00 DC 3C 80 0D 03 02 00 00 00 00 93 [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 0B 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 0B 00 DC 3C 00 0A 50 43 28 AB C9 7C 96 90 00 DF [07:06:00]RAPDU: 0A 50 43 28 AB C9 7C 96 90 00 [07:06:00]wFMCommunicate OK [07:06:00]SAM_PROTO_SignData done [07:06:00]FM_MakeSignedData done [07:06:00]CreateOFDProtocolMessage [07:06:00]wFMCommunicate request_size=4 [07:06:00]MH_SAM_APDU [07:06:00]CAPDU: 80 11 00 00 [07:06:00]Write to MH i2c: E2 08 00 DD 3C 80 11 00 00 00 00 00 00 93 [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:00]Read from MH i2c: E2 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 17 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: E2 17 00 DD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [07:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:06:00]wFMCommunicate OK [07:06:00]CreateOFDProtocolMessage done [07:06:00]OFDSenderStorePacket 103336 [07:06:00]StoreOFDPacket docnum=103336 [07:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 08 79 07 01 19 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 31 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 93 01 00 35 04 06 00 25 1F 6A BC 04 A9 0A 50 43 28 AB C9 7C 96 [07:06:00]CheckFolder [07:06:00]dirname=/storage/ofd_packets [07:06:00]CheckFolder done [07:06:00]ProducePacketName [07:06:00]name=ofd_packets/00103336 [07:06:00]NVStorageSaveData ofd_packets/00103336 [07:06:00]File name is /storage/ofd_packets/00103336 [07:06:00]Write 301 bytes [07:06:00]NVStorageSaveData done [07:06:00]OFDSenderStorePacket done [07:06:00]KKMCreateOFDPacket done [07:06:00]NVStorageSaveData kkm_last_timestamp [07:06:00]File name is /storage/kkm_last_timestamp [07:06:00]Write 4 bytes [07:06:00]NVStorageSaveData done [07:06:00]ExternCall_PrintAddStr [07:06:00]wPrintStart [07:06:00]Write to MH i2c: 01 00 00 DE 3C 1A [07:06:00]Write i2c OK [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: 01 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: 01 07 00 [07:06:00]MH_I2C_Read... [07:06:00]Read from MH i2c: 01 07 00 DE 3C 00 00 00 00 00 FF 0F 2F [07:06:00]RasterBufferAndPrint [07:06:00]line Счет N : (1)672472 [07:06:00]line ИНН: 02508201610067 [07:06:00]line Контрольно-Кассовый Чек [07:06:00]line ПРОДАЖА [07:06:00]line ТРК (МРК, ГНК) : 42 [07:06:00]line Товар: 2710124130 [07:06:00]line Аи-92-К-5 [07:06:00]line 15.070 * 66.40 [07:06:00]line = 1000.65 [07:06:00]line НДС 12% НСП 1% [07:06:00]line > о реализуемом товаре [07:06:00]line ОКРУГЛЕНИЕ: -0.65 [07:06:00]line ИТОГО: 1000.00 [07:06:00]line Внесено: 1000.00 [07:06:00]line СДАЧА: 0.00 [07:06:00]line НСП 1% : 8.85 [07:06:00]line НДС 12% : 106.26 [07:06:00]line Наличными: 1000.00 [07:06:00]line Безнал.: 0.00 [07:06:00]line Место: АЗС № 120 "Партнер Нефть" [07:06:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:06:00]line СНО: Общий режим [07:06:00]line Чек 20 18.06.2024 07:06 [07:06:00]line Смена: 352 ФФД: 1.0 [07:06:00]line ЗНМ: 0300000164 [07:06:00]line РНМ: 0000000000092785 [07:06:00]line Версия ККМ: 001 [07:06:00]line ФМ: 0000000000875093 [07:06:00]line ФД: 103336 [07:06:00]line ФПД: 40816864920745 [07:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T070604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103336&fm=40816864920745&tin=02508201610067®Number=0000000000092785&sum=100000 [07:06:00]OFD Sender: Processing packet 103336 [packets to send 17, broken 16] [07:06:00]ProducePacketName [07:06:00]name=ofd_packets/00103336 [07:06:00]OFD Sender: To server: pG, [07:06:00]CommunicateWithHost lk.salyk.kg:30040 [07:06:00]ConnectInit lk.salyk.kg [07:06:00]written 0, free lines is 4095 [07:06:00]Connected sock=10 [07:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 08 79 07 01 19 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 31 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 93 01 00 35 04 06 00 25 1F 6A BC 04 A9 0A 50 43 28 AB C9 7C 96 [07:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EA 57 47 00 D8 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 93 01 00 F4 03 04 00 69 D8 70 66 B6 04 01 00 00 DC 30 4C 58 A0 7A 45 4D [07:06:01]CommunicateWithHost err = 0 [07:06:01]CheckOFDResponse [07:06:01]1017 (14) - 77093643461234 [07:06:01]1041 (16) - 0000000000875093 [07:06:01]1040 (4) - 103336 [07:06:01]1012 (4) - 18.06.2024 00:44 [07:06:01]1206 (1) - 0 [07:06:01]OFD Sender: Remove packet 103336 [07:06:01]ProducePacketName [07:06:01]name=ofd_packets/00103336 [07:06:01]NVStorageDeleteData [07:06:01]Write to MH i2c: 01 00 00 09 3D 46 [07:06:01]Write i2c OK [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: 01 [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: 01 07 00 [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: 01 07 00 09 3D 00 00 00 00 00 CB 0C 24 [07:06:01]RasterBufferAndPrint [07:06:01]line [07:06:01]line [07:06:01]line [07:06:01]line [07:06:01]line [07:06:01]written 0, free lines is 3281 [07:06:01]MH_Cut [07:06:01]Write to MH i2c: D1 01 00 10 3D 01 1F [07:06:01]Write i2c OK [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: D1 [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: D1 01 00 [07:06:01]MH_I2C_Read... [07:06:01]Read from MH i2c: D1 01 00 10 3D 00 1E [07:06:01]Write to MH i2c: 01 00 00 11 3D 4E [07:06:01]Write i2c OK [07:06:01]MH_I2C_Read... [07:06:01]OFD Sender: No OFD packet to send [07:06:02]*** Cut start [07:06:02]*** Partial cut [07:06:02]*** CUTSNS_PIN = 1 [07:06:02]*** CUTSNS_PIN = 0 [07:06:02]*** Brake cut motor [07:06:02]Read from MH i2c: 01 [07:06:02]MH_I2C_Read... [07:06:02]*** Stop cut motor [07:06:02]*** Cut end [07:06:02]Read from MH i2c: 01 07 00 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: 01 07 00 11 3D 00 00 00 00 00 FF 0F 63 [07:06:02]process_action close_receipt done [07:06:02]requested_data is exist [07:06:02]produce_requested_data [07:06:02]requested_item fm.sn is exist - process it [07:06:02]wFMCommunicate request_size=4 [07:06:02]MH_SAM_APDU [07:06:02]CAPDU: 80 11 00 00 [07:06:02]Write to MH i2c: E2 08 00 12 3D 80 11 00 00 00 00 00 00 C9 [07:06:02]Write i2c OK [07:06:02]MH_I2C_Read... [07:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:02]Read from MH i2c: E2 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 17 00 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 17 00 12 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [07:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:06:02]wFMCommunicate OK [07:06:02]requested_item fd.num is exist - process it [07:06:02]SAM_PROTO_GetFieldsCounters [07:06:02]wFMCommunicate request_size=4 [07:06:02]MH_SAM_APDU [07:06:02]CAPDU: 80 13 00 00 [07:06:02]Write to MH i2c: E2 08 00 13 3D 80 13 00 00 00 00 00 00 CC [07:06:02]Write i2c OK [07:06:02]MH_I2C_Read... [07:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:02]Read from MH i2c: E2 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 62 00 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 62 00 13 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [07:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:02]wFMCommunicate OK [07:06:02]SAM_PROTO_GetFieldsCounters done [07:06:02]requested_item shift.num is exist - process it [07:06:02]requested_item shift.opened is exist - process it [07:06:02]req_shift_opened [07:06:02]FM_GetShiftState [07:06:02]SAM_PROTO_GetShiftState [07:06:02]wFMCommunicate request_size=4 [07:06:02]MH_SAM_APDU [07:06:02]CAPDU: 80 13 01 00 [07:06:02]Write to MH i2c: E2 08 00 14 3D 80 13 01 00 00 00 00 00 CE [07:06:02]Write i2c OK [07:06:02]MH_I2C_Read... [07:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:02]Read from MH i2c: E2 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 0E 00 [07:06:02]MH_I2C_Read... [07:06:02]Read from MH i2c: E2 0E 00 14 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [07:06:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:06:02]wFMCommunicate OK [07:06:02]SAM_PROTO_GetShiftState done [07:06:02]FM_GetShiftState done [07:06:02]req_shift_opened done [07:06:02]requested_item shift.open_date is exist - process it [07:06:02]req_shift_open_date [07:06:02]req_shift_open_date done [07:06:02]produce_requested_data done [07:06:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103336,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [07:06:02]process_action_free close_receipt [07:06:02]json_value_free [07:06:02]json_value_free done [07:06:02]process_json_proto returns [07:06:02]Send response to host [07:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103336,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [07:06:02]free response buf [07:06:02]execute_script done [07:06:02]execute_script returns [07:06:02]free content buf [07:06:02]Sock 9.Close socket [07:06:02]Sock 9.Thread stoped [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:15]accept exits with 7 [07:35:15]New connection [07:35:15]New thread 3067227492 created [07:35:15]Thread 3067084132 joined [07:35:15]Waiting for new connection... [07:35:15] Sock 7.Parse request [07:35:15]Sock 7.Check first char [07:35:15]Sock 7.First char is OK [07:35:15]request: POST /json_proto HTTP/1.0 [07:35:15]Method: POST [07:35:15]URL: /json_proto [07:35:15]Method is POST - this is cgi request [07:35:15]url: /json_proto [07:35:15]query_string will be loaded in cgi processing [07:35:15]execute_cgi json_proto POST (null) [07:35:15]execute_cgi path=json_proto method=POST [07:35:15]POST find Content-Length [07:35:15]Host: 172.17.38.133:8080 [07:35:15]Content-Length: 682 [07:35:15]Content-Type: application/json [07:35:15] [07:35:15]POST finish read [07:35:15]Found Content-Length = 682 [07:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:15]execute_script... [07:35:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:15]POST & json_proto [07:35:15]process_json_proto [07:35:15]json parsed OK: [07:35:15]protocol is kg_v1.0 [07:35:15]action value=close_receipt [07:35:15]process_action close_receipt [07:35:15]cmd_close_receipt [07:35:15]MH_GetDate [07:35:15]Write to MH i2c: F0 00 00 15 3D 41 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 09 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: F0 09 00 15 3D 00 B8 38 71 66 BD 8F 7C 64 3D [07:35:15]GetLastDocTimeStamp 1718694364 [07:35:15]current date 1718696120 [07:35:15]FM_GetShiftState [07:35:15]SAM_PROTO_GetShiftState [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 13 01 00 [07:35:15]Write to MH i2c: E2 08 00 16 3D 80 13 01 00 00 00 00 00 D0 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0E 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0E 00 16 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 51 [07:35:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:35:15]wFMCommunicate OK [07:35:15]SAM_PROTO_GetShiftState done [07:35:15]FM_GetShiftState done [07:35:15]opened in 1718670284 [07:35:15]opened+sec_in_day 1718756684 [07:35:15]quantity*price = 100064 [07:35:15]sum+1 = 100066 [07:35:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 21 18.06.2024 07:35 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103337 ФПД: 24456587257561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T073520&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103337&fm=24456587257561&tin=02508201610067®Number=0000000000092785&sum=100000 [07:35:16]StoreToDocumentArchive [07:35:16]shift 352 fd 103337 [07:35:16]save to /storage/0352/doc_00103337 [07:35:16]save last doc name /storage/0352/doc_00103337 to /storage/kkm_last_doc_name [07:35:16]save OK [07:35:16]Clear old archive folders... [07:35:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:16]tlvbuf is 01489970 [07:35:16]SAM_PROTO_ClearQueue [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 09 00 00 [07:35:16]Write to MH i2c: E2 08 00 23 3D 80 09 00 00 00 00 00 00 D2 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 23 3D 00 90 00 D4 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_ClearQueue done [07:35:16]KKMCreateOFDPacket [07:35:16]OFDProtocolAddRootSTLVToBuf [07:35:16]FM_MakeSignedData [07:35:16]FM_MakeSignedData [07:35:16]SAM_PROTO_SignData [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 01 02 [07:35:16]Write to MH i2c: E2 08 00 24 3D 80 0D 01 02 00 00 00 00 DA [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 24 3D 00 90 00 D5 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=255 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B8 38 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 93 01 00 35 04 06 00 16 [07:35:16]Write to MH i2c: E2 02 01 25 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B8 38 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 93 01 00 35 04 06 00 16 00 00 74 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 25 3D 00 90 00 D6 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=10 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 02 02 05 3E 3E 32 26 D9 [07:35:16]Write to MH i2c: E2 0D 00 26 3D 80 0D 02 02 05 00 3E 3E 32 26 D9 00 00 94 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 03 00 26 3D 00 90 00 D7 [07:35:16]RAPDU: 90 00 [07:35:16]wFMCommunicate OK [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 0D 03 02 [07:35:16]Write to MH i2c: E2 08 00 27 3D 80 0D 03 02 00 00 00 00 DF [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0B 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0B 00 27 3D 00 64 69 BD AD C9 72 D3 10 90 00 35 [07:35:16]RAPDU: 64 69 BD AD C9 72 D3 10 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_SignData done [07:35:16]FM_MakeSignedData done [07:35:16]CreateOFDProtocolMessage [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 11 00 00 [07:35:16]Write to MH i2c: E2 08 00 28 3D 80 11 00 00 00 00 00 00 DF [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 28 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [07:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:35:16]wFMCommunicate OK [07:35:16]CreateOFDProtocolMessage done [07:35:16]OFDSenderStorePacket 103337 [07:35:16]StoreOFDPacket docnum=103337 [07:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 19 1F 07 01 65 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B8 38 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 93 01 00 35 04 06 00 16 3E 3E 32 26 D9 64 69 BD AD C9 72 D3 10 [07:35:16]CheckFolder [07:35:16]dirname=/storage/ofd_packets [07:35:16]CheckFolder done [07:35:16]ProducePacketName [07:35:16]name=ofd_packets/00103337 [07:35:16]NVStorageSaveData ofd_packets/00103337 [07:35:16]File name is /storage/ofd_packets/00103337 [07:35:16]Write 301 bytes [07:35:16]NVStorageSaveData done [07:35:16]OFDSenderStorePacket done [07:35:16]KKMCreateOFDPacket done [07:35:16]NVStorageSaveData kkm_last_timestamp [07:35:16]File name is /storage/kkm_last_timestamp [07:35:16]Write 4 bytes [07:35:16]NVStorageSaveData done [07:35:16]ExternCall_PrintAddStr [07:35:16]wPrintStart [07:35:16]Write to MH i2c: 01 00 00 29 3D 66 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 29 3D 00 00 00 00 00 FF 0F 7B [07:35:16]RasterBufferAndPrint [07:35:16]line Счет N : (1)672473 [07:35:16]line ИНН: 02508201610067 [07:35:16]line Контрольно-Кассовый Чек [07:35:16]line ПРОДАЖА [07:35:16]line ТРК (МРК, ГНК) : 42 [07:35:16]line Товар: 2710124130 [07:35:16]line Аи-92-К-5 [07:35:16]line 15.070 * 66.40 [07:35:16]line = 1000.65 [07:35:16]line НДС 12% НСП 1% [07:35:16]line > о реализуемом товаре [07:35:16]line ОКРУГЛЕНИЕ: -0.65 [07:35:16]line ИТОГО: 1000.00 [07:35:16]line Внесено: 1000.00 [07:35:16]line СДАЧА: 0.00 [07:35:16]line НСП 1% : 8.85 [07:35:16]line НДС 12% : 106.26 [07:35:16]line Наличными: 1000.00 [07:35:16]line Безнал.: 0.00 [07:35:16]line Место: АЗС № 120 "Партнер Нефть" [07:35:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:35:16]line СНО: Общий режим [07:35:16]line Чек 21 18.06.2024 07:35 [07:35:16]line Смена: 352 ФФД: 1.0 [07:35:16]line ЗНМ: 0300000164 [07:35:16]line РНМ: 0000000000092785 [07:35:16]line Версия ККМ: 001 [07:35:16]line ФМ: 0000000000875093 [07:35:16]line ФД: 103337 [07:35:16]line ФПД: 24456587257561 [07:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T073520&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103337&fm=24456587257561&tin=02508201610067®Number=0000000000092785&sum=100000 [07:35:17]OFD Sender: Processing packet 103337 [packets to send 17, broken 16] [07:35:17]ProducePacketName [07:35:17]name=ofd_packets/00103337 [07:35:17]OFD Sender: To server: pG, [07:35:17]CommunicateWithHost lk.salyk.kg:30040 [07:35:17]ConnectInit lk.salyk.kg [07:35:17]written 0, free lines is 4095 [07:35:17]Connected sock=10 [07:35:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 19 1F 07 01 65 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B8 38 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 93 01 00 35 04 06 00 16 3E 3E 32 26 D9 64 69 BD AD C9 72 D3 10 [07:35:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BA FD 47 00 A0 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 35 30 39 33 10 04 04 00 A9 93 01 00 F4 03 04 00 45 DF 70 66 B6 04 01 00 00 BD 3C A3 D6 60 4F A1 EA [07:35:17]CommunicateWithHost err = 0 [07:35:17]CheckOFDResponse [07:35:17]1017 (14) - 77093643461234 [07:35:17]1041 (16) - 0000000000875093 [07:35:17]1040 (4) - 103337 [07:35:17]1012 (4) - 18.06.2024 01:13 [07:35:17]1206 (1) - 0 [07:35:17]OFD Sender: Remove packet 103337 [07:35:17]ProducePacketName [07:35:17]name=ofd_packets/00103337 [07:35:17]NVStorageDeleteData [07:35:17]Write to MH i2c: 01 00 00 54 3D 91 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 54 3D 00 00 00 00 00 C8 0C 6C [07:35:17]RasterBufferAndPrint [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]line [07:35:17]written 0, free lines is 3279 [07:35:17]MH_Cut [07:35:17]Write to MH i2c: D1 01 00 5B 3D 01 6A [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: D1 01 00 5B 3D 00 69 [07:35:17]Write to MH i2c: 01 00 00 5C 3D 99 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]OFD Sender: No OFD packet to send [07:35:18]*** Cut start [07:35:18]*** Partial cut [07:35:18]*** CUTSNS_PIN = 1 [07:35:18]*** CUTSNS_PIN = 0 [07:35:18]*** Brake cut motor [07:35:18]Read from MH i2c: 01 [07:35:18]MH_I2C_Read... [07:35:18]*** Stop cut motor [07:35:18]*** Cut end [07:35:18]Read from MH i2c: 01 07 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: 01 07 00 5C 3D 00 00 00 00 00 FF 0F AE [07:35:18]process_action close_receipt done [07:35:18]requested_data is exist [07:35:18]produce_requested_data [07:35:18]requested_item fm.sn is exist - process it [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 11 00 00 [07:35:18]Write to MH i2c: E2 08 00 5D 3D 80 11 00 00 00 00 00 00 14 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 17 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 17 00 5D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [07:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:35:18]wFMCommunicate OK [07:35:18]requested_item fd.num is exist - process it [07:35:18]SAM_PROTO_GetFieldsCounters [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 13 00 00 [07:35:18]Write to MH i2c: E2 08 00 5E 3D 80 13 00 00 00 00 00 00 17 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 62 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 62 00 5E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [07:35:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_GetFieldsCounters done [07:35:19]requested_item shift.num is exist - process it [07:35:19]requested_item shift.opened is exist - process it [07:35:19]req_shift_opened [07:35:19]FM_GetShiftState [07:35:19]SAM_PROTO_GetShiftState [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 13 01 00 [07:35:19]Write to MH i2c: E2 08 00 5F 3D 80 13 01 00 00 00 00 00 19 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 5F 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [07:35:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_GetShiftState done [07:35:19]FM_GetShiftState done [07:35:19]req_shift_opened done [07:35:19]requested_item shift.open_date is exist - process it [07:35:19]req_shift_open_date [07:35:19]req_shift_open_date done [07:35:19]produce_requested_data done [07:35:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103337,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [07:35:19]process_action_free close_receipt [07:35:19]json_value_free [07:35:19]json_value_free done [07:35:19]process_json_proto returns [07:35:19]Send response to host [07:35:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103337,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [07:35:19]free response buf [07:35:19]execute_script done [07:35:19]execute_script returns [07:35:19]free content buf [07:35:19]Sock 7.Close socket [07:35:19]Sock 7.Thread stoped [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:57]accept exits with 9 [07:48:57]New connection [07:48:57]New thread 3067084132 created [07:48:57]Thread 3067227492 joined [07:48:57]Waiting for new connection... [07:48:57] Sock 9.Parse request [07:48:57]Sock 9.Check first char [07:48:57]Sock 9.First char is OK [07:48:57]request: POST /json_proto HTTP/1.0 [07:48:57]Method: POST [07:48:57]URL: /json_proto [07:48:57]Method is POST - this is cgi request [07:48:57]url: /json_proto [07:48:57]query_string will be loaded in cgi processing [07:48:57]execute_cgi json_proto POST (null) [07:48:57]execute_cgi path=json_proto method=POST [07:48:57]POST find Content-Length [07:48:57]Host: 172.17.38.133:8080 [07:48:57]Content-Length: 687 [07:48:57]Content-Type: application/json [07:48:57] [07:48:57]POST finish read [07:48:57]Found Content-Length = 687 [07:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:57]execute_script... [07:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:57]POST & json_proto [07:48:57]process_json_proto [07:48:57]json parsed OK: [07:48:57]protocol is kg_v1.0 [07:48:57]action value=close_receipt [07:48:57]process_action close_receipt [07:48:57]cmd_close_receipt [07:48:57]MH_GetDate [07:48:57]Write to MH i2c: F0 00 00 60 3D 8C [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 09 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 09 00 60 3D 00 EF 3B 71 66 BD 8F 7C 64 C2 [07:48:57]GetLastDocTimeStamp 1718696120 [07:48:57]current date 1718696943 [07:48:57]FM_GetShiftState [07:48:57]SAM_PROTO_GetShiftState [07:48:57]wFMCommunicate request_size=4 [07:48:57]MH_SAM_APDU [07:48:57]CAPDU: 80 13 01 00 [07:48:57]Write to MH i2c: E2 08 00 61 3D 80 13 01 00 00 00 00 00 1B [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:57]Read from MH i2c: E2 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 0E 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 0E 00 61 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [07:48:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:48:57]wFMCommunicate OK [07:48:57]SAM_PROTO_GetShiftState done [07:48:57]FM_GetShiftState done [07:48:57]opened in 1718670284 [07:48:57]opened+sec_in_day 1718756684 [07:48:57]quantity*price = 300056 [07:48:57]sum+1 = 300057 [07:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 22 18.06.2024 07:49 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103338 ФПД: 160324826573417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T074903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103338&fm=160324826573417&tin=02508201610067®Number=0000000000092785&sum=300000 [07:48:58]StoreToDocumentArchive [07:48:58]shift 352 fd 103338 [07:48:58]save to /storage/0352/doc_00103338 [07:48:58]save last doc name /storage/0352/doc_00103338 to /storage/kkm_last_doc_name [07:48:58]save OK [07:48:58]Clear old archive folders... [07:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:48:58]tlvbuf is 01390B10 [07:48:58]SAM_PROTO_ClearQueue [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 09 00 00 [07:48:58]Write to MH i2c: E2 08 00 6E 3D 80 09 00 00 00 00 00 00 1D [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 6E 3D 00 90 00 1F [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]SAM_PROTO_ClearQueue done [07:48:58]KKMCreateOFDPacket [07:48:58]OFDProtocolAddRootSTLVToBuf [07:48:58]FM_MakeSignedData [07:48:58]FM_MakeSignedData [07:48:58]SAM_PROTO_SignData [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 01 02 [07:48:58]Write to MH i2c: E2 08 00 6F 3D 80 0D 01 02 00 00 00 00 25 [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 6F 3D 00 90 00 20 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=255 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 3B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 93 01 00 35 04 06 00 [07:48:58]Write to MH i2c: E2 02 01 70 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 3B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 93 01 00 35 04 06 00 00 00 1F [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 70 3D 00 90 00 21 [07:48:59]RAPDU: 90 00 [07:48:59]wFMCommunicate OK [07:48:59]wFMCommunicate request_size=11 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 0D 02 02 06 91 D0 88 56 2A 69 [07:48:59]Write to MH i2c: E2 0E 00 71 3D 80 0D 02 02 06 00 91 D0 88 56 2A 69 00 00 06 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 71 3D 00 90 00 22 [07:48:59]RAPDU: 90 00 [07:48:59]wFMCommunicate OK [07:48:59]wFMCommunicate request_size=4 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 0D 03 02 [07:48:59]Write to MH i2c: E2 08 00 72 3D 80 0D 03 02 00 00 00 00 2A [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 0B 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 0B 00 72 3D 00 93 71 87 FF AE 01 61 FD 90 00 C2 [07:48:59]RAPDU: 93 71 87 FF AE 01 61 FD 90 00 [07:48:59]wFMCommunicate OK [07:48:59]SAM_PROTO_SignData done [07:48:59]FM_MakeSignedData done [07:48:59]CreateOFDProtocolMessage [07:48:59]wFMCommunicate request_size=4 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 11 00 00 [07:48:59]Write to MH i2c: E2 08 00 73 3D 80 11 00 00 00 00 00 00 2A [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 17 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 17 00 73 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [07:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:48:59]wFMCommunicate OK [07:48:59]CreateOFDProtocolMessage done [07:48:59]OFDSenderStorePacket 103338 [07:48:59]StoreOFDPacket docnum=103338 [07:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6D 8E 08 01 B8 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 3B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 93 01 00 35 04 06 00 91 D0 88 56 2A 69 93 71 87 FF AE 01 61 FD [07:48:59]CheckFolder [07:48:59]dirname=/storage/ofd_packets [07:48:59]CheckFolder done [07:48:59]ProducePacketName [07:48:59]name=ofd_packets/00103338 [07:48:59]NVStorageSaveData ofd_packets/00103338 [07:48:59]File name is /storage/ofd_packets/00103338 [07:48:59]Write 302 bytes [07:48:59]NVStorageSaveData done [07:48:59]OFDSenderStorePacket done [07:48:59]KKMCreateOFDPacket done [07:48:59]NVStorageSaveData kkm_last_timestamp [07:48:59]File name is /storage/kkm_last_timestamp [07:48:59]Write 4 bytes [07:48:59]NVStorageSaveData done [07:48:59]ExternCall_PrintAddStr [07:48:59]wPrintStart [07:48:59]Write to MH i2c: 01 00 00 74 3D B1 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 74 3D 00 00 00 00 00 FF 0F C6 [07:48:59]RasterBufferAndPrint [07:48:59]line Счет N : (1)672474 [07:48:59]line ИНН: 02508201610067 [07:48:59]line Контрольно-Кассовый Чек [07:48:59]line ПРОДАЖА [07:48:59]line ТРК (МРК, ГНК) : 21 [07:48:59]line Товар: 2710194210 [07:48:59]line ДТ(л)-К-5 [07:48:59]line 41.160 * 72.90 [07:48:59]line = 3000.56 [07:48:59]line НДС 12% НСП 1% [07:48:59]line > о реализуемом товаре [07:48:59]line ОКРУГЛЕНИЕ: -0.56 [07:48:59]line ИТОГО: 3000.00 [07:48:59]line Внесено: 3000.00 [07:48:59]line СДАЧА: 0.00 [07:48:59]line НСП 1% : 26.55 [07:48:59]line НДС 12% : 318.64 [07:48:59]line Наличными: 3000.00 [07:48:59]line Безнал.: 0.00 [07:48:59]line Место: АЗС № 120 "Партнер Нефть" [07:48:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:48:59]line СНО: Общий режим [07:48:59]line Чек 22 18.06.2024 07:49 [07:48:59]line Смена: 352 ФФД: 1.0 [07:48:59]line ЗНМ: 0300000164 [07:48:59]line РНМ: 0000000000092785 [07:48:59]line Версия ККМ: 001 [07:48:59]line ФМ: 0000000000875093 [07:48:59]line ФД: 103338 [07:48:59]line ФПД: 160324826573417 [07:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T074903&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103338&fm=160324826573417&tin=02508201610067®Number=0000000000092785&sum=300000 [07:48:59]OFD Sender: Processing packet 103338 [packets to send 17, broken 16] [07:48:59]ProducePacketName [07:48:59]name=ofd_packets/00103338 [07:48:59]OFD Sender: To server: pG, [07:48:59]CommunicateWithHost lk.salyk.kg:30040 [07:48:59]ConnectInit lk.salyk.kg [07:48:59]written 0, free lines is 4095 [07:48:59]Connected sock=10 [07:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6D 8E 08 01 B8 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 3B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 93 01 00 35 04 06 00 91 D0 88 56 2A 69 93 71 87 FF AE 01 61 FD [07:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C0 17 47 00 1B FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 93 01 00 F4 03 04 00 7C E2 70 66 B6 04 01 00 00 7C D1 11 E7 B9 E5 DA 85 [07:49:00]CommunicateWithHost err = 0 [07:49:00]CheckOFDResponse [07:49:00]1017 (14) - 77093643461234 [07:49:00]1041 (16) - 0000000000875093 [07:49:00]1040 (4) - 103338 [07:49:00]1012 (4) - 18.06.2024 01:27 [07:49:00]1206 (1) - 0 [07:49:00]OFD Sender: Remove packet 103338 [07:49:00]ProducePacketName [07:49:00]name=ofd_packets/00103338 [07:49:00]NVStorageDeleteData [07:49:00]Write to MH i2c: 01 00 00 9F 3D DC [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 07 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 07 00 9F 3D 00 00 00 00 00 CE 0C BD [07:49:00]RasterBufferAndPrint [07:49:00]line [07:49:00]line [07:49:00]line [07:49:00]line [07:49:00]line [07:49:00]written 0, free lines is 3285 [07:49:00]MH_Cut [07:49:00]Write to MH i2c: D1 01 00 A6 3D 01 B5 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: D1 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: D1 01 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: D1 01 00 A6 3D 00 B4 [07:49:00]Write to MH i2c: 01 00 00 A7 3D E4 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]OFD Sender: No OFD packet to send [07:49:00]*** Cut start [07:49:00]*** Partial cut [07:49:00]*** CUTSNS_PIN = 1 [07:49:01]*** CUTSNS_PIN = 0 [07:49:01]*** Brake cut motor [07:49:01]Read from MH i2c: 01 [07:49:01]MH_I2C_Read... [07:49:01]*** Stop cut motor [07:49:01]*** Cut end [07:49:01]Read from MH i2c: 01 07 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: 01 07 00 A7 3D 00 00 00 00 00 FF 0F F9 [07:49:01]process_action close_receipt done [07:49:01]requested_data is exist [07:49:01]produce_requested_data [07:49:01]requested_item fm.sn is exist - process it [07:49:01]wFMCommunicate request_size=4 [07:49:01]MH_SAM_APDU [07:49:01]CAPDU: 80 11 00 00 [07:49:01]Write to MH i2c: E2 08 00 A8 3D 80 11 00 00 00 00 00 00 5F [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:01]Read from MH i2c: E2 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 17 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 17 00 A8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [07:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:49:01]wFMCommunicate OK [07:49:01]requested_item fd.num is exist - process it [07:49:01]SAM_PROTO_GetFieldsCounters [07:49:01]wFMCommunicate request_size=4 [07:49:01]MH_SAM_APDU [07:49:01]CAPDU: 80 13 00 00 [07:49:01]Write to MH i2c: E2 08 00 A9 3D 80 13 00 00 00 00 00 00 62 [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:01]Read from MH i2c: E2 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 62 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 62 00 A9 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [07:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:01]wFMCommunicate OK [07:49:01]SAM_PROTO_GetFieldsCounters done [07:49:01]requested_item shift.num is exist - process it [07:49:01]requested_item shift.opened is exist - process it [07:49:01]req_shift_opened [07:49:01]FM_GetShiftState [07:49:01]SAM_PROTO_GetShiftState [07:49:01]wFMCommunicate request_size=4 [07:49:01]MH_SAM_APDU [07:49:01]CAPDU: 80 13 01 00 [07:49:01]Write to MH i2c: E2 08 00 AA 3D 80 13 01 00 00 00 00 00 64 [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:01]Read from MH i2c: E2 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 0E 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: E2 0E 00 AA 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [07:49:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [07:49:01]wFMCommunicate OK [07:49:01]SAM_PROTO_GetShiftState done [07:49:01]FM_GetShiftState done [07:49:01]req_shift_opened done [07:49:01]requested_item shift.open_date is exist - process it [07:49:01]req_shift_open_date [07:49:01]req_shift_open_date done [07:49:01]produce_requested_data done [07:49:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103338,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [07:49:01]process_action_free close_receipt [07:49:01]json_value_free [07:49:01]json_value_free done [07:49:01]process_json_proto returns [07:49:01]Send response to host [07:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103338,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [07:49:01]free response buf [07:49:01]execute_script done [07:49:01]execute_script returns [07:49:01]free content buf [07:49:01]Sock 9.Close socket [07:49:01]Sock 9.Thread stoped [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:01:58]accept exits with 7 [08:01:58]New connection [08:01:58]New thread 3067227492 created [08:01:58]Thread 3067084132 joined [08:01:58]Waiting for new connection... [08:01:58] Sock 7.Parse request [08:01:58]Sock 7.Check first char [08:01:58]Sock 7.First char is OK [08:01:58]request: POST /json_proto HTTP/1.0 [08:01:58]Method: POST [08:01:58]URL: /json_proto [08:01:58]Method is POST - this is cgi request [08:01:58]url: /json_proto [08:01:58]query_string will be loaded in cgi processing [08:01:58]execute_cgi json_proto POST (null) [08:01:58]execute_cgi path=json_proto method=POST [08:01:58]POST find Content-Length [08:01:58]Host: 172.17.38.133:8080 [08:01:58]Content-Length: 692 [08:01:58]Content-Type: application/json [08:01:58] [08:01:58]POST finish read [08:01:58]Found Content-Length = 692 [08:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 192.050, "sum" : 14000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 14000.00, "total" : 14000.00, "payments": [ { "type": 0, "sum" : 14000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:58]execute_script... [08:01:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 192.050, "sum" : 14000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 14000.00, "total" : 14000.00, "payments": [ { "type": 0, "sum" : 14000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:58]POST & json_proto [08:01:58]process_json_proto [08:01:58]json parsed OK: [08:01:58]protocol is kg_v1.0 [08:01:58]action value=close_receipt [08:01:58]process_action close_receipt [08:01:58]cmd_close_receipt [08:01:58]MH_GetDate [08:01:58]Write to MH i2c: F0 00 00 AB 3D D7 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: F0 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: F0 09 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: F0 09 00 AB 3D 00 FC 3E 71 66 BD 8F 7C 64 1D [08:01:58]GetLastDocTimeStamp 1718696943 [08:01:58]current date 1718697724 [08:01:58]FM_GetShiftState [08:01:58]SAM_PROTO_GetShiftState [08:01:58]wFMCommunicate request_size=4 [08:01:58]MH_SAM_APDU [08:01:58]CAPDU: 80 13 01 00 [08:01:58]Write to MH i2c: E2 08 00 AC 3D 80 13 01 00 00 00 00 00 66 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:58]Read from MH i2c: E2 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 0E 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: E2 0E 00 AC 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [08:01:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:01:58]wFMCommunicate OK [08:01:58]SAM_PROTO_GetShiftState done [08:01:58]FM_GetShiftState done [08:01:58]opened in 1718670284 [08:01:58]opened+sec_in_day 1718756684 [08:01:58]quantity*price = 1400044 [08:01:58]sum+1 = 1400046 [08:01:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 14000.00 Внесено: 14000.00 СДАЧА: 0.00 НСП 1% : 123.90 НДС 12% : 1486.77 Наличными: 14000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 18.06.2024 08:02 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103339 ФПД: 222110917433853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T080204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103339&fm=222110917433853&tin=02508201610067®Number=0000000000092785&sum=1400000 [08:01:59]StoreToDocumentArchive [08:01:59]shift 352 fd 103339 [08:01:59]save to /storage/0352/doc_00103339 [08:01:59]save last doc name /storage/0352/doc_00103339 to /storage/kkm_last_doc_name [08:01:59]save OK [08:01:59]Clear old archive folders... [08:01:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:59]tlvbuf is 013E1B90 [08:01:59]SAM_PROTO_ClearQueue [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 09 00 00 [08:01:59]Write to MH i2c: E2 08 00 B9 3D 80 09 00 00 00 00 00 00 68 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 B9 3D 00 90 00 6A [08:02:00]RAPDU: 90 00 [08:02:00]wFMCommunicate OK [08:02:00]SAM_PROTO_ClearQueue done [08:02:00]KKMCreateOFDPacket [08:02:00]OFDProtocolAddRootSTLVToBuf [08:02:00]FM_MakeSignedData [08:02:00]FM_MakeSignedData [08:02:00]SAM_PROTO_SignData [08:02:00]wFMCommunicate request_size=4 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 0D 01 02 [08:02:00]Write to MH i2c: E2 08 00 BA 3D 80 0D 01 02 00 00 00 00 70 [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [08:02:00]RAPDU: 90 00 [08:02:00]wFMCommunicate OK [08:02:00]wFMCommunicate request_size=255 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 ED 5C 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5C 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 44 02 00 00 00 07 04 06 00 C0 5C 15 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 FC 3E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 93 01 00 35 04 06 00 [08:02:00]Write to MH i2c: E2 02 01 BB 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 ED 5C 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5C 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 44 02 00 00 00 07 04 06 00 C0 5C 15 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 FC 3E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 93 01 00 35 04 06 00 00 00 9C [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [08:02:00]RAPDU: 90 00 [08:02:00]wFMCommunicate OK [08:02:00]wFMCommunicate request_size=11 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 0D 02 02 06 CA 02 3A 55 99 FD [08:02:00]Write to MH i2c: E2 0E 00 BC 3D 80 0D 02 02 06 00 CA 02 3A 55 99 FD 00 00 70 [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 03 00 BC 3D 00 90 00 6D [08:02:00]RAPDU: 90 00 [08:02:00]wFMCommunicate OK [08:02:00]wFMCommunicate request_size=4 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 0D 03 02 [08:02:00]Write to MH i2c: E2 08 00 BD 3D 80 0D 03 02 00 00 00 00 75 [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 0B 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 0B 00 BD 3D 00 9E 90 A9 FF 63 81 C8 05 90 00 FD [08:02:00]RAPDU: 9E 90 A9 FF 63 81 C8 05 90 00 [08:02:00]wFMCommunicate OK [08:02:00]SAM_PROTO_SignData done [08:02:00]FM_MakeSignedData done [08:02:00]CreateOFDProtocolMessage [08:02:00]wFMCommunicate request_size=4 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 11 00 00 [08:02:00]Write to MH i2c: E2 08 00 BE 3D 80 11 00 00 00 00 00 00 75 [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 17 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 17 00 BE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [08:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:02:00]wFMCommunicate OK [08:02:00]CreateOFDProtocolMessage done [08:02:00]OFDSenderStorePacket 103339 [08:02:00]StoreOFDPacket docnum=103339 [08:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC E1 08 01 DD 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 ED 5C 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5C 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 44 02 00 00 00 07 04 06 00 C0 5C 15 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 FC 3E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 93 01 00 35 04 06 00 CA 02 3A 55 99 FD 9E 90 A9 FF 63 81 C8 05 [08:02:00]CheckFolder [08:02:00]dirname=/storage/ofd_packets [08:02:00]CheckFolder done [08:02:00]ProducePacketName [08:02:00]name=ofd_packets/00103339 [08:02:00]NVStorageSaveData ofd_packets/00103339 [08:02:00]File name is /storage/ofd_packets/00103339 [08:02:00]Write 302 bytes [08:02:00]NVStorageSaveData done [08:02:00]OFDSenderStorePacket done [08:02:00]KKMCreateOFDPacket done [08:02:00]NVStorageSaveData kkm_last_timestamp [08:02:00]File name is /storage/kkm_last_timestamp [08:02:00]Write 4 bytes [08:02:00]NVStorageSaveData done [08:02:00]ExternCall_PrintAddStr [08:02:00]wPrintStart [08:02:00]Write to MH i2c: 01 00 00 BF 3D FC [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: 01 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: 01 07 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: 01 07 00 BF 3D 00 00 00 00 00 FF 0F 11 [08:02:00]RasterBufferAndPrint [08:02:00]line Счет N : (1)672475 [08:02:00]line ИНН: 02508201610067 [08:02:00]line Контрольно-Кассовый Чек [08:02:00]line ПРОДАЖА [08:02:00]line ТРК (МРК, ГНК) : 11 [08:02:00]line Товар: 2710194210 [08:02:00]line ДТ(л)-К-5 [08:02:00]line 192.050 * 72.90 [08:02:00]line = 14000.45 [08:02:00]line НДС 12% НСП 1% [08:02:00]line > о реализуемом товаре [08:02:00]line ОКРУГЛЕНИЕ: -0.45 [08:02:00]line ИТОГО: 14000.00 [08:02:00]line Внесено: 14000.00 [08:02:00]line СДАЧА: 0.00 [08:02:00]line НСП 1% : 123.90 [08:02:00]line НДС 12% : 1486.77 [08:02:00]line Наличными: 14000.00 [08:02:00]line Безнал.: 0.00 [08:02:00]line Место: АЗС № 120 "Партнер Нефть" [08:02:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:02:00]line СНО: Общий режим [08:02:00]line Чек 23 18.06.2024 08:02 [08:02:00]line Смена: 352 ФФД: 1.0 [08:02:00]line ЗНМ: 0300000164 [08:02:00]line РНМ: 0000000000092785 [08:02:00]line Версия ККМ: 001 [08:02:00]line ФМ: 0000000000875093 [08:02:00]line ФД: 103339 [08:02:00]line ФПД: 222110917433853 [08:02:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T080204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103339&fm=222110917433853&tin=02508201610067®Number=0000000000092785&sum=1400000 [08:02:00]OFD Sender: Processing packet 103339 [packets to send 17, broken 16] [08:02:00]ProducePacketName [08:02:00]name=ofd_packets/00103339 [08:02:00]OFD Sender: To server: pG, [08:02:00]CommunicateWithHost lk.salyk.kg:30040 [08:02:00]ConnectInit lk.salyk.kg [08:02:00]written 0, free lines is 4095 [08:02:00]Connected sock=10 [08:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC E1 08 01 DD 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 ED 5C 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5C 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 44 02 00 00 00 07 04 06 00 C0 5C 15 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 FC 3E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 93 01 00 35 04 06 00 CA 02 3A 55 99 FD 9E 90 A9 FF 63 81 C8 05 [08:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA A6 47 00 DD 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 35 30 39 33 10 04 04 00 AB 93 01 00 F4 03 04 00 89 E5 70 66 B6 04 01 00 00 1A E1 A9 1F 45 9A 60 86 [08:02:01]CommunicateWithHost err = 0 [08:02:01]CheckOFDResponse [08:02:01]1017 (14) - 77093643461234 [08:02:01]1041 (16) - 0000000000875093 [08:02:01]1040 (4) - 103339 [08:02:01]1012 (4) - 18.06.2024 01:40 [08:02:01]1206 (1) - 0 [08:02:01]OFD Sender: Remove packet 103339 [08:02:01]ProducePacketName [08:02:01]name=ofd_packets/00103339 [08:02:01]NVStorageDeleteData [08:02:01]Write to MH i2c: 01 00 00 EA 3D 27 [08:02:01]Write i2c OK [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: 01 [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: 01 07 00 [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: 01 07 00 EA 3D 00 00 00 00 00 E9 0C 23 [08:02:01]RasterBufferAndPrint [08:02:01]line [08:02:01]line [08:02:01]line [08:02:01]line [08:02:01]line [08:02:01]written 0, free lines is 3311 [08:02:01]MH_Cut [08:02:01]Write to MH i2c: D1 01 00 F1 3D 01 00 [08:02:01]Write i2c OK [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: D1 [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: D1 01 00 [08:02:01]MH_I2C_Read... [08:02:01]Read from MH i2c: D1 01 00 F1 3D 00 FF [08:02:01]Write to MH i2c: 01 00 00 F2 3D 2F [08:02:01]Write i2c OK [08:02:01]MH_I2C_Read... [08:02:01]OFD Sender: No OFD packet to send [08:02:02]*** Cut start [08:02:02]*** Partial cut [08:02:02]*** CUTSNS_PIN = 1 [08:02:02]*** CUTSNS_PIN = 0 [08:02:02]*** Brake cut motor [08:02:02]Read from MH i2c: 01 [08:02:02]MH_I2C_Read... [08:02:02]*** Stop cut motor [08:02:02]*** Cut end [08:02:02]Read from MH i2c: 01 07 00 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: 01 07 00 F2 3D 00 00 00 00 00 FF 0F 44 [08:02:02]process_action close_receipt done [08:02:02]requested_data is exist [08:02:02]produce_requested_data [08:02:02]requested_item fm.sn is exist - process it [08:02:02]wFMCommunicate request_size=4 [08:02:02]MH_SAM_APDU [08:02:02]CAPDU: 80 11 00 00 [08:02:02]Write to MH i2c: E2 08 00 F3 3D 80 11 00 00 00 00 00 00 AA [08:02:02]Write i2c OK [08:02:02]MH_I2C_Read... [08:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:02]Read from MH i2c: E2 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 17 00 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 17 00 F3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [08:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:02:02]wFMCommunicate OK [08:02:02]requested_item fd.num is exist - process it [08:02:02]SAM_PROTO_GetFieldsCounters [08:02:02]wFMCommunicate request_size=4 [08:02:02]MH_SAM_APDU [08:02:02]CAPDU: 80 13 00 00 [08:02:02]Write to MH i2c: E2 08 00 F4 3D 80 13 00 00 00 00 00 00 AD [08:02:02]Write i2c OK [08:02:02]MH_I2C_Read... [08:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:02]Read from MH i2c: E2 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 62 00 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 62 00 F4 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:02]wFMCommunicate OK [08:02:02]SAM_PROTO_GetFieldsCounters done [08:02:02]requested_item shift.num is exist - process it [08:02:02]requested_item shift.opened is exist - process it [08:02:02]req_shift_opened [08:02:02]FM_GetShiftState [08:02:02]SAM_PROTO_GetShiftState [08:02:02]wFMCommunicate request_size=4 [08:02:02]MH_SAM_APDU [08:02:02]CAPDU: 80 13 01 00 [08:02:02]Write to MH i2c: E2 08 00 F5 3D 80 13 01 00 00 00 00 00 AF [08:02:02]Write i2c OK [08:02:02]MH_I2C_Read... [08:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:02]Read from MH i2c: E2 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 0E 00 [08:02:02]MH_I2C_Read... [08:02:02]Read from MH i2c: E2 0E 00 F5 3D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 30 [08:02:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:02:02]wFMCommunicate OK [08:02:02]SAM_PROTO_GetShiftState done [08:02:02]FM_GetShiftState done [08:02:02]req_shift_opened done [08:02:02]requested_item shift.open_date is exist - process it [08:02:02]req_shift_open_date [08:02:02]req_shift_open_date done [08:02:02]produce_requested_data done [08:02:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103339,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:02:02]process_action_free close_receipt [08:02:02]json_value_free [08:02:02]json_value_free done [08:02:02]process_json_proto returns [08:02:02]Send response to host [08:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103339,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:02:02]free response buf [08:02:02]execute_script done [08:02:02]execute_script returns [08:02:02]free content buf [08:02:02]Sock 7.Close socket [08:02:02]Sock 7.Thread stoped [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:09]accept exits with 9 [08:03:09]New connection [08:03:09]New thread 3067084132 created [08:03:09]Thread 3067227492 joined [08:03:09]Waiting for new connection... [08:03:09] Sock 9.Parse request [08:03:09]Sock 9.Check first char [08:03:09]Sock 9.First char is OK [08:03:09]request: POST /json_proto HTTP/1.0 [08:03:09]Method: POST [08:03:09]URL: /json_proto [08:03:09]Method is POST - this is cgi request [08:03:09]url: /json_proto [08:03:09]query_string will be loaded in cgi processing [08:03:09]execute_cgi json_proto POST (null) [08:03:09]execute_cgi path=json_proto method=POST [08:03:09]POST find Content-Length [08:03:09]Host: 172.17.38.133:8080 [08:03:09]Content-Length: 1200 [08:03:09]Content-Type: application/json [08:03:09] [08:03:09]POST finish read [08:03:09]Found Content-Length = 1200 [08:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672476\u000A18.06.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68698\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:09]execute_script... [08:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672476\u000A18.06.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68698\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:09]POST & json_proto [08:03:09]process_json_proto [08:03:09]json parsed OK: [08:03:09]protocol is kg_v1.0 [08:03:09]action value=print_text [08:03:09]process_action print_text [08:03:09]cmd_print_text [08:03:09]ExternCall_PrintAddStr [08:03:09]wPrintStart [08:03:09]Write to MH i2c: 01 00 00 F6 3D 33 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 F6 3D 00 00 00 00 00 FF 0F 48 [08:03:09]RasterBufferAndPrint [08:03:09]line *****ТОВАРНЫЙ ЧЕК***** [08:03:09]line АЗС 120 [08:03:09]line Партнер нефть [08:03:09]line 02508201610067 [08:03:09]line Кассир : Асанбаев Н. [08:03:09]line Счет N : (1)672476 [08:03:09]line 18.06.2024 07:40 [08:03:09]line ПРОДАЖА [08:03:09]line ТРК (МРК, ГНК): 21 [08:03:09]line Вид ГСМ : 2710194210 [08:03:09]line ДТ(л)-К-5 [08:03:09]line 80.000 x 72.90 [08:03:09]line ИТОГ: 5832.00 [08:03:09]line Тип оплаты: Талоны: Топливная Карта [08:03:09]line 68698 [08:03:09]line ______________________ [08:03:09]line (подпись) [08:03:09]written 0, free lines is 4095 [08:03:09]Write to MH i2c: 01 00 00 0A 3E 48 [08:03:09]Write i2c OK [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 [08:03:09]MH_I2C_Read... [08:03:09]Read from MH i2c: 01 07 00 0A 3E 00 00 00 00 00 12 0E 6F [08:03:09]RasterBufferAndPrint [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:09]line [08:03:10]written 0, free lines is 3604 [08:03:10]MH_Cut [08:03:10]Write to MH i2c: D1 01 00 11 3E 01 21 [08:03:10]Write i2c OK [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: D1 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: D1 01 00 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: D1 01 00 11 3E 00 20 [08:03:10]Write to MH i2c: 01 00 00 12 3E 50 [08:03:10]Write i2c OK [08:03:10]MH_I2C_Read... [08:03:10]*** Cut start [08:03:10]*** Partial cut [08:03:10]*** CUTSNS_PIN = 1 [08:03:10]*** CUTSNS_PIN = 0 [08:03:10]*** Brake cut motor [08:03:11]Read from MH i2c: 01 [08:03:11]MH_I2C_Read... [08:03:11]*** Stop cut motor [08:03:11]*** Cut end [08:03:11]Read from MH i2c: 01 07 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: 01 07 00 12 3E 00 00 00 00 00 FF 0F 65 [08:03:11]process_action print_text done [08:03:11]requested_data is exist [08:03:11]produce_requested_data [08:03:11]requested_item fm.sn is exist - process it [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 11 00 00 [08:03:11]Write to MH i2c: E2 08 00 13 3E 80 11 00 00 00 00 00 00 CB [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 17 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 17 00 13 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [08:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:03:11]wFMCommunicate OK [08:03:11]requested_item fd.num is exist - process it [08:03:11]SAM_PROTO_GetFieldsCounters [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 13 00 00 [08:03:11]Write to MH i2c: E2 08 00 14 3E 80 13 00 00 00 00 00 00 CE [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 62 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 62 00 14 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [08:03:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:11]wFMCommunicate OK [08:03:11]SAM_PROTO_GetFieldsCounters done [08:03:11]requested_item shift.num is exist - process it [08:03:11]requested_item shift.opened is exist - process it [08:03:11]req_shift_opened [08:03:11]FM_GetShiftState [08:03:11]SAM_PROTO_GetShiftState [08:03:11]wFMCommunicate request_size=4 [08:03:11]MH_SAM_APDU [08:03:11]CAPDU: 80 13 01 00 [08:03:11]Write to MH i2c: E2 08 00 15 3E 80 13 01 00 00 00 00 00 D0 [08:03:11]Write i2c OK [08:03:11]MH_I2C_Read... [08:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:11]Read from MH i2c: E2 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 0E 00 [08:03:11]MH_I2C_Read... [08:03:11]Read from MH i2c: E2 0E 00 15 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 51 [08:03:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:03:11]wFMCommunicate OK [08:03:11]SAM_PROTO_GetShiftState done [08:03:11]FM_GetShiftState done [08:03:11]req_shift_opened done [08:03:11]requested_item shift.open_date is exist - process it [08:03:11]req_shift_open_date [08:03:11]req_shift_open_date done [08:03:11]produce_requested_data done [08:03:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103339,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:03:11]process_action_free print_text [08:03:11]json_value_free [08:03:11]json_value_free done [08:03:11]process_json_proto returns [08:03:11]Send response to host [08:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103339,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:03:11]free response buf [08:03:11]execute_script done [08:03:11]execute_script returns [08:03:11]free content buf [08:03:11]Sock 9.Close socket [08:03:11]Sock 9.Thread stoped [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:41]accept exits with 7 [08:08:41]New connection [08:08:41]New thread 3067227492 created [08:08:41]Thread 3067084132 joined [08:08:41]Waiting for new connection... [08:08:41] Sock 7.Parse request [08:08:41]Sock 7.Check first char [08:08:41]Sock 7.First char is OK [08:08:41]request: POST /json_proto HTTP/1.0 [08:08:41]Method: POST [08:08:41]URL: /json_proto [08:08:41]Method is POST - this is cgi request [08:08:41]url: /json_proto [08:08:41]query_string will be loaded in cgi processing [08:08:41]execute_cgi json_proto POST (null) [08:08:41]execute_cgi path=json_proto method=POST [08:08:41]POST find Content-Length [08:08:41]Host: 172.17.38.133:8080 [08:08:41]Content-Length: 824 [08:08:41]Content-Type: application/json [08:08:41] [08:08:41]POST finish read [08:08:41]Found Content-Length = 824 [08:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:41]execute_script... [08:08:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:41]POST & json_proto [08:08:41]process_json_proto [08:08:41]json parsed OK: [08:08:41]protocol is kg_v1.0 [08:08:41]action value=close_receipt [08:08:41]process_action close_receipt [08:08:41]cmd_close_receipt [08:08:41]MH_GetDate [08:08:41]Write to MH i2c: F0 00 00 16 3E 43 [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: F0 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: F0 09 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: F0 09 00 16 3E 00 8F 40 71 66 BD 8F 7C 64 1E [08:08:41]GetLastDocTimeStamp 1718697724 [08:08:41]current date 1718698127 [08:08:41]FM_GetShiftState [08:08:41]SAM_PROTO_GetShiftState [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 13 01 00 [08:08:41]Write to MH i2c: E2 08 00 17 3E 80 13 01 00 00 00 00 00 D2 [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:42]Read from MH i2c: E2 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 [08:08:42]MH_I2C_Read... [08:08:42]Read from MH i2c: E2 0E 00 17 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 53 [08:08:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:08:42]wFMCommunicate OK [08:08:42]SAM_PROTO_GetShiftState done [08:08:42]FM_GetShiftState done [08:08:42]opened in 1718670284 [08:08:42]opened+sec_in_day 1718756684 [08:08:42]quantity*price = 145800 [08:08:42]sum+1 = 145801 [08:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1458.00 НСП 1% : 12.90 НДС 12% : 154.83 Наличными: 0.00 Безнал.: 1458.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 18.06.2024 08:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103340 ФПД: 56567813698626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T080847&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103340&fm=56567813698626&tin=02508201610067®Number=0000000000092785&sum=145800 [08:08:43]StoreToDocumentArchive [08:08:43]shift 352 fd 103340 [08:08:43]save to /storage/0352/doc_00103340 [08:08:43]save last doc name /storage/0352/doc_00103340 to /storage/kkm_last_doc_name [08:08:43]save OK [08:08:43]Clear old archive folders... [08:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:08:43]tlvbuf is 01383B30 [08:08:43]SAM_PROTO_ClearQueue [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 09 00 00 [08:08:43]Write to MH i2c: E2 08 00 24 3E 80 09 00 00 00 00 00 00 D4 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 24 3E 00 90 00 D6 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]SAM_PROTO_ClearQueue done [08:08:43]KKMCreateOFDPacket [08:08:43]OFDProtocolAddRootSTLVToBuf [08:08:43]FM_MakeSignedData [08:08:43]FM_MakeSignedData [08:08:43]SAM_PROTO_SignData [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 01 02 [08:08:43]Write to MH i2c: E2 08 00 25 3E 80 0D 01 02 00 00 00 00 DC [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 25 3E 00 90 00 D7 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]wFMCommunicate request_size=255 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8F 40 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 93 01 00 35 04 06 00 [08:08:43]Write to MH i2c: E2 02 01 26 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8F 40 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 93 01 00 35 04 06 00 00 00 99 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 26 3E 00 90 00 D8 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]wFMCommunicate request_size=11 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 02 02 06 33 72 B8 70 F4 42 [08:08:43]Write to MH i2c: E2 0E 00 27 3E 80 0D 02 02 06 00 33 72 B8 70 F4 42 00 00 EE [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 03 00 27 3E 00 90 00 D9 [08:08:43]RAPDU: 90 00 [08:08:43]wFMCommunicate OK [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 0D 03 02 [08:08:43]Write to MH i2c: E2 08 00 28 3E 80 0D 03 02 00 00 00 00 E1 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0B 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0B 00 28 3E 00 00 4B F1 A9 87 A7 20 5E 90 00 73 [08:08:43]RAPDU: 00 4B F1 A9 87 A7 20 5E 90 00 [08:08:43]wFMCommunicate OK [08:08:43]SAM_PROTO_SignData done [08:08:43]FM_MakeSignedData done [08:08:43]CreateOFDProtocolMessage [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 11 00 00 [08:08:43]Write to MH i2c: E2 08 00 29 3E 80 11 00 00 00 00 00 00 E1 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 17 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 17 00 29 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [08:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:08:43]wFMCommunicate OK [08:08:43]CreateOFDProtocolMessage done [08:08:43]OFDSenderStorePacket 103340 [08:08:43]StoreOFDPacket docnum=103340 [08:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A8 AF 08 01 FE 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8F 40 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 93 01 00 35 04 06 00 33 72 B8 70 F4 42 00 4B F1 A9 87 A7 20 5E [08:08:43]CheckFolder [08:08:43]dirname=/storage/ofd_packets [08:08:43]CheckFolder done [08:08:43]ProducePacketName [08:08:43]name=ofd_packets/00103340 [08:08:43]NVStorageSaveData ofd_packets/00103340 [08:08:43]File name is /storage/ofd_packets/00103340 [08:08:43]Write 302 bytes [08:08:43]NVStorageSaveData done [08:08:43]OFDSenderStorePacket done [08:08:43]KKMCreateOFDPacket done [08:08:43]NVStorageSaveData kkm_last_timestamp [08:08:43]File name is /storage/kkm_last_timestamp [08:08:43]Write 4 bytes [08:08:43]NVStorageSaveData done [08:08:43]ExternCall_PrintAddStr [08:08:43]wPrintStart [08:08:43]Write to MH i2c: 01 00 00 2A 3E 68 [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: 01 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: 01 07 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: 01 07 00 2A 3E 00 00 00 00 00 FF 0F 7D [08:08:43]RasterBufferAndPrint [08:08:43]line Счет N : (1)672477 [08:08:43]line ИНН: 02508201610067 [08:08:43]line Контрольно-Кассовый Чек [08:08:43]line ПРОДАЖА [08:08:43]line ТРК (МРК, ГНК) : 21 [08:08:43]line Товар: 2710194210 [08:08:43]line ДТ(л)-К-5 [08:08:43]line 20.000 * 72.90 [08:08:43]line = 1458.00 [08:08:43]line НДС 12% НСП 1% [08:08:43]line > о реализуемом товаре [08:08:43]line ИТОГО: 1458.00 [08:08:43]line НСП 1% : 12.90 [08:08:43]line НДС 12% : 154.83 [08:08:43]line Наличными: 0.00 [08:08:43]line Безнал.: 1458.00 [08:08:43]line Место: АЗС № 120 "Партнер Нефть" [08:08:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:08:43]line СНО: Общий режим [08:08:43]line Чек 24 18.06.2024 08:08 [08:08:43]line Смена: 352 ФФД: 1.0 [08:08:43]line ЗНМ: 0300000164 [08:08:43]line РНМ: 0000000000092785 [08:08:43]line Версия ККМ: 001 [08:08:43]line Платежная система: Бакай Банк [08:08:43]line ФМ: 0000000000875093 [08:08:43]line ФД: 103340 [08:08:43]line ФПД: 56567813698626 [08:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T080847&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103340&fm=56567813698626&tin=02508201610067®Number=0000000000092785&sum=145800 [08:08:44]written 0, free lines is 4095 [08:08:44]OFD Sender: Processing packet 103340 [packets to send 17, broken 16] [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00103340 [08:08:44]OFD Sender: To server: pG, [08:08:44]CommunicateWithHost lk.salyk.kg:30040 [08:08:44]ConnectInit lk.salyk.kg [08:08:44]Connected sock=10 [08:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A8 AF 08 01 FE 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8F 40 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 93 01 00 35 04 06 00 33 72 B8 70 F4 42 00 4B F1 A9 87 A7 20 5E [08:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A3 5A 47 00 DA 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 35 30 39 33 10 04 04 00 AC 93 01 00 F4 03 04 00 1C E7 70 66 B6 04 01 00 00 E2 41 E9 76 B1 4B C6 8E [08:08:44]CommunicateWithHost err = 0 [08:08:44]CheckOFDResponse [08:08:44]1017 (14) - 77093643461234 [08:08:44]1041 (16) - 0000000000875093 [08:08:44]1040 (4) - 103340 [08:08:44]1012 (4) - 18.06.2024 01:47 [08:08:44]1206 (1) - 0 [08:08:44]OFD Sender: Remove packet 103340 [08:08:44]ProducePacketName [08:08:44]name=ofd_packets/00103340 [08:08:44]NVStorageDeleteData [08:08:44]Write to MH i2c: 01 00 00 54 3E 92 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: 01 07 00 54 3E 00 00 00 00 00 F4 0C 99 [08:08:44]RasterBufferAndPrint [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]line [08:08:44]written 0, free lines is 3323 [08:08:44]MH_Cut [08:08:44]Write to MH i2c: D1 01 00 5B 3E 01 6B [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 01 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: D1 01 00 5B 3E 00 6A [08:08:44]Write to MH i2c: 01 00 00 5C 3E 9A [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]OFD Sender: No OFD packet to send [08:08:45]*** Cut start [08:08:45]*** Partial cut [08:08:45]*** CUTSNS_PIN = 1 [08:08:45]*** CUTSNS_PIN = 0 [08:08:45]*** Brake cut motor [08:08:45]Read from MH i2c: 01 [08:08:45]MH_I2C_Read... [08:08:45]*** Stop cut motor [08:08:45]*** Cut end [08:08:45]Read from MH i2c: 01 07 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 5C 3E 00 00 00 00 00 FF 0F AF [08:08:45]process_action close_receipt done [08:08:45]requested_data is exist [08:08:45]produce_requested_data [08:08:45]requested_item fm.sn is exist - process it [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 11 00 00 [08:08:45]Write to MH i2c: E2 08 00 5D 3E 80 11 00 00 00 00 00 00 15 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 5D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [08:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:08:45]wFMCommunicate OK [08:08:45]requested_item fd.num is exist - process it [08:08:45]SAM_PROTO_GetFieldsCounters [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 13 00 00 [08:08:45]Write to MH i2c: E2 08 00 5E 3E 80 13 00 00 00 00 00 00 18 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 62 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 62 00 5E 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [08:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_GetFieldsCounters done [08:08:46]requested_item shift.num is exist - process it [08:08:46]requested_item shift.opened is exist - process it [08:08:46]req_shift_opened [08:08:46]FM_GetShiftState [08:08:46]SAM_PROTO_GetShiftState [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 13 01 00 [08:08:46]Write to MH i2c: E2 08 00 5F 3E 80 13 01 00 00 00 00 00 1A [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0E 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0E 00 5F 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9B [08:08:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_GetShiftState done [08:08:46]FM_GetShiftState done [08:08:46]req_shift_opened done [08:08:46]requested_item shift.open_date is exist - process it [08:08:46]req_shift_open_date [08:08:46]req_shift_open_date done [08:08:46]produce_requested_data done [08:08:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103340,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:08:46]process_action_free close_receipt [08:08:46]json_value_free [08:08:46]json_value_free done [08:08:46]process_json_proto returns [08:08:46]Send response to host [08:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103340,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:08:46]free response buf [08:08:46]execute_script done [08:08:46]execute_script returns [08:08:46]free content buf [08:08:46]Sock 7.Close socket [08:08:46]Sock 7.Thread stoped [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:07]accept exits with 9 [08:11:07]New connection [08:11:07]New thread 3067084132 created [08:11:07]Thread 3067227492 joined [08:11:07]Waiting for new connection... [08:11:07] Sock 9.Parse request [08:11:07]Sock 9.Check first char [08:11:07]Sock 9.First char is OK [08:11:07]request: POST /json_proto HTTP/1.0 [08:11:07]Method: POST [08:11:07]URL: /json_proto [08:11:07]Method is POST - this is cgi request [08:11:07]url: /json_proto [08:11:07]query_string will be loaded in cgi processing [08:11:07]execute_cgi json_proto POST (null) [08:11:07]execute_cgi path=json_proto method=POST [08:11:07]POST find Content-Length [08:11:07]Host: 172.17.38.133:8080 [08:11:07]Content-Length: 1190 [08:11:07]Content-Type: application/json [08:11:07] [08:11:07]POST finish read [08:11:07]Found Content-Length = 1190 [08:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672478\u000A18.06.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787927\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:07]execute_script... [08:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672478\u000A18.06.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787927\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:07]POST & json_proto [08:11:07]process_json_proto [08:11:07]json parsed OK: [08:11:07]protocol is kg_v1.0 [08:11:07]action value=print_text [08:11:07]process_action print_text [08:11:07]cmd_print_text [08:11:07]ExternCall_PrintAddStr [08:11:07]wPrintStart [08:11:07]Write to MH i2c: 01 00 00 60 3E 9E [08:11:07]Write i2c OK [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: 01 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: 01 07 00 [08:11:07]MH_I2C_Read... [08:11:07]Read from MH i2c: 01 07 00 60 3E 00 00 00 00 00 FF 0F B3 [08:11:07]RasterBufferAndPrint [08:11:07]line *****ТОВАРНЫЙ ЧЕК***** [08:11:07]line АЗС 120 [08:11:07]line Партнер нефть [08:11:07]line 02508201610067 [08:11:07]line Кассир : Асанбаев Н. [08:11:07]line Счет N : (1)672478 [08:11:07]line 18.06.2024 07:48 [08:11:07]line ПРОДАЖА [08:11:07]line ТРК (МРК, ГНК): 11 [08:11:07]line Вид ГСМ : 2710194210 [08:11:07]line ДТ(л)-К-5 [08:11:07]line 20.000 x 72.90 [08:11:07]line ИТОГ: 1458.00 [08:11:07]line Тип оплаты: Талоны: Партнер нефть [08:11:07]line 3787927 [08:11:07]line ______________________ [08:11:07]line (подпись) [08:11:07]written 0, free lines is 4095 [08:11:08]Write to MH i2c: 01 00 00 74 3E B2 [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: 01 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: 01 07 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: 01 07 00 74 3E 00 00 00 00 00 12 0E D9 [08:11:08]RasterBufferAndPrint [08:11:08]line [08:11:08]line [08:11:08]line [08:11:08]line [08:11:08]line [08:11:08]written 0, free lines is 3604 [08:11:08]MH_Cut [08:11:08]Write to MH i2c: D1 01 00 7B 3E 01 8B [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: D1 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: D1 01 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: D1 01 00 7B 3E 00 8A [08:11:08]Write to MH i2c: 01 00 00 7C 3E BA [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]*** Cut start [08:11:08]*** Partial cut [08:11:08]*** CUTSNS_PIN = 1 [08:11:08]*** CUTSNS_PIN = 0 [08:11:08]*** Brake cut motor [08:11:09]Read from MH i2c: 01 [08:11:09]MH_I2C_Read... [08:11:09]*** Stop cut motor [08:11:09]*** Cut end [08:11:09]Read from MH i2c: 01 07 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: 01 07 00 7C 3E 00 00 00 00 00 FF 0F CF [08:11:09]process_action print_text done [08:11:09]requested_data is exist [08:11:09]produce_requested_data [08:11:09]requested_item fm.sn is exist - process it [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 11 00 00 [08:11:09]Write to MH i2c: E2 08 00 7D 3E 80 11 00 00 00 00 00 00 35 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 17 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 17 00 7D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [08:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:11:09]wFMCommunicate OK [08:11:09]requested_item fd.num is exist - process it [08:11:09]SAM_PROTO_GetFieldsCounters [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 13 00 00 [08:11:09]Write to MH i2c: E2 08 00 7E 3E 80 13 00 00 00 00 00 00 38 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 62 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 62 00 7E 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [08:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_GetFieldsCounters done [08:11:09]requested_item shift.num is exist - process it [08:11:09]requested_item shift.opened is exist - process it [08:11:09]req_shift_opened [08:11:09]FM_GetShiftState [08:11:09]SAM_PROTO_GetShiftState [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 13 01 00 [08:11:09]Write to MH i2c: E2 08 00 7F 3E 80 13 01 00 00 00 00 00 3A [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 0E 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 0E 00 7F 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [08:11:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_GetShiftState done [08:11:09]FM_GetShiftState done [08:11:09]req_shift_opened done [08:11:09]requested_item shift.open_date is exist - process it [08:11:09]req_shift_open_date [08:11:09]req_shift_open_date done [08:11:09]produce_requested_data done [08:11:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103340,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:11:09]process_action_free print_text [08:11:09]json_value_free [08:11:09]json_value_free done [08:11:09]process_json_proto returns [08:11:09]Send response to host [08:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103340,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:11:09]free response buf [08:11:09]execute_script done [08:11:09]execute_script returns [08:11:09]free content buf [08:11:09]Sock 9.Close socket [08:11:09]Sock 9.Thread stoped [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:52]accept exits with 7 [08:13:52]New connection [08:13:52]New thread 3067227492 created [08:13:52]Thread 3067084132 joined [08:13:52]Waiting for new connection... [08:13:52] Sock 7.Parse request [08:13:52]Sock 7.Check first char [08:13:52]Sock 7.First char is OK [08:13:52]request: POST /json_proto HTTP/1.0 [08:13:52]Method: POST [08:13:52]URL: /json_proto [08:13:52]Method is POST - this is cgi request [08:13:52]url: /json_proto [08:13:52]query_string will be loaded in cgi processing [08:13:52]execute_cgi json_proto POST (null) [08:13:52]execute_cgi path=json_proto method=POST [08:13:52]POST find Content-Length [08:13:52]Host: 172.17.38.133:8080 [08:13:52]Content-Length: 687 [08:13:52]Content-Type: application/json [08:13:52] [08:13:52]POST finish read [08:13:52]Found Content-Length = 687 [08:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 48.590, "sum" : 3542.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3542.00, "total" : 3542.00, "payments": [ { "type": 0, "sum" : 3542.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:52]execute_script... [08:13:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 48.590, "sum" : 3542.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3542.00, "total" : 3542.00, "payments": [ { "type": 0, "sum" : 3542.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:52]POST & json_proto [08:13:52]process_json_proto [08:13:52]json parsed OK: [08:13:52]protocol is kg_v1.0 [08:13:52]action value=close_receipt [08:13:52]process_action close_receipt [08:13:52]cmd_close_receipt [08:13:52]MH_GetDate [08:13:52]Write to MH i2c: F0 00 00 80 3E AD [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 09 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 09 00 80 3E 00 C6 41 71 66 BD 8F 7C 64 C0 [08:13:52]GetLastDocTimeStamp 1718698127 [08:13:52]current date 1718698438 [08:13:52]FM_GetShiftState [08:13:52]SAM_PROTO_GetShiftState [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 13 01 00 [08:13:52]Write to MH i2c: E2 08 00 81 3E 80 13 01 00 00 00 00 00 3C [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0E 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0E 00 81 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BD [08:13:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:13:52]wFMCommunicate OK [08:13:52]SAM_PROTO_GetShiftState done [08:13:52]FM_GetShiftState done [08:13:52]opened in 1718670284 [08:13:52]opened+sec_in_day 1718756684 [08:13:52]quantity*price = 354221 [08:13:52]sum+1 = 354222 [08:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 3542.00 Внесено: 3542.00 СДАЧА: 0.00 НСП 1% : 31.35 НДС 12% : 376.16 Наличными: 3542.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 18.06.2024 08:13 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103341 ФПД: 255990934434602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081358&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103341&fm=255990934434602&tin=02508201610067®Number=0000000000092785&sum=354200 [08:13:53]StoreToDocumentArchive [08:13:53]shift 352 fd 103341 [08:13:53]save to /storage/0352/doc_00103341 [08:13:53]save last doc name /storage/0352/doc_00103341 to /storage/kkm_last_doc_name [08:13:53]save OK [08:13:53]Clear old archive folders... [08:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:13:53]tlvbuf is 014890E0 [08:13:53]SAM_PROTO_ClearQueue [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 09 00 00 [08:13:53]Write to MH i2c: E2 08 00 8E 3E 80 09 00 00 00 00 00 00 3E [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 8E 3E 00 90 00 40 [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]SAM_PROTO_ClearQueue done [08:13:54]KKMCreateOFDPacket [08:13:54]OFDProtocolAddRootSTLVToBuf [08:13:54]FM_MakeSignedData [08:13:54]FM_MakeSignedData [08:13:54]SAM_PROTO_SignData [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 01 02 [08:13:54]Write to MH i2c: E2 08 00 8F 3E 80 0D 01 02 00 00 00 00 46 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 8F 3E 00 90 00 41 [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=255 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE BD 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 67 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 67 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 92 00 00 00 00 07 04 06 00 98 67 05 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 C6 41 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 93 01 00 35 04 06 00 [08:13:54]Write to MH i2c: E2 02 01 90 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE BD 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 67 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 67 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 92 00 00 00 00 07 04 06 00 98 67 05 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 C6 41 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 93 01 00 35 04 06 00 00 00 39 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 90 3E 00 90 00 42 [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=11 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 02 02 06 E8 D2 88 B6 73 2A [08:13:54]Write to MH i2c: E2 0E 00 91 3E 80 0D 02 02 06 00 E8 D2 88 B6 73 2A 00 00 EA [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 91 3E 00 90 00 43 [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 03 02 [08:13:54]Write to MH i2c: E2 08 00 92 3E 80 0D 03 02 00 00 00 00 4B [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0B 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0B 00 92 3E 00 00 C8 6D D0 71 4A 12 D1 90 00 EF [08:13:54]RAPDU: 00 C8 6D D0 71 4A 12 D1 90 00 [08:13:54]wFMCommunicate OK [08:13:54]SAM_PROTO_SignData done [08:13:54]FM_MakeSignedData done [08:13:54]CreateOFDProtocolMessage [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 11 00 00 [08:13:54]Write to MH i2c: E2 08 00 93 3E 80 11 00 00 00 00 00 00 4B [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 93 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [08:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:13:54]wFMCommunicate OK [08:13:54]CreateOFDProtocolMessage done [08:13:54]OFDSenderStorePacket 103341 [08:13:54]StoreOFDPacket docnum=103341 [08:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 59 0D 08 01 7C 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE BD 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 67 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 67 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 92 00 00 00 00 07 04 06 00 98 67 05 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 C6 41 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 93 01 00 35 04 06 00 E8 D2 88 B6 73 2A 00 C8 6D D0 71 4A 12 D1 [08:13:54]CheckFolder [08:13:54]dirname=/storage/ofd_packets [08:13:54]CheckFolder done [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00103341 [08:13:54]NVStorageSaveData ofd_packets/00103341 [08:13:54]File name is /storage/ofd_packets/00103341 [08:13:54]Write 302 bytes [08:13:54]NVStorageSaveData done [08:13:54]OFDSenderStorePacket done [08:13:54]KKMCreateOFDPacket done [08:13:54]NVStorageSaveData kkm_last_timestamp [08:13:54]File name is /storage/kkm_last_timestamp [08:13:54]Write 4 bytes [08:13:54]NVStorageSaveData done [08:13:54]ExternCall_PrintAddStr [08:13:54]wPrintStart [08:13:54]Write to MH i2c: 01 00 00 94 3E D2 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 94 3E 00 00 00 00 00 FF 0F E7 [08:13:54]RasterBufferAndPrint [08:13:54]line Счет N : (1)672479 [08:13:54]line ИНН: 02508201610067 [08:13:54]line Контрольно-Кассовый Чек [08:13:54]line ПРОДАЖА [08:13:54]line ТРК (МРК, ГНК) : 11 [08:13:54]line Товар: 2710194210 [08:13:54]line ДТ(л)-К-5 [08:13:54]line 48.590 * 72.90 [08:13:54]line = 3542.21 [08:13:54]line НДС 12% НСП 1% [08:13:54]line > о реализуемом товаре [08:13:54]line ОКРУГЛЕНИЕ: -0.21 [08:13:54]line ИТОГО: 3542.00 [08:13:54]line Внесено: 3542.00 [08:13:54]line СДАЧА: 0.00 [08:13:54]line НСП 1% : 31.35 [08:13:54]line НДС 12% : 376.16 [08:13:54]line Наличными: 3542.00 [08:13:54]line Безнал.: 0.00 [08:13:54]line Место: АЗС № 120 "Партнер Нефть" [08:13:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:13:54]line СНО: Общий режим [08:13:54]line Чек 25 18.06.2024 08:13 [08:13:54]line Смена: 352 ФФД: 1.0 [08:13:54]line ЗНМ: 0300000164 [08:13:54]line РНМ: 0000000000092785 [08:13:54]line Версия ККМ: 001 [08:13:54]line ФМ: 0000000000875093 [08:13:54]line ФД: 103341 [08:13:54]line ФПД: 255990934434602 [08:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081358&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103341&fm=255990934434602&tin=02508201610067®Number=0000000000092785&sum=354200 [08:13:54]written 0, free lines is 4095 [08:13:54]OFD Sender: Processing packet 103341 [packets to send 17, broken 16] [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00103341 [08:13:54]OFD Sender: To server: pG, [08:13:54]CommunicateWithHost lk.salyk.kg:30040 [08:13:54]ConnectInit lk.salyk.kg [08:13:54]Write to MH i2c: 01 00 00 BF 3E FD [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 BF 3E 00 00 00 00 00 D8 0C E8 [08:13:54]RasterBufferAndPrint [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]written 0, free lines is 3295 [08:13:54]MH_Cut [08:13:54]Write to MH i2c: D1 01 00 C6 3E 01 D6 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 01 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 01 00 C6 3E 00 D5 [08:13:54]Write to MH i2c: 01 00 00 C7 3E 05 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:55]*** Cut start [08:13:55]*** Partial cut [08:13:55]*** CUTSNS_PIN = 1 [08:13:55]*** CUTSNS_PIN = 0 [08:13:56]*** Brake cut motor [08:13:56]Read from MH i2c: 01 [08:13:56]MH_I2C_Read... [08:13:56]*** Stop cut motor [08:13:56]*** Cut end [08:13:56]Read from MH i2c: 01 07 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: 01 07 00 C7 3E 00 00 00 00 00 FF 0F 1A [08:13:56]process_action close_receipt done [08:13:56]requested_data is exist [08:13:56]produce_requested_data [08:13:56]requested_item fm.sn is exist - process it [08:13:56]wFMCommunicate request_size=4 [08:13:56]MH_SAM_APDU [08:13:56]CAPDU: 80 11 00 00 [08:13:56]Write to MH i2c: E2 08 00 C8 3E 80 11 00 00 00 00 00 00 80 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 17 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 17 00 C8 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [08:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:13:56]wFMCommunicate OK [08:13:56]requested_item fd.num is exist - process it [08:13:56]SAM_PROTO_GetFieldsCounters [08:13:56]wFMCommunicate request_size=4 [08:13:56]MH_SAM_APDU [08:13:56]CAPDU: 80 13 00 00 [08:13:56]Write to MH i2c: E2 08 00 C9 3E 80 13 00 00 00 00 00 00 83 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 62 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 62 00 C9 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [08:13: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:56]wFMCommunicate OK [08:13:56]SAM_PROTO_GetFieldsCounters done [08:13:56]requested_item shift.num is exist - process it [08:13:56]requested_item shift.opened is exist - process it [08:13:56]req_shift_opened [08:13:56]FM_GetShiftState [08:13:56]SAM_PROTO_GetShiftState [08:13:56]wFMCommunicate request_size=4 [08:13:56]MH_SAM_APDU [08:13:56]CAPDU: 80 13 01 00 [08:13:56]Write to MH i2c: E2 08 00 CA 3E 80 13 01 00 00 00 00 00 85 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0E 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0E 00 CA 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 06 [08:13:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:13:56]wFMCommunicate OK [08:13:56]SAM_PROTO_GetShiftState done [08:13:56]FM_GetShiftState done [08:13:56]req_shift_opened done [08:13:56]requested_item shift.open_date is exist - process it [08:13:56]req_shift_open_date [08:13:56]req_shift_open_date done [08:13:56]produce_requested_data done [08:13:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103341,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:13:56]process_action_free close_receipt [08:13:56]json_value_free [08:13:56]json_value_free done [08:13:56]process_json_proto returns [08:13:56]Send response to host [08:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103341,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:13:56]free response buf [08:13:56]execute_script done [08:13:56]execute_script returns [08:13:56]free content buf [08:13:56]Sock 7.Close socket [08:13:56]Sock 7.Thread stoped [08:14:59]accept exits with 9 [08:14:59]New connection [08:14:59]New thread 3067084132 created [08:14:59]Thread 3067227492 joined [08:14:59]Waiting for new connection... [08:14:59] Sock 9.Parse request [08:14:59]Sock 9.Check first char [08:14:59]Sock 9.First char is OK [08:14:59]request: POST /json_proto HTTP/1.0 [08:14:59]Method: POST [08:14:59]URL: /json_proto [08:14:59]Method is POST - this is cgi request [08:14:59]url: /json_proto [08:14:59]query_string will be loaded in cgi processing [08:14:59]execute_cgi json_proto POST (null) [08:14:59]execute_cgi path=json_proto method=POST [08:14:59]POST find Content-Length [08:14:59]Host: 172.17.38.133:8080 [08:14:59]Content-Length: 677 [08:14:59]Content-Type: application/json [08:14:59] [08:14:59]POST finish read [08:14:59]Found Content-Length = 677 [08:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:59]execute_script... [08:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:59]POST & json_proto [08:14:59]process_json_proto [08:14:59]json parsed OK: [08:14:59]protocol is kg_v1.0 [08:14:59]action value=close_receipt [08:14:59]process_action close_receipt [08:14:59]cmd_close_receipt [08:14:59]MH_GetDate [08:14:59]Write to MH i2c: F0 00 00 CB 3E F8 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: F0 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: F0 09 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: F0 09 00 CB 3E 00 09 42 71 66 BD 8F 7C 64 4F [08:14:59]GetLastDocTimeStamp 1718698438 [08:14:59]current date 1718698505 [08:14:59]FM_GetShiftState [08:14:59]SAM_PROTO_GetShiftState [08:14:59]wFMCommunicate request_size=4 [08:14:59]MH_SAM_APDU [08:14:59]CAPDU: 80 13 01 00 [08:14:59]Write to MH i2c: E2 08 00 CC 3E 80 13 01 00 00 00 00 00 87 [08:14:59]Write i2c OK [08:14:59]MH_I2C_Read... [08:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:59]Read from MH i2c: E2 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 [08:14:59]MH_I2C_Read... [08:14:59]Read from MH i2c: E2 0E 00 CC 3E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 08 [08:14:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:14:59]wFMCommunicate OK [08:14:59]SAM_PROTO_GetShiftState done [08:14:59]FM_GetShiftState done [08:14:59]opened in 1718670284 [08:14:59]opened+sec_in_day 1718756684 [08:14:59]quantity*price = 30012 [08:14:59]sum+1 = 30014 [08:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 18.06.2024 08:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103342 ФПД: 30689503917639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103342&fm=30689503917639&tin=02508201610067®Number=0000000000092785&sum=30000 [08:15:00]StoreToDocumentArchive [08:15:00]shift 352 fd 103342 [08:15:00]save to /storage/0352/doc_00103342 [08:15:00]save last doc name /storage/0352/doc_00103342 to /storage/kkm_last_doc_name [08:15:00]save OK [08:15:00]Clear old archive folders... [08:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:00]tlvbuf is 01489800 [08:15:00]SAM_PROTO_ClearQueue [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 09 00 00 [08:15:00]Write to MH i2c: E2 08 00 D9 3E 80 09 00 00 00 00 00 00 89 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 [08:15:00]MH_I2C_Read... [08:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:00]Read from MH i2c: E2 03 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 03 00 D9 3E 00 90 00 8B [08:15:00]RAPDU: 90 00 [08:15:00]wFMCommunicate OK [08:15:00]SAM_PROTO_ClearQueue done [08:15:00]KKMCreateOFDPacket [08:15:00]OFDProtocolAddRootSTLVToBuf [08:15:00]FM_MakeSignedData [08:15:00]FM_MakeSignedData [08:15:00]SAM_PROTO_SignData [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 0D 01 02 [08:15:00]Write to MH i2c: E2 08 00 DA 3E 80 0D 01 02 00 00 00 00 91 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:00]Read from MH i2c: E2 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 03 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 03 00 DA 3E 00 90 00 8C [08:15:00]RAPDU: 90 00 [08:15:00]wFMCommunicate OK [08:15:00]wFMCommunicate request_size=255 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 09 42 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 93 01 00 35 04 06 00 1B [08:15:00]Write to MH i2c: E2 02 01 DB 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 09 42 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 93 01 00 35 04 06 00 1B 00 00 E3 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:01]Read from MH i2c: E2 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 03 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 03 00 DB 3E 00 90 00 8D [08:15:01]RAPDU: 90 00 [08:15:01]wFMCommunicate OK [08:15:01]wFMCommunicate request_size=10 [08:15:01]MH_SAM_APDU [08:15:01]CAPDU: 80 0D 02 02 05 E9 74 FA B6 47 [08:15:01]Write to MH i2c: E2 0D 00 DC 3E 80 0D 02 02 05 00 E9 74 FA B6 47 00 00 F2 [08:15:01]Write i2c OK [08:15:01]MH_I2C_Read... [08:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:01]Read from MH i2c: E2 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 03 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 03 00 DC 3E 00 90 00 8E [08:15:01]RAPDU: 90 00 [08:15:01]wFMCommunicate OK [08:15:01]wFMCommunicate request_size=4 [08:15:01]MH_SAM_APDU [08:15:01]CAPDU: 80 0D 03 02 [08:15:01]Write to MH i2c: E2 08 00 DD 3E 80 0D 03 02 00 00 00 00 96 [08:15:01]Write i2c OK [08:15:01]MH_I2C_Read... [08:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:01]Read from MH i2c: E2 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 0B 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 0B 00 DD 3E 00 42 FB 46 DA 6A 97 4A FA 90 00 39 [08:15:01]RAPDU: 42 FB 46 DA 6A 97 4A FA 90 00 [08:15:01]wFMCommunicate OK [08:15:01]SAM_PROTO_SignData done [08:15:01]FM_MakeSignedData done [08:15:01]CreateOFDProtocolMessage [08:15:01]wFMCommunicate request_size=4 [08:15:01]MH_SAM_APDU [08:15:01]CAPDU: 80 11 00 00 [08:15:01]Write to MH i2c: E2 08 00 DE 3E 80 11 00 00 00 00 00 00 96 [08:15:01]Write i2c OK [08:15:01]MH_I2C_Read... [08:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:01]Read from MH i2c: E2 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 17 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 17 00 DE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [08:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:15:01]wFMCommunicate OK [08:15:01]CreateOFDProtocolMessage done [08:15:01]OFDSenderStorePacket 103342 [08:15:01]StoreOFDPacket docnum=103342 [08:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 58 89 07 01 B1 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 09 42 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 93 01 00 35 04 06 00 1B E9 74 FA B6 47 42 FB 46 DA 6A 97 4A FA [08:15:01]CheckFolder [08:15:01]dirname=/storage/ofd_packets [08:15:01]CheckFolder done [08:15:01]ProducePacketName [08:15:01]name=ofd_packets/00103342 [08:15:01]NVStorageSaveData ofd_packets/00103342 [08:15:01]File name is /storage/ofd_packets/00103342 [08:15:01]Write 301 bytes [08:15:01]NVStorageSaveData done [08:15:01]OFDSenderStorePacket done [08:15:01]KKMCreateOFDPacket done [08:15:01]NVStorageSaveData kkm_last_timestamp [08:15:01]File name is /storage/kkm_last_timestamp [08:15:01]Write 4 bytes [08:15:01]NVStorageSaveData done [08:15:01]ExternCall_PrintAddStr [08:15:01]wPrintStart [08:15:01]Write to MH i2c: 01 00 00 DF 3E 1D [08:15:01]Write i2c OK [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: 01 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: 01 07 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: 01 07 00 DF 3E 00 00 00 00 00 FF 0F 32 [08:15:01]RasterBufferAndPrint [08:15:01]line Счет N : (1)672480 [08:15:01]line ИНН: 02508201610067 [08:15:01]line Контрольно-Кассовый Чек [08:15:01]line ПРОДАЖА [08:15:01]line ТРК (МРК, ГНК) : 32 [08:15:01]line Товар: 2710124130 [08:15:01]line Аи-92-К-5 [08:15:01]line 4.520 * 66.40 [08:15:01]line = 300.13 [08:15:01]line НДС 12% НСП 1% [08:15:01]line > о реализуемом товаре [08:15:01]line ОКРУГЛЕНИЕ: -0.13 [08:15:01]line ИТОГО: 300.00 [08:15:01]line Внесено: 300.00 [08:15:01]line СДАЧА: 0.00 [08:15:01]line НСП 1% : 2.66 [08:15:01]line НДС 12% : 31.87 [08:15:01]line Наличными: 300.00 [08:15:01]line Безнал.: 0.00 [08:15:01]line Место: АЗС № 120 "Партнер Нефть" [08:15:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:15:01]line СНО: Общий режим [08:15:01]line Чек 26 18.06.2024 08:15 [08:15:01]line Смена: 352 ФФД: 1.0 [08:15:01]line ЗНМ: 0300000164 [08:15:01]line РНМ: 0000000000092785 [08:15:01]line Версия ККМ: 001 [08:15:01]line ФМ: 0000000000875093 [08:15:01]line ФД: 103342 [08:15:01]line ФПД: 30689503917639 [08:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103342&fm=30689503917639&tin=02508201610067®Number=0000000000092785&sum=30000 [08:15:01]written 0, free lines is 4095 [08:15:02]Write to MH i2c: 01 00 00 0A 3F 49 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 07 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: 01 07 00 0A 3F 00 00 00 00 00 D0 0C 2C [08:15:02]RasterBufferAndPrint [08:15:02]line [08:15:02]line [08:15:02]line [08:15:02]line [08:15:02]line [08:15:02]written 0, free lines is 3284 [08:15:02]MH_Cut [08:15:02]Write to MH i2c: D1 01 00 11 3F 01 22 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: D1 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: D1 01 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: D1 01 00 11 3F 00 21 [08:15:02]Write to MH i2c: 01 00 00 12 3F 51 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** Cut start [08:15:02]*** Partial cut [08:15:02]*** CUTSNS_PIN = 1 [08:15:02]*** CUTSNS_PIN = 0 [08:15:03]*** Brake cut motor [08:15:03]Read from MH i2c: 01 [08:15:03]MH_I2C_Read... [08:15:03]*** Stop cut motor [08:15:03]*** Cut end [08:15:03]Read from MH i2c: 01 07 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 07 00 12 3F 00 00 00 00 00 FF 0F 66 [08:15:03]process_action close_receipt done [08:15:03]requested_data is exist [08:15:03]produce_requested_data [08:15:03]requested_item fm.sn is exist - process it [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 11 00 00 [08:15:03]Write to MH i2c: E2 08 00 13 3F 80 11 00 00 00 00 00 00 CC [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 13 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [08:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:15:03]wFMCommunicate OK [08:15:03]requested_item fd.num is exist - process it [08:15:03]SAM_PROTO_GetFieldsCounters [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 13 00 00 [08:15:03]Write to MH i2c: E2 08 00 14 3F 80 13 00 00 00 00 00 00 CF [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 62 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 62 00 14 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [08:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_GetFieldsCounters done [08:15:03]requested_item shift.num is exist - process it [08:15:03]requested_item shift.opened is exist - process it [08:15:03]req_shift_opened [08:15:03]FM_GetShiftState [08:15:03]SAM_PROTO_GetShiftState [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 13 01 00 [08:15:03]Write to MH i2c: E2 08 00 15 3F 80 13 01 00 00 00 00 00 D1 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0E 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0E 00 15 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 52 [08:15:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_GetShiftState done [08:15:03]FM_GetShiftState done [08:15:03]req_shift_opened done [08:15:03]requested_item shift.open_date is exist - process it [08:15:03]req_shift_open_date [08:15:03]req_shift_open_date done [08:15:03]produce_requested_data done [08:15:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103342,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:15:03]process_action_free close_receipt [08:15:03]json_value_free [08:15:03]json_value_free done [08:15:03]process_json_proto returns [08:15:03]Send response to host [08:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103342,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:15:03]free response buf [08:15:03]execute_script done [08:15:03]execute_script returns [08:15:03]free content buf [08:15:03]Sock 9.Close socket [08:15:03]Sock 9.Thread stoped [08:16:07]ConnectInit Can't connect to host [08:16:07]CommunicateWithHost connect error [08:16:07]CommunicateWithHost err = -1 [08:16:07]OFD Sender: Server communicate error [08:16:08]OFD Sender: Processing packet 103341 [packets to send 18, broken 16] [08:16:08]ProducePacketName [08:16:08]name=ofd_packets/00103341 [08:16:08]OFD Sender: To server: pG, [08:16:08]CommunicateWithHost lk.salyk.kg:30040 [08:16:08]ConnectInit lk.salyk.kg [08:16:08]Connected sock=9 [08:16:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 59 0D 08 01 7C 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE BD 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 67 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 67 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 92 00 00 00 00 07 04 06 00 98 67 05 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 C6 41 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 93 01 00 35 04 06 00 E8 D2 88 B6 73 2A 00 C8 6D D0 71 4A 12 D1 [08:16:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 48 27 47 00 40 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 35 30 39 33 10 04 04 00 AD 93 01 00 F4 03 04 00 D8 E8 70 66 B6 04 01 00 00 E1 3B 88 5A 75 D0 CD 6A [08:16:08]CommunicateWithHost err = 0 [08:16:08]CheckOFDResponse [08:16:08]1017 (14) - 77093643461234 [08:16:08]1041 (16) - 0000000000875093 [08:16:08]1040 (4) - 103341 [08:16:08]1012 (4) - 18.06.2024 01:54 [08:16:08]1206 (1) - 0 [08:16:08]OFD Sender: Remove packet 103341 [08:16:08]ProducePacketName [08:16:08]name=ofd_packets/00103341 [08:16:08]NVStorageDeleteData [08:16:08]OFD Sender: Processing packet 103342 [packets to send 17, broken 16] [08:16:08]ProducePacketName [08:16:08]name=ofd_packets/00103342 [08:16:08]OFD Sender: To server: pG, [08:16:08]CommunicateWithHost lk.salyk.kg:30040 [08:16:08]ConnectInit lk.salyk.kg [08:16:09]Connected sock=9 [08:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 58 89 07 01 B1 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 09 42 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 93 01 00 35 04 06 00 1B E9 74 FA B6 47 42 FB 46 DA 6A 97 4A FA [08:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1F E9 47 00 84 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 93 01 00 F4 03 04 00 D9 E8 70 66 B6 04 01 00 00 57 B5 67 3E BF 8E 96 36 [08:16:09]CommunicateWithHost err = 0 [08:16:09]CheckOFDResponse [08:16:09]1017 (14) - 77093643461234 [08:16:09]1041 (16) - 0000000000875093 [08:16:09]1040 (4) - 103342 [08:16:09]1012 (4) - 18.06.2024 01:54 [08:16:09]1206 (1) - 0 [08:16:09]OFD Sender: Remove packet 103342 [08:16:09]ProducePacketName [08:16:09]name=ofd_packets/00103342 [08:16:09]NVStorageDeleteData [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:47]accept exits with 7 [08:26:47]New connection [08:26:47]New thread 3067227492 created [08:26:47]Thread 3067084132 joined [08:26:47]Waiting for new connection... [08:26:47] Sock 7.Parse request [08:26:47]Sock 7.Check first char [08:26:47]Sock 7.First char is OK [08:26:47]request: POST /json_proto HTTP/1.0 [08:26:47]Method: POST [08:26:47]URL: /json_proto [08:26:47]Method is POST - this is cgi request [08:26:47]url: /json_proto [08:26:47]query_string will be loaded in cgi processing [08:26:47]execute_cgi json_proto POST (null) [08:26:47]execute_cgi path=json_proto method=POST [08:26:47]POST find Content-Length [08:26:47]Host: 172.17.38.133:8080 [08:26:47]Content-Length: 819 [08:26:47]Content-Type: application/json [08:26:47] [08:26:47]POST finish read [08:26:47]Found Content-Length = 819 [08:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:47]execute_script... [08:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:47]POST & json_proto [08:26:47]process_json_proto [08:26:47]json parsed OK: [08:26:47]protocol is kg_v1.0 [08:26:47]action value=close_receipt [08:26:47]process_action close_receipt [08:26:47]cmd_close_receipt [08:26:47]MH_GetDate [08:26:47]Write to MH i2c: F0 00 00 16 3F 44 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: F0 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: F0 09 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: F0 09 00 16 3F 00 CC 44 71 66 BD 8F 7C 64 60 [08:26:47]GetLastDocTimeStamp 1718698505 [08:26:47]current date 1718699212 [08:26:47]FM_GetShiftState [08:26:47]SAM_PROTO_GetShiftState [08:26:47]wFMCommunicate request_size=4 [08:26:47]MH_SAM_APDU [08:26:47]CAPDU: 80 13 01 00 [08:26:47]Write to MH i2c: E2 08 00 17 3F 80 13 01 00 00 00 00 00 D3 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:47]Read from MH i2c: E2 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 0E 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 0E 00 17 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 54 [08:26:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:26:47]wFMCommunicate OK [08:26:47]SAM_PROTO_GetShiftState done [08:26:47]FM_GetShiftState done [08:26:47]opened in 1718670284 [08:26:47]opened+sec_in_day 1718756684 [08:26:47]quantity*price = 100064 [08:26:47]sum+1 = 100066 [08:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 27 18.06.2024 08:26 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103343 ФПД: 64951929378999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T082653&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103343&fm=64951929378999&tin=02508201610067®Number=0000000000092785&sum=100065 [08:26:48]StoreToDocumentArchive [08:26:48]shift 352 fd 103343 [08:26:48]save to /storage/0352/doc_00103343 [08:26:48]save last doc name /storage/0352/doc_00103343 to /storage/kkm_last_doc_name [08:26:48]save OK [08:26:48]Clear old archive folders... [08:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:48]tlvbuf is 01381AE0 [08:26:48]SAM_PROTO_ClearQueue [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 09 00 00 [08:26:48]Write to MH i2c: E2 08 00 24 3F 80 09 00 00 00 00 00 00 D5 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 24 3F 00 90 00 D7 [08:26:48]RAPDU: 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_ClearQueue done [08:26:48]KKMCreateOFDPacket [08:26:48]OFDProtocolAddRootSTLVToBuf [08:26:48]FM_MakeSignedData [08:26:48]FM_MakeSignedData [08:26:48]SAM_PROTO_SignData [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 0D 01 02 [08:26:48]Write to MH i2c: E2 08 00 25 3F 80 0D 01 02 00 00 00 00 DD [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 25 3F 00 90 00 D8 [08:26:48]RAPDU: 90 00 [08:26:48]wFMCommunicate OK [08:26:48]wFMCommunicate request_size=255 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CD 44 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 93 01 00 35 04 06 00 3B [08:26:48]Write to MH i2c: E2 02 01 26 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CD 44 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 93 01 00 35 04 06 00 3B 00 00 4B [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 26 3F 00 90 00 D9 [08:26:48]RAPDU: 90 00 [08:26:48]wFMCommunicate OK [08:26:48]wFMCommunicate request_size=10 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 0D 02 02 05 12 CC AD 98 B7 [08:26:48]Write to MH i2c: E2 0D 00 27 3F 80 0D 02 02 05 00 12 CC AD 98 B7 00 00 C4 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 03 00 27 3F 00 90 00 DA [08:26:48]RAPDU: 90 00 [08:26:48]wFMCommunicate OK [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 0D 03 02 [08:26:48]Write to MH i2c: E2 08 00 28 3F 80 0D 03 02 00 00 00 00 E2 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0B 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0B 00 28 3F 00 BE BC 41 F4 69 A1 F2 79 90 00 07 [08:26:48]RAPDU: BE BC 41 F4 69 A1 F2 79 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_SignData done [08:26:48]FM_MakeSignedData done [08:26:48]CreateOFDProtocolMessage [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 11 00 00 [08:26:48]Write to MH i2c: E2 08 00 29 3F 80 11 00 00 00 00 00 00 E2 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 29 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [08:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:26:48]wFMCommunicate OK [08:26:48]CreateOFDProtocolMessage done [08:26:48]OFDSenderStorePacket 103343 [08:26:48]StoreOFDPacket docnum=103343 [08:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 F8 07 01 5A 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CD 44 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 93 01 00 35 04 06 00 3B 12 CC AD 98 B7 BE BC 41 F4 69 A1 F2 79 [08:26:48]CheckFolder [08:26:48]dirname=/storage/ofd_packets [08:26:48]CheckFolder done [08:26:48]ProducePacketName [08:26:48]name=ofd_packets/00103343 [08:26:48]NVStorageSaveData ofd_packets/00103343 [08:26:48]File name is /storage/ofd_packets/00103343 [08:26:48]Write 301 bytes [08:26:48]NVStorageSaveData done [08:26:48]OFDSenderStorePacket done [08:26:48]KKMCreateOFDPacket done [08:26:48]NVStorageSaveData kkm_last_timestamp [08:26:48]File name is /storage/kkm_last_timestamp [08:26:48]Write 4 bytes [08:26:48]NVStorageSaveData done [08:26:48]ExternCall_PrintAddStr [08:26:48]wPrintStart [08:26:48]Write to MH i2c: 01 00 00 2A 3F 69 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: 01 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: 01 07 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: 01 07 00 2A 3F 00 00 00 00 00 FF 0F 7E [08:26:48]RasterBufferAndPrint [08:26:48]line Счет N : (1)672481 [08:26:48]line ИНН: 02508201610067 [08:26:48]line Контрольно-Кассовый Чек [08:26:48]line ПРОДАЖА [08:26:48]line ТРК (МРК, ГНК) : 42 [08:26:48]line Товар: 2710124130 [08:26:48]line Аи-92-К-5 [08:26:48]line 15.070 * 66.40 [08:26:48]line = 1000.65 [08:26:48]line НДС 12% НСП 1% [08:26:48]line > о реализуемом товаре [08:26:48]line ИТОГО: 1000.65 [08:26:48]line НСП 1% : 8.85 [08:26:48]line НДС 12% : 106.26 [08:26:48]line Наличными: 0.00 [08:26:48]line Безнал.: 1000.65 [08:26:48]line Место: АЗС № 120 "Партнер Нефть" [08:26:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:26:48]line СНО: Общий режим [08:26:48]line Чек 27 18.06.2024 08:26 [08:26:48]line Смена: 352 ФФД: 1.0 [08:26:48]line ЗНМ: 0300000164 [08:26:48]line РНМ: 0000000000092785 [08:26:48]line Версия ККМ: 001 [08:26:49]line Платежная система: Бакай Банк [08:26:49]line ФМ: 0000000000875093 [08:26:49]line ФД: 103343 [08:26:49]line ФПД: 64951929378999 [08:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T082653&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103343&fm=64951929378999&tin=02508201610067®Number=0000000000092785&sum=100065 [08:26:49]OFD Sender: Processing packet 103343 [packets to send 17, broken 16] [08:26:49]ProducePacketName [08:26:49]name=ofd_packets/00103343 [08:26:49]OFD Sender: To server: pG, [08:26:49]CommunicateWithHost lk.salyk.kg:30040 [08:26:49]ConnectInit lk.salyk.kg [08:26:49]written 0, free lines is 4095 [08:26:49]Connected sock=10 [08:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 F8 07 01 5A 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CD 44 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 93 01 00 35 04 06 00 3B 12 CC AD 98 B7 BE BC 41 F4 69 A1 F2 79 [08:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 30 2E 47 00 55 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 93 01 00 F4 03 04 00 59 EB 70 66 B6 04 01 00 00 BD 61 9E C7 3E AB 1B 13 [08:26:49]CommunicateWithHost err = 0 [08:26:49]CheckOFDResponse [08:26:49]1017 (14) - 77093643461234 [08:26:49]1041 (16) - 0000000000875093 [08:26:49]1040 (4) - 103343 [08:26:49]1012 (4) - 18.06.2024 02:05 [08:26:49]1206 (1) - 0 [08:26:49]OFD Sender: Remove packet 103343 [08:26:49]ProducePacketName [08:26:49]name=ofd_packets/00103343 [08:26:49]NVStorageDeleteData [08:26:49]Write to MH i2c: 01 00 00 54 3F 93 [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: 01 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: 01 07 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: 01 07 00 54 3F 00 00 00 00 00 ED 0C 93 [08:26:49]RasterBufferAndPrint [08:26:49]line [08:26:49]line [08:26:49]line [08:26:49]line [08:26:49]line [08:26:49]written 0, free lines is 3314 [08:26:49]MH_Cut [08:26:49]Write to MH i2c: D1 01 00 5B 3F 01 6C [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: D1 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: D1 01 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: D1 01 00 5B 3F 00 6B [08:26:49]Write to MH i2c: 01 00 00 5C 3F 9B [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:50]OFD Sender: No OFD packet to send [08:26:50]*** Cut start [08:26:50]*** Partial cut [08:26:50]*** CUTSNS_PIN = 1 [08:26:50]*** CUTSNS_PIN = 0 [08:26:50]*** Brake cut motor [08:26:51]Read from MH i2c: 01 [08:26:51]MH_I2C_Read... [08:26:51]*** Stop cut motor [08:26:51]*** Cut end [08:26:51]Read from MH i2c: 01 07 00 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: 01 07 00 5C 3F 00 00 00 00 00 FF 0F B0 [08:26:51]process_action close_receipt done [08:26:51]requested_data is exist [08:26:51]produce_requested_data [08:26:51]requested_item fm.sn is exist - process it [08:26:51]wFMCommunicate request_size=4 [08:26:51]MH_SAM_APDU [08:26:51]CAPDU: 80 11 00 00 [08:26:51]Write to MH i2c: E2 08 00 5D 3F 80 11 00 00 00 00 00 00 16 [08:26:51]Write i2c OK [08:26:51]MH_I2C_Read... [08:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:51]Read from MH i2c: E2 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 17 00 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 17 00 5D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [08:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:26:51]wFMCommunicate OK [08:26:51]requested_item fd.num is exist - process it [08:26:51]SAM_PROTO_GetFieldsCounters [08:26:51]wFMCommunicate request_size=4 [08:26:51]MH_SAM_APDU [08:26:51]CAPDU: 80 13 00 00 [08:26:51]Write to MH i2c: E2 08 00 5E 3F 80 13 00 00 00 00 00 00 19 [08:26:51]Write i2c OK [08:26:51]MH_I2C_Read... [08:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:51]Read from MH i2c: E2 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 62 00 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 62 00 5E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [08:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:51]wFMCommunicate OK [08:26:51]SAM_PROTO_GetFieldsCounters done [08:26:51]requested_item shift.num is exist - process it [08:26:51]requested_item shift.opened is exist - process it [08:26:51]req_shift_opened [08:26:51]FM_GetShiftState [08:26:51]SAM_PROTO_GetShiftState [08:26:51]wFMCommunicate request_size=4 [08:26:51]MH_SAM_APDU [08:26:51]CAPDU: 80 13 01 00 [08:26:51]Write to MH i2c: E2 08 00 5F 3F 80 13 01 00 00 00 00 00 1B [08:26:51]Write i2c OK [08:26:51]MH_I2C_Read... [08:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:51]Read from MH i2c: E2 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 0E 00 [08:26:51]MH_I2C_Read... [08:26:51]Read from MH i2c: E2 0E 00 5F 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [08:26:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:26:51]wFMCommunicate OK [08:26:51]SAM_PROTO_GetShiftState done [08:26:51]FM_GetShiftState done [08:26:51]req_shift_opened done [08:26:51]requested_item shift.open_date is exist - process it [08:26:51]req_shift_open_date [08:26:51]req_shift_open_date done [08:26:51]produce_requested_data done [08:26:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103343,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:26:51]process_action_free close_receipt [08:26:51]json_value_free [08:26:51]json_value_free done [08:26:51]process_json_proto returns [08:26:51]Send response to host [08:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103343,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:26:51]free response buf [08:26:51]execute_script done [08:26:51]execute_script returns [08:26:51]free content buf [08:26:51]Sock 7.Close socket [08:26:51]Sock 7.Thread stoped [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29: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]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:33:59]accept exits with 9 [08:33:59]New connection [08:33:59]New thread 3067084132 created [08:33:59]Thread 3067227492 joined [08:33:59]Waiting for new connection... [08:33:59] Sock 9.Parse request [08:33:59]Sock 9.Check first char [08:33:59]Sock 9.First char is OK [08:33:59]request: POST /json_proto HTTP/1.0 [08:33:59]Method: POST [08:33:59]URL: /json_proto [08:33:59]Method is POST - this is cgi request [08:33:59]url: /json_proto [08:33:59]query_string will be loaded in cgi processing [08:33:59]execute_cgi json_proto POST (null) [08:33:59]execute_cgi path=json_proto method=POST [08:33:59]POST find Content-Length [08:33:59]Host: 172.17.38.133:8080 [08:33:59]Content-Length: 688 [08:33:59]Content-Type: application/json [08:33:59] [08:33:59]POST finish read [08:33:59]Found Content-Length = 688 [08:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:59]execute_script... [08:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:59]POST & json_proto [08:33:59]process_json_proto [08:33:59]json parsed OK: [08:33:59]protocol is kg_v1.0 [08:33:59]action value=close_receipt [08:33:59]process_action close_receipt [08:33:59]cmd_close_receipt [08:33:59]MH_GetDate [08:33:59]Write to MH i2c: F0 00 00 60 3F 8E [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 09 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: F0 09 00 60 3F 00 7D 46 71 66 BD 8F 7C 64 5D [08:33:59]GetLastDocTimeStamp 1718699213 [08:33:59]current date 1718699645 [08:33:59]FM_GetShiftState [08:33:59]SAM_PROTO_GetShiftState [08:33:59]wFMCommunicate request_size=4 [08:33:59]MH_SAM_APDU [08:33:59]CAPDU: 80 13 01 00 [08:33:59]Write to MH i2c: E2 08 00 61 3F 80 13 01 00 00 00 00 00 1D [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:59]Read from MH i2c: E2 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0E 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0E 00 61 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9E [08:33:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:33:59]wFMCommunicate OK [08:33:59]SAM_PROTO_GetShiftState done [08:33:59]FM_GetShiftState done [08:33:59]opened in 1718670284 [08:33:59]opened+sec_in_day 1718756684 [08:33:59]quantity*price = 800004 [08:33:59]sum+1 = 800006 [08:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.56 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 18.06.2024 08:34 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103344 ФПД: 135146479434261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083405&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103344&fm=135146479434261&tin=02508201610067®Number=0000000000092785&sum=800000 [08:34:00]StoreToDocumentArchive [08:34:00]shift 352 fd 103344 [08:34:00]save to /storage/0352/doc_00103344 [08:34:00]save last doc name /storage/0352/doc_00103344 to /storage/kkm_last_doc_name [08:34:00]save OK [08:34:00]Clear old archive folders... [08:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:00]tlvbuf is 013692B0 [08:34:00]SAM_PROTO_ClearQueue [08:34:00]wFMCommunicate request_size=4 [08:34:00]MH_SAM_APDU [08:34:00]CAPDU: 80 09 00 00 [08:34:00]Write to MH i2c: E2 08 00 6E 3F 80 09 00 00 00 00 00 00 1F [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:00]Read from MH i2c: E2 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 03 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 03 00 6E 3F 00 90 00 21 [08:34:00]RAPDU: 90 00 [08:34:00]wFMCommunicate OK [08:34:00]SAM_PROTO_ClearQueue done [08:34:00]KKMCreateOFDPacket [08:34:00]OFDProtocolAddRootSTLVToBuf [08:34:00]FM_MakeSignedData [08:34:00]FM_MakeSignedData [08:34:00]SAM_PROTO_SignData [08:34:00]wFMCommunicate request_size=4 [08:34:00]MH_SAM_APDU [08:34:00]CAPDU: 80 0D 01 02 [08:34:00]Write to MH i2c: E2 08 00 6F 3F 80 0D 01 02 00 00 00 00 27 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 6F 3F 00 90 00 22 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=255 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7D 46 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 93 01 00 35 04 06 00 [08:34:01]Write to MH i2c: E2 02 01 70 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7D 46 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 93 01 00 35 04 06 00 00 00 6F [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 70 3F 00 90 00 23 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=11 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 02 02 06 7A EA 3D E6 3A 15 [08:34:01]Write to MH i2c: E2 0E 00 71 3F 80 0D 02 02 06 00 7A EA 3D E6 3A 15 00 00 0C [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 71 3F 00 90 00 24 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 03 02 [08:34:01]Write to MH i2c: E2 08 00 72 3F 80 0D 03 02 00 00 00 00 2C [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 72 3F 00 90 9F 7D AB 4A E6 23 EA 90 00 C1 [08:34:01]RAPDU: 90 9F 7D AB 4A E6 23 EA 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_SignData done [08:34:01]FM_MakeSignedData done [08:34:01]CreateOFDProtocolMessage [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 11 00 00 [08:34:01]Write to MH i2c: E2 08 00 73 3F 80 11 00 00 00 00 00 00 2C [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 73 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [08:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:34:01]wFMCommunicate OK [08:34:01]CreateOFDProtocolMessage done [08:34:01]OFDSenderStorePacket 103344 [08:34:01]StoreOFDPacket docnum=103344 [08:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6E 9F 08 01 FE 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7D 46 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 93 01 00 35 04 06 00 7A EA 3D E6 3A 15 90 9F 7D AB 4A E6 23 EA [08:34:01]CheckFolder [08:34:01]dirname=/storage/ofd_packets [08:34:01]CheckFolder done [08:34:01]ProducePacketName [08:34:01]name=ofd_packets/00103344 [08:34:01]NVStorageSaveData ofd_packets/00103344 [08:34:01]File name is /storage/ofd_packets/00103344 [08:34:01]Write 302 bytes [08:34:01]NVStorageSaveData done [08:34:01]OFDSenderStorePacket done [08:34:01]KKMCreateOFDPacket done [08:34:01]NVStorageSaveData kkm_last_timestamp [08:34:01]File name is /storage/kkm_last_timestamp [08:34:01]Write 4 bytes [08:34:01]NVStorageSaveData done [08:34:01]ExternCall_PrintAddStr [08:34:01]wPrintStart [08:34:01]Write to MH i2c: 01 00 00 74 3F B3 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 74 3F 00 00 00 00 00 FF 0F C8 [08:34:01]RasterBufferAndPrint [08:34:01]line Счет N : (1)672482 [08:34:01]line ИНН: 02508201610067 [08:34:01]line Контрольно-Кассовый Чек [08:34:01]line ПРОДАЖА [08:34:01]line ТРК (МРК, ГНК) : 21 [08:34:01]line Товар: 2710194210 [08:34:01]line ДТ(л)-К-5 [08:34:01]line 109.740 * 72.90 [08:34:01]line = 8000.05 [08:34:01]line НДС 12% НСП 1% [08:34:01]line > о реализуемом товаре [08:34:01]line ОКРУГЛЕНИЕ: -0.05 [08:34:01]line ИТОГО: 8000.00 [08:34:01]line Внесено: 8000.00 [08:34:01]line СДАЧА: 0.00 [08:34:01]line НСП 1% : 70.80 [08:34:01]line НДС 12% : 849.56 [08:34:01]line Наличными: 8000.00 [08:34:01]line Безнал.: 0.00 [08:34:01]line Место: АЗС № 120 "Партнер Нефть" [08:34:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:34:01]line СНО: Общий режим [08:34:01]line Чек 28 18.06.2024 08:34 [08:34:01]line Смена: 352 ФФД: 1.0 [08:34:01]line ЗНМ: 0300000164 [08:34:01]line РНМ: 0000000000092785 [08:34:01]line Версия ККМ: 001 [08:34:01]line ФМ: 0000000000875093 [08:34:01]line ФД: 103344 [08:34:01]line ФПД: 135146479434261 [08:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083405&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103344&fm=135146479434261&tin=02508201610067®Number=0000000000092785&sum=800000 [08:34:01]OFD Sender: Processing packet 103344 [packets to send 17, broken 16] [08:34:01]ProducePacketName [08:34:01]name=ofd_packets/00103344 [08:34:01]OFD Sender: To server: pG, [08:34:01]CommunicateWithHost lk.salyk.kg:30040 [08:34:01]ConnectInit lk.salyk.kg [08:34:01]written 0, free lines is 4095 [08:34:01]Connected sock=10 [08:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6E 9F 08 01 FE 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7D 46 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 93 01 00 35 04 06 00 7A EA 3D E6 3A 15 90 9F 7D AB 4A E6 23 EA [08:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 60 D7 47 00 4E 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 35 30 39 33 10 04 04 00 B0 93 01 00 F4 03 04 00 0A ED 70 66 B6 04 01 00 00 BB 87 CD C7 13 53 DB 48 [08:34:02]CommunicateWithHost err = 0 [08:34:02]CheckOFDResponse [08:34:02]1017 (14) - 77093643461234 [08:34:02]1041 (16) - 0000000000875093 [08:34:02]1040 (4) - 103344 [08:34:02]1012 (4) - 18.06.2024 02:12 [08:34:02]1206 (1) - 0 [08:34:02]OFD Sender: Remove packet 103344 [08:34:02]ProducePacketName [08:34:02]name=ofd_packets/00103344 [08:34:02]NVStorageDeleteData [08:34:02]Write to MH i2c: 01 00 00 9F 3F DE [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 9F 3F 00 00 00 00 00 D8 0C C9 [08:34:02]RasterBufferAndPrint [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]written 0, free lines is 3294 [08:34:02]MH_Cut [08:34:02]Write to MH i2c: D1 01 00 A6 3F 01 B7 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 01 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 01 00 A6 3F 00 B6 [08:34:02]Write to MH i2c: 01 00 00 A7 3F E6 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]OFD Sender: No OFD packet to send [08:34:03]*** Cut start [08:34:03]*** Partial cut [08:34:03]*** CUTSNS_PIN = 1 [08:34:03]*** CUTSNS_PIN = 0 [08:34:03]*** Brake cut motor [08:34:03]Read from MH i2c: 01 [08:34:03]MH_I2C_Read... [08:34:03]*** Stop cut motor [08:34:03]*** Cut end [08:34:03]Read from MH i2c: 01 07 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 07 00 A7 3F 00 00 00 00 00 FF 0F FB [08:34:03]process_action close_receipt done [08:34:03]requested_data is exist [08:34:03]produce_requested_data [08:34:03]requested_item fm.sn is exist - process it [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 11 00 00 [08:34:03]Write to MH i2c: E2 08 00 A8 3F 80 11 00 00 00 00 00 00 61 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 A8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [08:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:34:03]wFMCommunicate OK [08:34:03]requested_item fd.num is exist - process it [08:34:03]SAM_PROTO_GetFieldsCounters [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 00 00 [08:34:03]Write to MH i2c: E2 08 00 A9 3F 80 13 00 00 00 00 00 00 64 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 62 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 62 00 A9 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [08:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:03]wFMCommunicate OK [08:34:03]SAM_PROTO_GetFieldsCounters done [08:34:03]requested_item shift.num is exist - process it [08:34:03]requested_item shift.opened is exist - process it [08:34:03]req_shift_opened [08:34:03]FM_GetShiftState [08:34:03]SAM_PROTO_GetShiftState [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 01 00 [08:34:03]Write to MH i2c: E2 08 00 AA 3F 80 13 01 00 00 00 00 00 66 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 AA 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [08:34:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:34:03]wFMCommunicate OK [08:34:03]SAM_PROTO_GetShiftState done [08:34:03]FM_GetShiftState done [08:34:03]req_shift_opened done [08:34:03]requested_item shift.open_date is exist - process it [08:34:03]req_shift_open_date [08:34:03]req_shift_open_date done [08:34:03]produce_requested_data done [08:34:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103344,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:34:03]process_action_free close_receipt [08:34:03]json_value_free [08:34:03]json_value_free done [08:34:03]process_json_proto returns [08:34:03]Send response to host [08:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103344,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:34:03]free response buf [08:34:03]execute_script done [08:34:03]execute_script returns [08:34:03]free content buf [08:34:03]Sock 9.Close socket [08:34:03]Sock 9.Thread stoped [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:56]accept exits with 7 [08:39:56]New connection [08:39:56]New thread 3067227492 created [08:39:56]Thread 3067084132 joined [08:39:56]Waiting for new connection... [08:39:56] Sock 7.Parse request [08:39:56]Sock 7.Check first char [08:39:56]Sock 7.First char is OK [08:39:56]request: POST /json_proto HTTP/1.0 [08:39:56]Method: POST [08:39:56]URL: /json_proto [08:39:56]Method is POST - this is cgi request [08:39:56]url: /json_proto [08:39:56]query_string will be loaded in cgi processing [08:39:56]execute_cgi json_proto POST (null) [08:39:56]execute_cgi path=json_proto method=POST [08:39:56]POST find Content-Length [08:39:56]Host: 172.17.38.133:8080 [08:39:56]Content-Length: 677 [08:39:56]Content-Type: application/json [08:39:56] [08:39:56]POST finish read [08:39:56]Found Content-Length = 677 [08:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:56]execute_script... [08:39:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:56]POST & json_proto [08:39:56]process_json_proto [08:39:56]json parsed OK: [08:39:56]protocol is kg_v1.0 [08:39:56]action value=close_receipt [08:39:56]process_action close_receipt [08:39:56]cmd_close_receipt [08:39:56]MH_GetDate [08:39:56]Write to MH i2c: F0 00 00 AB 3F D9 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: F0 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: F0 09 00 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: F0 09 00 AB 3F 00 E1 47 71 66 BD 8F 7C 64 0D [08:39:56]GetLastDocTimeStamp 1718699645 [08:39:56]current date 1718700001 [08:39:56]FM_GetShiftState [08:39:56]SAM_PROTO_GetShiftState [08:39:56]wFMCommunicate request_size=4 [08:39:56]MH_SAM_APDU [08:39:56]CAPDU: 80 13 01 00 [08:39:56]Write to MH i2c: E2 08 00 AC 3F 80 13 01 00 00 00 00 00 68 [08:39:56]Write i2c OK [08:39:56]MH_I2C_Read... [08:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:56]Read from MH i2c: E2 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 0E 00 [08:39:56]MH_I2C_Read... [08:39:56]Read from MH i2c: E2 0E 00 AC 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E9 [08:39:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:39:56]wFMCommunicate OK [08:39:56]SAM_PROTO_GetShiftState done [08:39:56]FM_GetShiftState done [08:39:56]opened in 1718670284 [08:39:56]opened+sec_in_day 1718756684 [08:39:56]quantity*price = 50065 [08:39:56]sum+1 = 50067 [08:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 18.06.2024 08:40 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103345 ФПД: 3451638896975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084001&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103345&fm=3451638896975&tin=02508201610067®Number=0000000000092785&sum=50000 [08:39:57]StoreToDocumentArchive [08:39:57]shift 352 fd 103345 [08:39:57]save to /storage/0352/doc_00103345 [08:39:57]save last doc name /storage/0352/doc_00103345 to /storage/kkm_last_doc_name [08:39:57]save OK [08:39:57]Clear old archive folders... [08:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:57]tlvbuf is 013B1990 [08:39:57]SAM_PROTO_ClearQueue [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 09 00 00 [08:39:57]Write to MH i2c: E2 08 00 B9 3F 80 09 00 00 00 00 00 00 6A [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 B9 3F 00 90 00 6C [08:39:57]RAPDU: 90 00 [08:39:57]wFMCommunicate OK [08:39:57]SAM_PROTO_ClearQueue done [08:39:57]KKMCreateOFDPacket [08:39:57]OFDProtocolAddRootSTLVToBuf [08:39:57]FM_MakeSignedData [08:39:57]FM_MakeSignedData [08:39:57]SAM_PROTO_SignData [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 0D 01 02 [08:39:57]Write to MH i2c: E2 08 00 BA 3F 80 0D 01 02 00 00 00 00 72 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 BA 3F 00 90 00 6D [08:39:57]RAPDU: 90 00 [08:39:57]wFMCommunicate OK [08:39:57]wFMCommunicate request_size=255 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 E1 47 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 93 01 00 35 04 06 00 03 [08:39:57]Write to MH i2c: E2 02 01 BB 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 E1 47 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 93 01 00 35 04 06 00 03 00 00 F1 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 BB 3F 00 90 00 6E [08:39:57]RAPDU: 90 00 [08:39:57]wFMCommunicate OK [08:39:57]wFMCommunicate request_size=10 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 0D 02 02 05 23 A5 B5 D9 4F [08:39:57]Write to MH i2c: E2 0D 00 BC 3F 80 0D 02 02 05 00 23 A5 B5 D9 4F 00 00 24 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 03 00 BC 3F 00 90 00 6F [08:39:57]RAPDU: 90 00 [08:39:57]wFMCommunicate OK [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 0D 03 02 [08:39:57]Write to MH i2c: E2 08 00 BD 3F 80 0D 03 02 00 00 00 00 77 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 0B 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 0B 00 BD 3F 00 47 01 C1 0E 67 86 75 FB 90 00 EC [08:39:57]RAPDU: 47 01 C1 0E 67 86 75 FB 90 00 [08:39:57]wFMCommunicate OK [08:39:57]SAM_PROTO_SignData done [08:39:57]FM_MakeSignedData done [08:39:57]CreateOFDProtocolMessage [08:39:57]wFMCommunicate request_size=4 [08:39:57]MH_SAM_APDU [08:39:57]CAPDU: 80 11 00 00 [08:39:57]Write to MH i2c: E2 08 00 BE 3F 80 11 00 00 00 00 00 00 77 [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:57]Read from MH i2c: E2 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 17 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: E2 17 00 BE 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [08:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:39:57]wFMCommunicate OK [08:39:57]CreateOFDProtocolMessage done [08:39:57]OFDSenderStorePacket 103345 [08:39:57]StoreOFDPacket docnum=103345 [08:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 9B 07 01 43 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 E1 47 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 93 01 00 35 04 06 00 03 23 A5 B5 D9 4F 47 01 C1 0E 67 86 75 FB [08:39:57]CheckFolder [08:39:57]dirname=/storage/ofd_packets [08:39:57]CheckFolder done [08:39:57]ProducePacketName [08:39:57]name=ofd_packets/00103345 [08:39:57]NVStorageSaveData ofd_packets/00103345 [08:39:57]File name is /storage/ofd_packets/00103345 [08:39:57]Write 301 bytes [08:39:57]NVStorageSaveData done [08:39:57]OFDSenderStorePacket done [08:39:57]KKMCreateOFDPacket done [08:39:57]NVStorageSaveData kkm_last_timestamp [08:39:57]File name is /storage/kkm_last_timestamp [08:39:57]Write 4 bytes [08:39:57]NVStorageSaveData done [08:39:57]OFD Sender: Processing packet 103345 [packets to send 17, broken 16] [08:39:57]ProducePacketName [08:39:57]name=ofd_packets/00103345 [08:39:57]OFD Sender: To server: pG, [08:39:57]CommunicateWithHost lk.salyk.kg:30040 [08:39:57]ConnectInit lk.salyk.kg [08:39:57]ExternCall_PrintAddStr [08:39:57]wPrintStart [08:39:57]Write to MH i2c: 01 00 00 BF 3F FE [08:39:57]Write i2c OK [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 [08:39:57]MH_I2C_Read... [08:39:57]Read from MH i2c: 01 07 00 BF 3F 00 00 00 00 00 FF 0F 13 [08:39:57]RasterBufferAndPrint [08:39:57]line Счет N : (1)672483 [08:39:57]line ИНН: 02508201610067 [08:39:57]line Контрольно-Кассовый Чек [08:39:57]line ПРОДАЖА [08:39:57]line ТРК (МРК, ГНК) : 32 [08:39:57]line Товар: 2710124130 [08:39:57]line Аи-92-К-5 [08:39:57]line 7.540 * 66.40 [08:39:57]line = 500.66 [08:39:57]line НДС 12% НСП 1% [08:39:57]line > о реализуемом товаре [08:39:57]line ОКРУГЛЕНИЕ: -0.66 [08:39:57]line ИТОГО: 500.00 [08:39:57]line Внесено: 500.00 [08:39:57]line СДАЧА: 0.00 [08:39:57]line НСП 1% : 4.43 [08:39:57]line НДС 12% : 53.17 [08:39:57]line Наличными: 500.00 [08:39:57]line Безнал.: 0.00 [08:39:57]line Место: АЗС № 120 "Партнер Нефть" [08:39:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:39:57]line СНО: Общий режим [08:39:57]line Чек 29 18.06.2024 08:40 [08:39:57]line Смена: 352 ФФД: 1.0 [08:39:57]line ЗНМ: 0300000164 [08:39:57]line РНМ: 0000000000092785 [08:39:57]line Версия ККМ: 001 [08:39:57]line ФМ: 0000000000875093 [08:39:57]line ФД: 103345 [08:39:57]line ФПД: 3451638896975 [08:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084001&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103345&fm=3451638896975&tin=02508201610067®Number=0000000000092785&sum=50000 [08:39:58]Connected sock=11 [08:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 9B 07 01 43 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 E1 47 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 93 01 00 35 04 06 00 03 23 A5 B5 D9 4F 47 01 C1 0E 67 86 75 FB [08:39:58]written 0, free lines is 4095 [08:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AD 29 47 00 E1 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 93 01 00 F4 03 04 00 6E EE 70 66 B6 04 01 00 00 99 D9 EE F9 0F C5 B7 22 [08:39:58]CommunicateWithHost err = 0 [08:39:58]CheckOFDResponse [08:39:58]1017 (14) - 77093643461234 [08:39:58]1041 (16) - 0000000000875093 [08:39:58]1040 (4) - 103345 [08:39:58]1012 (4) - 18.06.2024 02:18 [08:39:58]1206 (1) - 0 [08:39:58]OFD Sender: Remove packet 103345 [08:39:58]ProducePacketName [08:39:58]name=ofd_packets/00103345 [08:39:58]NVStorageDeleteData [08:39:58]Write to MH i2c: 01 00 00 EA 3F 29 [08:39:58]Write i2c OK [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: 01 [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: 01 07 00 [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: 01 07 00 EA 3F 00 00 00 00 00 CF 0C 0B [08:39:58]RasterBufferAndPrint [08:39:58]line [08:39:58]line [08:39:58]line [08:39:58]line [08:39:58]line [08:39:58]written 0, free lines is 3287 [08:39:58]MH_Cut [08:39:58]Write to MH i2c: D1 01 00 F1 3F 01 02 [08:39:58]Write i2c OK [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: D1 [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: D1 01 00 [08:39:58]MH_I2C_Read... [08:39:58]Read from MH i2c: D1 01 00 F1 3F 00 01 [08:39:58]Write to MH i2c: 01 00 00 F2 3F 31 [08:39:58]Write i2c OK [08:39:58]MH_I2C_Read... [08:39:58]OFD Sender: No OFD packet to send [08:39:59]*** Cut start [08:39:59]*** Partial cut [08:39:59]*** CUTSNS_PIN = 1 [08:39:59]*** CUTSNS_PIN = 0 [08:39:59]*** Brake cut motor [08:39:59]Read from MH i2c: 01 [08:39:59]MH_I2C_Read... [08:39:59]*** Stop cut motor [08:39:59]*** Cut end [08:39:59]Read from MH i2c: 01 07 00 [08:39:59]MH_I2C_Read... [08:39:59]Read from MH i2c: 01 07 00 F2 3F 00 00 00 00 00 FF 0F 46 [08:39:59]process_action close_receipt done [08:39:59]requested_data is exist [08:39:59]produce_requested_data [08:39:59]requested_item fm.sn is exist - process it [08:39:59]wFMCommunicate request_size=4 [08:39:59]MH_SAM_APDU [08:39:59]CAPDU: 80 11 00 00 [08:39:59]Write to MH i2c: E2 08 00 F3 3F 80 11 00 00 00 00 00 00 AC [08:39:59]Write i2c OK [08:39:59]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 17 00 F3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [08:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:40:00]wFMCommunicate OK [08:40:00]requested_item fd.num is exist - process it [08:40:00]SAM_PROTO_GetFieldsCounters [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 13 00 00 [08:40:00]Write to MH i2c: E2 08 00 F4 3F 80 13 00 00 00 00 00 00 AF [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 62 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 62 00 F4 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [08:40:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:00]wFMCommunicate OK [08:40:00]SAM_PROTO_GetFieldsCounters done [08:40:00]requested_item shift.num is exist - process it [08:40:00]requested_item shift.opened is exist - process it [08:40:00]req_shift_opened [08:40:00]FM_GetShiftState [08:40:00]SAM_PROTO_GetShiftState [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 13 01 00 [08:40:00]Write to MH i2c: E2 08 00 F5 3F 80 13 01 00 00 00 00 00 B1 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 0E 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 0E 00 F5 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 32 [08:40:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:40:00]wFMCommunicate OK [08:40:00]SAM_PROTO_GetShiftState done [08:40:00]FM_GetShiftState done [08:40:00]req_shift_opened done [08:40:00]requested_item shift.open_date is exist - process it [08:40:00]req_shift_open_date [08:40:00]req_shift_open_date done [08:40:00]produce_requested_data done [08:40:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103345,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:40:00]process_action_free close_receipt [08:40:00]json_value_free [08:40:00]json_value_free done [08:40:00]process_json_proto returns [08:40:00]Send response to host [08:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103345,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:40:00]free response buf [08:40:00]execute_script done [08:40:00]execute_script returns [08:40:00]free content buf [08:40:00]Sock 7.Close socket [08:40:00]Sock 7.Thread stoped [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]accept exits with 9 [08:41:33]New connection [08:41:33]New thread 3067084132 created [08:41:33]Thread 3067227492 joined [08:41:33]Waiting for new connection... [08:41:33] Sock 9.Parse request [08:41:33]Sock 9.Check first char [08:41:33]Sock 9.First char is OK [08:41:33]request: POST /json_proto HTTP/1.0 [08:41:33]Method: POST [08:41:33]URL: /json_proto [08:41:33]Method is POST - this is cgi request [08:41:33]url: /json_proto [08:41:33]query_string will be loaded in cgi processing [08:41:33]execute_cgi json_proto POST (null) [08:41:33]execute_cgi path=json_proto method=POST [08:41:33]POST find Content-Length [08:41:33]Host: 172.17.38.133:8080 [08:41:33]Content-Length: 677 [08:41:33]Content-Type: application/json [08:41:33] [08:41:33]POST finish read [08:41:33]Found Content-Length = 677 [08:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:33]execute_script... [08:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:33]POST & json_proto [08:41:33]process_json_proto [08:41:33]json parsed OK: [08:41:33]protocol is kg_v1.0 [08:41:33]action value=close_receipt [08:41:33]process_action close_receipt [08:41:33]cmd_close_receipt [08:41:33]MH_GetDate [08:41:33]Write to MH i2c: F0 00 00 F6 3F 24 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: F0 09 00 F6 3F 00 43 48 71 66 BD 8F 7C 64 BB [08:41:33]GetLastDocTimeStamp 1718700001 [08:41:33]current date 1718700099 [08:41:33]FM_GetShiftState [08:41:33]SAM_PROTO_GetShiftState [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 01 00 [08:41:33]Write to MH i2c: E2 08 00 F7 3F 80 13 01 00 00 00 00 00 B3 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 F7 3F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 34 [08:41:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetShiftState done [08:41:33]FM_GetShiftState done [08:41:33]opened in 1718670284 [08:41:33]opened+sec_in_day 1718756684 [08:41:33]quantity*price = 50065 [08:41:33]sum+1 = 50067 [08:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 18.06.2024 08:41 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103346 ФПД: 147940585346202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084139&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103346&fm=147940585346202&tin=02508201610067®Number=0000000000092785&sum=50000 [08:41:34]StoreToDocumentArchive [08:41:34]shift 352 fd 103346 [08:41:34]save to /storage/0352/doc_00103346 [08:41:34]save last doc name /storage/0352/doc_00103346 to /storage/kkm_last_doc_name [08:41:34]save OK [08:41:34]Clear old archive folders... [08:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:34]tlvbuf is 013566C0 [08:41:34]SAM_PROTO_ClearQueue [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 09 00 00 [08:41:34]Write to MH i2c: E2 08 00 04 40 80 09 00 00 00 00 00 00 B6 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 04 40 00 90 00 B8 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]SAM_PROTO_ClearQueue done [08:41:34]KKMCreateOFDPacket [08:41:34]OFDProtocolAddRootSTLVToBuf [08:41:34]FM_MakeSignedData [08:41:34]FM_MakeSignedData [08:41:34]SAM_PROTO_SignData [08:41:34]wFMCommunicate request_size=4 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 01 02 [08:41:34]Write to MH i2c: E2 08 00 05 40 80 0D 01 02 00 00 00 00 BE [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:34]Read from MH i2c: E2 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 [08:41:34]MH_I2C_Read... [08:41:34]Read from MH i2c: E2 03 00 05 40 00 90 00 B9 [08:41:34]RAPDU: 90 00 [08:41:34]wFMCommunicate OK [08:41:34]wFMCommunicate request_size=255 [08:41:34]MH_SAM_APDU [08:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 43 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 93 01 00 35 04 06 00 86 [08:41:34]Write to MH i2c: E2 02 01 06 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 43 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 93 01 00 35 04 06 00 86 00 00 25 [08:41:34]Write i2c OK [08:41:34]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 06 40 00 90 00 BA [08:41:35]RAPDU: 90 00 [08:41:35]wFMCommunicate OK [08:41:35]wFMCommunicate request_size=10 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 0D 02 02 05 8D 1A 09 94 9A [08:41:35]Write to MH i2c: E2 0D 00 07 40 80 0D 02 02 05 00 8D 1A 09 94 9A 00 00 A9 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 03 00 07 40 00 90 00 BB [08:41:35]RAPDU: 90 00 [08:41:35]wFMCommunicate OK [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 0D 03 02 [08:41:35]Write to MH i2c: E2 08 00 08 40 80 0D 03 02 00 00 00 00 C3 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0B 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0B 00 08 40 00 56 5B BC 9F B2 77 25 17 90 00 35 [08:41:35]RAPDU: 56 5B BC 9F B2 77 25 17 90 00 [08:41:35]wFMCommunicate OK [08:41:35]SAM_PROTO_SignData done [08:41:35]FM_MakeSignedData done [08:41:35]CreateOFDProtocolMessage [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 11 00 00 [08:41:35]Write to MH i2c: E2 08 00 09 40 80 11 00 00 00 00 00 00 C3 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 09 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [08:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:41:35]wFMCommunicate OK [08:41:35]CreateOFDProtocolMessage done [08:41:35]OFDSenderStorePacket 103346 [08:41:35]StoreOFDPacket docnum=103346 [08:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 37 07 01 9C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 43 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 93 01 00 35 04 06 00 86 8D 1A 09 94 9A 56 5B BC 9F B2 77 25 17 [08:41:35]CheckFolder [08:41:35]dirname=/storage/ofd_packets [08:41:35]CheckFolder done [08:41:35]ProducePacketName [08:41:35]name=ofd_packets/00103346 [08:41:35]NVStorageSaveData ofd_packets/00103346 [08:41:35]File name is /storage/ofd_packets/00103346 [08:41:35]Write 301 bytes [08:41:35]NVStorageSaveData done [08:41:35]OFDSenderStorePacket done [08:41:35]KKMCreateOFDPacket done [08:41:35]NVStorageSaveData kkm_last_timestamp [08:41:35]File name is /storage/kkm_last_timestamp [08:41:35]Write 4 bytes [08:41:35]NVStorageSaveData done [08:41:35]ExternCall_PrintAddStr [08:41:35]wPrintStart [08:41:35]Write to MH i2c: 01 00 00 0A 40 4A [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 0A 40 00 00 00 00 00 FF 0F 5F [08:41:35]RasterBufferAndPrint [08:41:35]line Счет N : (1)672484 [08:41:35]line ИНН: 02508201610067 [08:41:35]line Контрольно-Кассовый Чек [08:41:35]line ПРОДАЖА [08:41:35]line ТРК (МРК, ГНК) : 32 [08:41:35]line Товар: 2710124130 [08:41:35]line Аи-92-К-5 [08:41:35]line 7.540 * 66.40 [08:41:35]line = 500.66 [08:41:35]line НДС 12% НСП 1% [08:41:35]line > о реализуемом товаре [08:41:35]line ОКРУГЛЕНИЕ: -0.66 [08:41:35]line ИТОГО: 500.00 [08:41:35]line Внесено: 500.00 [08:41:35]line СДАЧА: 0.00 [08:41:35]line НСП 1% : 4.43 [08:41:35]line НДС 12% : 53.17 [08:41:35]line Наличными: 500.00 [08:41:35]line Безнал.: 0.00 [08:41:35]line Место: АЗС № 120 "Партнер Нефть" [08:41:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:41:35]line СНО: Общий режим [08:41:35]line Чек 30 18.06.2024 08:41 [08:41:35]line Смена: 352 ФФД: 1.0 [08:41:35]line ЗНМ: 0300000164 [08:41:35]line РНМ: 0000000000092785 [08:41:35]line Версия ККМ: 001 [08:41:35]line ФМ: 0000000000875093 [08:41:35]line ФД: 103346 [08:41:35]line ФПД: 147940585346202 [08:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084139&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103346&fm=147940585346202&tin=02508201610067®Number=0000000000092785&sum=50000 [08:41:35]OFD Sender: Processing packet 103346 [packets to send 17, broken 16] [08:41:35]ProducePacketName [08:41:35]name=ofd_packets/00103346 [08:41:35]OFD Sender: To server: pG, [08:41:35]CommunicateWithHost lk.salyk.kg:30040 [08:41:35]ConnectInit lk.salyk.kg [08:41:35]written 0, free lines is 4095 [08:41:35]Connected sock=10 [08:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 37 07 01 9C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 43 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 93 01 00 35 04 06 00 86 8D 1A 09 94 9A 56 5B BC 9F B2 77 25 17 [08:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C9 D1 47 00 5B 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 35 30 39 33 10 04 04 00 B2 93 01 00 F4 03 04 00 D0 EE 70 66 B6 04 01 00 00 D9 A7 BE 0A 24 B4 6C 0C [08:41:36]CommunicateWithHost err = 0 [08:41:36]CheckOFDResponse [08:41:36]1017 (14) - 77093643461234 [08:41:36]1041 (16) - 0000000000875093 [08:41:36]1040 (4) - 103346 [08:41:36]1012 (4) - 18.06.2024 02:20 [08:41:36]1206 (1) - 0 [08:41:36]OFD Sender: Remove packet 103346 [08:41:36]ProducePacketName [08:41:36]name=ofd_packets/00103346 [08:41:36]NVStorageDeleteData [08:41:36]Write to MH i2c: 01 00 00 35 40 75 [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 07 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: 01 07 00 35 40 00 00 00 00 00 D7 0C 5F [08:41:36]RasterBufferAndPrint [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]line [08:41:36]written 0, free lines is 3290 [08:41:36]MH_Cut [08:41:36]Write to MH i2c: D1 01 00 3C 40 01 4E [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 01 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: D1 01 00 3C 40 00 4D [08:41:36]Write to MH i2c: 01 00 00 3D 40 7D [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]OFD Sender: No OFD packet to send [08:41:36]*** Cut start [08:41:36]*** Partial cut [08:41:36]*** CUTSNS_PIN = 1 [08:41:37]*** CUTSNS_PIN = 0 [08:41:37]*** Brake cut motor [08:41:37]Read from MH i2c: 01 [08:41:37]MH_I2C_Read... [08:41:37]*** Stop cut motor [08:41:37]*** Cut end [08:41:37]Read from MH i2c: 01 07 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: 01 07 00 3D 40 00 00 00 00 00 FF 0F 92 [08:41:37]process_action close_receipt done [08:41:37]requested_data is exist [08:41:37]produce_requested_data [08:41:37]requested_item fm.sn is exist - process it [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 11 00 00 [08:41:37]Write to MH i2c: E2 08 00 3E 40 80 11 00 00 00 00 00 00 F8 [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 3E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [08:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:41:37]wFMCommunicate OK [08:41:37]requested_item fd.num is exist - process it [08:41:37]SAM_PROTO_GetFieldsCounters [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 13 00 00 [08:41:37]Write to MH i2c: E2 08 00 3F 40 80 13 00 00 00 00 00 00 FB [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 62 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 62 00 3F 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:37]wFMCommunicate OK [08:41:37]SAM_PROTO_GetFieldsCounters done [08:41:37]requested_item shift.num is exist - process it [08:41:37]requested_item shift.opened is exist - process it [08:41:37]req_shift_opened [08:41:37]FM_GetShiftState [08:41:37]SAM_PROTO_GetShiftState [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 13 01 00 [08:41:37]Write to MH i2c: E2 08 00 40 40 80 13 01 00 00 00 00 00 FD [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0E 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0E 00 40 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7E [08:41:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:41:37]wFMCommunicate OK [08:41:37]SAM_PROTO_GetShiftState done [08:41:37]FM_GetShiftState done [08:41:37]req_shift_opened done [08:41:37]requested_item shift.open_date is exist - process it [08:41:37]req_shift_open_date [08:41:37]req_shift_open_date done [08:41:37]produce_requested_data done [08:41:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103346,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:41:37]process_action_free close_receipt [08:41:37]json_value_free [08:41:37]json_value_free done [08:41:37]process_json_proto returns [08:41:37]Send response to host [08:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103346,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:41:37]free response buf [08:41:37]execute_script done [08:41:37]execute_script returns [08:41:37]free content buf [08:41:37]Sock 9.Close socket [08:41:37]Sock 9.Thread stoped [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:38]accept exits with 7 [08:43:38]New connection [08:43:38]New thread 3067227492 created [08:43:38]Thread 3067084132 joined [08:43:38]Waiting for new connection... [08:43:38] Sock 7.Parse request [08:43:38]Sock 7.Check first char [08:43:38]Sock 7.First char is OK [08:43:38]request: POST /json_proto HTTP/1.0 [08:43:38]Method: POST [08:43:38]URL: /json_proto [08:43:38]Method is POST - this is cgi request [08:43:38]url: /json_proto [08:43:38]query_string will be loaded in cgi processing [08:43:38]execute_cgi json_proto POST (null) [08:43:38]execute_cgi path=json_proto method=POST [08:43:38]POST find Content-Length [08:43:38]Host: 172.17.38.133:8080 [08:43:38]Content-Length: 687 [08:43:38]Content-Type: application/json [08:43:38] [08:43:38]POST finish read [08:43:38]Found Content-Length = 687 [08:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:38]execute_script... [08:43:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:38]POST & json_proto [08:43:38]process_json_proto [08:43:38]json parsed OK: [08:43:38]protocol is kg_v1.0 [08:43:38]action value=close_receipt [08:43:38]process_action close_receipt [08:43:38]cmd_close_receipt [08:43:38]MH_GetDate [08:43:38]Write to MH i2c: F0 00 00 41 40 70 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: F0 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: F0 09 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: F0 09 00 41 40 00 C0 48 71 66 BD 8F 7C 64 84 [08:43:38]GetLastDocTimeStamp 1718700099 [08:43:38]current date 1718700224 [08:43:38]FM_GetShiftState [08:43:38]SAM_PROTO_GetShiftState [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 13 01 00 [08:43:38]Write to MH i2c: E2 08 00 42 40 80 13 01 00 00 00 00 00 FF [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:38]Read from MH i2c: E2 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 0E 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 0E 00 42 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 80 [08:43:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:43:38]wFMCommunicate OK [08:43:38]SAM_PROTO_GetShiftState done [08:43:38]FM_GetShiftState done [08:43:38]opened in 1718670284 [08:43:38]opened+sec_in_day 1718756684 [08:43:38]quantity*price = 100018 [08:43:38]sum+1 = 100020 [08:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 31 18.06.2024 08:43 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103347 ФПД: 60619061609820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084344&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103347&fm=60619061609820&tin=02508201610067®Number=0000000000092785&sum=100000 [08:43:39]StoreToDocumentArchive [08:43:39]shift 352 fd 103347 [08:43:39]save to /storage/0352/doc_00103347 [08:43:39]save last doc name /storage/0352/doc_00103347 to /storage/kkm_last_doc_name [08:43:39]save OK [08:43:39]Clear old archive folders... [08:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:43:39]tlvbuf is 0134F990 [08:43:39]SAM_PROTO_ClearQueue [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 09 00 00 [08:43:39]Write to MH i2c: E2 08 00 4F 40 80 09 00 00 00 00 00 00 01 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 4F 40 00 90 00 03 [08:43:39]RAPDU: 90 00 [08:43:39]wFMCommunicate OK [08:43:39]SAM_PROTO_ClearQueue done [08:43:39]KKMCreateOFDPacket [08:43:39]OFDProtocolAddRootSTLVToBuf [08:43:39]FM_MakeSignedData [08:43:39]FM_MakeSignedData [08:43:39]SAM_PROTO_SignData [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 0D 01 02 [08:43:39]Write to MH i2c: E2 08 00 50 40 80 0D 01 02 00 00 00 00 09 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 50 40 00 90 00 04 [08:43:39]RAPDU: 90 00 [08:43:39]wFMCommunicate OK [08:43:39]wFMCommunicate request_size=255 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C0 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 93 01 00 35 04 06 00 [08:43:39]Write to MH i2c: E2 02 01 51 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C0 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 93 01 00 35 04 06 00 00 00 03 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 51 40 00 90 00 05 [08:43:39]RAPDU: 90 00 [08:43:39]wFMCommunicate OK [08:43:39]wFMCommunicate request_size=11 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 0D 02 02 06 37 21 F9 A2 45 5C [08:43:39]Write to MH i2c: E2 0E 00 52 40 80 0D 02 02 06 00 37 21 F9 A2 45 5C 00 00 AC [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 03 00 52 40 00 90 00 06 [08:43:39]RAPDU: 90 00 [08:43:39]wFMCommunicate OK [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 0D 03 02 [08:43:39]Write to MH i2c: E2 08 00 53 40 80 0D 03 02 00 00 00 00 0E [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0B 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 0B 00 53 40 00 55 35 5B BD BE 72 BC F9 90 00 96 [08:43:39]RAPDU: 55 35 5B BD BE 72 BC F9 90 00 [08:43:39]wFMCommunicate OK [08:43:39]SAM_PROTO_SignData done [08:43:39]FM_MakeSignedData done [08:43:39]CreateOFDProtocolMessage [08:43:39]wFMCommunicate request_size=4 [08:43:39]MH_SAM_APDU [08:43:39]CAPDU: 80 11 00 00 [08:43:39]Write to MH i2c: E2 08 00 54 40 80 11 00 00 00 00 00 00 0E [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:39]Read from MH i2c: E2 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 17 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: E2 17 00 54 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [08:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:43:39]wFMCommunicate OK [08:43:39]CreateOFDProtocolMessage done [08:43:39]OFDSenderStorePacket 103347 [08:43:39]StoreOFDPacket docnum=103347 [08:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 97 08 01 9D 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C0 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 93 01 00 35 04 06 00 37 21 F9 A2 45 5C 55 35 5B BD BE 72 BC F9 [08:43:39]CheckFolder [08:43:39]dirname=/storage/ofd_packets [08:43:39]CheckFolder done [08:43:39]ProducePacketName [08:43:39]name=ofd_packets/00103347 [08:43:39]NVStorageSaveData ofd_packets/00103347 [08:43:39]File name is /storage/ofd_packets/00103347 [08:43:39]Write 302 bytes [08:43:39]NVStorageSaveData done [08:43:39]OFDSenderStorePacket done [08:43:39]KKMCreateOFDPacket done [08:43:39]NVStorageSaveData kkm_last_timestamp [08:43:39]File name is /storage/kkm_last_timestamp [08:43:39]Write 4 bytes [08:43:39]NVStorageSaveData done [08:43:39]ExternCall_PrintAddStr [08:43:39]wPrintStart [08:43:39]Write to MH i2c: 01 00 00 55 40 95 [08:43:39]Write i2c OK [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: 01 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: 01 07 00 [08:43:39]MH_I2C_Read... [08:43:39]Read from MH i2c: 01 07 00 55 40 00 00 00 00 00 FF 0F AA [08:43:39]RasterBufferAndPrint [08:43:39]line Счет N : (1)672485 [08:43:39]line ИНН: 02508201610067 [08:43:39]line Контрольно-Кассовый Чек [08:43:39]line ПРОДАЖА [08:43:39]line ТРК (МРК, ГНК) : 21 [08:43:39]line Товар: 2710194210 [08:43:39]line ДТ(л)-К-5 [08:43:39]line 13.720 * 72.90 [08:43:39]line = 1000.19 [08:43:39]line НДС 12% НСП 1% [08:43:39]line > о реализуемом товаре [08:43:39]line ОКРУГЛЕНИЕ: -0.19 [08:43:39]line ИТОГО: 1000.00 [08:43:39]line Внесено: 1000.00 [08:43:39]line СДАЧА: 0.00 [08:43:39]line НСП 1% : 8.85 [08:43:39]line НДС 12% : 106.21 [08:43:39]line Наличными: 1000.00 [08:43:39]line Безнал.: 0.00 [08:43:39]line Место: АЗС № 120 "Партнер Нефть" [08:43:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:43:39]line СНО: Общий режим [08:43:39]line Чек 31 18.06.2024 08:43 [08:43:39]line Смена: 352 ФФД: 1.0 [08:43:39]line ЗНМ: 0300000164 [08:43:39]line РНМ: 0000000000092785 [08:43:39]line Версия ККМ: 001 [08:43:39]line ФМ: 0000000000875093 [08:43:39]line ФД: 103347 [08:43:39]line ФПД: 60619061609820 [08:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084344&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103347&fm=60619061609820&tin=02508201610067®Number=0000000000092785&sum=100000 [08:43:40]OFD Sender: Processing packet 103347 [packets to send 17, broken 16] [08:43:40]ProducePacketName [08:43:40]name=ofd_packets/00103347 [08:43:40]OFD Sender: To server: pG, [08:43:40]CommunicateWithHost lk.salyk.kg:30040 [08:43:40]ConnectInit lk.salyk.kg [08:43:40]written 0, free lines is 4095 [08:43:40]Connected sock=10 [08:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 97 08 01 9D 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 C0 48 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 93 01 00 35 04 06 00 37 21 F9 A2 45 5C 55 35 5B BD BE 72 BC F9 [08:43:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4D AC 47 00 6A 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 35 30 39 33 10 04 04 00 B3 93 01 00 F4 03 04 00 4C EF 70 66 B6 04 01 00 00 EB 16 B8 D9 EF CD AD EB [08:43:40]CommunicateWithHost err = 0 [08:43:40]CheckOFDResponse [08:43:40]1017 (14) - 77093643461234 [08:43:40]1041 (16) - 0000000000875093 [08:43:40]1040 (4) - 103347 [08:43:40]1012 (4) - 18.06.2024 02:22 [08:43:40]1206 (1) - 0 [08:43:40]OFD Sender: Remove packet 103347 [08:43:40]ProducePacketName [08:43:40]name=ofd_packets/00103347 [08:43:40]NVStorageDeleteData [08:43:40]Write to MH i2c: 01 00 00 80 40 C0 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: 01 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: 01 07 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: 01 07 00 80 40 00 00 00 00 00 DA 0C AD [08:43:40]RasterBufferAndPrint [08:43:40]line [08:43:40]line [08:43:40]line [08:43:40]line [08:43:40]line [08:43:40]written 0, free lines is 3297 [08:43:40]MH_Cut [08:43:40]Write to MH i2c: D1 01 00 87 40 01 99 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: D1 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: D1 01 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: D1 01 00 87 40 00 98 [08:43:40]Write to MH i2c: 01 00 00 88 40 C8 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:41]OFD Sender: No OFD packet to send [08:43:41]*** Cut start [08:43:41]*** Partial cut [08:43:41]*** CUTSNS_PIN = 1 [08:43:41]*** CUTSNS_PIN = 0 [08:43:41]*** Brake cut motor [08:43:42]Read from MH i2c: 01 [08:43:42]MH_I2C_Read... [08:43:42]*** Stop cut motor [08:43:42]*** Cut end [08:43:42]Read from MH i2c: 01 07 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: 01 07 00 88 40 00 00 00 00 00 FF 0F DD [08:43:42]process_action close_receipt done [08:43:42]requested_data is exist [08:43:42]produce_requested_data [08:43:42]requested_item fm.sn is exist - process it [08:43:42]wFMCommunicate request_size=4 [08:43:42]MH_SAM_APDU [08:43:42]CAPDU: 80 11 00 00 [08:43:42]Write to MH i2c: E2 08 00 89 40 80 11 00 00 00 00 00 00 43 [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:42]Read from MH i2c: E2 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 17 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 17 00 89 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [08:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:43:42]wFMCommunicate OK [08:43:42]requested_item fd.num is exist - process it [08:43:42]SAM_PROTO_GetFieldsCounters [08:43:42]wFMCommunicate request_size=4 [08:43:42]MH_SAM_APDU [08:43:42]CAPDU: 80 13 00 00 [08:43:42]Write to MH i2c: E2 08 00 8A 40 80 13 00 00 00 00 00 00 46 [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:42]Read from MH i2c: E2 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 62 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 62 00 8A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:42]wFMCommunicate OK [08:43:42]SAM_PROTO_GetFieldsCounters done [08:43:42]requested_item shift.num is exist - process it [08:43:42]requested_item shift.opened is exist - process it [08:43:42]req_shift_opened [08:43:42]FM_GetShiftState [08:43:42]SAM_PROTO_GetShiftState [08:43:42]wFMCommunicate request_size=4 [08:43:42]MH_SAM_APDU [08:43:42]CAPDU: 80 13 01 00 [08:43:42]Write to MH i2c: E2 08 00 8B 40 80 13 01 00 00 00 00 00 48 [08:43:42]Write i2c OK [08:43:42]MH_I2C_Read... [08:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:42]Read from MH i2c: E2 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 0E 00 [08:43:42]MH_I2C_Read... [08:43:42]Read from MH i2c: E2 0E 00 8B 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C9 [08:43:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:43:42]wFMCommunicate OK [08:43:42]SAM_PROTO_GetShiftState done [08:43:42]FM_GetShiftState done [08:43:42]req_shift_opened done [08:43:42]requested_item shift.open_date is exist - process it [08:43:42]req_shift_open_date [08:43:42]req_shift_open_date done [08:43:42]produce_requested_data done [08:43:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103347,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:43:42]process_action_free close_receipt [08:43:42]json_value_free [08:43:42]json_value_free done [08:43:42]process_json_proto returns [08:43:42]Send response to host [08:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103347,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:43:42]free response buf [08:43:42]execute_script done [08:43:42]execute_script returns [08:43:42]free content buf [08:43:42]Sock 7.Close socket [08:43:42]Sock 7.Thread stoped [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:47:59]accept exits with 9 [08:47:59]New connection [08:47:59]New thread 3067084132 created [08:47:59]Thread 3067227492 joined [08:47:59]Waiting for new connection... [08:47:59] Sock 9.Parse request [08:47:59]Sock 9.Check first char [08:47:59]Sock 9.First char is OK [08:47:59]request: POST /json_proto HTTP/1.0 [08:47:59]Method: POST [08:47:59]URL: /json_proto [08:47:59]Method is POST - this is cgi request [08:47:59]url: /json_proto [08:47:59]query_string will be loaded in cgi processing [08:47:59]execute_cgi json_proto POST (null) [08:47:59]execute_cgi path=json_proto method=POST [08:47:59]POST find Content-Length [08:47:59]Host: 172.17.38.133:8080 [08:47:59]Content-Length: 682 [08:47:59]Content-Type: application/json [08:47:59] [08:47:59]POST finish read [08:47:59]Found Content-Length = 682 [08:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:59]execute_script... [08:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:59]POST & json_proto [08:47:59]process_json_proto [08:47:59]json parsed OK: [08:47:59]protocol is kg_v1.0 [08:47:59]action value=close_receipt [08:47:59]process_action close_receipt [08:47:59]cmd_close_receipt [08:47:59]MH_GetDate [08:47:59]Write to MH i2c: F0 00 00 8C 40 BB [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: F0 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: F0 09 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: F0 09 00 8C 40 00 C5 49 71 66 BD 8F 7C 64 D5 [08:47:59]GetLastDocTimeStamp 1718700224 [08:47:59]current date 1718700485 [08:47:59]FM_GetShiftState [08:47:59]SAM_PROTO_GetShiftState [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 13 01 00 [08:47:59]Write to MH i2c: E2 08 00 8D 40 80 13 01 00 00 00 00 00 4A [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0E 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0E 00 8D 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CB [08:47:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:47:59]wFMCommunicate OK [08:47:59]SAM_PROTO_GetShiftState done [08:47:59]FM_GetShiftState done [08:47:59]opened in 1718670284 [08:47:59]opened+sec_in_day 1718756684 [08:47:59]quantity*price = 160024 [08:47:59]sum+1 = 160025 [08:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 18.06.2024 08:48 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103348 ФПД: 105331002826962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103348&fm=105331002826962&tin=02508201610067®Number=0000000000092785&sum=160000 [08:48:00]StoreToDocumentArchive [08:48:00]shift 352 fd 103348 [08:48:00]save to /storage/0352/doc_00103348 [08:48:00]save last doc name /storage/0352/doc_00103348 to /storage/kkm_last_doc_name [08:48:00]save OK [08:48:00]Clear old archive folders... [08:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:00]tlvbuf is 013EBC50 [08:48:00]SAM_PROTO_ClearQueue [08:48:00]wFMCommunicate request_size=4 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 09 00 00 [08:48:00]Write to MH i2c: E2 08 00 9A 40 80 09 00 00 00 00 00 00 4C [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:00]Read from MH i2c: E2 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 03 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 03 00 9A 40 00 90 00 4E [08:48:00]RAPDU: 90 00 [08:48:00]wFMCommunicate OK [08:48:00]SAM_PROTO_ClearQueue done [08:48:00]KKMCreateOFDPacket [08:48:00]OFDProtocolAddRootSTLVToBuf [08:48:00]FM_MakeSignedData [08:48:00]FM_MakeSignedData [08:48:00]SAM_PROTO_SignData [08:48:00]wFMCommunicate request_size=4 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 0D 01 02 [08:48:00]Write to MH i2c: E2 08 00 9B 40 80 0D 01 02 00 00 00 00 54 [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:00]Read from MH i2c: E2 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 03 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 03 00 9B 40 00 90 00 4F [08:48:00]RAPDU: 90 00 [08:48:00]wFMCommunicate OK [08:48:00]wFMCommunicate request_size=255 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 49 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 93 01 00 35 04 06 00 5F [08:48:00]Write to MH i2c: E2 02 01 9C 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 49 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 93 01 00 35 04 06 00 5F 00 00 9E [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 9C 40 00 90 00 50 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]wFMCommunicate request_size=10 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 02 02 05 CC 49 01 E0 D2 [08:48:01]Write to MH i2c: E2 0D 00 9D 40 80 0D 02 02 05 00 CC 49 01 E0 D2 00 00 29 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [08:48:01]RAPDU: 90 00 [08:48:01]wFMCommunicate OK [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 0D 03 02 [08:48:01]Write to MH i2c: E2 08 00 9E 40 80 0D 03 02 00 00 00 00 59 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0B 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0B 00 9E 40 00 59 8B 85 45 40 66 79 75 90 00 9C [08:48:01]RAPDU: 59 8B 85 45 40 66 79 75 90 00 [08:48:01]wFMCommunicate OK [08:48:01]SAM_PROTO_SignData done [08:48:01]FM_MakeSignedData done [08:48:01]CreateOFDProtocolMessage [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 11 00 00 [08:48:01]Write to MH i2c: E2 08 00 9F 40 80 11 00 00 00 00 00 00 59 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 17 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 17 00 9F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [08:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:48:01]wFMCommunicate OK [08:48:01]CreateOFDProtocolMessage done [08:48:01]OFDSenderStorePacket 103348 [08:48:01]StoreOFDPacket docnum=103348 [08:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 70 B0 07 01 06 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 49 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 93 01 00 35 04 06 00 5F CC 49 01 E0 D2 59 8B 85 45 40 66 79 75 [08:48:01]CheckFolder [08:48:01]dirname=/storage/ofd_packets [08:48:01]CheckFolder done [08:48:01]ProducePacketName [08:48:01]name=ofd_packets/00103348 [08:48:01]NVStorageSaveData ofd_packets/00103348 [08:48:01]File name is /storage/ofd_packets/00103348 [08:48:01]Write 301 bytes [08:48:01]NVStorageSaveData done [08:48:01]OFDSenderStorePacket done [08:48:01]KKMCreateOFDPacket done [08:48:01]NVStorageSaveData kkm_last_timestamp [08:48:01]File name is /storage/kkm_last_timestamp [08:48:01]Write 4 bytes [08:48:01]NVStorageSaveData done [08:48:01]ExternCall_PrintAddStr [08:48:01]wPrintStart [08:48:01]Write to MH i2c: 01 00 00 A0 40 E0 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 A0 40 00 00 00 00 00 FF 0F F5 [08:48:01]RasterBufferAndPrint [08:48:01]line Счет N : (1)672486 [08:48:01]line ИНН: 02508201610067 [08:48:01]line Контрольно-Кассовый Чек [08:48:01]line ПРОДАЖА [08:48:01]line ТРК (МРК, ГНК) : 32 [08:48:01]line Товар: 2710124130 [08:48:01]line Аи-92-К-5 [08:48:01]line 24.100 * 66.40 [08:48:01]line = 1600.24 [08:48:01]line НДС 12% НСП 1% [08:48:01]line > о реализуемом товаре [08:48:01]line ОКРУГЛЕНИЕ: -0.24 [08:48:01]line ИТОГО: 1600.00 [08:48:01]line Внесено: 1600.00 [08:48:01]line СДАЧА: 0.00 [08:48:01]line НСП 1% : 14.16 [08:48:01]line НДС 12% : 169.94 [08:48:01]line Наличными: 1600.00 [08:48:01]line Безнал.: 0.00 [08:48:01]line Место: АЗС № 120 "Партнер Нефть" [08:48:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:48:01]line СНО: Общий режим [08:48:01]line Чек 32 18.06.2024 08:48 [08:48:01]line Смена: 352 ФФД: 1.0 [08:48:01]line ЗНМ: 0300000164 [08:48:01]line РНМ: 0000000000092785 [08:48:01]line Версия ККМ: 001 [08:48:01]line ФМ: 0000000000875093 [08:48:01]line ФД: 103348 [08:48:01]line ФПД: 105331002826962 [08:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T084805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103348&fm=105331002826962&tin=02508201610067®Number=0000000000092785&sum=160000 [08:48:01]OFD Sender: Processing packet 103348 [packets to send 17, broken 16] [08:48:01]ProducePacketName [08:48:01]name=ofd_packets/00103348 [08:48:01]OFD Sender: To server: pG, [08:48:01]CommunicateWithHost lk.salyk.kg:30040 [08:48:01]ConnectInit lk.salyk.kg [08:48:01]written 0, free lines is 4095 [08:48:01]Connected sock=10 [08: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 35 30 39 33 0F 01 00 00 70 B0 07 01 06 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 49 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 93 01 00 35 04 06 00 5F CC 49 01 E0 D2 59 8B 85 45 40 66 79 75 [08:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 98 3D 47 00 7E B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 93 01 00 F4 03 04 00 52 F0 70 66 B6 04 01 00 00 A6 AE BE 15 A8 65 CD 80 [08:48:01]CommunicateWithHost err = 0 [08:48:01]CheckOFDResponse [08:48:01]1017 (14) - 77093643461234 [08:48:01]1041 (16) - 0000000000875093 [08:48:01]1040 (4) - 103348 [08:48:01]1012 (4) - 18.06.2024 02:26 [08:48:01]1206 (1) - 0 [08:48:01]OFD Sender: Remove packet 103348 [08:48:01]ProducePacketName [08:48:01]name=ofd_packets/00103348 [08:48:01]NVStorageDeleteData [08:48:01]Write to MH i2c: 01 00 00 CB 40 0B [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: 01 07 00 CB 40 00 00 00 00 00 E5 0C 03 [08:48:01]RasterBufferAndPrint [08:48:01]line [08:48:01]line [08:48:01]line [08:48:01]line [08:48:01]line [08:48:01]written 0, free lines is 3307 [08:48:01]MH_Cut [08:48:01]Write to MH i2c: D1 01 00 D2 40 01 E4 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: D1 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: D1 01 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: D1 01 00 D2 40 00 E3 [08:48:01]Write to MH i2c: 01 00 00 D3 40 13 [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:02]OFD Sender: No OFD packet to send [08:48:02]*** Cut start [08:48:02]*** Partial cut [08:48:02]*** CUTSNS_PIN = 1 [08:48:02]*** CUTSNS_PIN = 0 [08:48:02]*** Brake cut motor [08:48:03]Read from MH i2c: 01 [08:48:03]MH_I2C_Read... [08:48:03]*** Stop cut motor [08:48:03]*** Cut end [08:48:03]Read from MH i2c: 01 07 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: 01 07 00 D3 40 00 00 00 00 00 FF 0F 28 [08:48:03]process_action close_receipt done [08:48:03]requested_data is exist [08:48:03]produce_requested_data [08:48:03]requested_item fm.sn is exist - process it [08:48:03]wFMCommunicate request_size=4 [08:48:03]MH_SAM_APDU [08:48:03]CAPDU: 80 11 00 00 [08:48:03]Write to MH i2c: E2 08 00 D4 40 80 11 00 00 00 00 00 00 8E [08:48:03]Write i2c OK [08:48:03]MH_I2C_Read... [08:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:03]Read from MH i2c: E2 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 17 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 17 00 D4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [08:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:48:03]wFMCommunicate OK [08:48:03]requested_item fd.num is exist - process it [08:48:03]SAM_PROTO_GetFieldsCounters [08:48:03]wFMCommunicate request_size=4 [08:48:03]MH_SAM_APDU [08:48:03]CAPDU: 80 13 00 00 [08:48:03]Write to MH i2c: E2 08 00 D5 40 80 13 00 00 00 00 00 00 91 [08:48:03]Write i2c OK [08:48:03]MH_I2C_Read... [08:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:03]Read from MH i2c: E2 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 62 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 62 00 D5 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [08: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:03]wFMCommunicate OK [08:48:03]SAM_PROTO_GetFieldsCounters done [08:48:03]requested_item shift.num is exist - process it [08:48:03]requested_item shift.opened is exist - process it [08:48:03]req_shift_opened [08:48:03]FM_GetShiftState [08:48:03]SAM_PROTO_GetShiftState [08:48:03]wFMCommunicate request_size=4 [08:48:03]MH_SAM_APDU [08:48:03]CAPDU: 80 13 01 00 [08:48:03]Write to MH i2c: E2 08 00 D6 40 80 13 01 00 00 00 00 00 93 [08:48:03]Write i2c OK [08:48:03]MH_I2C_Read... [08:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:03]Read from MH i2c: E2 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 0E 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 0E 00 D6 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 14 [08:48:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:48:03]wFMCommunicate OK [08:48:03]SAM_PROTO_GetShiftState done [08:48:03]FM_GetShiftState done [08:48:03]req_shift_opened done [08:48:03]requested_item shift.open_date is exist - process it [08:48:03]req_shift_open_date [08:48:03]req_shift_open_date done [08:48:03]produce_requested_data done [08:48:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103348,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:48:03]process_action_free close_receipt [08:48:03]json_value_free [08:48:03]json_value_free done [08:48:03]process_json_proto returns [08:48:03]Send response to host [08:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103348,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:48:03]free response buf [08:48:03]execute_script done [08:48:03]execute_script returns [08:48:03]free content buf [08:48:03]Sock 9.Close socket [08:48:03]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:03]accept exits with 7 [08:52:03]New connection [08:52:03]New thread 3067227492 created [08:52:03]Thread 3067084132 joined [08:52:03]Waiting for new connection... [08:52:03] Sock 7.Parse request [08:52:03]Sock 7.Check first char [08:52:03]Sock 7.First char is OK [08:52:03]request: POST /json_proto HTTP/1.0 [08:52:03]Method: POST [08:52:03]URL: /json_proto [08:52:03]Method is POST - this is cgi request [08:52:03]url: /json_proto [08:52:03]query_string will be loaded in cgi processing [08:52:03]execute_cgi json_proto POST (null) [08:52:03]execute_cgi path=json_proto method=POST [08:52:03]POST find Content-Length [08:52:03]Host: 172.17.38.133:8080 [08:52:03]Content-Length: 682 [08:52:03]Content-Type: application/json [08:52:03] [08:52:03]POST finish read [08:52:03]Found Content-Length = 682 [08:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:03]execute_script... [08:52:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:03]POST & json_proto [08:52:03]process_json_proto [08:52:03]json parsed OK: [08:52:03]protocol is kg_v1.0 [08:52:03]action value=close_receipt [08:52:03]process_action close_receipt [08:52:03]cmd_close_receipt [08:52:03]MH_GetDate [08:52:03]Write to MH i2c: F0 00 00 D7 40 06 [08:52:03]Write i2c OK [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 09 00 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: F0 09 00 D7 40 00 B9 4A 71 66 BD 8F 7C 64 15 [08:52:03]GetLastDocTimeStamp 1718700485 [08:52:03]current date 1718700729 [08:52:03]FM_GetShiftState [08:52:03]SAM_PROTO_GetShiftState [08:52:03]wFMCommunicate request_size=4 [08:52:03]MH_SAM_APDU [08:52:03]CAPDU: 80 13 01 00 [08:52:03]Write to MH i2c: E2 08 00 D8 40 80 13 01 00 00 00 00 00 95 [08:52:03]Write i2c OK [08:52:03]MH_I2C_Read... [08:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:03]Read from MH i2c: E2 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: E2 0E 00 [08:52:03]MH_I2C_Read... [08:52:03]Read from MH i2c: E2 0E 00 D8 40 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 16 [08:52:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:52:03]wFMCommunicate OK [08:52:03]SAM_PROTO_GetShiftState done [08:52:03]FM_GetShiftState done [08:52:03]opened in 1718670284 [08:52:03]opened+sec_in_day 1718756684 [08:52:03]quantity*price = 300061 [08:52:03]sum+1 = 300063 [08:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 33 18.06.2024 08:52 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103349 ФПД: 139116184414007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T085209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103349&fm=139116184414007&tin=02508201610067®Number=0000000000092785&sum=300000 [08:52:04]StoreToDocumentArchive [08:52:04]shift 352 fd 103349 [08:52:04]save to /storage/0352/doc_00103349 [08:52:04]save last doc name /storage/0352/doc_00103349 to /storage/kkm_last_doc_name [08:52:04]save OK [08:52:04]Clear old archive folders... [08:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:04]tlvbuf is 01350070 [08:52:04]SAM_PROTO_ClearQueue [08:52:04]wFMCommunicate request_size=4 [08:52:04]MH_SAM_APDU [08:52:04]CAPDU: 80 09 00 00 [08:52:04]Write to MH i2c: E2 08 00 E5 40 80 09 00 00 00 00 00 00 97 [08:52:04]Write i2c OK [08:52:04]MH_I2C_Read... [08:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:04]Read from MH i2c: E2 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 03 00 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 03 00 E5 40 00 90 00 99 [08:52:04]RAPDU: 90 00 [08:52:04]wFMCommunicate OK [08:52:04]SAM_PROTO_ClearQueue done [08:52:04]KKMCreateOFDPacket [08:52:04]OFDProtocolAddRootSTLVToBuf [08:52:04]FM_MakeSignedData [08:52:04]FM_MakeSignedData [08:52:04]SAM_PROTO_SignData [08:52:04]wFMCommunicate request_size=4 [08:52:04]MH_SAM_APDU [08:52:04]CAPDU: 80 0D 01 02 [08:52:04]Write to MH i2c: E2 08 00 E6 40 80 0D 01 02 00 00 00 00 9F [08:52:04]Write i2c OK [08:52:04]MH_I2C_Read... [08:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:04]Read from MH i2c: E2 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 03 00 [08:52:04]MH_I2C_Read... [08:52:04]Read from MH i2c: E2 03 00 E6 40 00 90 00 9A [08:52:04]RAPDU: 90 00 [08:52:04]wFMCommunicate OK [08:52:04]wFMCommunicate request_size=255 [08:52:04]MH_SAM_APDU [08:52:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B9 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 93 01 00 35 04 06 00 7E [08:52:04]Write to MH i2c: E2 02 01 E7 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B9 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 93 01 00 35 04 06 00 7E 00 00 13 [08:52:04]Write i2c OK [08:52:04]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 E7 40 00 90 00 9B [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]wFMCommunicate request_size=10 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 0D 02 02 05 86 82 C1 27 37 [08:52:05]Write to MH i2c: E2 0D 00 E8 40 80 0D 02 02 05 00 86 82 C1 27 37 00 00 D3 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 03 00 E8 40 00 90 00 9C [08:52:05]RAPDU: 90 00 [08:52:05]wFMCommunicate OK [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 0D 03 02 [08:52:05]Write to MH i2c: E2 08 00 E9 40 80 0D 03 02 00 00 00 00 A4 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0B 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 0B 00 E9 40 00 A3 A7 B4 AF D0 28 60 12 90 00 BC [08:52:05]RAPDU: A3 A7 B4 AF D0 28 60 12 90 00 [08:52:05]wFMCommunicate OK [08:52:05]SAM_PROTO_SignData done [08:52:05]FM_MakeSignedData done [08:52:05]CreateOFDProtocolMessage [08:52:05]wFMCommunicate request_size=4 [08:52:05]MH_SAM_APDU [08:52:05]CAPDU: 80 11 00 00 [08:52:05]Write to MH i2c: E2 08 00 EA 40 80 11 00 00 00 00 00 00 A4 [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:05]Read from MH i2c: E2 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 17 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: E2 17 00 EA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [08:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:52:05]wFMCommunicate OK [08:52:05]CreateOFDProtocolMessage done [08:52:05]OFDSenderStorePacket 103349 [08:52:05]StoreOFDPacket docnum=103349 [08:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A 9D 07 01 56 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B9 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 93 01 00 35 04 06 00 7E 86 82 C1 27 37 A3 A7 B4 AF D0 28 60 12 [08:52:05]CheckFolder [08:52:05]dirname=/storage/ofd_packets [08:52:05]CheckFolder done [08:52:05]ProducePacketName [08:52:05]name=ofd_packets/00103349 [08:52:05]NVStorageSaveData ofd_packets/00103349 [08:52:05]File name is /storage/ofd_packets/00103349 [08:52:05]Write 301 bytes [08:52:05]NVStorageSaveData done [08:52:05]OFDSenderStorePacket done [08:52:05]KKMCreateOFDPacket done [08:52:05]NVStorageSaveData kkm_last_timestamp [08:52:05]File name is /storage/kkm_last_timestamp [08:52:05]Write 4 bytes [08:52:05]NVStorageSaveData done [08:52:05]ExternCall_PrintAddStr [08:52:05]wPrintStart [08:52:05]Write to MH i2c: 01 00 00 EB 40 2B [08:52:05]Write i2c OK [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 07 00 [08:52:05]MH_I2C_Read... [08:52:05]Read from MH i2c: 01 07 00 EB 40 00 00 00 00 00 FF 0F 40 [08:52:05]RasterBufferAndPrint [08:52:05]line Счет N : (1)672487 [08:52:05]line ИНН: 02508201610067 [08:52:05]line Контрольно-Кассовый Чек [08:52:05]line ПРОДАЖА [08:52:05]line ТРК (МРК, ГНК) : 42 [08:52:05]line Товар: 2710124130 [08:52:05]line Аи-92-К-5 [08:52:05]line 45.190 * 66.40 [08:52:05]line = 3000.62 [08:52:05]line НДС 12% НСП 1% [08:52:05]line > о реализуемом товаре [08:52:05]line ОКРУГЛЕНИЕ: -0.62 [08:52:05]line ИТОГО: 3000.00 [08:52:05]line Внесено: 3000.00 [08:52:05]line СДАЧА: 0.00 [08:52:05]line НСП 1% : 26.55 [08:52:05]line НДС 12% : 318.65 [08:52:05]line Наличными: 3000.00 [08:52:05]line Безнал.: 0.00 [08:52:05]line Место: АЗС № 120 "Партнер Нефть" [08:52:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:52:05]line СНО: Общий режим [08:52:05]line Чек 33 18.06.2024 08:52 [08:52:05]line Смена: 352 ФФД: 1.0 [08:52:05]line ЗНМ: 0300000164 [08:52:05]line РНМ: 0000000000092785 [08:52:05]line Версия ККМ: 001 [08:52:05]line ФМ: 0000000000875093 [08:52:05]line ФД: 103349 [08:52:05]line ФПД: 139116184414007 [08:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T085209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103349&fm=139116184414007&tin=02508201610067®Number=0000000000092785&sum=300000 [08:52:05]OFD Sender: Processing packet 103349 [packets to send 17, broken 16] [08:52:05]ProducePacketName [08:52:05]name=ofd_packets/00103349 [08:52:05]OFD Sender: To server: pG, [08:52:05]CommunicateWithHost lk.salyk.kg:30040 [08:52:05]ConnectInit lk.salyk.kg [08:52:05]written 0, free lines is 4095 [08:52:05]Connected sock=10 [08:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A 9D 07 01 56 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 B9 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 93 01 00 35 04 06 00 7E 86 82 C1 27 37 A3 A7 B4 AF D0 28 60 12 [08:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B5 83 47 00 F6 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 93 01 00 F4 03 04 00 46 F1 70 66 B6 04 01 00 00 6A 97 93 4E 26 52 F9 F1 [08:52:06]CommunicateWithHost err = 0 [08:52:06]CheckOFDResponse [08:52:06]1017 (14) - 77093643461234 [08:52:06]1041 (16) - 0000000000875093 [08:52:06]1040 (4) - 103349 [08:52:06]1012 (4) - 18.06.2024 02:30 [08:52:06]1206 (1) - 0 [08:52:06]OFD Sender: Remove packet 103349 [08:52:06]ProducePacketName [08:52:06]name=ofd_packets/00103349 [08:52:06]NVStorageDeleteData [08:52:06]Write to MH i2c: 01 00 00 16 41 57 [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 07 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: 01 07 00 16 41 00 00 00 00 00 E7 0C 51 [08:52:06]RasterBufferAndPrint [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]line [08:52:06]written 0, free lines is 3310 [08:52:06]MH_Cut [08:52:06]Write to MH i2c: D1 01 00 1D 41 01 30 [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 01 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: D1 01 00 1D 41 00 2F [08:52:06]Write to MH i2c: 01 00 00 1E 41 5F [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]OFD Sender: No OFD packet to send [08:52:06]*** Cut start [08:52:06]*** Partial cut [08:52:06]*** CUTSNS_PIN = 1 [08:52:06]*** CUTSNS_PIN = 0 [08:52:07]*** Brake cut motor [08:52:07]Read from MH i2c: 01 [08:52:07]MH_I2C_Read... [08:52:07]*** Stop cut motor [08:52:07]*** Cut end [08:52:07]Read from MH i2c: 01 07 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: 01 07 00 1E 41 00 00 00 00 00 FF 0F 74 [08:52:07]process_action close_receipt done [08:52:07]requested_data is exist [08:52:07]produce_requested_data [08:52:07]requested_item fm.sn is exist - process it [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 11 00 00 [08:52:07]Write to MH i2c: E2 08 00 1F 41 80 11 00 00 00 00 00 00 DA [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 17 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 17 00 1F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [08:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:52:07]wFMCommunicate OK [08:52:07]requested_item fd.num is exist - process it [08:52:07]SAM_PROTO_GetFieldsCounters [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 13 00 00 [08:52:07]Write to MH i2c: E2 08 00 20 41 80 13 00 00 00 00 00 00 DD [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 62 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 62 00 20 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:07]wFMCommunicate OK [08:52:07]SAM_PROTO_GetFieldsCounters done [08:52:07]requested_item shift.num is exist - process it [08:52:07]requested_item shift.opened is exist - process it [08:52:07]req_shift_opened [08:52:07]FM_GetShiftState [08:52:07]SAM_PROTO_GetShiftState [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 13 01 00 [08:52:07]Write to MH i2c: E2 08 00 21 41 80 13 01 00 00 00 00 00 DF [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0E 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0E 00 21 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 60 [08:52:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:52:07]wFMCommunicate OK [08:52:07]SAM_PROTO_GetShiftState done [08:52:07]FM_GetShiftState done [08:52:07]req_shift_opened done [08:52:07]requested_item shift.open_date is exist - process it [08:52:07]req_shift_open_date [08:52:07]req_shift_open_date done [08:52:07]produce_requested_data done [08:52:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103349,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:52:07]process_action_free close_receipt [08:52:07]json_value_free [08:52:07]json_value_free done [08:52:07]process_json_proto returns [08:52:07]Send response to host [08:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103349,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:52:07]free response buf [08:52:07]execute_script done [08:52:07]execute_script returns [08:52:07]free content buf [08:52:07]Sock 7.Close socket [08:52:07]Sock 7.Thread stoped [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:13]accept exits with 9 [08:53:13]New connection [08:53:13]New thread 3067084132 created [08:53:13]Thread 3067227492 joined [08:53:13]Waiting for new connection... [08:53:13] Sock 9.Parse request [08:53:13]Sock 9.Check first char [08:53:13]Sock 9.First char is OK [08:53:13]request: POST /json_proto HTTP/1.0 [08:53:13]Method: POST [08:53:13]URL: /json_proto [08:53:13]Method is POST - this is cgi request [08:53:13]url: /json_proto [08:53:13]query_string will be loaded in cgi processing [08:53:13]execute_cgi json_proto POST (null) [08:53:13]execute_cgi path=json_proto method=POST [08:53:13]POST find Content-Length [08:53:13]Host: 172.17.38.133:8080 [08:53:13]Content-Length: 682 [08:53:13]Content-Type: application/json [08:53:13] [08:53:13]POST finish read [08:53:13]Found Content-Length = 682 [08:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:13]execute_script... [08:53: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)672488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:13]POST & json_proto [08:53:13]process_json_proto [08:53:13]json parsed OK: [08:53:13]protocol is kg_v1.0 [08:53:13]action value=close_receipt [08:53:13]process_action close_receipt [08:53:13]cmd_close_receipt [08:53:13]MH_GetDate [08:53:13]Write to MH i2c: F0 00 00 22 41 52 [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: F0 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: F0 09 00 [08:53:13]MH_I2C_Read... [08:53:13]Read from MH i2c: F0 09 00 22 41 00 FF 4A 71 66 BD 8F 7C 64 A7 [08:53:13]GetLastDocTimeStamp 1718700729 [08:53:13]current date 1718700799 [08:53:13]FM_GetShiftState [08:53:13]SAM_PROTO_GetShiftState [08:53:13]wFMCommunicate request_size=4 [08:53:13]MH_SAM_APDU [08:53:13]CAPDU: 80 13 01 00 [08:53:13]Write to MH i2c: E2 08 00 23 41 80 13 01 00 00 00 00 00 E1 [08:53:13]Write i2c OK [08:53:13]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0E 00 23 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 62 [08:53:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_GetShiftState done [08:53:14]FM_GetShiftState done [08:53:14]opened in 1718670284 [08:53:14]opened+sec_in_day 1718756684 [08:53:14]quantity*price = 100064 [08:53:14]sum+1 = 100066 [08:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 34 18.06.2024 08:53 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103350 ФПД: 197442667681638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T085319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103350&fm=197442667681638&tin=02508201610067®Number=0000000000092785&sum=100000 [08:53:15]StoreToDocumentArchive [08:53:15]shift 352 fd 103350 [08:53:15]save to /storage/0352/doc_00103350 [08:53:15]save last doc name /storage/0352/doc_00103350 to /storage/kkm_last_doc_name [08:53:15]save OK [08:53:15]Clear old archive folders... [08:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:15]tlvbuf is 013B1560 [08:53:15]SAM_PROTO_ClearQueue [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 09 00 00 [08:53:15]Write to MH i2c: E2 08 00 30 41 80 09 00 00 00 00 00 00 E3 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 30 41 00 90 00 E5 [08:53:15]RAPDU: 90 00 [08:53:15]wFMCommunicate OK [08:53:15]SAM_PROTO_ClearQueue done [08:53:15]KKMCreateOFDPacket [08:53:15]OFDProtocolAddRootSTLVToBuf [08:53:15]FM_MakeSignedData [08:53:15]FM_MakeSignedData [08:53:15]SAM_PROTO_SignData [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 0D 01 02 [08:53:15]Write to MH i2c: E2 08 00 31 41 80 0D 01 02 00 00 00 00 EB [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 31 41 00 90 00 E6 [08:53:15]RAPDU: 90 00 [08:53:15]wFMCommunicate OK [08:53:15]wFMCommunicate request_size=255 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 FF 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 93 01 00 35 04 06 00 B3 [08:53:15]Write to MH i2c: E2 02 01 32 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 FF 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 93 01 00 35 04 06 00 B3 00 00 95 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 32 41 00 90 00 E7 [08:53:15]RAPDU: 90 00 [08:53:15]wFMCommunicate OK [08:53:15]wFMCommunicate request_size=10 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 0D 02 02 05 92 B4 12 17 66 [08:53:15]Write to MH i2c: E2 0D 00 33 41 80 0D 02 02 05 00 92 B4 12 17 66 00 00 CD [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 03 00 33 41 00 90 00 E8 [08:53:15]RAPDU: 90 00 [08:53:15]wFMCommunicate OK [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 0D 03 02 [08:53:15]Write to MH i2c: E2 08 00 34 41 80 0D 03 02 00 00 00 00 F0 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0B 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0B 00 34 41 00 B3 09 DA 76 A6 C2 45 02 90 00 AC [08:53:15]RAPDU: B3 09 DA 76 A6 C2 45 02 90 00 [08:53:15]wFMCommunicate OK [08:53:15]SAM_PROTO_SignData done [08:53:15]FM_MakeSignedData done [08:53:15]CreateOFDProtocolMessage [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 11 00 00 [08:53:15]Write to MH i2c: E2 08 00 35 41 80 11 00 00 00 00 00 00 F0 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 17 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 17 00 35 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [08:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:53:15]wFMCommunicate OK [08:53:15]CreateOFDProtocolMessage done [08:53:15]OFDSenderStorePacket 103350 [08:53:15]StoreOFDPacket docnum=103350 [08:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 F4 07 01 15 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 FF 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 93 01 00 35 04 06 00 B3 92 B4 12 17 66 B3 09 DA 76 A6 C2 45 02 [08:53:15]CheckFolder [08:53:15]dirname=/storage/ofd_packets [08:53:15]CheckFolder done [08:53:15]ProducePacketName [08:53:15]name=ofd_packets/00103350 [08:53:15]NVStorageSaveData ofd_packets/00103350 [08:53:15]File name is /storage/ofd_packets/00103350 [08:53:15]Write 301 bytes [08:53:15]NVStorageSaveData done [08:53:15]OFDSenderStorePacket done [08:53:15]KKMCreateOFDPacket done [08:53:15]NVStorageSaveData kkm_last_timestamp [08:53:15]File name is /storage/kkm_last_timestamp [08:53:15]Write 4 bytes [08:53:15]NVStorageSaveData done [08:53:15]ExternCall_PrintAddStr [08:53:15]wPrintStart [08:53:15]Write to MH i2c: 01 00 00 36 41 77 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 07 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 07 00 36 41 00 00 00 00 00 FF 0F 8C [08:53:15]RasterBufferAndPrint [08:53:15]line Счет N : (1)672488 [08:53:15]line ИНН: 02508201610067 [08:53:15]line Контрольно-Кассовый Чек [08:53:15]line ПРОДАЖА [08:53:15]line ТРК (МРК, ГНК) : 32 [08:53:15]line Товар: 2710124130 [08:53:15]line Аи-92-К-5 [08:53:15]line 15.070 * 66.40 [08:53:15]line = 1000.65 [08:53:15]line НДС 12% НСП 1% [08:53:15]line > о реализуемом товаре [08:53:15]line ОКРУГЛЕНИЕ: -0.65 [08:53:15]line ИТОГО: 1000.00 [08:53:15]line Внесено: 1000.00 [08:53:15]line СДАЧА: 0.00 [08:53:15]line НСП 1% : 8.85 [08:53:15]line НДС 12% : 106.26 [08:53:15]line Наличными: 1000.00 [08:53:15]line Безнал.: 0.00 [08:53:15]line Место: АЗС № 120 "Партнер Нефть" [08:53:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:53:15]line СНО: Общий режим [08:53:15]line Чек 34 18.06.2024 08:53 [08:53:15]line Смена: 352 ФФД: 1.0 [08:53:15]line ЗНМ: 0300000164 [08:53:15]line РНМ: 0000000000092785 [08:53:15]line Версия ККМ: 001 [08:53:15]line ФМ: 0000000000875093 [08:53:15]line ФД: 103350 [08:53:15]line ФПД: 197442667681638 [08:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T085319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103350&fm=197442667681638&tin=02508201610067®Number=0000000000092785&sum=100000 [08:53:15]OFD Sender: Processing packet 103350 [packets to send 17, broken 16] [08:53:15]ProducePacketName [08:53:15]name=ofd_packets/00103350 [08:53:15]OFD Sender: To server: pG, [08:53:15]CommunicateWithHost lk.salyk.kg:30040 [08:53:15]ConnectInit lk.salyk.kg [08:53:15]written 0, free lines is 4095 [08:53:16]Connected sock=10 [08:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 F4 07 01 15 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 FF 4A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 93 01 00 35 04 06 00 B3 92 B4 12 17 66 B3 09 DA 76 A6 C2 45 02 [08:53:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AE A7 47 00 FA CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 93 01 00 F4 03 04 00 8C F1 70 66 B6 04 01 00 00 AE C6 1A 17 94 5F A6 3A [08:53:16]CommunicateWithHost err = 0 [08:53:16]CheckOFDResponse [08:53:16]1017 (14) - 77093643461234 [08:53:16]1041 (16) - 0000000000875093 [08:53:16]1040 (4) - 103350 [08:53:16]1012 (4) - 18.06.2024 02:31 [08:53:16]1206 (1) - 0 [08:53:16]OFD Sender: Remove packet 103350 [08:53:16]ProducePacketName [08:53:16]name=ofd_packets/00103350 [08:53:16]NVStorageDeleteData [08:53:16]Write to MH i2c: 01 00 00 61 41 A2 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: 01 07 00 61 41 00 00 00 00 00 ED 0C A2 [08:53:16]RasterBufferAndPrint [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]line [08:53:16]written 0, free lines is 3315 [08:53:16]MH_Cut [08:53:16]Write to MH i2c: D1 01 00 68 41 01 7B [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 01 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: D1 01 00 68 41 00 7A [08:53:16]Write to MH i2c: 01 00 00 69 41 AA [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]OFD Sender: No OFD packet to send [08:53:17]*** Cut start [08:53:17]*** Partial cut [08:53:17]*** CUTSNS_PIN = 1 [08:53:17]*** CUTSNS_PIN = 0 [08:53:17]*** Brake cut motor [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]*** Stop cut motor [08:53:17]*** Cut end [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 69 41 00 00 00 00 00 FF 0F BF [08:53:17]process_action close_receipt done [08:53:17]requested_data is exist [08:53:17]produce_requested_data [08:53:17]requested_item fm.sn is exist - process it [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 11 00 00 [08:53:17]Write to MH i2c: E2 08 00 6A 41 80 11 00 00 00 00 00 00 25 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 6A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [08:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:53:17]wFMCommunicate OK [08:53:17]requested_item fd.num is exist - process it [08:53:17]SAM_PROTO_GetFieldsCounters [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 13 00 00 [08:53:17]Write to MH i2c: E2 08 00 6B 41 80 13 00 00 00 00 00 00 28 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 62 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 62 00 6B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_GetFieldsCounters done [08:53:17]requested_item shift.num is exist - process it [08:53:17]requested_item shift.opened is exist - process it [08:53:18]req_shift_opened [08:53:18]FM_GetShiftState [08:53:18]SAM_PROTO_GetShiftState [08:53:18]wFMCommunicate request_size=4 [08:53:18]MH_SAM_APDU [08:53:18]CAPDU: 80 13 01 00 [08:53:18]Write to MH i2c: E2 08 00 6C 41 80 13 01 00 00 00 00 00 2A [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:18]Read from MH i2c: E2 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 0E 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: E2 0E 00 6C 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AB [08:53:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:53:18]wFMCommunicate OK [08:53:18]SAM_PROTO_GetShiftState done [08:53:18]FM_GetShiftState done [08:53:18]req_shift_opened done [08:53:18]requested_item shift.open_date is exist - process it [08:53:18]req_shift_open_date [08:53:18]req_shift_open_date done [08:53:18]produce_requested_data done [08:53:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:53:18]process_action_free close_receipt [08:53:18]json_value_free [08:53:18]json_value_free done [08:53:18]process_json_proto returns [08:53:18]Send response to host [08:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:53:18]free response buf [08:53:18]execute_script done [08:53:18]execute_script returns [08:53:18]free content buf [08:53:18]Sock 9.Close socket [08:53:18]Sock 9.Thread stoped [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:38]accept exits with 7 [08:56:38]New connection [08:56:38]New thread 3067227492 created [08:56:38]Thread 3067084132 joined [08:56:38]Waiting for new connection... [08:56:38] Sock 7.Parse request [08:56:38]Sock 7.Check first char [08:56:38]Sock 7.First char is OK [08:56:38]request: POST /json_proto HTTP/1.0 [08:56:38]Method: POST [08:56:38]URL: /json_proto [08:56:38]Method is POST - this is cgi request [08:56:38]url: /json_proto [08:56:38]query_string will be loaded in cgi processing [08:56:38]execute_cgi json_proto POST (null) [08:56:38]execute_cgi path=json_proto method=POST [08:56:38]POST find Content-Length [08:56:38]Host: 172.17.38.133:8080 [08:56:38]Content-Length: 1198 [08:56:38]Content-Type: application/json [08:56:38] [08:56:38]POST finish read [08:56:38]Found Content-Length = 1198 [08:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672489\u000A18.06.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787925;3787926\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:38]execute_script... [08:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672489\u000A18.06.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787925;3787926\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:38]POST & json_proto [08:56:38]process_json_proto [08:56:38]json parsed OK: [08:56:38]protocol is kg_v1.0 [08:56:38]action value=print_text [08:56:38]process_action print_text [08:56:38]cmd_print_text [08:56:38]ExternCall_PrintAddStr [08:56:38]wPrintStart [08:56:38]Write to MH i2c: 01 00 00 6D 41 AE [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 6D 41 00 00 00 00 00 FF 0F C3 [08:56:38]RasterBufferAndPrint [08:56:38]line *****ТОВАРНЫЙ ЧЕК***** [08:56:38]line АЗС 120 [08:56:38]line Партнер нефть [08:56:38]line 02508201610067 [08:56:38]line Кассир : Асанбаев Н. [08:56:38]line Счет N : (1)672489 [08:56:38]line 18.06.2024 08:34 [08:56:38]line ПРОДАЖА [08:56:38]line ТРК (МРК, ГНК): 11 [08:56:38]line Вид ГСМ : 2710194210 [08:56:38]line ДТ(л)-К-5 [08:56:38]line 40.000 x 72.90 [08:56:38]line ИТОГ: 2916.00 [08:56:38]line Тип оплаты: Талоны: Партнер нефть [08:56:38]line 3787925;3787926 [08:56:38]line ______________________ [08:56:38]line (подпись) [08:56:38]written 0, free lines is 4095 [08:56:38]Write to MH i2c: 01 00 00 81 41 C2 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 81 41 00 00 00 00 00 17 0E EE [08:56:38]RasterBufferAndPrint [08:56:38]line [08:56:38]line [08:56:38]line [08:56:38]line [08:56:38]line [08:56:38]written 0, free lines is 3609 [08:56:38]MH_Cut [08:56:38]Write to MH i2c: D1 01 00 88 41 01 9B [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: D1 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: D1 01 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: D1 01 00 88 41 00 9A [08:56:38]Write to MH i2c: 01 00 00 89 41 CA [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:39]*** Cut start [08:56:39]*** Partial cut [08:56:39]*** CUTSNS_PIN = 1 [08:56:39]*** CUTSNS_PIN = 0 [08:56:39]*** Brake cut motor [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]*** Stop cut motor [08:56:39]*** Cut end [08:56:39]Read from MH i2c: 01 07 00 89 41 00 00 00 00 00 FF 0F DF [08:56:39]process_action print_text done [08:56:39]requested_data is exist [08:56:39]produce_requested_data [08:56:39]requested_item fm.sn is exist - process it [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 8A 41 80 11 00 00 00 00 00 00 45 [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 8A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [08:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:56:39]wFMCommunicate OK [08:56:39]requested_item fd.num is exist - process it [08:56:39]SAM_PROTO_GetFieldsCounters [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 13 00 00 [08:56:39]Write to MH i2c: E2 08 00 8B 41 80 13 00 00 00 00 00 00 48 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:40]Read from MH i2c: E2 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 62 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 62 00 8B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [08:56:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:40]wFMCommunicate OK [08:56:40]SAM_PROTO_GetFieldsCounters done [08:56:40]requested_item shift.num is exist - process it [08:56:40]requested_item shift.opened is exist - process it [08:56:40]req_shift_opened [08:56:40]FM_GetShiftState [08:56:40]SAM_PROTO_GetShiftState [08:56:40]wFMCommunicate request_size=4 [08:56:40]MH_SAM_APDU [08:56:40]CAPDU: 80 13 01 00 [08:56:40]Write to MH i2c: E2 08 00 8C 41 80 13 01 00 00 00 00 00 4A [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:40]Read from MH i2c: E2 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 0E 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 0E 00 8C 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CB [08:56:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:56:40]wFMCommunicate OK [08:56:40]SAM_PROTO_GetShiftState done [08:56:40]FM_GetShiftState done [08:56:40]req_shift_opened done [08:56:40]requested_item shift.open_date is exist - process it [08:56:40]req_shift_open_date [08:56:40]req_shift_open_date done [08:56:40]produce_requested_data done [08:56:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:56:40]process_action_free print_text [08:56:40]json_value_free [08:56:40]json_value_free done [08:56:40]process_json_proto returns [08:56:40]Send response to host [08:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:56:40]free response buf [08:56:40]execute_script done [08:56:40]execute_script returns [08:56:40]free content buf [08:56:40]Sock 7.Close socket [08:56:40]Sock 7.Thread stoped [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:50]accept exits with 9 [08:56:50]New connection [08:56:50]New thread 3067084132 created [08:56:50]Thread 3067227492 joined [08:56:50]Waiting for new connection... [08:56:50] Sock 9.Parse request [08:56:50]Sock 9.Check first char [08:56:50]Sock 9.First char is OK [08:56:50]request: POST /json_proto HTTP/1.0 [08:56:50]Method: POST [08:56:50]URL: /json_proto [08:56:50]Method is POST - this is cgi request [08:56:50]url: /json_proto [08:56:50]query_string will be loaded in cgi processing [08:56:50]execute_cgi json_proto POST (null) [08:56:50]execute_cgi path=json_proto method=POST [08:56:50]POST find Content-Length [08:56:50]Host: 172.17.38.133:8080 [08:56:50]Content-Length: 1184 [08:56:50]Content-Type: application/json [08:56:50] [08:56:50]POST finish read [08:56:50]Found Content-Length = 1184 [08:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672490\u000A18.06.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:50]execute_script... [08:56:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672490\u000A18.06.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:50]POST & json_proto [08:56:50]process_json_proto [08:56:50]json parsed OK: [08:56:50]protocol is kg_v1.0 [08:56:50]action value=print_text [08:56:50]process_action print_text [08:56:50]cmd_print_text [08:56:50]ExternCall_PrintAddStr [08:56:50]wPrintStart [08:56:50]Write to MH i2c: 01 00 00 8D 41 CE [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: 01 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: 01 07 00 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: 01 07 00 8D 41 00 00 00 00 00 FF 0F E3 [08:56:50]RasterBufferAndPrint [08:56:50]line *****ТОВАРНЫЙ ЧЕК***** [08:56:50]line АЗС 120 [08:56:50]line Партнер нефть [08:56:50]line 02508201610067 [08:56:50]line Кассир : Асанбаев Н. [08:56:50]line Счет N : (1)672490 [08:56:50]line 18.06.2024 08:34 [08:56:50]line ПРОДАЖА [08:56:50]line ТРК (МРК, ГНК): 42 [08:56:50]line Вид ГСМ : 2710124130 [08:56:50]line Аи-92-К-5 [08:56:50]line 10.000 x 66.40 [08:56:50]line ИТОГ: 664.00 [08:56:50]line Тип оплаты: Талоны: Партнер нефть [08:56:50]line 3889034 [08:56:50]line ______________________ [08:56:50]line (подпись) [08:56:50]written 0, free lines is 4095 [08:56:51]Write to MH i2c: 01 00 00 A1 41 E2 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 07 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: 01 07 00 A1 41 00 00 00 00 00 13 0E 0A [08:56:51]RasterBufferAndPrint [08:56:51]line [08:56:51]line [08:56:51]line [08:56:51]line [08:56:51]line [08:56:51]written 0, free lines is 3605 [08:56:51]MH_Cut [08:56:51]Write to MH i2c: D1 01 00 A8 41 01 BB [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: D1 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: D1 01 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: D1 01 00 A8 41 00 BA [08:56:51]Write to MH i2c: 01 00 00 A9 41 EA [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** Cut start [08:56:51]*** Partial cut [08:56:51]*** CUTSNS_PIN = 1 [08:56:51]*** CUTSNS_PIN = 0 [08:56:51]*** Brake cut motor [08:56:52]OFD Sender: No OFD packet to send [08:56:52]Read from MH i2c: 01 [08:56:52]MH_I2C_Read... [08:56:52]*** Stop cut motor [08:56:52]*** Cut end [08:56:52]Read from MH i2c: 01 07 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 07 00 A9 41 00 00 00 00 00 FF 0F FF [08:56:52]process_action print_text done [08:56:52]requested_data is exist [08:56:52]produce_requested_data [08:56:52]requested_item fm.sn is exist - process it [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 11 00 00 [08:56:52]Write to MH i2c: E2 08 00 AA 41 80 11 00 00 00 00 00 00 65 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 17 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 17 00 AA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [08:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:56:52]wFMCommunicate OK [08:56:52]requested_item fd.num is exist - process it [08:56:52]SAM_PROTO_GetFieldsCounters [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 13 00 00 [08:56:52]Write to MH i2c: E2 08 00 AB 41 80 13 00 00 00 00 00 00 68 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 62 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 62 00 AB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [08:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:52]wFMCommunicate OK [08:56:52]SAM_PROTO_GetFieldsCounters done [08:56:52]requested_item shift.num is exist - process it [08:56:52]requested_item shift.opened is exist - process it [08:56:52]req_shift_opened [08:56:52]FM_GetShiftState [08:56:52]SAM_PROTO_GetShiftState [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 13 01 00 [08:56:52]Write to MH i2c: E2 08 00 AC 41 80 13 01 00 00 00 00 00 6A [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 0E 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 0E 00 AC 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 EB [08:56:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [08:56:52]wFMCommunicate OK [08:56:52]SAM_PROTO_GetShiftState done [08:56:52]FM_GetShiftState done [08:56:52]req_shift_opened done [08:56:52]requested_item shift.open_date is exist - process it [08:56:52]req_shift_open_date [08:56:52]req_shift_open_date done [08:56:52]produce_requested_data done [08:56:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [08:56:52]process_action_free print_text [08:56:52]json_value_free [08:56:52]json_value_free done [08:56:52]process_json_proto returns [08:56:52]Send response to host [08:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103350,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [08:56:52]free response buf [08:56:52]execute_script done [08:56:52]execute_script returns [08:56:52]free content buf [08:56:52]Sock 9.Close socket [08:56:52]Sock 9.Thread stoped [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:14]accept exits with 7 [09:02:14]New connection [09:02:14]New thread 3067227492 created [09:02:14]Thread 3067084132 joined [09:02:14]Waiting for new connection... [09:02:14] Sock 7.Parse request [09:02:14]Sock 7.Check first char [09:02:14]Sock 7.First char is OK [09:02:14]request: POST /json_proto HTTP/1.0 [09:02:14]Method: POST [09:02:14]URL: /json_proto [09:02:14]Method is POST - this is cgi request [09:02:14]url: /json_proto [09:02:14]query_string will be loaded in cgi processing [09:02:14]execute_cgi json_proto POST (null) [09:02:14]execute_cgi path=json_proto method=POST [09:02:14]POST find Content-Length [09:02:14]Host: 172.17.38.133:8080 [09:02:14]Content-Length: 682 [09:02:14]Content-Type: application/json [09:02:14] [09:02:14]POST finish read [09:02:14]Found Content-Length = 682 [09:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:14]execute_script... [09:02:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:14]POST & json_proto [09:02:14]process_json_proto [09:02:14]json parsed OK: [09:02:14]protocol is kg_v1.0 [09:02:14]action value=close_receipt [09:02:14]process_action close_receipt [09:02:14]cmd_close_receipt [09:02:14]MH_GetDate [09:02:14]Write to MH i2c: F0 00 00 AD 41 DD [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 09 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 09 00 AD 41 00 1C 4D 71 66 BD 8F 7C 64 52 [09:02:14]GetLastDocTimeStamp 1718700799 [09:02:14]current date 1718701340 [09:02:14]FM_GetShiftState [09:02:14]SAM_PROTO_GetShiftState [09:02:14]wFMCommunicate request_size=4 [09:02:14]MH_SAM_APDU [09:02:14]CAPDU: 80 13 01 00 [09:02:14]Write to MH i2c: E2 08 00 AE 41 80 13 01 00 00 00 00 00 6C [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:14]Read from MH i2c: E2 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 AE 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 ED [09:02:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:02:14]wFMCommunicate OK [09:02:14]SAM_PROTO_GetShiftState done [09:02:14]FM_GetShiftState done [09:02:14]opened in 1718670284 [09:02:14]opened+sec_in_day 1718756684 [09:02:14]quantity*price = 100064 [09:02:14]sum+1 = 100066 [09:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 35 18.06.2024 09:02 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103351 ФПД: 67175414737830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090220&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103351&fm=67175414737830&tin=02508201610067®Number=0000000000092785&sum=100000 [09:02:15]StoreToDocumentArchive [09:02:15]shift 352 fd 103351 [09:02:15]save to /storage/0352/doc_00103351 [09:02:15]save last doc name /storage/0352/doc_00103351 to /storage/kkm_last_doc_name [09:02:15]save OK [09:02:15]Clear old archive folders... [09:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:15]tlvbuf is 013702F0 [09:02:15]SAM_PROTO_ClearQueue [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 09 00 00 [09:02:15]Write to MH i2c: E2 08 00 BB 41 80 09 00 00 00 00 00 00 6E [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 BB 41 00 90 00 70 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_ClearQueue done [09:02:15]KKMCreateOFDPacket [09:02:15]OFDProtocolAddRootSTLVToBuf [09:02:15]FM_MakeSignedData [09:02:15]FM_MakeSignedData [09:02:15]SAM_PROTO_SignData [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 01 02 [09:02:15]Write to MH i2c: E2 08 00 BC 41 80 0D 01 02 00 00 00 00 76 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 BC 41 00 90 00 71 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=255 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1C 4D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 93 01 00 35 04 06 00 3D [09:02:15]Write to MH i2c: E2 02 01 BD 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1C 4D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 93 01 00 35 04 06 00 3D 00 00 CC [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 03 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 03 00 BD 41 00 90 00 72 [09:02:16]RAPDU: 90 00 [09:02:16]wFMCommunicate OK [09:02:16]wFMCommunicate request_size=10 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 0D 02 02 05 18 7E BB AB A6 [09:02:16]Write to MH i2c: E2 0D 00 BE 41 80 0D 02 02 05 00 18 7E BB AB A6 00 00 25 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 03 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 03 00 BE 41 00 90 00 73 [09:02:16]RAPDU: 90 00 [09:02:16]wFMCommunicate OK [09:02:16]wFMCommunicate request_size=4 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 0D 03 02 [09:02:16]Write to MH i2c: E2 08 00 BF 41 80 0D 03 02 00 00 00 00 7B [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0B 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0B 00 BF 41 00 C0 16 7C B2 8B 49 95 77 90 00 60 [09:02:16]RAPDU: C0 16 7C B2 8B 49 95 77 90 00 [09:02:16]wFMCommunicate OK [09:02:16]SAM_PROTO_SignData done [09:02:16]FM_MakeSignedData done [09:02:16]CreateOFDProtocolMessage [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 C0 41 80 11 00 00 00 00 00 00 7B [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 C0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [09:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:02:16]wFMCommunicate OK [09:02:16]CreateOFDProtocolMessage done [09:02:16]OFDSenderStorePacket 103351 [09:02:16]StoreOFDPacket docnum=103351 [09:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 48 07 01 E5 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1C 4D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 93 01 00 35 04 06 00 3D 18 7E BB AB A6 C0 16 7C B2 8B 49 95 77 [09:02:16]CheckFolder [09:02:16]dirname=/storage/ofd_packets [09:02:16]CheckFolder done [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00103351 [09:02:16]NVStorageSaveData ofd_packets/00103351 [09:02:16]File name is /storage/ofd_packets/00103351 [09:02:16]Write 301 bytes [09:02:16]NVStorageSaveData done [09:02:16]OFDSenderStorePacket done [09:02:16]KKMCreateOFDPacket done [09:02:16]NVStorageSaveData kkm_last_timestamp [09:02:16]File name is /storage/kkm_last_timestamp [09:02:16]Write 4 bytes [09:02:16]NVStorageSaveData done [09:02:16]ExternCall_PrintAddStr [09:02:16]wPrintStart [09:02:16]Write to MH i2c: 01 00 00 C1 41 02 [09:02:16]OFD Sender: Processing packet 103351 [packets to send 17, broken 16] [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00103351 [09:02:16]OFD Sender: To server: pG, [09:02:16]CommunicateWithHost lk.salyk.kg:30040 [09:02:16]ConnectInit lk.salyk.kg [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 [09:02:16]MH_I2C_Read... [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 C1 41 00 00 00 00 00 FF 0F 17 [09:02:16]RasterBufferAndPrint [09:02:16]line Счет N : (1)672491 [09:02:16]line ИНН: 02508201610067 [09:02:16]line Контрольно-Кассовый Чек [09:02:16]line ПРОДАЖА [09:02:16]line ТРК (МРК, ГНК) : 42 [09:02:16]line Товар: 2710124130 [09:02:16]line Аи-92-К-5 [09:02:16]line 15.070 * 66.40 [09:02:16]line = 1000.65 [09:02:16]line НДС 12% НСП 1% [09:02:16]line > о реализуемом товаре [09:02:16]line ОКРУГЛЕНИЕ: -0.65 [09:02:16]line ИТОГО: 1000.00 [09:02:16]line Внесено: 1000.00 [09:02:16]line СДАЧА: 0.00 [09:02:16]line НСП 1% : 8.85 [09:02:16]line НДС 12% : 106.26 [09:02:16]line Наличными: 1000.00 [09:02:16]line Безнал.: 0.00 [09:02:16]line Место: АЗС № 120 "Партнер Нефть" [09:02:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:02:16]line СНО: Общий режим [09:02:16]line Чек 35 18.06.2024 09:02 [09:02:16]line Смена: 352 ФФД: 1.0 [09:02:16]line ЗНМ: 0300000164 [09:02:16]line РНМ: 0000000000092785 [09:02:16]line Версия ККМ: 001 [09:02:16]line ФМ: 0000000000875093 [09:02:16]line ФД: 103351 [09:02:16]line ФПД: 67175414737830 [09:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090220&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103351&fm=67175414737830&tin=02508201610067®Number=0000000000092785&sum=100000 [09:02:16]Connected sock=10 [09:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 48 07 01 E5 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 1C 4D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 93 01 00 35 04 06 00 3D 18 7E BB AB A6 C0 16 7C B2 8B 49 95 77 [09:02:16]written 0, free lines is 4095 [09:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A6 3C 47 00 63 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 93 01 00 F4 03 04 00 A8 F3 70 66 B6 04 01 00 00 E2 3F E3 80 64 37 F3 09 [09:02:16]CommunicateWithHost err = 0 [09:02:16]CheckOFDResponse [09:02:16]1017 (14) - 77093643461234 [09:02:16]1041 (16) - 0000000000875093 [09:02:16]1040 (4) - 103351 [09:02:16]1012 (4) - 18.06.2024 02:40 [09:02:16]1206 (1) - 0 [09:02:16]OFD Sender: Remove packet 103351 [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00103351 [09:02:16]NVStorageDeleteData [09:02:16]Write to MH i2c: 01 00 00 EC 41 2D [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 [09:02:16]MH_I2C_Read... [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 EC 41 00 00 00 00 00 D8 0C 18 [09:02:16]RasterBufferAndPrint [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]written 0, free lines is 3295 [09:02:17]MH_Cut [09:02:17]Write to MH i2c: D1 01 00 F3 41 01 06 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: D1 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: D1 01 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: D1 01 00 F3 41 00 05 [09:02:17]Write to MH i2c: 01 00 00 F4 41 35 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]OFD Sender: No OFD packet to send [09:02:17]*** Cut start [09:02:17]*** Partial cut [09:02:17]*** CUTSNS_PIN = 1 [09:02:17]*** CUTSNS_PIN = 0 [09:02:18]*** Brake cut motor [09:02:18]Read from MH i2c: 01 [09:02:18]MH_I2C_Read... [09:02:18]*** Stop cut motor [09:02:18]*** Cut end [09:02:18]Read from MH i2c: 01 07 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: 01 07 00 F4 41 00 00 00 00 00 FF 0F 4A [09:02:18]process_action close_receipt done [09:02:18]requested_data is exist [09:02:18]produce_requested_data [09:02:18]requested_item fm.sn is exist - process it [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 11 00 00 [09:02:18]Write to MH i2c: E2 08 00 F5 41 80 11 00 00 00 00 00 00 B0 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 17 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 17 00 F5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [09:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:02:18]wFMCommunicate OK [09:02:18]requested_item fd.num is exist - process it [09:02:18]SAM_PROTO_GetFieldsCounters [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 13 00 00 [09:02:18]Write to MH i2c: E2 08 00 F6 41 80 13 00 00 00 00 00 00 B3 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 62 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 62 00 F6 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_GetFieldsCounters done [09:02:18]requested_item shift.num is exist - process it [09:02:18]requested_item shift.opened is exist - process it [09:02:18]req_shift_opened [09:02:18]FM_GetShiftState [09:02:18]SAM_PROTO_GetShiftState [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 13 01 00 [09:02:18]Write to MH i2c: E2 08 00 F7 41 80 13 01 00 00 00 00 00 B5 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:18]Read from MH i2c: E2 0E 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0E 00 F7 41 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 36 [09:02:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_GetShiftState done [09:02:18]FM_GetShiftState done [09:02:18]req_shift_opened done [09:02:18]requested_item shift.open_date is exist - process it [09:02:18]req_shift_open_date [09:02:18]req_shift_open_date done [09:02:18]produce_requested_data done [09:02:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103351,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:02:18]process_action_free close_receipt [09:02:18]json_value_free [09:02:18]json_value_free done [09:02:18]process_json_proto returns [09:02:18]Send response to host [09:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103351,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:02:18]free response buf [09:02:18]execute_script done [09:02:18]execute_script returns [09:02:18]free content buf [09:02:18]Sock 7.Close socket [09:02:18]Sock 7.Thread stoped [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:06]accept exits with 9 [09:04:06]New connection [09:04:06]New thread 3067084132 created [09:04:06]Thread 3067227492 joined [09:04:06]Waiting for new connection... [09:04:06] Sock 9.Parse request [09:04:06]Sock 9.Check first char [09:04:06]Sock 9.First char is OK [09:04:06]request: POST /json_proto HTTP/1.0 [09:04:06]Method: POST [09:04:06]URL: /json_proto [09:04:06]Method is POST - this is cgi request [09:04:06]url: /json_proto [09:04:06]query_string will be loaded in cgi processing [09:04:06]execute_cgi json_proto POST (null) [09:04:06]execute_cgi path=json_proto method=POST [09:04:06]POST find Content-Length [09:04:06]Host: 172.17.38.133:8080 [09:04:06]Content-Length: 1184 [09:04:06]Content-Type: application/json [09:04:06] [09:04:06]POST finish read [09:04:06]Found Content-Length = 1184 [09:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672492\u000A18.06.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4101402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:06]execute_script... [09:04:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672492\u000A18.06.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4101402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:06]POST & json_proto [09:04:06]process_json_proto [09:04:06]json parsed OK: [09:04:06]protocol is kg_v1.0 [09:04:06]action value=print_text [09:04:06]process_action print_text [09:04:06]cmd_print_text [09:04:06]ExternCall_PrintAddStr [09:04:06]wPrintStart [09:04:06]Write to MH i2c: 01 00 00 F8 41 39 [09:04:06]Write i2c OK [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: 01 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: 01 07 00 [09:04:06]MH_I2C_Read... [09:04:06]Read from MH i2c: 01 07 00 F8 41 00 00 00 00 00 FF 0F 4E [09:04:06]RasterBufferAndPrint [09:04:06]line *****ТОВАРНЫЙ ЧЕК***** [09:04:06]line АЗС 120 [09:04:06]line Партнер нефть [09:04:06]line 02508201610067 [09:04:06]line Кассир : Асанбаев Н. [09:04:06]line Счет N : (1)672492 [09:04:06]line 18.06.2024 08:41 [09:04:06]line ПРОДАЖА [09:04:06]line ТРК (МРК, ГНК): 32 [09:04:06]line Вид ГСМ : 2710124130 [09:04:06]line Аи-92-К-5 [09:04:06]line 10.000 x 66.40 [09:04:06]line ИТОГ: 664.00 [09:04:06]line Тип оплаты: Талоны: Партнер нефть [09:04:06]line 4101402 [09:04:06]line ______________________ [09:04:06]line (подпись) [09:04:06]written 0, free lines is 4095 [09:04:07]Write to MH i2c: 01 00 00 0C 42 4E [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: 01 07 00 0C 42 00 00 00 00 00 12 0E 75 [09:04:07]RasterBufferAndPrint [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]line [09:04:07]written 0, free lines is 3604 [09:04:07]MH_Cut [09:04:07]Write to MH i2c: D1 01 00 13 42 01 27 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 01 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: D1 01 00 13 42 00 26 [09:04:07]Write to MH i2c: 01 00 00 14 42 56 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]OFD Sender: No OFD packet to send [09:04:07]*** Cut start [09:04:07]*** Partial cut [09:04:07]*** CUTSNS_PIN = 1 [09:04:07]*** CUTSNS_PIN = 0 [09:04:07]*** Brake cut motor [09:04:08]Read from MH i2c: 01 [09:04:08]MH_I2C_Read... [09:04:08]*** Stop cut motor [09:04:08]*** Cut end [09:04:08]Read from MH i2c: 01 07 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 14 42 00 00 00 00 00 FF 0F 6B [09:04:08]process_action print_text done [09:04:08]requested_data is exist [09:04:08]produce_requested_data [09:04:08]requested_item fm.sn is exist - process it [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 11 00 00 [09:04:08]Write to MH i2c: E2 08 00 15 42 80 11 00 00 00 00 00 00 D1 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 15 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [09:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:04:08]wFMCommunicate OK [09:04:08]requested_item fd.num is exist - process it [09:04:08]SAM_PROTO_GetFieldsCounters [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 13 00 00 [09:04:08]Write to MH i2c: E2 08 00 16 42 80 13 00 00 00 00 00 00 D4 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 62 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 62 00 16 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [09:04:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:08]wFMCommunicate OK [09:04:08]SAM_PROTO_GetFieldsCounters done [09:04:08]requested_item shift.num is exist - process it [09:04:08]requested_item shift.opened is exist - process it [09:04:08]req_shift_opened [09:04:08]FM_GetShiftState [09:04:08]SAM_PROTO_GetShiftState [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 13 01 00 [09:04:08]Write to MH i2c: E2 08 00 17 42 80 13 01 00 00 00 00 00 D6 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0E 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0E 00 17 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 57 [09:04:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:04:08]wFMCommunicate OK [09:04:08]SAM_PROTO_GetShiftState done [09:04:08]FM_GetShiftState done [09:04:08]req_shift_opened done [09:04:08]requested_item shift.open_date is exist - process it [09:04:08]req_shift_open_date [09:04:08]req_shift_open_date done [09:04:08]produce_requested_data done [09:04:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103351,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:04:08]process_action_free print_text [09:04:08]json_value_free [09:04:08]json_value_free done [09:04:08]process_json_proto returns [09:04:08]Send response to host [09:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103351,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:04:08]free response buf [09:04:08]execute_script done [09:04:08]execute_script returns [09:04:08]free content buf [09:04:08]Sock 9.Close socket [09:04:08]Sock 9.Thread stoped [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:14]accept exits with 7 [09:08:14]New connection [09:08:14]New thread 3067227492 created [09:08:14]Thread 3067084132 joined [09:08:14]Waiting for new connection... [09:08:14] Sock 7.Parse request [09:08:14]Sock 7.Check first char [09:08:14]Sock 7.First char is OK [09:08:14]request: POST /json_proto HTTP/1.0 [09:08:14]Method: POST [09:08:14]URL: /json_proto [09:08:14]Method is POST - this is cgi request [09:08:14]url: /json_proto [09:08:14]query_string will be loaded in cgi processing [09:08:14]execute_cgi json_proto POST (null) [09:08:14]execute_cgi path=json_proto method=POST [09:08:14]POST find Content-Length [09:08:14]Host: 172.17.38.133:8080 [09:08:14]Content-Length: 816 [09:08:14]Content-Type: application/json [09:08:14] [09:08:14]POST finish read [09:08:14]Found Content-Length = 816 [09:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:14]execute_script... [09:08:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:14]POST & json_proto [09:08:14]process_json_proto [09:08:14]json parsed OK: [09:08:14]protocol is kg_v1.0 [09:08:14]action value=close_receipt [09:08:14]process_action close_receipt [09:08:14]cmd_close_receipt [09:08:14]MH_GetDate [09:08:14]Write to MH i2c: F0 00 00 18 42 49 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 09 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: F0 09 00 18 42 00 84 4E 71 66 BD 8F 7C 64 27 [09:08:14]GetLastDocTimeStamp 1718701340 [09:08:14]current date 1718701700 [09:08:14]FM_GetShiftState [09:08:14]SAM_PROTO_GetShiftState [09:08:14]wFMCommunicate request_size=4 [09:08:14]MH_SAM_APDU [09:08:14]CAPDU: 80 13 01 00 [09:08:14]Write to MH i2c: E2 08 00 19 42 80 13 01 00 00 00 00 00 D8 [09:08:14]Write i2c OK [09:08:14]MH_I2C_Read... [09:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:14]Read from MH i2c: E2 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 [09:08:14]MH_I2C_Read... [09:08:14]Read from MH i2c: E2 0E 00 19 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 59 [09:08:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:08:14]wFMCommunicate OK [09:08:14]SAM_PROTO_GetShiftState done [09:08:14]FM_GetShiftState done [09:08:14]opened in 1718670284 [09:08:14]opened+sec_in_day 1718756684 [09:08:14]quantity*price = 30012 [09:08:14]sum+1 = 30014 [09:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 36 18.06.2024 09:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103352 ФПД: 158045347086653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103352&fm=158045347086653&tin=02508201610067®Number=0000000000092785&sum=30013 [09:08:15]StoreToDocumentArchive [09:08:15]shift 352 fd 103352 [09:08:15]save to /storage/0352/doc_00103352 [09:08:15]save last doc name /storage/0352/doc_00103352 to /storage/kkm_last_doc_name [09:08:15]save OK [09:08:15]Clear old archive folders... [09:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:15]tlvbuf is 014A2E40 [09:08:15]SAM_PROTO_ClearQueue [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 09 00 00 [09:08:15]Write to MH i2c: E2 08 00 26 42 80 09 00 00 00 00 00 00 DA [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 26 42 00 90 00 DC [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_ClearQueue done [09:08:15]KKMCreateOFDPacket [09:08:15]OFDProtocolAddRootSTLVToBuf [09:08:15]FM_MakeSignedData [09:08:15]FM_MakeSignedData [09:08:15]SAM_PROTO_SignData [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 01 02 [09:08:15]Write to MH i2c: E2 08 00 27 42 80 0D 01 02 00 00 00 00 E2 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 27 42 00 90 00 DD [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=255 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 4E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 93 01 00 35 04 06 00 8F [09:08:15]Write to MH i2c: E2 02 01 28 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 4E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 93 01 00 35 04 06 00 8F 00 00 5D [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 28 42 00 90 00 DE [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=10 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 02 02 05 BD CC C5 81 3D [09:08:15]Write to MH i2c: E2 0D 00 29 42 80 0D 02 02 05 00 BD CC C5 81 3D 00 00 FB [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 03 00 29 42 00 90 00 DF [09:08:15]RAPDU: 90 00 [09:08:15]wFMCommunicate OK [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 0D 03 02 [09:08:15]Write to MH i2c: E2 08 00 2A 42 80 0D 03 02 00 00 00 00 E7 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 0B 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 0B 00 2A 42 00 E3 B9 D4 02 12 9E AB 93 90 00 48 [09:08:16]RAPDU: E3 B9 D4 02 12 9E AB 93 90 00 [09:08:16]wFMCommunicate OK [09:08:16]SAM_PROTO_SignData done [09:08:16]FM_MakeSignedData done [09:08:16]CreateOFDProtocolMessage [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 11 00 00 [09:08:16]Write to MH i2c: E2 08 00 2B 42 80 11 00 00 00 00 00 00 E7 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 2B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [09:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:08:16]wFMCommunicate OK [09:08:16]CreateOFDProtocolMessage done [09:08:16]OFDSenderStorePacket 103352 [09:08:16]StoreOFDPacket docnum=103352 [09:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB 5F 07 01 92 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 4E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 93 01 00 35 04 06 00 8F BD CC C5 81 3D E3 B9 D4 02 12 9E AB 93 [09:08:16]CheckFolder [09:08:16]dirname=/storage/ofd_packets [09:08:16]CheckFolder done [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00103352 [09:08:16]NVStorageSaveData ofd_packets/00103352 [09:08:16]File name is /storage/ofd_packets/00103352 [09:08:16]Write 301 bytes [09:08:16]NVStorageSaveData done [09:08:16]OFDSenderStorePacket done [09:08:16]KKMCreateOFDPacket done [09:08:16]NVStorageSaveData kkm_last_timestamp [09:08:16]File name is /storage/kkm_last_timestamp [09:08:16]Write 4 bytes [09:08:16]NVStorageSaveData done [09:08:16]ExternCall_PrintAddStr [09:08:16]wPrintStart [09:08:16]Write to MH i2c: 01 00 00 2C 42 6E [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 2C 42 00 00 00 00 00 FF 0F 83 [09:08:16]RasterBufferAndPrint [09:08:16]line Счет N : (1)672493 [09:08:16]line ИНН: 02508201610067 [09:08:16]line Контрольно-Кассовый Чек [09:08:16]line ПРОДАЖА [09:08:16]line ТРК (МРК, ГНК) : 32 [09:08:16]line Товар: 2710124130 [09:08:16]line Аи-92-К-5 [09:08:16]line 4.520 * 66.40 [09:08:16]line = 300.13 [09:08:16]line НДС 12% НСП 1% [09:08:16]line > о реализуемом товаре [09:08:16]line ИТОГО: 300.13 [09:08:16]line НСП 1% : 2.66 [09:08:16]line НДС 12% : 31.87 [09:08:16]line Наличными: 0.00 [09:08:16]line Безнал.: 300.13 [09:08:16]line Место: АЗС № 120 "Партнер Нефть" [09:08:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:08:16]line СНО: Общий режим [09:08:16]line Чек 36 18.06.2024 09:08 [09:08:16]line Смена: 352 ФФД: 1.0 [09:08:16]line ЗНМ: 0300000164 [09:08:16]line РНМ: 0000000000092785 [09:08:16]line Версия ККМ: 001 [09:08:16]line Платежная система: Бакай Банк [09:08:16]line ФМ: 0000000000875093 [09:08:16]line ФД: 103352 [09:08:16]line ФПД: 158045347086653 [09:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103352&fm=158045347086653&tin=02508201610067®Number=0000000000092785&sum=30013 [09:08:16]written 0, free lines is 4095 [09:08:16]OFD Sender: Processing packet 103352 [packets to send 17, broken 16] [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00103352 [09:08:16]OFD Sender: To server: pG, [09:08:16]CommunicateWithHost lk.salyk.kg:30040 [09:08:16]ConnectInit lk.salyk.kg [09:08:16]Connected sock=10 [09:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB 5F 07 01 92 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 84 4E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 93 01 00 35 04 06 00 8F BD CC C5 81 3D E3 B9 D4 02 12 9E AB 93 [09:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 67 1A 47 00 BE E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 93 01 00 F4 03 04 00 10 F5 70 66 B6 04 01 00 00 29 83 DB D1 E1 72 0E 28 [09:08:16]CommunicateWithHost err = 0 [09:08:16]CheckOFDResponse [09:08:16]1017 (14) - 77093643461234 [09:08:16]1041 (16) - 0000000000875093 [09:08:16]1040 (4) - 103352 [09:08:16]1012 (4) - 18.06.2024 02:46 [09:08:16]1206 (1) - 0 [09:08:16]OFD Sender: Remove packet 103352 [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00103352 [09:08:16]NVStorageDeleteData [09:08:16]Write to MH i2c: 01 00 00 56 42 98 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 56 42 00 00 00 00 00 EB 0C 96 [09:08:16]RasterBufferAndPrint [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]line [09:08:16]written 0, free lines is 3313 [09:08:16]MH_Cut [09:08:16]Write to MH i2c: D1 01 00 5D 42 01 71 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: D1 01 00 5D 42 00 70 [09:08:16]Write to MH i2c: 01 00 00 5E 42 A0 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:17]OFD Sender: No OFD packet to send [09:08:17]*** Cut start [09:08:17]*** Partial cut [09:08:17]*** CUTSNS_PIN = 1 [09:08:17]*** CUTSNS_PIN = 0 [09:08:17]*** Brake cut motor [09:08:18]Read from MH i2c: 01 [09:08:18]MH_I2C_Read... [09:08:18]*** Stop cut motor [09:08:18]*** Cut end [09:08:18]Read from MH i2c: 01 07 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: 01 07 00 5E 42 00 00 00 00 00 FF 0F B5 [09:08:18]process_action close_receipt done [09:08:18]requested_data is exist [09:08:18]produce_requested_data [09:08:18]requested_item fm.sn is exist - process it [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 11 00 00 [09:08:18]Write to MH i2c: E2 08 00 5F 42 80 11 00 00 00 00 00 00 1B [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 5F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [09:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:08:18]wFMCommunicate OK [09:08:18]requested_item fd.num is exist - process it [09:08:18]SAM_PROTO_GetFieldsCounters [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 13 00 00 [09:08:18]Write to MH i2c: E2 08 00 60 42 80 13 00 00 00 00 00 00 1E [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 62 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 62 00 60 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [09:08:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_GetFieldsCounters done [09:08:18]requested_item shift.num is exist - process it [09:08:18]requested_item shift.opened is exist - process it [09:08:18]req_shift_opened [09:08:18]FM_GetShiftState [09:08:18]SAM_PROTO_GetShiftState [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 13 01 00 [09:08:18]Write to MH i2c: E2 08 00 61 42 80 13 01 00 00 00 00 00 20 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0E 00 61 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A1 [09:08:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_GetShiftState done [09:08:18]FM_GetShiftState done [09:08:18]req_shift_opened done [09:08:18]requested_item shift.open_date is exist - process it [09:08:18]req_shift_open_date [09:08:18]req_shift_open_date done [09:08:18]produce_requested_data done [09:08:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103352,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:08:18]process_action_free close_receipt [09:08:18]json_value_free [09:08:18]json_value_free done [09:08:18]process_json_proto returns [09:08:18]Send response to host [09:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103352,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:08:18]free response buf [09:08:18]execute_script done [09:08:18]execute_script returns [09:08:18]free content buf [09:08:18]Sock 7.Close socket [09:08:18]Sock 7.Thread stoped [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]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:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:24]accept exits with 9 [09:26:24]New connection [09:26:24]New thread 3067084132 created [09:26:24]Thread 3067227492 joined [09:26:24]Waiting for new connection... [09:26:24] Sock 9.Parse request [09:26:24]Sock 9.Check first char [09:26:24]Sock 9.First char is OK [09:26:24]request: POST /json_proto HTTP/1.0 [09:26:24]Method: POST [09:26:24]URL: /json_proto [09:26:24]Method is POST - this is cgi request [09:26:24]url: /json_proto [09:26:24]query_string will be loaded in cgi processing [09:26:24]execute_cgi json_proto POST (null) [09:26:24]execute_cgi path=json_proto method=POST [09:26:24]POST find Content-Length [09:26:24]Host: 172.17.38.133:8080 [09:26:24]Content-Length: 678 [09:26:24]Content-Type: application/json [09:26:24] [09:26:24]POST finish read [09:26:24]Found Content-Length = 678 [09:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:24]execute_script... [09:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:24]POST & json_proto [09:26:24]process_json_proto [09:26:24]json parsed OK: [09:26:24]protocol is kg_v1.0 [09:26:24]action value=close_receipt [09:26:24]process_action close_receipt [09:26:24]cmd_close_receipt [09:26:24]MH_GetDate [09:26:24]Write to MH i2c: F0 00 00 62 42 93 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 09 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 09 00 62 42 00 C6 52 71 66 BD 8F 7C 64 B7 [09:26:24]GetLastDocTimeStamp 1718701700 [09:26:24]current date 1718702790 [09:26:24]FM_GetShiftState [09:26:24]SAM_PROTO_GetShiftState [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 13 01 00 [09:26:24]Write to MH i2c: E2 08 00 63 42 80 13 01 00 00 00 00 00 22 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 63 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A3 [09:26:24]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_GetShiftState done [09:26:24]FM_GetShiftState done [09:26:24]opened in 1718670284 [09:26:24]opened+sec_in_day 1718756684 [09:26:24]quantity*price = 70052 [09:26:24]sum+1 = 70053 [09:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 18.06.2024 09:26 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103353 ФПД: 201559476258179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T092630&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103353&fm=201559476258179&tin=02508201610067®Number=0000000000092785&sum=70000 [09:26:25]StoreToDocumentArchive [09:26:25]shift 352 fd 103353 [09:26:25]save to /storage/0352/doc_00103353 [09:26:25]save last doc name /storage/0352/doc_00103353 to /storage/kkm_last_doc_name [09:26:25]save OK [09:26:25]Clear old archive folders... [09:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:25]tlvbuf is B6F98010 [09:26:25]SAM_PROTO_ClearQueue [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 09 00 00 [09:26:25]Write to MH i2c: E2 08 00 70 42 80 09 00 00 00 00 00 00 24 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 70 42 00 90 00 26 [09:26:25]RAPDU: 90 00 [09:26:25]wFMCommunicate OK [09:26:25]SAM_PROTO_ClearQueue done [09:26:25]KKMCreateOFDPacket [09:26:25]OFDProtocolAddRootSTLVToBuf [09:26:25]FM_MakeSignedData [09:26:25]FM_MakeSignedData [09:26:25]SAM_PROTO_SignData [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 0D 01 02 [09:26:25]Write to MH i2c: E2 08 00 71 42 80 0D 01 02 00 00 00 00 2C [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 71 42 00 90 00 27 [09:26:25]RAPDU: 90 00 [09:26:25]wFMCommunicate OK [09:26:25]wFMCommunicate request_size=255 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 C6 52 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 93 01 00 35 04 06 00 B7 [09:26:25]Write to MH i2c: E2 02 01 72 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 C6 52 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 93 01 00 35 04 06 00 B7 00 00 71 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 72 42 00 90 00 28 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]wFMCommunicate request_size=10 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 02 02 05 51 38 FB C5 83 [09:26:26]Write to MH i2c: E2 0D 00 73 42 80 0D 02 02 05 00 51 38 FB C5 83 00 00 05 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 73 42 00 90 00 29 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 03 02 [09:26:26]Write to MH i2c: E2 08 00 74 42 80 0D 03 02 00 00 00 00 31 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0B 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0B 00 74 42 00 29 B2 18 80 92 3D 30 53 90 00 F7 [09:26:26]RAPDU: 29 B2 18 80 92 3D 30 53 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_SignData done [09:26:26]FM_MakeSignedData done [09:26:26]CreateOFDProtocolMessage [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 11 00 00 [09:26:26]Write to MH i2c: E2 08 00 75 42 80 11 00 00 00 00 00 00 31 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 75 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [09:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:26:26]wFMCommunicate OK [09:26:26]CreateOFDProtocolMessage done [09:26:26]OFDSenderStorePacket 103353 [09:26:26]StoreOFDPacket docnum=103353 [09:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FB BA 07 01 5D DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 C6 52 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 93 01 00 35 04 06 00 B7 51 38 FB C5 83 29 B2 18 80 92 3D 30 53 [09:26:26]CheckFolder [09:26:26]dirname=/storage/ofd_packets [09:26:26]CheckFolder done [09:26:26]ProducePacketName [09:26:26]name=ofd_packets/00103353 [09:26:26]NVStorageSaveData ofd_packets/00103353 [09:26:26]File name is /storage/ofd_packets/00103353 [09:26:26]Write 301 bytes [09:26:26]NVStorageSaveData done [09:26:26]OFDSenderStorePacket done [09:26:26]KKMCreateOFDPacket done [09:26:26]NVStorageSaveData kkm_last_timestamp [09:26:26]File name is /storage/kkm_last_timestamp [09:26:26]Write 4 bytes [09:26:26]NVStorageSaveData done [09:26:26]ExternCall_PrintAddStr [09:26:26]wPrintStart [09:26:26]Write to MH i2c: 01 00 00 76 42 B8 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 76 42 00 00 00 00 00 FF 0F CD [09:26:26]RasterBufferAndPrint [09:26:26]line Счет N : (1)672495 [09:26:26]line ИНН: 02508201610067 [09:26:26]line Контрольно-Кассовый Чек [09:26:26]line ПРОДАЖА [09:26:26]line ТРК (МРК, ГНК) : 42 [09:26:26]line Товар: 2710124130 [09:26:26]line Аи-92-К-5 [09:26:26]line 10.550 * 66.40 [09:26:26]line = 700.52 [09:26:26]line НДС 12% НСП 1% [09:26:26]line > о реализуемом товаре [09:26:26]line ОКРУГЛЕНИЕ: -0.52 [09:26:26]line ИТОГО: 700.00 [09:26:26]line Внесено: 700.00 [09:26:26]line СДАЧА: 0.00 [09:26:26]line НСП 1% : 6.20 [09:26:26]line НДС 12% : 74.39 [09:26:26]line Наличными: 700.00 [09:26:26]line Безнал.: 0.00 [09:26:26]line Место: АЗС № 120 "Партнер Нефть" [09:26:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:26:26]line СНО: Общий режим [09:26:26]line Чек 37 18.06.2024 09:26 [09:26:26]line Смена: 352 ФФД: 1.0 [09:26:26]line ЗНМ: 0300000164 [09:26:26]line РНМ: 0000000000092785 [09:26:26]line Версия ККМ: 001 [09:26:26]line ФМ: 0000000000875093 [09:26:26]line ФД: 103353 [09:26:26]line ФПД: 201559476258179 [09:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T092630&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103353&fm=201559476258179&tin=02508201610067®Number=0000000000092785&sum=70000 [09:26:26]OFD Sender: Processing packet 103353 [packets to send 17, broken 16] [09:26:26]ProducePacketName [09:26:26]name=ofd_packets/00103353 [09:26:26]OFD Sender: To server: pG, [09:26:26]CommunicateWithHost lk.salyk.kg:30040 [09:26:26]ConnectInit lk.salyk.kg [09:26:26]written 0, free lines is 4095 [09:26:26]Connected sock=10 [09:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FB BA 07 01 5D DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 C6 52 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 93 01 00 35 04 06 00 B7 51 38 FB C5 83 29 B2 18 80 92 3D 30 53 [09:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3E 6D 47 00 21 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 93 01 00 F4 03 04 00 53 F9 70 66 B6 04 01 00 00 B0 2C FD C9 81 62 3E D9 [09:26:27]CommunicateWithHost err = 0 [09:26:27]CheckOFDResponse [09:26:27]1017 (14) - 77093643461234 [09:26:27]1041 (16) - 0000000000875093 [09:26:27]1040 (4) - 103353 [09:26:27]1012 (4) - 18.06.2024 03:04 [09:26:27]1206 (1) - 0 [09:26:27]OFD Sender: Remove packet 103353 [09:26:27]ProducePacketName [09:26:27]name=ofd_packets/00103353 [09:26:27]NVStorageDeleteData [09:26:27]Write to MH i2c: 01 00 00 A1 42 E3 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 A1 42 00 00 00 00 00 D7 0C CD [09:26:27]RasterBufferAndPrint [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]written 0, free lines is 3294 [09:26:27]MH_Cut [09:26:27]Write to MH i2c: D1 01 00 A8 42 01 BC [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 01 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 01 00 A8 42 00 BB [09:26:27]Write to MH i2c: 01 00 00 A9 42 EB [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]OFD Sender: No OFD packet to send [09:26:27]*** Cut start [09:26:27]*** Partial cut [09:26:27]*** CUTSNS_PIN = 1 [09:26:27]*** CUTSNS_PIN = 0 [09:26:28]*** Brake cut motor [09:26:28]Read from MH i2c: 01 [09:26:28]MH_I2C_Read... [09:26:28]*** Stop cut motor [09:26:28]*** Cut end [09:26:28]Read from MH i2c: 01 07 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 A9 42 00 00 00 00 00 FF 0F 00 [09:26:28]process_action close_receipt done [09:26:28]requested_data is exist [09:26:28]produce_requested_data [09:26:28]requested_item fm.sn is exist - process it [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 11 00 00 [09:26:28]Write to MH i2c: E2 08 00 AA 42 80 11 00 00 00 00 00 00 66 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 17 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 17 00 AA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [09:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:26:28]wFMCommunicate OK [09:26:28]requested_item fd.num is exist - process it [09:26:28]SAM_PROTO_GetFieldsCounters [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 13 00 00 [09:26:28]Write to MH i2c: E2 08 00 AB 42 80 13 00 00 00 00 00 00 69 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 62 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 62 00 AB 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [09:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_GetFieldsCounters done [09:26:28]requested_item shift.num is exist - process it [09:26:28]requested_item shift.opened is exist - process it [09:26:28]req_shift_opened [09:26:28]FM_GetShiftState [09:26:28]SAM_PROTO_GetShiftState [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 13 01 00 [09:26:28]Write to MH i2c: E2 08 00 AC 42 80 13 01 00 00 00 00 00 6B [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:28]Read from MH i2c: E2 0E 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 0E 00 AC 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 EC [09:26:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_GetShiftState done [09:26:28]FM_GetShiftState done [09:26:28]req_shift_opened done [09:26:28]requested_item shift.open_date is exist - process it [09:26:28]req_shift_open_date [09:26:28]req_shift_open_date done [09:26:28]produce_requested_data done [09:26:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103353,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:26:28]process_action_free close_receipt [09:26:28]json_value_free [09:26:28]json_value_free done [09:26:28]process_json_proto returns [09:26:28]Send response to host [09:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103353,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:26:28]free response buf [09:26:28]execute_script done [09:26:28]execute_script returns [09:26:28]free content buf [09:26:28]Sock 9.Close socket [09:26:28]Sock 9.Thread stoped [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:51]accept exits with 7 [09:26:51]New connection [09:26:51]New thread 3067227492 created [09:26:51]Thread 3067084132 joined [09:26:51]Waiting for new connection... [09:26:51] Sock 7.Parse request [09:26:51]Sock 7.Check first char [09:26:51]Sock 7.First char is OK [09:26:51]request: POST /json_proto HTTP/1.0 [09:26:51]Method: POST [09:26:51]URL: /json_proto [09:26:51]Method is POST - this is cgi request [09:26:51]url: /json_proto [09:26:51]query_string will be loaded in cgi processing [09:26:51]execute_cgi json_proto POST (null) [09:26:51]execute_cgi path=json_proto method=POST [09:26:51]POST find Content-Length [09:26:51]Host: 172.17.38.133:8080 [09:26:51]Content-Length: 1184 [09:26:51]Content-Type: application/json [09:26:51] [09:26:51]POST finish read [09:26:51]Found Content-Length = 1184 [09:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672494\u000A18.06.2024 09:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:51]execute_script... [09:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672494\u000A18.06.2024 09:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:51]POST & json_proto [09:26:51]process_json_proto [09:26:51]json parsed OK: [09:26:51]protocol is kg_v1.0 [09:26:51]action value=print_text [09:26:51]process_action print_text [09:26:51]cmd_print_text [09:26:51]ExternCall_PrintAddStr [09:26:51]wPrintStart [09:26:51]Write to MH i2c: 01 00 00 AD 42 EF [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 AD 42 00 00 00 00 00 FF 0F 04 [09:26:51]RasterBufferAndPrint [09:26:51]line *****ТОВАРНЫЙ ЧЕК***** [09:26:51]line АЗС 120 [09:26:51]line Партнер нефть [09:26:51]line 02508201610067 [09:26:51]line Кассир : Асанбаев Н. [09:26:51]line Счет N : (1)672494 [09:26:51]line 18.06.2024 09:04 [09:26:51]line ПРОДАЖА [09:26:51]line ТРК (МРК, ГНК): 32 [09:26:51]line Вид ГСМ : 2710124130 [09:26:51]line Аи-92-К-5 [09:26:51]line 10.000 x 66.40 [09:26:51]line ИТОГ: 664.00 [09:26:51]line Тип оплаты: Талоны: Партнер нефть [09:26:51]line 3888451 [09:26:51]line ______________________ [09:26:51]line (подпись) [09:26:51]written 0, free lines is 4095 [09:26:51]Write to MH i2c: 01 00 00 C1 42 03 [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: 01 07 00 C1 42 00 00 00 00 00 13 0E 2B [09:26:51]RasterBufferAndPrint [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]line [09:26:51]written 0, free lines is 3605 [09:26:51]MH_Cut [09:26:51]Write to MH i2c: D1 01 00 C8 42 01 DC [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 01 00 [09:26:51]MH_I2C_Read... [09:26:51]Read from MH i2c: D1 01 00 C8 42 00 DB [09:26:51]Write to MH i2c: 01 00 00 C9 42 0B [09:26:51]Write i2c OK [09:26:51]MH_I2C_Read... [09:26:52]*** Cut start [09:26:52]*** Partial cut [09:26:52]*** CUTSNS_PIN = 1 [09:26:52]*** CUTSNS_PIN = 0 [09:26:52]*** Brake cut motor [09:26:52]OFD Sender: No OFD packet to send [09:26:52]Read from MH i2c: 01 [09:26:52]MH_I2C_Read... [09:26:52]*** Stop cut motor [09:26:52]*** Cut end [09:26:52]Read from MH i2c: 01 07 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 C9 42 00 00 00 00 00 FF 0F 20 [09:26:52]process_action print_text done [09:26:52]requested_data is exist [09:26:52]produce_requested_data [09:26:52]requested_item fm.sn is exist - process it [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 11 00 00 [09:26:52]Write to MH i2c: E2 08 00 CA 42 80 11 00 00 00 00 00 00 86 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 17 00 CA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [09:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:26:52]wFMCommunicate OK [09:26:52]requested_item fd.num is exist - process it [09:26:52]SAM_PROTO_GetFieldsCounters [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 13 00 00 [09:26:52]Write to MH i2c: E2 08 00 CB 42 80 13 00 00 00 00 00 00 89 [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:52]Read from MH i2c: E2 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 62 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: E2 62 00 CB 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:52]wFMCommunicate OK [09:26:52]SAM_PROTO_GetFieldsCounters done [09:26:52]requested_item shift.num is exist - process it [09:26:52]requested_item shift.opened is exist - process it [09:26:52]req_shift_opened [09:26:52]FM_GetShiftState [09:26:52]SAM_PROTO_GetShiftState [09:26:52]wFMCommunicate request_size=4 [09:26:52]MH_SAM_APDU [09:26:52]CAPDU: 80 13 01 00 [09:26:52]Write to MH i2c: E2 08 00 CC 42 80 13 01 00 00 00 00 00 8B [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 CC 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0C [09:26:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetShiftState done [09:26:53]FM_GetShiftState done [09:26:53]req_shift_opened done [09:26:53]requested_item shift.open_date is exist - process it [09:26:53]req_shift_open_date [09:26:53]req_shift_open_date done [09:26:53]produce_requested_data done [09:26:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103353,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:26:53]process_action_free print_text [09:26:53]json_value_free [09:26:53]json_value_free done [09:26:53]process_json_proto returns [09:26:53]Send response to host [09:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103353,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:26:53]free response buf [09:26:53]execute_script done [09:26:53]execute_script returns [09:26:53]free content buf [09:26:53]Sock 7.Close socket [09:26:53]Sock 7.Thread stoped [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:19]accept exits with 9 [09:32:19]New connection [09:32:19]New thread 3067084132 created [09:32:19]Thread 3067227492 joined [09:32:19]Waiting for new connection... [09:32:19] Sock 9.Parse request [09:32:19]Sock 9.Check first char [09:32:19]Sock 9.First char is OK [09:32:19]request: POST /json_proto HTTP/1.0 [09:32:19]Method: POST [09:32:19]URL: /json_proto [09:32:19]Method is POST - this is cgi request [09:32:19]url: /json_proto [09:32:19]query_string will be loaded in cgi processing [09:32:19]execute_cgi json_proto POST (null) [09:32:19]execute_cgi path=json_proto method=POST [09:32:19]POST find Content-Length [09:32:19]Host: 172.17.38.133:8080 [09:32:19]Content-Length: 682 [09:32:19]Content-Type: application/json [09:32:19] [09:32:19]POST finish read [09:32:19]Found Content-Length = 682 [09:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]execute_script... [09:32: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)672496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]POST & json_proto [09:32:19]process_json_proto [09:32:19]json parsed OK: [09:32:19]protocol is kg_v1.0 [09:32:19]action value=close_receipt [09:32:19]process_action close_receipt [09:32:19]cmd_close_receipt [09:32:19]MH_GetDate [09:32:19]Write to MH i2c: F0 00 00 CD 42 FE [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 CD 42 00 29 54 71 66 BD 8F 7C 64 87 [09:32:19]GetLastDocTimeStamp 1718702790 [09:32:19]current date 1718703145 [09:32:19]FM_GetShiftState [09:32:19]SAM_PROTO_GetShiftState [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 01 00 [09:32:19]Write to MH i2c: E2 08 00 CE 42 80 13 01 00 00 00 00 00 8D [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 CE 42 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0E [09:32:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetShiftState done [09:32:19]FM_GetShiftState done [09:32:19]opened in 1718670284 [09:32:19]opened+sec_in_day 1718756684 [09:32:19]quantity*price = 140037 [09:32:19]sum+1 = 140039 [09:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 18.06.2024 09:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103354 ФПД: 201893740647598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093225&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103354&fm=201893740647598&tin=02508201610067®Number=0000000000092785&sum=140000 [09:32:20]StoreToDocumentArchive [09:32:20]shift 352 fd 103354 [09:32:20]save to /storage/0352/doc_00103354 [09:32:20]save last doc name /storage/0352/doc_00103354 to /storage/kkm_last_doc_name [09:32:20]save OK [09:32:20]Clear old archive folders... [09:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:20]tlvbuf is B6F983F0 [09:32:20]SAM_PROTO_ClearQueue [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 09 00 00 [09:32:20]Write to MH i2c: E2 08 00 DB 42 80 09 00 00 00 00 00 00 8F [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_ClearQueue done [09:32:20]KKMCreateOFDPacket [09:32:20]OFDProtocolAddRootSTLVToBuf [09:32:20]FM_MakeSignedData [09:32:20]FM_MakeSignedData [09:32:20]SAM_PROTO_SignData [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 01 02 [09:32:20]Write to MH i2c: E2 08 00 DC 42 80 0D 01 02 00 00 00 00 97 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=255 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 29 54 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 93 01 00 35 04 06 00 B7 [09:32:20]Write to MH i2c: E2 02 01 DD 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 29 54 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 93 01 00 35 04 06 00 B7 00 00 A3 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [09:32:21]RAPDU: 90 00 [09:32:21]wFMCommunicate OK [09:32:21]wFMCommunicate request_size=10 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 0D 02 02 05 9F 0C B1 94 AE [09:32:21]Write to MH i2c: E2 0D 00 DE 42 80 0D 02 02 05 00 9F 0C B1 94 AE 00 00 42 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 03 00 DE 42 00 90 00 94 [09:32:21]RAPDU: 90 00 [09:32:21]wFMCommunicate OK [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 0D 03 02 [09:32:21]Write to MH i2c: E2 08 00 DF 42 80 0D 03 02 00 00 00 00 9C [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 0B 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 0B 00 DF 42 00 9B BD 88 99 9F 3A 44 64 90 00 97 [09:32:21]RAPDU: 9B BD 88 99 9F 3A 44 64 90 00 [09:32:21]wFMCommunicate OK [09:32:21]SAM_PROTO_SignData done [09:32:21]FM_MakeSignedData done [09:32:21]CreateOFDProtocolMessage [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 11 00 00 [09:32:21]Write to MH i2c: E2 08 00 E0 42 80 11 00 00 00 00 00 00 9C [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 E0 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [09:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:32:21]wFMCommunicate OK [09:32:21]CreateOFDProtocolMessage done [09:32:21]OFDSenderStorePacket 103354 [09:32:21]StoreOFDPacket docnum=103354 [09:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BC 51 07 01 33 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 29 54 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 93 01 00 35 04 06 00 B7 9F 0C B1 94 AE 9B BD 88 99 9F 3A 44 64 [09:32:21]CheckFolder [09:32:21]dirname=/storage/ofd_packets [09:32:21]CheckFolder done [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00103354 [09:32:21]NVStorageSaveData ofd_packets/00103354 [09:32:21]File name is /storage/ofd_packets/00103354 [09:32:21]Write 301 bytes [09:32:21]NVStorageSaveData done [09:32:21]OFDSenderStorePacket done [09:32:21]KKMCreateOFDPacket done [09:32:21]NVStorageSaveData kkm_last_timestamp [09:32:21]File name is /storage/kkm_last_timestamp [09:32:21]Write 4 bytes [09:32:21]NVStorageSaveData done [09:32:21]ExternCall_PrintAddStr [09:32:21]wPrintStart [09:32:21]Write to MH i2c: 01 00 00 E1 42 23 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 E1 42 00 00 00 00 00 FF 0F 38 [09:32:21]RasterBufferAndPrint [09:32:21]line Счет N : (1)672496 [09:32:21]line ИНН: 02508201610067 [09:32:21]line Контрольно-Кассовый Чек [09:32:21]line ПРОДАЖА [09:32:21]line ТРК (МРК, ГНК) : 42 [09:32:21]line Товар: 2710124130 [09:32:21]line Аи-92-К-5 [09:32:21]line 21.090 * 66.40 [09:32:21]line = 1400.38 [09:32:21]line НДС 12% НСП 1% [09:32:21]line > о реализуемом товаре [09:32:21]line ОКРУГЛЕНИЕ: -0.38 [09:32:21]line ИТОГО: 1400.00 [09:32:21]line Внесено: 1400.00 [09:32:21]line СДАЧА: 0.00 [09:32:21]line НСП 1% : 12.39 [09:32:21]line НДС 12% : 148.71 [09:32:21]line Наличными: 1400.00 [09:32:21]line Безнал.: 0.00 [09:32:21]line Место: АЗС № 120 "Партнер Нефть" [09:32:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:32:21]line СНО: Общий режим [09:32:21]line Чек 38 18.06.2024 09:32 [09:32:21]line Смена: 352 ФФД: 1.0 [09:32:21]line ЗНМ: 0300000164 [09:32:21]line РНМ: 0000000000092785 [09:32:21]line Версия ККМ: 001 [09:32:21]line ФМ: 0000000000875093 [09:32:21]line ФД: 103354 [09:32:21]line ФПД: 201893740647598 [09:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093225&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103354&fm=201893740647598&tin=02508201610067®Number=0000000000092785&sum=140000 [09:32:21]OFD Sender: Processing packet 103354 [packets to send 17, broken 16] [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00103354 [09:32:21]OFD Sender: To server: pG, [09:32:21]CommunicateWithHost lk.salyk.kg:30040 [09:32:21]ConnectInit lk.salyk.kg [09:32:21]written 0, free lines is 4095 [09:32:21]Connected sock=10 [09:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BC 51 07 01 33 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 29 54 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 93 01 00 35 04 06 00 B7 9F 0C B1 94 AE 9B BD 88 99 9F 3A 44 64 [09:32:22]Write to MH i2c: 01 00 00 0C 43 4F [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8B 6F 47 00 1D 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 35 30 39 33 10 04 04 00 BA 93 01 00 F4 03 04 00 B6 FA 70 66 B6 04 01 00 00 DA 36 4B 8F A7 7F 72 80 [09:32:22]CommunicateWithHost err = 0 [09:32:22]CheckOFDResponse [09:32:22]1017 (14) - 77093643461234 [09:32:22]1041 (16) - 0000000000875093 [09:32:22]1040 (4) - 103354 [09:32:22]1012 (4) - 18.06.2024 03:10 [09:32:22]1206 (1) - 0 [09:32:22]OFD Sender: Remove packet 103354 [09:32:22]ProducePacketName [09:32:22]name=ofd_packets/00103354 [09:32:22]NVStorageDeleteData [09:32:22]Read from MH i2c: 01 [09:32:22]MH_I2C_Read... [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 0C 43 00 00 00 00 00 D8 0C 3A [09:32:22]RasterBufferAndPrint [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]line [09:32:22]written 0, free lines is 3304 [09:32:22]MH_Cut [09:32:22]Write to MH i2c: D1 01 00 13 43 01 28 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 01 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: D1 01 00 13 43 00 27 [09:32:22]Write to MH i2c: 01 00 00 14 43 57 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]OFD Sender: No OFD packet to send [09:32:22]*** Cut start [09:32:22]*** Partial cut [09:32:22]*** CUTSNS_PIN = 1 [09:32:22]*** CUTSNS_PIN = 0 [09:32:23]*** Brake cut motor [09:32:23]Read from MH i2c: 01 [09:32:23]MH_I2C_Read... [09:32:23]*** Stop cut motor [09:32:23]*** Cut end [09:32:23]Read from MH i2c: 01 07 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 07 00 14 43 00 00 00 00 00 FF 0F 6C [09:32:23]process_action close_receipt done [09:32:23]requested_data is exist [09:32:23]produce_requested_data [09:32:23]requested_item fm.sn is exist - process it [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 11 00 00 [09:32:23]Write to MH i2c: E2 08 00 15 43 80 11 00 00 00 00 00 00 D2 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 15 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [09:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:32:23]wFMCommunicate OK [09:32:23]requested_item fd.num is exist - process it [09:32:23]SAM_PROTO_GetFieldsCounters [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 00 00 [09:32:23]Write to MH i2c: E2 08 00 16 43 80 13 00 00 00 00 00 00 D5 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 16 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetFieldsCounters done [09:32:23]requested_item shift.num is exist - process it [09:32:23]requested_item shift.opened is exist - process it [09:32:23]req_shift_opened [09:32:23]FM_GetShiftState [09:32:23]SAM_PROTO_GetShiftState [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 01 00 [09:32:23]Write to MH i2c: E2 08 00 17 43 80 13 01 00 00 00 00 00 D7 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:23]Read from MH i2c: E2 0E 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 0E 00 17 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 58 [09:32:23]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetShiftState done [09:32:23]FM_GetShiftState done [09:32:23]req_shift_opened done [09:32:23]requested_item shift.open_date is exist - process it [09:32:23]req_shift_open_date [09:32:23]req_shift_open_date done [09:32:23]produce_requested_data done [09:32:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:32:23]process_action_free close_receipt [09:32:23]json_value_free [09:32:23]json_value_free done [09:32:23]process_json_proto returns [09:32:23]Send response to host [09:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:32:23]free response buf [09:32:23]execute_script done [09:32:23]execute_script returns [09:32:23]free content buf [09:32:23]Sock 9.Close socket [09:32:23]Sock 9.Thread stoped [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [09:39:17]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:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:46]accept exits with 7 [09:42:46]New connection [09:42:46]New thread 3067227492 created [09:42:46]Thread 3067084132 joined [09:42:46]Waiting for new connection... [09:42:46] Sock 7.Parse request [09:42:46]Sock 7.Check first char [09:42:46]Sock 7.First char is OK [09:42:46]request: POST /json_proto HTTP/1.0 [09:42:46]Method: POST [09:42:46]URL: /json_proto [09:42:46]Method is POST - this is cgi request [09:42:46]url: /json_proto [09:42:46]query_string will be loaded in cgi processing [09:42:46]execute_cgi json_proto POST (null) [09:42:46]execute_cgi path=json_proto method=POST [09:42:46]POST find Content-Length [09:42:46]Host: 172.17.38.133:8080 [09:42:46]Content-Length: 1184 [09:42:46]Content-Type: application/json [09:42:46] [09:42:46]POST finish read [09:42:46]Found Content-Length = 1184 [09:42:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672503\u000A18.06.2024 09:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888452\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:46]execute_script... [09:42:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672503\u000A18.06.2024 09:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888452\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:46]POST & json_proto [09:42:46]process_json_proto [09:42:46]json parsed OK: [09:42:46]protocol is kg_v1.0 [09:42:46]action value=print_text [09:42:46]process_action print_text [09:42:46]cmd_print_text [09:42:46]ExternCall_PrintAddStr [09:42:46]wPrintStart [09:42:46]Write to MH i2c: 01 00 00 18 43 5B [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 18 43 00 00 00 00 00 FF 0F 70 [09:42:46]RasterBufferAndPrint [09:42:46]line *****ТОВАРНЫЙ ЧЕК***** [09:42:46]line АЗС 120 [09:42:46]line Партнер нефть [09:42:46]line 02508201610067 [09:42:46]line Кассир : Асанбаев Н. [09:42:46]line Счет N : (1)672503 [09:42:46]line 18.06.2024 09:20 [09:42:46]line ПРОДАЖА [09:42:46]line ТРК (МРК, ГНК): 42 [09:42:46]line Вид ГСМ : 2710124130 [09:42:46]line Аи-92-К-5 [09:42:46]line 10.000 x 66.40 [09:42:46]line ИТОГ: 664.00 [09:42:46]line Тип оплаты: Талоны: Партнер нефть [09:42:46]line 3888452 [09:42:46]line ______________________ [09:42:46]line (подпись) [09:42:46]written 0, free lines is 4095 [09:42:46]Write to MH i2c: 01 00 00 2C 43 6F [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: 01 07 00 2C 43 00 00 00 00 00 13 0E 97 [09:42:46]RasterBufferAndPrint [09:42:46]line [09:42:46]line [09:42:46]line [09:42:46]line [09:42:46]line [09:42:46]written 0, free lines is 3604 [09:42:46]MH_Cut [09:42:46]Write to MH i2c: D1 01 00 33 43 01 48 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: D1 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: D1 01 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: D1 01 00 33 43 00 47 [09:42:46]Write to MH i2c: 01 00 00 34 43 77 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:47]*** Cut start [09:42:47]*** Partial cut [09:42:47]*** CUTSNS_PIN = 1 [09:42:47]*** CUTSNS_PIN = 0 [09:42:47]*** Brake cut motor [09:42:47]Read from MH i2c: 01 [09:42:47]MH_I2C_Read... [09:42:47]*** Stop cut motor [09:42:47]*** Cut end [09:42:47]Read from MH i2c: 01 07 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: 01 07 00 34 43 00 00 00 00 00 FF 0F 8C [09:42:47]process_action print_text done [09:42:47]requested_data is exist [09:42:47]produce_requested_data [09:42:47]requested_item fm.sn is exist - process it [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 11 00 00 [09:42:47]Write to MH i2c: E2 08 00 35 43 80 11 00 00 00 00 00 00 F2 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 17 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 17 00 35 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [09:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:42:47]wFMCommunicate OK [09:42:47]requested_item fd.num is exist - process it [09:42:47]SAM_PROTO_GetFieldsCounters [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 13 00 00 [09:42:47]Write to MH i2c: E2 08 00 36 43 80 13 00 00 00 00 00 00 F5 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 62 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 62 00 36 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:47]wFMCommunicate OK [09:42:47]SAM_PROTO_GetFieldsCounters done [09:42:47]requested_item shift.num is exist - process it [09:42:47]requested_item shift.opened is exist - process it [09:42:47]req_shift_opened [09:42:47]FM_GetShiftState [09:42:47]SAM_PROTO_GetShiftState [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 13 01 00 [09:42:47]Write to MH i2c: E2 08 00 37 43 80 13 01 00 00 00 00 00 F7 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 0E 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 0E 00 37 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 78 [09:42:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:42:47]wFMCommunicate OK [09:42:47]SAM_PROTO_GetShiftState done [09:42:47]FM_GetShiftState done [09:42:47]req_shift_opened done [09:42:47]requested_item shift.open_date is exist - process it [09:42:47]req_shift_open_date [09:42:47]req_shift_open_date done [09:42:47]produce_requested_data done [09:42:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:42:47]process_action_free print_text [09:42:47]json_value_free [09:42:47]json_value_free done [09:42:47]process_json_proto returns [09:42:47]Send response to host [09:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:42:47]free response buf [09:42:47]execute_script done [09:42:47]execute_script returns [09:42:47]free content buf [09:42:47]Sock 7.Close socket [09:42:47]Sock 7.Thread stoped [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [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:38]accept exits with 9 [09:43:38]New connection [09:43:38]New thread 3067084132 created [09:43:38]Thread 3067227492 joined [09:43:38]Waiting for new connection... [09:43:38] Sock 9.Parse request [09:43:38]Sock 9.Check first char [09:43:38]Sock 9.First char is OK [09:43:38]request: POST /json_proto HTTP/1.0 [09:43:38]Method: POST [09:43:38]URL: /json_proto [09:43:38]Method is POST - this is cgi request [09:43:38]url: /json_proto [09:43:38]query_string will be loaded in cgi processing [09:43:38]execute_cgi json_proto POST (null) [09:43:38]execute_cgi path=json_proto method=POST [09:43:38]POST find Content-Length [09:43:38]Host: 172.17.38.133:8080 [09:43:38]Content-Length: 1157 [09:43:38]Content-Type: application/json [09:43:38] [09:43:38]POST finish read [09:43:38]Found Content-Length = 1157 [09:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672502\u000A18.06.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085692\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:38]execute_script... [09:43:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672502\u000A18.06.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085692\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:38]POST & json_proto [09:43:38]process_json_proto [09:43:38]json parsed OK: [09:43:38]protocol is kg_v1.0 [09:43:38]action value=print_text [09:43:38]process_action print_text [09:43:38]cmd_print_text [09:43:38]ExternCall_PrintAddStr [09:43:38]wPrintStart [09:43:38]Write to MH i2c: 01 00 00 38 43 7B [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 38 43 00 00 00 00 00 FF 0F 90 [09:43:38]RasterBufferAndPrint [09:43:38]line *****ТОВАРНЫЙ ЧЕК***** [09:43:38]line АЗС 120 [09:43:38]line Партнер нефть [09:43:38]line 02508201610067 [09:43:38]line Кассир : Асанбаев Н. [09:43:38]line Счет N : (1)672502 [09:43:38]line 18.06.2024 09:21 [09:43:38]line ПРОДАЖА [09:43:38]line ТРК (МРК, ГНК): 31 [09:43:38]line Вид ГСМ : 2710124500 [09:43:38]line Аи-95-К-5 [09:43:38]line 50.000 x 73.90 [09:43:38]line ИТОГ: 3695.00 [09:43:38]line Тип оплаты: Талоны: ТК ГПНА Online [09:43:38]line 30085692 [09:43:38]line ______________________ [09:43:38]line (подпись) [09:43:38]written 0, free lines is 4095 [09:43:39]Write to MH i2c: 01 00 00 4C 43 8F [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 07 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 07 00 4C 43 00 00 00 00 00 12 0E B6 [09:43:39]RasterBufferAndPrint [09:43:39]line [09:43:39]line [09:43:39]line [09:43:39]line [09:43:39]line [09:43:39]written 0, free lines is 3603 [09:43:39]MH_Cut [09:43:39]Write to MH i2c: D1 01 00 53 43 01 68 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: D1 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: D1 01 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: D1 01 00 53 43 00 67 [09:43:39]Write to MH i2c: 01 00 00 54 43 97 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** Cut start [09:43:39]*** Partial cut [09:43:39]*** CUTSNS_PIN = 1 [09:43:39]*** CUTSNS_PIN = 0 [09:43:40]*** Brake cut motor [09:43:40]Read from MH i2c: 01 [09:43:40]MH_I2C_Read... [09:43:40]*** Stop cut motor [09:43:40]*** Cut end [09:43:40]Read from MH i2c: 01 07 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: 01 07 00 54 43 00 00 00 00 00 FF 0F AC [09:43:40]process_action print_text done [09:43:40]requested_data is exist [09:43:40]produce_requested_data [09:43:40]requested_item fm.sn is exist - process it [09:43:40]wFMCommunicate request_size=4 [09:43:40]MH_SAM_APDU [09:43:40]CAPDU: 80 11 00 00 [09:43:40]Write to MH i2c: E2 08 00 55 43 80 11 00 00 00 00 00 00 12 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:40]Read from MH i2c: E2 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 17 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 17 00 55 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [09:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:43:40]wFMCommunicate OK [09:43:40]requested_item fd.num is exist - process it [09:43:40]SAM_PROTO_GetFieldsCounters [09:43:40]wFMCommunicate request_size=4 [09:43:40]MH_SAM_APDU [09:43:40]CAPDU: 80 13 00 00 [09:43:40]Write to MH i2c: E2 08 00 56 43 80 13 00 00 00 00 00 00 15 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:40]Read from MH i2c: E2 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 62 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 62 00 56 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [09:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:40]wFMCommunicate OK [09:43:40]SAM_PROTO_GetFieldsCounters done [09:43:40]requested_item shift.num is exist - process it [09:43:40]requested_item shift.opened is exist - process it [09:43:40]req_shift_opened [09:43:40]FM_GetShiftState [09:43:40]SAM_PROTO_GetShiftState [09:43:40]wFMCommunicate request_size=4 [09:43:40]MH_SAM_APDU [09:43:40]CAPDU: 80 13 01 00 [09:43:40]Write to MH i2c: E2 08 00 57 43 80 13 01 00 00 00 00 00 17 [09:43:40]Write i2c OK [09:43:40]MH_I2C_Read... [09:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:40]Read from MH i2c: E2 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 0E 00 [09:43:40]MH_I2C_Read... [09:43:40]Read from MH i2c: E2 0E 00 57 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [09:43:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:43:40]wFMCommunicate OK [09:43:40]SAM_PROTO_GetShiftState done [09:43:40]FM_GetShiftState done [09:43:40]req_shift_opened done [09:43:40]requested_item shift.open_date is exist - process it [09:43:40]req_shift_open_date [09:43:40]req_shift_open_date done [09:43:40]produce_requested_data done [09:43:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:43:40]process_action_free print_text [09:43:40]json_value_free [09:43:40]json_value_free done [09:43:40]process_json_proto returns [09:43:40]Send response to host [09:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103354,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:43:40]free response buf [09:43:40]execute_script done [09:43:40]execute_script returns [09:43:40]free content buf [09:43:40]Sock 9.Close socket [09:43:40]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]accept exits with 7 [09:48:58]New connection [09:48:58]New thread 3067227492 created [09:48:58]Thread 3067084132 joined [09:48:58]Waiting for new connection... [09:48:58] Sock 7.Parse request [09:48:58]Sock 7.Check first char [09:48:58]Sock 7.First char is OK [09:48:58]request: POST /json_proto HTTP/1.0 [09:48:58]Method: POST [09:48:58]URL: /json_proto [09:48:58]Method is POST - this is cgi request [09:48:58]url: /json_proto [09:48:58]query_string will be loaded in cgi processing [09:48:58]execute_cgi json_proto POST (null) [09:48:58]execute_cgi path=json_proto method=POST [09:48:58]POST find Content-Length [09:48:58]Host: 172.17.38.133:8080 [09:48:58]Content-Length: 682 [09:48:58]Content-Type: application/json [09:48:58] [09:48:58]POST finish read [09:48:58]Found Content-Length = 682 [09:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 23.050, "sum" : 1530.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:58]execute_script... [09:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 23.050, "sum" : 1530.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:58]POST & json_proto [09:48:58]process_json_proto [09:48:58]json parsed OK: [09:48:58]protocol is kg_v1.0 [09:48:58]action value=close_receipt [09:48:58]process_action close_receipt [09:48:58]cmd_close_receipt [09:48:58]MH_GetDate [09:48:58]Write to MH i2c: F0 00 00 58 43 8A [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: F0 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: F0 09 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: F0 09 00 58 43 00 10 58 71 66 BD 8F 7C 64 FE [09:48:58]GetLastDocTimeStamp 1718703145 [09:48:58]current date 1718704144 [09:48:58]FM_GetShiftState [09:48:58]SAM_PROTO_GetShiftState [09:48:58]wFMCommunicate request_size=4 [09:48:58]MH_SAM_APDU [09:48:58]CAPDU: 80 13 01 00 [09:48:58]Write to MH i2c: E2 08 00 59 43 80 13 01 00 00 00 00 00 19 [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:58]Read from MH i2c: E2 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 0E 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: E2 0E 00 59 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [09:48:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:48:58]wFMCommunicate OK [09:48:58]SAM_PROTO_GetShiftState done [09:48:58]FM_GetShiftState done [09:48:58]opened in 1718670284 [09:48:58]opened+sec_in_day 1718756684 [09:48:58]quantity*price = 153052 [09:48:58]sum+1 = 153053 [09:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1530.00 Внесено: 1530.00 СДАЧА: 0.00 НСП 1% : 13.54 НДС 12% : 162.53 Наличными: 1530.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 18.06.2024 09:49 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103355 ФПД: 60426112887675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103355&fm=60426112887675&tin=02508201610067®Number=0000000000092785&sum=153000 [09:48:59]StoreToDocumentArchive [09:48:59]shift 352 fd 103355 [09:48:59]save to /storage/0352/doc_00103355 [09:48:59]save last doc name /storage/0352/doc_00103355 to /storage/kkm_last_doc_name [09:48:59]save OK [09:48:59]Clear old archive folders... [09:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:59]tlvbuf is 014544B0 [09:48:59]SAM_PROTO_ClearQueue [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 09 00 00 [09:48:59]Write to MH i2c: E2 08 00 66 43 80 09 00 00 00 00 00 00 1B [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 66 43 00 90 00 1D [09:48:59]RAPDU: 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_ClearQueue done [09:48:59]KKMCreateOFDPacket [09:48:59]OFDProtocolAddRootSTLVToBuf [09:48:59]FM_MakeSignedData [09:48:59]FM_MakeSignedData [09:48:59]SAM_PROTO_SignData [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 0D 01 02 [09:48:59]Write to MH i2c: E2 08 00 67 43 80 0D 01 02 00 00 00 00 23 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 67 43 00 90 00 1E [09:48:59]RAPDU: 90 00 [09:48:59]wFMCommunicate OK [09:48:59]wFMCommunicate request_size=255 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 5A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3F 00 00 00 00 07 04 06 00 A8 55 02 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 10 58 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 93 01 00 35 04 06 00 36 [09:48:59]Write to MH i2c: E2 02 01 68 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 5A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3F 00 00 00 00 07 04 06 00 A8 55 02 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 10 58 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 93 01 00 35 04 06 00 36 00 00 28 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 68 43 00 90 00 1F [09:48:59]RAPDU: 90 00 [09:48:59]wFMCommunicate OK [09:48:59]wFMCommunicate request_size=10 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 0D 02 02 05 F5 0C FE 6B 7B [09:48:59]Write to MH i2c: E2 0D 00 69 43 80 0D 02 02 05 00 F5 0C FE 6B 7B 00 00 15 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 03 00 69 43 00 90 00 20 [09:48:59]RAPDU: 90 00 [09:48:59]wFMCommunicate OK [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 0D 03 02 [09:48:59]Write to MH i2c: E2 08 00 6A 43 80 0D 03 02 00 00 00 00 28 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0B 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0B 00 6A 43 00 53 83 C0 56 60 ED 55 72 90 00 29 [09:48:59]RAPDU: 53 83 C0 56 60 ED 55 72 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_SignData done [09:48:59]FM_MakeSignedData done [09:48:59]CreateOFDProtocolMessage [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 11 00 00 [09:48:59]Write to MH i2c: E2 08 00 6B 43 80 11 00 00 00 00 00 00 28 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 17 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 17 00 6B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [09:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:48:59]wFMCommunicate OK [09:48:59]CreateOFDProtocolMessage done [09:48:59]OFDSenderStorePacket 103355 [09:48:59]StoreOFDPacket docnum=103355 [09:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8E 2B 07 01 CD 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 5A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3F 00 00 00 00 07 04 06 00 A8 55 02 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 10 58 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 93 01 00 35 04 06 00 36 F5 0C FE 6B 7B 53 83 C0 56 60 ED 55 72 [09:48:59]CheckFolder [09:48:59]dirname=/storage/ofd_packets [09:48:59]CheckFolder done [09:48:59]ProducePacketName [09:48:59]name=ofd_packets/00103355 [09:48:59]NVStorageSaveData ofd_packets/00103355 [09:48:59]File name is /storage/ofd_packets/00103355 [09:48:59]Write 301 bytes [09:48:59]NVStorageSaveData done [09:48:59]OFDSenderStorePacket done [09:48:59]KKMCreateOFDPacket done [09:48:59]NVStorageSaveData kkm_last_timestamp [09:48:59]File name is /storage/kkm_last_timestamp [09:48:59]Write 4 bytes [09:48:59]NVStorageSaveData done [09:48:59]ExternCall_PrintAddStr [09:48:59]wPrintStart [09:48:59]Write to MH i2c: 01 00 00 6C 43 AF [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: 01 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: 01 07 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: 01 07 00 6C 43 00 00 00 00 00 FF 0F C4 [09:48:59]RasterBufferAndPrint [09:48:59]line Счет N : (1)672505 [09:48:59]line ИНН: 02508201610067 [09:48:59]line Контрольно-Кассовый Чек [09:48:59]line ПРОДАЖА [09:48:59]line ТРК (МРК, ГНК) : 32 [09:48:59]line Товар: 2710124130 [09:48:59]line Аи-92-К-5 [09:48:59]line 23.050 * 66.40 [09:48:59]line = 1530.52 [09:48:59]line НДС 12% НСП 1% [09:48:59]line > о реализуемом товаре [09:48:59]line ОКРУГЛЕНИЕ: -0.52 [09:48:59]line ИТОГО: 1530.00 [09:48:59]line Внесено: 1530.00 [09:48:59]line СДАЧА: 0.00 [09:48:59]line НСП 1% : 13.54 [09:48:59]line НДС 12% : 162.53 [09:48:59]line Наличными: 1530.00 [09:48:59]line Безнал.: 0.00 [09:48:59]line Место: АЗС № 120 "Партнер Нефть" [09:48:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:48:59]line СНО: Общий режим [09:48:59]line Чек 39 18.06.2024 09:49 [09:48:59]line Смена: 352 ФФД: 1.0 [09:48:59]line ЗНМ: 0300000164 [09:48:59]line РНМ: 0000000000092785 [09:48:59]line Версия ККМ: 001 [09:48:59]line ФМ: 0000000000875093 [09:48:59]line ФД: 103355 [09:48:59]line ФПД: 60426112887675 [09:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103355&fm=60426112887675&tin=02508201610067®Number=0000000000092785&sum=153000 [09:49:00]OFD Sender: Processing packet 103355 [packets to send 17, broken 16] [09:49:00]ProducePacketName [09:49:00]name=ofd_packets/00103355 [09:49:00]OFD Sender: To server: pG, [09:49:00]CommunicateWithHost lk.salyk.kg:30040 [09:49:00]ConnectInit lk.salyk.kg [09:49:00]written 0, free lines is 4095 [09:49:00]Connected sock=10 [09:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8E 2B 07 01 CD 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 5A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 3F 00 00 00 00 07 04 06 00 A8 55 02 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 10 58 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 93 01 00 35 04 06 00 36 F5 0C FE 6B 7B 53 83 C0 56 60 ED 55 72 [09:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 09 63 47 00 CB 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 93 01 00 F4 03 04 00 9C FE 70 66 B6 04 01 00 00 A6 B0 24 0B C4 D3 B5 FB [09:49:00]CommunicateWithHost err = 0 [09:49:00]CheckOFDResponse [09:49:00]1017 (14) - 77093643461234 [09:49:00]1041 (16) - 0000000000875093 [09:49:00]1040 (4) - 103355 [09:49:00]1012 (4) - 18.06.2024 03:27 [09:49:00]1206 (1) - 0 [09:49:00]OFD Sender: Remove packet 103355 [09:49:00]ProducePacketName [09:49:00]name=ofd_packets/00103355 [09:49:00]NVStorageDeleteData [09:49:00]Write to MH i2c: 01 00 00 97 43 DA [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: 01 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: 01 07 00 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: 01 07 00 97 43 00 00 00 00 00 E1 0C CE [09:49:00]RasterBufferAndPrint [09:49:00]line [09:49:00]line [09:49:00]line [09:49:00]line [09:49:00]line [09:49:00]written 0, free lines is 3303 [09:49:00]MH_Cut [09:49:00]Write to MH i2c: D1 01 00 9E 43 01 B3 [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: D1 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: D1 01 00 [09:49:00]MH_I2C_Read... [09:49:00]Read from MH i2c: D1 01 00 9E 43 00 B2 [09:49:00]Write to MH i2c: 01 00 00 9F 43 E2 [09:49:00]Write i2c OK [09:49:00]MH_I2C_Read... [09:49:01]OFD Sender: No OFD packet to send [09:49:01]*** Cut start [09:49:01]*** Partial cut [09:49:01]*** CUTSNS_PIN = 1 [09:49:01]*** CUTSNS_PIN = 0 [09:49:01]*** Brake cut motor [09:49:02]Read from MH i2c: 01 [09:49:02]MH_I2C_Read... [09:49:02]*** Stop cut motor [09:49:02]*** Cut end [09:49:02]Read from MH i2c: 01 07 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 07 00 9F 43 00 00 00 00 00 FF 0F F7 [09:49:02]process_action close_receipt done [09:49:02]requested_data is exist [09:49:02]produce_requested_data [09:49:02]requested_item fm.sn is exist - process it [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 11 00 00 [09:49:02]Write to MH i2c: E2 08 00 A0 43 80 11 00 00 00 00 00 00 5D [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 17 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 17 00 A0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [09:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:49:02]wFMCommunicate OK [09:49:02]requested_item fd.num is exist - process it [09:49:02]SAM_PROTO_GetFieldsCounters [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 13 00 00 [09:49:02]Write to MH i2c: E2 08 00 A1 43 80 13 00 00 00 00 00 00 60 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 62 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 62 00 A1 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [09:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:02]wFMCommunicate OK [09:49:02]SAM_PROTO_GetFieldsCounters done [09:49:02]requested_item shift.num is exist - process it [09:49:02]requested_item shift.opened is exist - process it [09:49:02]req_shift_opened [09:49:02]FM_GetShiftState [09:49:02]SAM_PROTO_GetShiftState [09:49:02]wFMCommunicate request_size=4 [09:49:02]MH_SAM_APDU [09:49:02]CAPDU: 80 13 01 00 [09:49:02]Write to MH i2c: E2 08 00 A2 43 80 13 01 00 00 00 00 00 62 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 [09:49:02]MH_I2C_Read... [09:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:02]Read from MH i2c: E2 0E 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: E2 0E 00 A2 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E3 [09:49:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:49:02]wFMCommunicate OK [09:49:02]SAM_PROTO_GetShiftState done [09:49:02]FM_GetShiftState done [09:49:02]req_shift_opened done [09:49:02]requested_item shift.open_date is exist - process it [09:49:02]req_shift_open_date [09:49:02]req_shift_open_date done [09:49:02]produce_requested_data done [09:49:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103355,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:49:02]process_action_free close_receipt [09:49:02]json_value_free [09:49:02]json_value_free done [09:49:02]process_json_proto returns [09:49:02]Send response to host [09:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103355,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:49:02]free response buf [09:49:02]execute_script done [09:49:02]execute_script returns [09:49:02]free content buf [09:49:02]Sock 7.Close socket [09:49:02]Sock 7.Thread stoped [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:24]accept exits with 9 [09:49:24]New connection [09:49:24]New thread 3067084132 created [09:49:24]Thread 3067227492 joined [09:49:24]Waiting for new connection... [09:49:24] Sock 9.Parse request [09:49:24]Sock 9.Check first char [09:49:24]Sock 9.First char is OK [09:49:24]request: POST /json_proto HTTP/1.0 [09:49:24]Method: POST [09:49:24]URL: /json_proto [09:49:24]Method is POST - this is cgi request [09:49:24]url: /json_proto [09:49:24]query_string will be loaded in cgi processing [09:49:24]execute_cgi json_proto POST (null) [09:49:24]execute_cgi path=json_proto method=POST [09:49:24]POST find Content-Length [09:49:24]Host: 172.17.38.133:8080 [09:49:24]Content-Length: 1190 [09:49:24]Content-Type: application/json [09:49:24] [09:49:24]POST finish read [09:49:24]Found Content-Length = 1190 [09:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672506\u000A18.06.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787958\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:24]execute_script... [09:49:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672506\u000A18.06.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787958\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:24]POST & json_proto [09:49:24]process_json_proto [09:49:24]json parsed OK: [09:49:24]protocol is kg_v1.0 [09:49:24]action value=print_text [09:49:24]process_action print_text [09:49:24]cmd_print_text [09:49:24]ExternCall_PrintAddStr [09:49:24]wPrintStart [09:49:24]Write to MH i2c: 01 00 00 A3 43 E6 [09:49:24]Write i2c OK [09:49:24]MH_I2C_Read... [09:49:24]Read from MH i2c: 01 [09:49:24]MH_I2C_Read... [09:49:24]Read from MH i2c: 01 07 00 [09:49:24]MH_I2C_Read... [09:49:24]Read from MH i2c: 01 07 00 A3 43 00 00 00 00 00 FF 0F FB [09:49:24]RasterBufferAndPrint [09:49:24]line *****ТОВАРНЫЙ ЧЕК***** [09:49:24]line АЗС 120 [09:49:24]line Партнер нефть [09:49:24]line 02508201610067 [09:49:24]line Кассир : Асанбаев Н. [09:49:24]line Счет N : (1)672506 [09:49:24]line 18.06.2024 09:26 [09:49:24]line ПРОДАЖА [09:49:24]line ТРК (МРК, ГНК): 11 [09:49:24]line Вид ГСМ : 2710194210 [09:49:24]line ДТ(л)-К-5 [09:49:24]line 20.000 x 72.90 [09:49:24]line ИТОГ: 1458.00 [09:49:24]line Тип оплаты: Талоны: Партнер нефть [09:49:24]line 3787958 [09:49:24]line ______________________ [09:49:24]line (подпись) [09:49:24]written 0, free lines is 4095 [09:49:25]Write to MH i2c: 01 00 00 B7 43 FA [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: 01 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: 01 07 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: 01 07 00 B7 43 00 00 00 00 00 12 0E 21 [09:49:25]RasterBufferAndPrint [09:49:25]line [09:49:25]line [09:49:25]line [09:49:25]line [09:49:25]line [09:49:25]written 0, free lines is 3604 [09:49:25]MH_Cut [09:49:25]Write to MH i2c: D1 01 00 BE 43 01 D3 [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: D1 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: D1 01 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: D1 01 00 BE 43 00 D2 [09:49:25]Write to MH i2c: 01 00 00 BF 43 02 [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** Cut start [09:49:25]*** Partial cut [09:49:25]*** CUTSNS_PIN = 1 [09:49:25]*** CUTSNS_PIN = 0 [09:49:25]*** Brake cut motor [09:49:26]Read from MH i2c: 01 [09:49:26]MH_I2C_Read... [09:49:26]*** Stop cut motor [09:49:26]*** Cut end [09:49:26]Read from MH i2c: 01 07 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: 01 07 00 BF 43 00 00 00 00 00 FF 0F 17 [09:49:26]process_action print_text done [09:49:26]requested_data is exist [09:49:26]produce_requested_data [09:49:26]requested_item fm.sn is exist - process it [09:49:26]wFMCommunicate request_size=4 [09:49:26]MH_SAM_APDU [09:49:26]CAPDU: 80 11 00 00 [09:49:26]Write to MH i2c: E2 08 00 C0 43 80 11 00 00 00 00 00 00 7D [09:49:26]Write i2c OK [09:49:26]MH_I2C_Read... [09:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:26]Read from MH i2c: E2 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 17 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 17 00 C0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [09:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:49:26]wFMCommunicate OK [09:49:26]requested_item fd.num is exist - process it [09:49:26]SAM_PROTO_GetFieldsCounters [09:49:26]wFMCommunicate request_size=4 [09:49:26]MH_SAM_APDU [09:49:26]CAPDU: 80 13 00 00 [09:49:26]Write to MH i2c: E2 08 00 C1 43 80 13 00 00 00 00 00 00 80 [09:49:26]OFD Sender: No OFD packet to send [09:49:26]Write i2c OK [09:49:26]MH_I2C_Read... [09:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:26]Read from MH i2c: E2 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 62 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 62 00 C1 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [09:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:26]wFMCommunicate OK [09:49:26]SAM_PROTO_GetFieldsCounters done [09:49:26]requested_item shift.num is exist - process it [09:49:26]requested_item shift.opened is exist - process it [09:49:26]req_shift_opened [09:49:26]FM_GetShiftState [09:49:26]SAM_PROTO_GetShiftState [09:49:26]wFMCommunicate request_size=4 [09:49:26]MH_SAM_APDU [09:49:26]CAPDU: 80 13 01 00 [09:49:26]Write to MH i2c: E2 08 00 C2 43 80 13 01 00 00 00 00 00 82 [09:49:26]Write i2c OK [09:49:26]MH_I2C_Read... [09:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:26]Read from MH i2c: E2 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 0E 00 [09:49:26]MH_I2C_Read... [09:49:26]Read from MH i2c: E2 0E 00 C2 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [09:49:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:49:26]wFMCommunicate OK [09:49:26]SAM_PROTO_GetShiftState done [09:49:26]FM_GetShiftState done [09:49:26]req_shift_opened done [09:49:26]requested_item shift.open_date is exist - process it [09:49:26]req_shift_open_date [09:49:26]req_shift_open_date done [09:49:26]produce_requested_data done [09:49:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103355,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:49:26]process_action_free print_text [09:49:26]json_value_free [09:49:26]json_value_free done [09:49:26]process_json_proto returns [09:49:26]Send response to host [09:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103355,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:49:26]free response buf [09:49:26]execute_script done [09:49:26]execute_script returns [09:49:26]free content buf [09:49:26]Sock 9.Close socket [09:49:26]Sock 9.Thread stoped [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09: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:09]accept exits with 7 [09:57:09]New connection [09:57:09]New thread 3067227492 created [09:57:09]Thread 3067084132 joined [09:57:09]Waiting for new connection... [09:57:09] Sock 7.Parse request [09:57:09]Sock 7.Check first char [09:57:09]Sock 7.First char is OK [09:57:09]request: POST /json_proto HTTP/1.0 [09:57:09]Method: POST [09:57:09]URL: /json_proto [09:57:09]Method is POST - this is cgi request [09:57:09]url: /json_proto [09:57:09]query_string will be loaded in cgi processing [09:57:09]execute_cgi json_proto POST (null) [09:57:09]execute_cgi path=json_proto method=POST [09:57:09]POST find Content-Length [09:57:09]Host: 172.17.38.133:8080 [09:57:09]Content-Length: 642 [09:57:09]Content-Type: application/json [09:57:09] [09:57:09]POST finish read [09:57:09]Found Content-Length = 642 [09:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:09]execute_script... [09:57:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:09]POST & json_proto [09:57:09]process_json_proto [09:57:09]json parsed OK: [09:57:09]protocol is kg_v1.0 [09:57:09]action value=close_receipt [09:57:09]process_action close_receipt [09:57:09]cmd_close_receipt [09:57:09]MH_GetDate [09:57:09]Write to MH i2c: F0 00 00 C3 43 F5 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 09 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 09 00 C3 43 00 FB 59 71 66 BD 8F 7C 64 55 [09:57:09]GetLastDocTimeStamp 1718704144 [09:57:09]current date 1718704635 [09:57:09]FM_GetShiftState [09:57:09]SAM_PROTO_GetShiftState [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 13 01 00 [09:57:09]Write to MH i2c: E2 08 00 C4 43 80 13 01 00 00 00 00 00 84 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0E 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0E 00 C4 43 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [09:57:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:57:09]wFMCommunicate OK [09:57:09]SAM_PROTO_GetShiftState done [09:57:09]FM_GetShiftState done [09:57:09]opened in 1718670284 [09:57:09]opened+sec_in_day 1718756684 [09:57:09]quantity*price = 132800 [09:57:09]sum+1 = 132801 [09:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 40 18.06.2024 09:57 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103356 ФПД: 263987952042465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T095715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103356&fm=263987952042465&tin=02508201610067®Number=0000000000092785&sum=132800 [09:57:10]StoreToDocumentArchive [09:57:10]shift 352 fd 103356 [09:57:10]save to /storage/0352/doc_00103356 [09:57:10]save last doc name /storage/0352/doc_00103356 to /storage/kkm_last_doc_name [09:57:10]save OK [09:57:10]Clear old archive folders... [09:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:10]tlvbuf is 0137F460 [09:57:10]SAM_PROTO_ClearQueue [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 09 00 00 [09:57:10]Write to MH i2c: E2 08 00 D1 43 80 09 00 00 00 00 00 00 86 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_ClearQueue done [09:57:10]KKMCreateOFDPacket [09:57:10]OFDProtocolAddRootSTLVToBuf [09:57:10]FM_MakeSignedData [09:57:10]FM_MakeSignedData [09:57:10]SAM_PROTO_SignData [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 01 02 [09:57:10]Write to MH i2c: E2 08 00 D2 43 80 0D 01 02 00 00 00 00 8E [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 D2 43 00 90 00 89 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=255 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FB 59 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 93 01 00 35 04 06 00 F0 [09:57:10]Write to MH i2c: E2 02 01 D3 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FB 59 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 93 01 00 35 04 06 00 F0 00 00 4A [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 D3 43 00 90 00 8A [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=10 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 02 02 05 18 7C 1B 41 E1 [09:57:10]Write to MH i2c: E2 0D 00 D4 43 80 0D 02 02 05 00 18 7C 1B 41 E1 00 00 6C [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 D4 43 00 90 00 8B [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 03 02 [09:57:10]Write to MH i2c: E2 08 00 D5 43 80 0D 03 02 00 00 00 00 93 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0B 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0B 00 D5 43 00 EA F0 7D 7D ED 9E FC AA 90 00 99 [09:57:10]RAPDU: EA F0 7D 7D ED 9E FC AA 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_SignData done [09:57:10]FM_MakeSignedData done [09:57:10]CreateOFDProtocolMessage [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 11 00 00 [09:57:10]Write to MH i2c: E2 08 00 D6 43 80 11 00 00 00 00 00 00 93 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 D6 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [09:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:57:10]wFMCommunicate OK [09:57:11]CreateOFDProtocolMessage done [09:57:11]OFDSenderStorePacket 103356 [09:57:11]StoreOFDPacket docnum=103356 [09:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD 3C 07 01 95 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FB 59 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 93 01 00 35 04 06 00 F0 18 7C 1B 41 E1 EA F0 7D 7D ED 9E FC AA [09:57:11]CheckFolder [09:57:11]dirname=/storage/ofd_packets [09:57:11]CheckFolder done [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00103356 [09:57:11]NVStorageSaveData ofd_packets/00103356 [09:57:11]File name is /storage/ofd_packets/00103356 [09:57:11]Write 301 bytes [09:57:11]NVStorageSaveData done [09:57:11]OFDSenderStorePacket done [09:57:11]KKMCreateOFDPacket done [09:57:11]NVStorageSaveData kkm_last_timestamp [09:57:11]File name is /storage/kkm_last_timestamp [09:57:11]Write 4 bytes [09:57:11]NVStorageSaveData done [09:57:11]ExternCall_PrintAddStr [09:57:11]wPrintStart [09:57:11]Write to MH i2c: 01 00 00 D7 43 1A [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 D7 43 00 00 00 00 00 FF 0F 2F [09:57:11]RasterBufferAndPrint [09:57:11]line Счет N : (1)672507 [09:57:11]line ИНН: 02508201610067 [09:57:11]line Контрольно-Кассовый Чек [09:57:11]line ПРОДАЖА [09:57:11]line ТРК (МРК, ГНК) : 32 [09:57:11]line Товар: 2710124130 [09:57:11]line Аи-92-К-5 [09:57:11]line 20.000 * 66.40 [09:57:11]line = 1328.00 [09:57:11]line НДС 12% НСП 1% [09:57:11]line > о реализуемом товаре [09:57:11]line ИТОГО: 1328.00 [09:57:11]line НСП 1% : 11.75 [09:57:11]line НДС 12% : 141.03 [09:57:11]line Наличными: 1328.00 [09:57:11]line Безнал.: 0.00 [09:57:11]line Место: АЗС № 120 "Партнер Нефть" [09:57:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:57:11]line СНО: Общий режим [09:57:11]line Чек 40 18.06.2024 09:57 [09:57:11]line Смена: 352 ФФД: 1.0 [09:57:11]line ЗНМ: 0300000164 [09:57:11]line РНМ: 0000000000092785 [09:57:11]line Версия ККМ: 001 [09:57:11]line ФМ: 0000000000875093 [09:57:11]line ФД: 103356 [09:57:11]line ФПД: 263987952042465 [09:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T095715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103356&fm=263987952042465&tin=02508201610067®Number=0000000000092785&sum=132800 [09:57:11]OFD Sender: Processing packet 103356 [packets to send 17, broken 16] [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00103356 [09:57:11]OFD Sender: To server: pG, [09:57:11]CommunicateWithHost lk.salyk.kg:30040 [09:57:11]ConnectInit lk.salyk.kg [09:57:11]written 0, free lines is 4095 [09:57:11]Connected sock=10 [09:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD 3C 07 01 95 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FB 59 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 93 01 00 35 04 06 00 F0 18 7C 1B 41 E1 EA F0 7D 7D ED 9E FC AA [09:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DC D9 47 00 14 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 93 01 00 F4 03 04 00 87 00 71 66 B6 04 01 00 00 A9 8C D1 79 61 29 30 C9 [09:57:11]CommunicateWithHost err = 0 [09:57:11]CheckOFDResponse [09:57:11]1017 (14) - 77093643461234 [09:57:11]1041 (16) - 0000000000875093 [09:57:11]1040 (4) - 103356 [09:57:11]1012 (4) - 18.06.2024 03:35 [09:57:11]1206 (1) - 0 [09:57:11]OFD Sender: Remove packet 103356 [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00103356 [09:57:11]NVStorageDeleteData [09:57:11]Write to MH i2c: 01 00 00 FF 43 42 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 FF 43 00 00 00 00 00 12 0D 68 [09:57:11]RasterBufferAndPrint [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]written 0, free lines is 3353 [09:57:11]MH_Cut [09:57:11]Write to MH i2c: D1 01 00 06 44 01 1C [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 01 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 01 00 06 44 00 1B [09:57:11]Write to MH i2c: 01 00 00 07 44 4B [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:12]OFD Sender: No OFD packet to send [09:57:12]*** Cut start [09:57:12]*** Partial cut [09:57:12]*** CUTSNS_PIN = 1 [09:57:12]*** CUTSNS_PIN = 0 [09:57:12]*** Brake cut motor [09:57:13]Read from MH i2c: 01 [09:57:13]MH_I2C_Read... [09:57:13]*** Stop cut motor [09:57:13]*** Cut end [09:57:13]Read from MH i2c: 01 07 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: 01 07 00 07 44 00 00 00 00 00 FF 0F 60 [09:57:13]process_action close_receipt done [09:57:13]requested_data is exist [09:57:13]produce_requested_data [09:57:13]requested_item fm.sn is exist - process it [09:57:13]wFMCommunicate request_size=4 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 11 00 00 [09:57:13]Write to MH i2c: E2 08 00 08 44 80 11 00 00 00 00 00 00 C6 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 17 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 17 00 08 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [09:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:57:13]wFMCommunicate OK [09:57:13]requested_item fd.num is exist - process it [09:57:13]SAM_PROTO_GetFieldsCounters [09:57:13]wFMCommunicate request_size=4 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 13 00 00 [09:57:13]Write to MH i2c: E2 08 00 09 44 80 13 00 00 00 00 00 00 C9 [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 62 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 62 00 09 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:13]wFMCommunicate OK [09:57:13]SAM_PROTO_GetFieldsCounters done [09:57:13]requested_item shift.num is exist - process it [09:57:13]requested_item shift.opened is exist - process it [09:57:13]req_shift_opened [09:57:13]FM_GetShiftState [09:57:13]SAM_PROTO_GetShiftState [09:57:13]wFMCommunicate request_size=4 [09:57:13]MH_SAM_APDU [09:57:13]CAPDU: 80 13 01 00 [09:57:13]Write to MH i2c: E2 08 00 0A 44 80 13 01 00 00 00 00 00 CB [09:57:13]Write i2c OK [09:57:13]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0E 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0E 00 0A 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4C [09:57:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [09:57:13]wFMCommunicate OK [09:57:13]SAM_PROTO_GetShiftState done [09:57:13]FM_GetShiftState done [09:57:13]req_shift_opened done [09:57:13]requested_item shift.open_date is exist - process it [09:57:13]req_shift_open_date [09:57:13]req_shift_open_date done [09:57:13]produce_requested_data done [09:57:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103356,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [09:57:13]process_action_free close_receipt [09:57:13]json_value_free [09:57:13]json_value_free done [09:57:13]process_json_proto returns [09:57:13]Send response to host [09:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103356,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [09:57:13]free response buf [09:57:13]execute_script done [09:57:13]execute_script returns [09:57:13]free content buf [09:57:13]Sock 7.Close socket [09:57:13]Sock 7.Thread stoped [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:35]accept exits with 9 [10:05:35]New connection [10:05:35]New thread 3067084132 created [10:05:35]Thread 3067227492 joined [10:05:35]Waiting for new connection... [10:05:35] Sock 9.Parse request [10:05:35]Sock 9.Check first char [10:05:35]Sock 9.First char is OK [10:05:35]request: POST /json_proto HTTP/1.0 [10:05:35]Method: POST [10:05:35]URL: /json_proto [10:05:35]Method is POST - this is cgi request [10:05:35]url: /json_proto [10:05:35]query_string will be loaded in cgi processing [10:05:35]execute_cgi json_proto POST (null) [10:05:35]execute_cgi path=json_proto method=POST [10:05:35]POST find Content-Length [10:05:35]Host: 172.17.38.133:8080 [10:05:35]Content-Length: 642 [10:05:35]Content-Type: application/json [10:05:35] [10:05:35]POST finish read [10:05:35]Found Content-Length = 642 [10:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:35]execute_script... [10: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 : (1)672508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:35]POST & json_proto [10:05:35]process_json_proto [10:05:35]json parsed OK: [10:05:35]protocol is kg_v1.0 [10:05:35]action value=close_receipt [10:05:35]process_action close_receipt [10:05:35]cmd_close_receipt [10:05:35]MH_GetDate [10:05:35]Write to MH i2c: F0 00 00 0B 44 3E [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: F0 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: F0 09 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: F0 09 00 0B 44 00 F5 5B 71 66 BD 8F 7C 64 9A [10:05:35]GetLastDocTimeStamp 1718704635 [10:05:35]current date 1718705141 [10:05:35]FM_GetShiftState [10:05:35]SAM_PROTO_GetShiftState [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 13 01 00 [10:05:35]Write to MH i2c: E2 08 00 0C 44 80 13 01 00 00 00 00 00 CD [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0E 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0E 00 0C 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4E [10:05:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:05:35]wFMCommunicate OK [10:05:35]SAM_PROTO_GetShiftState done [10:05:35]FM_GetShiftState done [10:05:35]opened in 1718670284 [10:05:35]opened+sec_in_day 1718756684 [10:05:35]quantity*price = 132800 [10:05:35]sum+1 = 132801 [10:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 18.06.2024 10:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103357 ФПД: 218546133316149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T100541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103357&fm=218546133316149&tin=02508201610067®Number=0000000000092785&sum=132800 [10:05:36]StoreToDocumentArchive [10:05:36]shift 352 fd 103357 [10:05:36]save to /storage/0352/doc_00103357 [10:05:36]save last doc name /storage/0352/doc_00103357 to /storage/kkm_last_doc_name [10:05:36]save OK [10:05:36]Clear old archive folders... [10:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:36]tlvbuf is 01383A70 [10:05:36]SAM_PROTO_ClearQueue [10:05:36]wFMCommunicate request_size=4 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 09 00 00 [10:05:36]Write to MH i2c: E2 08 00 19 44 80 09 00 00 00 00 00 00 CF [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 19 44 00 90 00 D1 [10:05:36]RAPDU: 90 00 [10:05:36]wFMCommunicate OK [10:05:36]SAM_PROTO_ClearQueue done [10:05:36]KKMCreateOFDPacket [10:05:36]OFDProtocolAddRootSTLVToBuf [10:05:36]FM_MakeSignedData [10:05:36]FM_MakeSignedData [10:05:36]SAM_PROTO_SignData [10:05:36]wFMCommunicate request_size=4 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 0D 01 02 [10:05:36]Write to MH i2c: E2 08 00 1A 44 80 0D 01 02 00 00 00 00 D7 [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [10:05:36]RAPDU: 90 00 [10:05:36]wFMCommunicate OK [10:05:36]wFMCommunicate request_size=255 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 F5 5B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 93 01 00 35 04 06 00 C6 [10:05:36]Write to MH i2c: E2 02 01 1B 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 F5 5B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 93 01 00 35 04 06 00 C6 00 00 67 [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [10:05:36]RAPDU: 90 00 [10:05:36]wFMCommunicate OK [10:05:36]wFMCommunicate request_size=10 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 0D 02 02 05 C4 3C A4 B2 35 [10:05:36]Write to MH i2c: E2 0D 00 1C 44 80 0D 02 02 05 00 C4 3C A4 B2 35 00 00 6F [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [10:05:36]RAPDU: 90 00 [10:05:36]wFMCommunicate OK [10:05:36]wFMCommunicate request_size=4 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 0D 03 02 [10:05:36]Write to MH i2c: E2 08 00 1D 44 80 0D 03 02 00 00 00 00 DC [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 0B 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 0B 00 1D 44 00 E8 1E C4 9D E7 49 9F C3 90 00 D6 [10:05:36]RAPDU: E8 1E C4 9D E7 49 9F C3 90 00 [10:05:36]wFMCommunicate OK [10:05:36]SAM_PROTO_SignData done [10:05:36]FM_MakeSignedData done [10:05:36]CreateOFDProtocolMessage [10:05:36]wFMCommunicate request_size=4 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 11 00 00 [10:05:36]Write to MH i2c: E2 08 00 1E 44 80 11 00 00 00 00 00 00 DC [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 17 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 17 00 1E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [10:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:05:36]wFMCommunicate OK [10:05:36]CreateOFDProtocolMessage done [10:05:36]OFDSenderStorePacket 103357 [10:05:36]StoreOFDPacket docnum=103357 [10:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B 68 07 01 FA E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 F5 5B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 93 01 00 35 04 06 00 C6 C4 3C A4 B2 35 E8 1E C4 9D E7 49 9F C3 [10:05:36]CheckFolder [10:05:36]dirname=/storage/ofd_packets [10:05:36]CheckFolder done [10:05:36]ProducePacketName [10:05:36]name=ofd_packets/00103357 [10:05:36]NVStorageSaveData ofd_packets/00103357 [10:05:36]File name is /storage/ofd_packets/00103357 [10:05:36]Write 301 bytes [10:05:36]NVStorageSaveData done [10:05:36]OFDSenderStorePacket done [10:05:36]KKMCreateOFDPacket done [10:05:36]NVStorageSaveData kkm_last_timestamp [10:05:36]File name is /storage/kkm_last_timestamp [10:05:36]Write 4 bytes [10:05:36]NVStorageSaveData done [10:05:36]ExternCall_PrintAddStr [10:05:36]wPrintStart [10:05:36]Write to MH i2c: 01 00 00 1F 44 63 [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 07 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: 01 07 00 1F 44 00 00 00 00 00 FF 0F 78 [10:05:36]RasterBufferAndPrint [10:05:36]line Счет N : (1)672508 [10:05:36]line ИНН: 02508201610067 [10:05:36]line Контрольно-Кассовый Чек [10:05:36]line ПРОДАЖА [10:05:36]line ТРК (МРК, ГНК) : 32 [10:05:36]line Товар: 2710124130 [10:05:36]line Аи-92-К-5 [10:05:36]line 20.000 * 66.40 [10:05:36]line = 1328.00 [10:05:36]line НДС 12% НСП 1% [10:05:36]line > о реализуемом товаре [10:05:36]line ИТОГО: 1328.00 [10:05:36]line НСП 1% : 11.75 [10:05:36]line НДС 12% : 141.03 [10:05:36]line Наличными: 1328.00 [10:05:36]line Безнал.: 0.00 [10:05:36]line Место: АЗС № 120 "Партнер Нефть" [10:05:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:05:36]line СНО: Общий режим [10:05:36]line Чек 41 18.06.2024 10:05 [10:05:36]line Смена: 352 ФФД: 1.0 [10:05:36]line ЗНМ: 0300000164 [10:05:36]line РНМ: 0000000000092785 [10:05:36]line Версия ККМ: 001 [10:05:36]line ФМ: 0000000000875093 [10:05:36]line ФД: 103357 [10:05:36]line ФПД: 218546133316149 [10:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T100541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103357&fm=218546133316149&tin=02508201610067®Number=0000000000092785&sum=132800 [10:05:37]OFD Sender: Processing packet 103357 [packets to send 17, broken 16] [10:05:37]ProducePacketName [10:05:37]name=ofd_packets/00103357 [10:05:37]OFD Sender: To server: pG, [10:05:37]CommunicateWithHost lk.salyk.kg:30040 [10:05:37]ConnectInit lk.salyk.kg [10:05:37]written 0, free lines is 4095 [10:05:37]Connected sock=10 [10: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 35 30 39 33 0F 01 00 00 3B 68 07 01 FA E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 F5 5B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 93 01 00 35 04 06 00 C6 C4 3C A4 B2 35 E8 1E C4 9D E7 49 9F C3 [10:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BD 3F 47 00 9C 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 35 30 39 33 10 04 04 00 BD 93 01 00 F4 03 04 00 81 02 71 66 B6 04 01 00 00 12 FB 69 3F 38 E3 0C 6C [10:05:37]CommunicateWithHost err = 0 [10:05:37]CheckOFDResponse [10:05:37]1017 (14) - 77093643461234 [10:05:37]1041 (16) - 0000000000875093 [10:05:37]1040 (4) - 103357 [10:05:37]1012 (4) - 18.06.2024 03:44 [10:05:37]1206 (1) - 0 [10:05:37]OFD Sender: Remove packet 103357 [10:05:37]ProducePacketName [10:05:37]name=ofd_packets/00103357 [10:05:37]NVStorageDeleteData [10:05:37]Write to MH i2c: 01 00 00 47 44 8B [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: 01 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: 01 07 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: 01 07 00 47 44 00 00 00 00 00 20 0D BF [10:05:37]RasterBufferAndPrint [10:05:37]line [10:05:37]line [10:05:37]line [10:05:37]line [10:05:37]line [10:05:37]written 0, free lines is 3367 [10:05:37]MH_Cut [10:05:37]Write to MH i2c: D1 01 00 4E 44 01 64 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: D1 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: D1 01 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: D1 01 00 4E 44 00 63 [10:05:37]Write to MH i2c: 01 00 00 4F 44 93 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:38]OFD Sender: No OFD packet to send [10:05:38]*** Cut start [10:05:38]*** Partial cut [10:05:38]*** CUTSNS_PIN = 1 [10:05:38]*** CUTSNS_PIN = 0 [10:05:38]*** Brake cut motor [10:05:38]Read from MH i2c: 01 [10:05:38]MH_I2C_Read... [10:05:38]*** Stop cut motor [10:05:38]*** Cut end [10:05:38]Read from MH i2c: 01 07 00 [10:05:38]MH_I2C_Read... [10:05:38]Read from MH i2c: 01 07 00 4F 44 00 00 00 00 00 FF 0F A8 [10:05:38]process_action close_receipt done [10:05:38]requested_data is exist [10:05:38]produce_requested_data [10:05:38]requested_item fm.sn is exist - process it [10:05:38]wFMCommunicate request_size=4 [10:05:38]MH_SAM_APDU [10:05:38]CAPDU: 80 11 00 00 [10:05:38]Write to MH i2c: E2 08 00 50 44 80 11 00 00 00 00 00 00 0E [10:05:38]Write i2c OK [10:05:38]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 50 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [10:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:05:39]wFMCommunicate OK [10:05:39]requested_item fd.num is exist - process it [10:05:39]SAM_PROTO_GetFieldsCounters [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 13 00 00 [10:05:39]Write to MH i2c: E2 08 00 51 44 80 13 00 00 00 00 00 00 11 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 62 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 62 00 51 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_GetFieldsCounters done [10:05:39]requested_item shift.num is exist - process it [10:05:39]requested_item shift.opened is exist - process it [10:05:39]req_shift_opened [10:05:39]FM_GetShiftState [10:05:39]SAM_PROTO_GetShiftState [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 13 01 00 [10:05:39]Write to MH i2c: E2 08 00 52 44 80 13 01 00 00 00 00 00 13 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0E 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0E 00 52 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 94 [10:05:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_GetShiftState done [10:05:39]FM_GetShiftState done [10:05:39]req_shift_opened done [10:05:39]requested_item shift.open_date is exist - process it [10:05:39]req_shift_open_date [10:05:39]req_shift_open_date done [10:05:39]produce_requested_data done [10:05:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:05:39]process_action_free close_receipt [10:05:39]json_value_free [10:05:39]json_value_free done [10:05:39]process_json_proto returns [10:05:39]Send response to host [10:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:05:39]free response buf [10:05:39]execute_script done [10:05:39]execute_script returns [10:05:39]free content buf [10:05:39]Sock 9.Close socket [10:05:39]Sock 9.Thread stoped [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:42]accept exits with 7 [10:07:42]New connection [10:07:42]New thread 3067227492 created [10:07:42]Thread 3067084132 joined [10:07:42]Waiting for new connection... [10:07:42] Sock 7.Parse request [10:07:42]Sock 7.Check first char [10:07:42]Sock 7.First char is OK [10:07:42]request: POST /json_proto HTTP/1.0 [10:07:42]Method: POST [10:07:42]URL: /json_proto [10:07:42]Method is POST - this is cgi request [10:07:42]url: /json_proto [10:07:42]query_string will be loaded in cgi processing [10:07:42]execute_cgi json_proto POST (null) [10:07:42]execute_cgi path=json_proto method=POST [10:07:42]POST find Content-Length [10:07:42]Host: 172.17.38.133:8080 [10:07:42]Content-Length: 1195 [10:07:42]Content-Type: application/json [10:07:42] [10:07:42]POST finish read [10:07:42]Found Content-Length = 1195 [10:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672509\u000A18.06.2024 09:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02289\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:42]execute_script... [10:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672509\u000A18.06.2024 09:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02289\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:42]POST & json_proto [10:07:42]process_json_proto [10:07:42]json parsed OK: [10:07:42]protocol is kg_v1.0 [10:07:42]action value=print_text [10:07:42]process_action print_text [10:07:42]cmd_print_text [10:07:42]ExternCall_PrintAddStr [10:07:42]wPrintStart [10:07:42]Write to MH i2c: 01 00 00 53 44 97 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 53 44 00 00 00 00 00 FF 0F AC [10:07:42]RasterBufferAndPrint [10:07:42]line *****ТОВАРНЫЙ ЧЕК***** [10:07:42]line АЗС 120 [10:07:42]line Партнер нефть [10:07:42]line 02508201610067 [10:07:42]line Кассир : Асанбаев Н. [10:07:42]line Счет N : (1)672509 [10:07:42]line 18.06.2024 09:45 [10:07:42]line ПРОДАЖА [10:07:42]line ТРК (МРК, ГНК): 42 [10:07:42]line Вид ГСМ : 2710124130 [10:07:42]line Аи-92-К-5 [10:07:42]line 20.000 x 66.40 [10:07:42]line ИТОГ: 1328.00 [10:07:42]line Тип оплаты: Талоны: Топливная Карта [10:07:42]line 02289 [10:07:42]line ______________________ [10:07:42]line (подпись) [10:07:42]written 0, free lines is 4095 [10:07:42]Write to MH i2c: 01 00 00 67 44 AB [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 67 44 00 00 00 00 00 12 0E D2 [10:07:42]RasterBufferAndPrint [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]line [10:07:42]written 0, free lines is 3604 [10:07:42]MH_Cut [10:07:42]Write to MH i2c: D1 01 00 6E 44 01 84 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 01 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D1 01 00 6E 44 00 83 [10:07:42]Write to MH i2c: 01 00 00 6F 44 B3 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:43]*** Cut start [10:07:43]*** Partial cut [10:07:43]*** CUTSNS_PIN = 1 [10:07:43]*** CUTSNS_PIN = 0 [10:07:43]OFD Sender: No OFD packet to send [10:07:43]*** Brake cut motor [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]*** Stop cut motor [10:07:43]*** Cut end [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 6F 44 00 00 00 00 00 FF 0F C8 [10:07:43]process_action print_text done [10:07:43]requested_data is exist [10:07:43]produce_requested_data [10:07:43]requested_item fm.sn is exist - process it [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 11 00 00 [10:07:43]Write to MH i2c: E2 08 00 70 44 80 11 00 00 00 00 00 00 2E [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 17 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 17 00 70 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [10:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:07:43]wFMCommunicate OK [10:07:43]requested_item fd.num is exist - process it [10:07:43]SAM_PROTO_GetFieldsCounters [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 13 00 00 [10:07:43]Write to MH i2c: E2 08 00 71 44 80 13 00 00 00 00 00 00 31 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 62 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 62 00 71 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:43]wFMCommunicate OK [10:07:43]SAM_PROTO_GetFieldsCounters done [10:07:43]requested_item shift.num is exist - process it [10:07:43]requested_item shift.opened is exist - process it [10:07:43]req_shift_opened [10:07:43]FM_GetShiftState [10:07:43]SAM_PROTO_GetShiftState [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 13 01 00 [10:07:43]Write to MH i2c: E2 08 00 72 44 80 13 01 00 00 00 00 00 33 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0E 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0E 00 72 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B4 [10:07:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:07:43]wFMCommunicate OK [10:07:43]SAM_PROTO_GetShiftState done [10:07:43]FM_GetShiftState done [10:07:43]req_shift_opened done [10:07:43]requested_item shift.open_date is exist - process it [10:07:43]req_shift_open_date [10:07:43]req_shift_open_date done [10:07:43]produce_requested_data done [10:07:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:07:43]process_action_free print_text [10:07:43]json_value_free [10:07:43]json_value_free done [10:07:43]process_json_proto returns [10:07:43]Send response to host [10:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:07:43]free response buf [10:07:43]execute_script done [10:07:43]execute_script returns [10:07:43]free content buf [10:07:43]Sock 7.Close socket [10:07:43]Sock 7.Thread stoped [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:04]accept exits with 9 [10:09:04]New connection [10:09:04]New thread 3067084132 created [10:09:04]Thread 3067227492 joined [10:09:04]Waiting for new connection... [10:09:04] Sock 9.Parse request [10:09:04]Sock 9.Check first char [10:09:04]Sock 9.First char is OK [10:09:04]request: POST /json_proto HTTP/1.0 [10:09:04]Method: POST [10:09:04]URL: /json_proto [10:09:04]Method is POST - this is cgi request [10:09:04]url: /json_proto [10:09:04]query_string will be loaded in cgi processing [10:09:04]execute_cgi json_proto POST (null) [10:09:04]execute_cgi path=json_proto method=POST [10:09:04]POST find Content-Length [10:09:04]Host: 172.17.38.133:8080 [10:09:04]Content-Length: 1184 [10:09:04]Content-Type: application/json [10:09:04] [10:09:04]POST finish read [10:09:04]Found Content-Length = 1184 [10:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672510\u000A18.06.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3886584\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:04]execute_script... [10:09:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672510\u000A18.06.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3886584\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:04]POST & json_proto [10:09:04]process_json_proto [10:09:04]json parsed OK: [10:09:04]protocol is kg_v1.0 [10:09:04]action value=print_text [10:09:04]process_action print_text [10:09:04]cmd_print_text [10:09:04]ExternCall_PrintAddStr [10:09:04]wPrintStart [10:09:04]Write to MH i2c: 01 00 00 73 44 B7 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 73 44 00 00 00 00 00 FF 0F CC [10:09:04]RasterBufferAndPrint [10:09:04]line *****ТОВАРНЫЙ ЧЕК***** [10:09:04]line АЗС 120 [10:09:04]line Партнер нефть [10:09:04]line 02508201610067 [10:09:04]line Кассир : Асанбаев Н. [10:09:04]line Счет N : (1)672510 [10:09:04]line 18.06.2024 09:46 [10:09:04]line ПРОДАЖА [10:09:04]line ТРК (МРК, ГНК): 32 [10:09:04]line Вид ГСМ : 2710124130 [10:09:04]line Аи-92-К-5 [10:09:04]line 10.000 x 66.40 [10:09:04]line ИТОГ: 664.00 [10:09:04]line Тип оплаты: Талоны: Партнер нефть [10:09:04]line 3886584 [10:09:04]line ______________________ [10:09:04]line (подпись) [10:09:04]written 0, free lines is 4095 [10:09:04]Write to MH i2c: 01 00 00 87 44 CB [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 87 44 00 00 00 00 00 13 0E F3 [10:09:04]RasterBufferAndPrint [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]line [10:09:04]written 0, free lines is 3605 [10:09:04]MH_Cut [10:09:04]Write to MH i2c: D1 01 00 8E 44 01 A4 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: D1 01 00 8E 44 00 A3 [10:09:04]Write to MH i2c: 01 00 00 8F 44 D3 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** Cut start [10:09:04]*** Partial cut [10:09:04]*** CUTSNS_PIN = 1 [10:09:04]*** CUTSNS_PIN = 0 [10:09:05]*** Brake cut motor [10:09:05]Read from MH i2c: 01 [10:09:05]MH_I2C_Read... [10:09:05]*** Stop cut motor [10:09:05]*** Cut end [10:09:05]Read from MH i2c: 01 07 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: 01 07 00 8F 44 00 00 00 00 00 FF 0F E8 [10:09:05]process_action print_text done [10:09:05]requested_data is exist [10:09:05]produce_requested_data [10:09:05]requested_item fm.sn is exist - process it [10:09:05]wFMCommunicate request_size=4 [10:09:05]MH_SAM_APDU [10:09:05]CAPDU: 80 11 00 00 [10:09:05]Write to MH i2c: E2 08 00 90 44 80 11 00 00 00 00 00 00 4E [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 17 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 17 00 90 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [10:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:09:05]wFMCommunicate OK [10:09:05]requested_item fd.num is exist - process it [10:09:05]SAM_PROTO_GetFieldsCounters [10:09:05]wFMCommunicate request_size=4 [10:09:05]MH_SAM_APDU [10:09:05]CAPDU: 80 13 00 00 [10:09:05]Write to MH i2c: E2 08 00 91 44 80 13 00 00 00 00 00 00 51 [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 62 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 62 00 91 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:05]wFMCommunicate OK [10:09:05]SAM_PROTO_GetFieldsCounters done [10:09:05]requested_item shift.num is exist - process it [10:09:05]requested_item shift.opened is exist - process it [10:09:05]req_shift_opened [10:09:05]FM_GetShiftState [10:09:05]SAM_PROTO_GetShiftState [10:09:05]wFMCommunicate request_size=4 [10:09:05]MH_SAM_APDU [10:09:05]CAPDU: 80 13 01 00 [10:09:05]Write to MH i2c: E2 08 00 92 44 80 13 01 00 00 00 00 00 53 [10:09:05]Write i2c OK [10:09:05]MH_I2C_Read... [10:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:05]Read from MH i2c: E2 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 [10:09:05]MH_I2C_Read... [10:09:05]Read from MH i2c: E2 0E 00 92 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D4 [10:09:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:09:05]wFMCommunicate OK [10:09:05]SAM_PROTO_GetShiftState done [10:09:05]FM_GetShiftState done [10:09:05]req_shift_opened done [10:09:05]requested_item shift.open_date is exist - process it [10:09:05]req_shift_open_date [10:09:05]req_shift_open_date done [10:09:05]produce_requested_data done [10:09:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:09:05]process_action_free print_text [10:09:05]json_value_free [10:09:05]json_value_free done [10:09:05]process_json_proto returns [10:09:05]Send response to host [10:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103357,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:09:05]free response buf [10:09:05]execute_script done [10:09:05]execute_script returns [10:09:05]free content buf [10:09:05]Sock 9.Close socket [10:09:05]Sock 9.Thread stoped [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:15]accept exits with 7 [10:11:15]New connection [10:11:15]New thread 3067227492 created [10:11:15]Thread 3067084132 joined [10:11:15]Waiting for new connection... [10:11:15] Sock 7.Parse request [10:11:15]Sock 7.Check first char [10:11:15]Sock 7.First char is OK [10:11:15]request: POST /json_proto HTTP/1.0 [10:11:15]Method: POST [10:11:15]URL: /json_proto [10:11:15]Method is POST - this is cgi request [10:11:15]url: /json_proto [10:11:15]query_string will be loaded in cgi processing [10:11:15]execute_cgi json_proto POST (null) [10:11:15]execute_cgi path=json_proto method=POST [10:11:15]POST find Content-Length [10:11:15]Host: 172.17.38.133:8080 [10:11:15]Content-Length: 682 [10:11:15]Content-Type: application/json [10:11:15] [10:11:15]POST finish read [10:11:15]Found Content-Length = 682 [10:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:15]execute_script... [10:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:15]POST & json_proto [10:11:15]process_json_proto [10:11:15]json parsed OK: [10:11:15]protocol is kg_v1.0 [10:11:15]action value=close_receipt [10:11:15]process_action close_receipt [10:11:15]cmd_close_receipt [10:11:15]MH_GetDate [10:11:15]Write to MH i2c: F0 00 00 93 44 C6 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: F0 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: F0 09 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: F0 09 00 93 44 00 49 5D 71 66 BD 8F 7C 64 78 [10:11:15]GetLastDocTimeStamp 1718705141 [10:11:15]current date 1718705481 [10:11:15]FM_GetShiftState [10:11:15]SAM_PROTO_GetShiftState [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 13 01 00 [10:11:15]Write to MH i2c: E2 08 00 94 44 80 13 01 00 00 00 00 00 55 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:15]Read from MH i2c: E2 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 0E 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 0E 00 94 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D6 [10:11:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:11:15]wFMCommunicate OK [10:11:15]SAM_PROTO_GetShiftState done [10:11:15]FM_GetShiftState done [10:11:15]opened in 1718670284 [10:11:15]opened+sec_in_day 1718756684 [10:11:15]quantity*price = 200063 [10:11:15]sum+1 = 200064 [10:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 42 18.06.2024 10:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103358 ФПД: 159495795623368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101121&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103358&fm=159495795623368&tin=02508201610067®Number=0000000000092785&sum=200000 [10:11:16]StoreToDocumentArchive [10:11:16]shift 352 fd 103358 [10:11:16]save to /storage/0352/doc_00103358 [10:11:16]save last doc name /storage/0352/doc_00103358 to /storage/kkm_last_doc_name [10:11:16]save OK [10:11:16]Clear old archive folders... [10:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:16]tlvbuf is 013EBE20 [10:11:16]SAM_PROTO_ClearQueue [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 09 00 00 [10:11:16]Write to MH i2c: E2 08 00 A1 44 80 09 00 00 00 00 00 00 57 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 A1 44 00 90 00 59 [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_ClearQueue done [10:11:16]KKMCreateOFDPacket [10:11:16]OFDProtocolAddRootSTLVToBuf [10:11:16]FM_MakeSignedData [10:11:16]FM_MakeSignedData [10:11:16]SAM_PROTO_SignData [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 01 02 [10:11:16]Write to MH i2c: E2 08 00 A2 44 80 0D 01 02 00 00 00 00 5F [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 A2 44 00 90 00 5A [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]wFMCommunicate request_size=255 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 2A 00 00 00 F4 03 04 00 49 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 93 01 00 35 04 06 00 91 [10:11:16]Write to MH i2c: E2 02 01 A3 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 2A 00 00 00 F4 03 04 00 49 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 93 01 00 35 04 06 00 91 00 00 F9 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:17]Read from MH i2c: E2 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 A3 44 00 90 00 5B [10:11:17]RAPDU: 90 00 [10:11:17]wFMCommunicate OK [10:11:17]wFMCommunicate request_size=10 [10:11:17]MH_SAM_APDU [10:11:17]CAPDU: 80 0D 02 02 05 0F 82 3D C5 C8 [10:11:17]Write to MH i2c: E2 0D 00 A4 44 80 0D 02 02 05 00 0F 82 3D C5 C8 00 00 C7 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:17]Read from MH i2c: E2 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 03 00 A4 44 00 90 00 5C [10:11:17]RAPDU: 90 00 [10:11:17]wFMCommunicate OK [10:11:17]wFMCommunicate request_size=4 [10:11:17]MH_SAM_APDU [10:11:17]CAPDU: 80 0D 03 02 [10:11:17]Write to MH i2c: E2 08 00 A5 44 80 0D 03 02 00 00 00 00 64 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:17]Read from MH i2c: E2 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 0B 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 0B 00 A5 44 00 0F C4 D4 5F 15 5F 7F 01 90 00 5F [10:11:17]RAPDU: 0F C4 D4 5F 15 5F 7F 01 90 00 [10:11:17]wFMCommunicate OK [10:11:17]SAM_PROTO_SignData done [10:11:17]FM_MakeSignedData done [10:11:17]CreateOFDProtocolMessage [10:11:17]wFMCommunicate request_size=4 [10:11:17]MH_SAM_APDU [10:11:17]CAPDU: 80 11 00 00 [10:11:17]Write to MH i2c: E2 08 00 A6 44 80 11 00 00 00 00 00 00 64 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:17]Read from MH i2c: E2 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 17 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: E2 17 00 A6 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [10:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:11:17]wFMCommunicate OK [10:11:17]CreateOFDProtocolMessage done [10:11:17]OFDSenderStorePacket 103358 [10:11:17]StoreOFDPacket docnum=103358 [10:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F 72 07 01 89 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 2A 00 00 00 F4 03 04 00 49 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 93 01 00 35 04 06 00 91 0F 82 3D C5 C8 0F C4 D4 5F 15 5F 7F 01 [10:11:17]CheckFolder [10:11:17]dirname=/storage/ofd_packets [10:11:17]CheckFolder done [10:11:17]ProducePacketName [10:11:17]name=ofd_packets/00103358 [10:11:17]NVStorageSaveData ofd_packets/00103358 [10:11:17]File name is /storage/ofd_packets/00103358 [10:11:17]Write 301 bytes [10:11:17]NVStorageSaveData done [10:11:17]OFDSenderStorePacket done [10:11:17]KKMCreateOFDPacket done [10:11:17]NVStorageSaveData kkm_last_timestamp [10:11:17]File name is /storage/kkm_last_timestamp [10:11:17]Write 4 bytes [10:11:17]NVStorageSaveData done [10:11:17]ExternCall_PrintAddStr [10:11:17]wPrintStart [10:11:17]Write to MH i2c: 01 00 00 A7 44 EB [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 07 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 07 00 A7 44 00 00 00 00 00 FF 0F 00 [10:11:17]RasterBufferAndPrint [10:11:17]line Счет N : (1)672511 [10:11:17]line ИНН: 02508201610067 [10:11:17]line Контрольно-Кассовый Чек [10:11:17]line ПРОДАЖА [10:11:17]line ТРК (МРК, ГНК) : 42 [10:11:17]line Товар: 2710124130 [10:11:17]line Аи-92-К-5 [10:11:17]line 30.130 * 66.40 [10:11:17]line = 2000.63 [10:11:17]line НДС 12% НСП 1% [10:11:17]line > о реализуемом товаре [10:11:17]line ОКРУГЛЕНИЕ: -0.63 [10:11:17]line ИТОГО: 2000.00 [10:11:17]line Внесено: 2000.00 [10:11:17]line СДАЧА: 0.00 [10:11:17]line НСП 1% : 17.70 [10:11:17]line НДС 12% : 212.46 [10:11:17]line Наличными: 2000.00 [10:11:17]line Безнал.: 0.00 [10:11:17]line Место: АЗС № 120 "Партнер Нефть" [10:11:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:11:17]line СНО: Общий режим [10:11:17]line Чек 42 18.06.2024 10:11 [10:11:17]line Смена: 352 ФФД: 1.0 [10:11:17]line ЗНМ: 0300000164 [10:11:17]line РНМ: 0000000000092785 [10:11:17]line Версия ККМ: 001 [10:11:17]line ФМ: 0000000000875093 [10:11:17]line ФД: 103358 [10:11:17]line ФПД: 159495795623368 [10:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101121&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103358&fm=159495795623368&tin=02508201610067®Number=0000000000092785&sum=200000 [10:11:17]OFD Sender: Processing packet 103358 [packets to send 17, broken 16] [10:11:17]ProducePacketName [10:11:17]name=ofd_packets/00103358 [10:11:17]OFD Sender: To server: pG, [10:11:17]CommunicateWithHost lk.salyk.kg:30040 [10:11:17]ConnectInit lk.salyk.kg [10:11:17]written 0, free lines is 4095 [10:11:17]Connected sock=10 [10:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F 72 07 01 89 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 2A 00 00 00 F4 03 04 00 49 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 93 01 00 35 04 06 00 91 0F 82 3D C5 C8 0F C4 D4 5F 15 5F 7F 01 [10:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1B 0F 47 00 7E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 93 01 00 F4 03 04 00 D6 03 71 66 B6 04 01 00 00 16 C3 35 74 F4 22 3C B9 [10:11:17]CommunicateWithHost err = 0 [10:11:17]CheckOFDResponse [10:11:17]1017 (14) - 77093643461234 [10:11:17]1041 (16) - 0000000000875093 [10:11:17]1040 (4) - 103358 [10:11:17]1012 (4) - 18.06.2024 03:49 [10:11:17]1206 (1) - 0 [10:11:17]OFD Sender: Remove packet 103358 [10:11:17]ProducePacketName [10:11:17]name=ofd_packets/00103358 [10:11:17]NVStorageDeleteData [10:11:18]Write to MH i2c: 01 00 00 D2 44 16 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 D2 44 00 00 00 00 00 D8 0C 01 [10:11:18]RasterBufferAndPrint [10:11:18]line [10:11:18]line [10:11:18]line [10:11:18]line [10:11:18]line [10:11:18]written 0, free lines is 3296 [10:11:18]MH_Cut [10:11:18]Write to MH i2c: D1 01 00 D9 44 01 EF [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: D1 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: D1 01 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: D1 01 00 D9 44 00 EE [10:11:18]Write to MH i2c: 01 00 00 DA 44 1E [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]OFD Sender: No OFD packet to send [10:11:18]*** Cut start [10:11:18]*** Partial cut [10:11:18]*** CUTSNS_PIN = 1 [10:11:18]*** CUTSNS_PIN = 0 [10:11:19]*** Brake cut motor [10:11:19]Read from MH i2c: 01 [10:11:19]MH_I2C_Read... [10:11:19]*** Stop cut motor [10:11:19]*** Cut end [10:11:19]Read from MH i2c: 01 07 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 07 00 DA 44 00 00 00 00 00 FF 0F 33 [10:11:19]process_action close_receipt done [10:11:19]requested_data is exist [10:11:19]produce_requested_data [10:11:19]requested_item fm.sn is exist - process it [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 11 00 00 [10:11:19]Write to MH i2c: E2 08 00 DB 44 80 11 00 00 00 00 00 00 99 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 17 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 17 00 DB 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [10:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:11:19]wFMCommunicate OK [10:11:19]requested_item fd.num is exist - process it [10:11:19]SAM_PROTO_GetFieldsCounters [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 13 00 00 [10:11:19]Write to MH i2c: E2 08 00 DC 44 80 13 00 00 00 00 00 00 9C [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 62 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 62 00 DC 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_GetFieldsCounters done [10:11:19]requested_item shift.num is exist - process it [10:11:19]requested_item shift.opened is exist - process it [10:11:19]req_shift_opened [10:11:19]FM_GetShiftState [10:11:19]SAM_PROTO_GetShiftState [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 13 01 00 [10:11:19]Write to MH i2c: E2 08 00 DD 44 80 13 01 00 00 00 00 00 9E [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0E 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0E 00 DD 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1F [10:11:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_GetShiftState done [10:11:19]FM_GetShiftState done [10:11:19]req_shift_opened done [10:11:19]requested_item shift.open_date is exist - process it [10:11:19]req_shift_open_date [10:11:19]req_shift_open_date done [10:11:19]produce_requested_data done [10:11:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103358,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:11:19]process_action_free close_receipt [10:11:19]json_value_free [10:11:19]json_value_free done [10:11:19]process_json_proto returns [10:11:19]Send response to host [10:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103358,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:11:19]free response buf [10:11:19]execute_script done [10:11:19]execute_script returns [10:11:19]free content buf [10:11:19]Sock 7.Close socket [10:11:19]Sock 7.Thread stoped [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:12]accept exits with 9 [10:12:12]New connection [10:12:12]New thread 3067084132 created [10:12:12]Thread 3067227492 joined [10:12:12]Waiting for new connection... [10:12:12] Sock 9.Parse request [10:12:12]Sock 9.Check first char [10:12:12]Sock 9.First char is OK [10:12:12]request: POST /json_proto HTTP/1.0 [10:12:12]Method: POST [10:12:12]URL: /json_proto [10:12:12]Method is POST - this is cgi request [10:12:12]url: /json_proto [10:12:12]query_string will be loaded in cgi processing [10:12:12]execute_cgi json_proto POST (null) [10:12:12]execute_cgi path=json_proto method=POST [10:12:12]POST find Content-Length [10:12:12]Host: 172.17.38.133:8080 [10:12:12]Content-Length: 682 [10:12:12]Content-Type: application/json [10:12:12] [10:12:12]POST finish read [10:12:12]Found Content-Length = 682 [10:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:12]execute_script... [10:12:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:12]POST & json_proto [10:12:12]process_json_proto [10:12:12]json parsed OK: [10:12:12]protocol is kg_v1.0 [10:12:12]action value=close_receipt [10:12:12]process_action close_receipt [10:12:12]cmd_close_receipt [10:12:12]MH_GetDate [10:12:12]Write to MH i2c: F0 00 00 DE 44 11 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: F0 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: F0 09 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: F0 09 00 DE 44 00 83 5D 71 66 BD 8F 7C 64 FD [10:12:12]GetLastDocTimeStamp 1718705481 [10:12:12]current date 1718705539 [10:12:12]FM_GetShiftState [10:12:12]SAM_PROTO_GetShiftState [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 13 01 00 [10:12:12]Write to MH i2c: E2 08 00 DF 44 80 13 01 00 00 00 00 00 A0 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 DF 44 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 21 [10:12:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_GetShiftState done [10:12:12]FM_GetShiftState done [10:12:12]opened in 1718670284 [10:12:12]opened+sec_in_day 1718756684 [10:12:12]quantity*price = 100064 [10:12:12]sum+1 = 100066 [10:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 18.06.2024 10:12 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103359 ФПД: 187927627061828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103359&fm=187927627061828&tin=02508201610067®Number=0000000000092785&sum=100000 [10:12:14]StoreToDocumentArchive [10:12:14]shift 352 fd 103359 [10:12:14]save to /storage/0352/doc_00103359 [10:12:14]save last doc name /storage/0352/doc_00103359 to /storage/kkm_last_doc_name [10:12:14]save OK [10:12:14]Clear old archive folders... [10:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:14]tlvbuf is 013F60D0 [10:12:14]SAM_PROTO_ClearQueue [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 09 00 00 [10:12:14]Write to MH i2c: E2 08 00 EC 44 80 09 00 00 00 00 00 00 A2 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 EC 44 00 90 00 A4 [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_ClearQueue done [10:12:14]KKMCreateOFDPacket [10:12:14]OFDProtocolAddRootSTLVToBuf [10:12:14]FM_MakeSignedData [10:12:14]FM_MakeSignedData [10:12:14]SAM_PROTO_SignData [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 01 02 [10:12:14]Write to MH i2c: E2 08 00 ED 44 80 0D 01 02 00 00 00 00 AA [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 ED 44 00 90 00 A5 [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=255 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 83 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 93 01 00 35 04 06 00 AA [10:12:14]Write to MH i2c: E2 02 01 EE 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 83 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 93 01 00 35 04 06 00 AA 00 00 F4 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 EE 44 00 90 00 A6 [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=10 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 02 02 05 EB 4F 74 5A 44 [10:12:14]Write to MH i2c: E2 0D 00 EF 44 80 0D 02 02 05 00 EB 4F 74 5A 44 00 00 03 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 03 00 EF 44 00 90 00 A7 [10:12:14]RAPDU: 90 00 [10:12:14]wFMCommunicate OK [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 0D 03 02 [10:12:14]Write to MH i2c: E2 08 00 F0 44 80 0D 03 02 00 00 00 00 AF [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0B 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 0B 00 F0 44 00 F3 61 9D 1E 4A 12 40 98 90 00 F3 [10:12:14]RAPDU: F3 61 9D 1E 4A 12 40 98 90 00 [10:12:14]wFMCommunicate OK [10:12:14]SAM_PROTO_SignData done [10:12:14]FM_MakeSignedData done [10:12:14]CreateOFDProtocolMessage [10:12:14]wFMCommunicate request_size=4 [10:12:14]MH_SAM_APDU [10:12:14]CAPDU: 80 11 00 00 [10:12:14]Write to MH i2c: E2 08 00 F1 44 80 11 00 00 00 00 00 00 AF [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:14]Read from MH i2c: E2 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: E2 17 00 F1 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [10:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:14]wFMCommunicate OK [10:12:14]CreateOFDProtocolMessage done [10:12:14]OFDSenderStorePacket 103359 [10:12:14]StoreOFDPacket docnum=103359 [10:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B 59 07 01 3A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 83 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 93 01 00 35 04 06 00 AA EB 4F 74 5A 44 F3 61 9D 1E 4A 12 40 98 [10:12:14]CheckFolder [10:12:14]dirname=/storage/ofd_packets [10:12:14]CheckFolder done [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00103359 [10:12:14]NVStorageSaveData ofd_packets/00103359 [10:12:14]File name is /storage/ofd_packets/00103359 [10:12:14]Write 301 bytes [10:12:14]NVStorageSaveData done [10:12:14]OFDSenderStorePacket done [10:12:14]KKMCreateOFDPacket done [10:12:14]NVStorageSaveData kkm_last_timestamp [10:12:14]File name is /storage/kkm_last_timestamp [10:12:14]Write 4 bytes [10:12:14]NVStorageSaveData done [10:12:14]ExternCall_PrintAddStr [10:12:14]wPrintStart [10:12:14]Write to MH i2c: 01 00 00 F2 44 36 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 F2 44 00 00 00 00 00 FF 0F 4B [10:12:14]RasterBufferAndPrint [10:12:14]line Счет N : (1)672512 [10:12:14]line ИНН: 02508201610067 [10:12:14]line Контрольно-Кассовый Чек [10:12:14]line ПРОДАЖА [10:12:14]line ТРК (МРК, ГНК) : 32 [10:12:14]line Товар: 2710124130 [10:12:14]line Аи-92-К-5 [10:12:14]line 15.070 * 66.40 [10:12:14]line = 1000.65 [10:12:14]line НДС 12% НСП 1% [10:12:14]line > о реализуемом товаре [10:12:14]line ОКРУГЛЕНИЕ: -0.65 [10:12:14]line ИТОГО: 1000.00 [10:12:14]line Внесено: 1000.00 [10:12:14]line СДАЧА: 0.00 [10:12:14]line НСП 1% : 8.85 [10:12:14]line НДС 12% : 106.26 [10:12:14]line Наличными: 1000.00 [10:12:14]line Безнал.: 0.00 [10:12:14]line Место: АЗС № 120 "Партнер Нефть" [10:12:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:12:14]line СНО: Общий режим [10:12:14]line Чек 43 18.06.2024 10:12 [10:12:14]line Смена: 352 ФФД: 1.0 [10:12:14]line ЗНМ: 0300000164 [10:12:14]line РНМ: 0000000000092785 [10:12:14]line Версия ККМ: 001 [10:12:14]line ФМ: 0000000000875093 [10:12:14]line ФД: 103359 [10:12:14]line ФПД: 187927627061828 [10:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103359&fm=187927627061828&tin=02508201610067®Number=0000000000092785&sum=100000 [10:12:14]OFD Sender: Processing packet 103359 [packets to send 17, broken 16] [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00103359 [10:12:14]OFD Sender: To server: pG, [10:12:14]CommunicateWithHost lk.salyk.kg:30040 [10:12:14]ConnectInit lk.salyk.kg [10:12:14]written 0, free lines is 4095 [10:12:15]Connected sock=10 [10:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B 59 07 01 3A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 83 5D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 93 01 00 35 04 06 00 AA EB 4F 74 5A 44 F3 61 9D 1E 4A 12 40 98 [10:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6B AE 47 00 6A 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 93 01 00 F4 03 04 00 0F 04 71 66 B6 04 01 00 00 C2 A1 45 AA 8A 66 60 AF [10:12:15]CommunicateWithHost err = 0 [10:12:15]CheckOFDResponse [10:12:15]1017 (14) - 77093643461234 [10:12:15]1041 (16) - 0000000000875093 [10:12:15]1040 (4) - 103359 [10:12:15]1012 (4) - 18.06.2024 03:50 [10:12:15]1206 (1) - 0 [10:12:15]OFD Sender: Remove packet 103359 [10:12:15]ProducePacketName [10:12:15]name=ofd_packets/00103359 [10:12:15]NVStorageDeleteData [10:12:15]Write to MH i2c: 01 00 00 1D 45 62 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 1D 45 00 00 00 00 00 E0 0C 55 [10:12:15]RasterBufferAndPrint [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]line [10:12:15]written 0, free lines is 3305 [10:12:15]MH_Cut [10:12:15]Write to MH i2c: D1 01 00 24 45 01 3B [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 01 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: D1 01 00 24 45 00 3A [10:12:15]Write to MH i2c: 01 00 00 25 45 6A [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]OFD Sender: No OFD packet to send [10:12:16]*** Cut start [10:12:16]*** Partial cut [10:12:16]*** CUTSNS_PIN = 1 [10:12:16]*** CUTSNS_PIN = 0 [10:12:16]*** Brake cut motor [10:12:16]Read from MH i2c: 01 [10:12:16]MH_I2C_Read... [10:12:16]*** Stop cut motor [10:12:16]*** Cut end [10:12:16]Read from MH i2c: 01 07 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: 01 07 00 25 45 00 00 00 00 00 FF 0F 7F [10:12:16]process_action close_receipt done [10:12:16]requested_data is exist [10:12:16]produce_requested_data [10:12:16]requested_item fm.sn is exist - process it [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 11 00 00 [10:12:16]Write to MH i2c: E2 08 00 26 45 80 11 00 00 00 00 00 00 E5 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 17 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 17 00 26 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [10:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:16]wFMCommunicate OK [10:12:16]requested_item fd.num is exist - process it [10:12:16]SAM_PROTO_GetFieldsCounters [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 13 00 00 [10:12:16]Write to MH i2c: E2 08 00 27 45 80 13 00 00 00 00 00 00 E8 [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 62 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 62 00 27 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [10:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_GetFieldsCounters done [10:12:16]requested_item shift.num is exist - process it [10:12:16]requested_item shift.opened is exist - process it [10:12:16]req_shift_opened [10:12:16]FM_GetShiftState [10:12:16]SAM_PROTO_GetShiftState [10:12:16]wFMCommunicate request_size=4 [10:12:16]MH_SAM_APDU [10:12:16]CAPDU: 80 13 01 00 [10:12:16]Write to MH i2c: E2 08 00 28 45 80 13 01 00 00 00 00 00 EA [10:12:16]Write i2c OK [10:12:16]MH_I2C_Read... [10:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:16]Read from MH i2c: E2 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 0E 00 [10:12:16]MH_I2C_Read... [10:12:16]Read from MH i2c: E2 0E 00 28 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6B [10:12:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:12:16]wFMCommunicate OK [10:12:16]SAM_PROTO_GetShiftState done [10:12:16]FM_GetShiftState done [10:12:16]req_shift_opened done [10:12:16]requested_item shift.open_date is exist - process it [10:12:16]req_shift_open_date [10:12:16]req_shift_open_date done [10:12:16]produce_requested_data done [10:12:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103359,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:12:16]process_action_free close_receipt [10:12:16]json_value_free [10:12:16]json_value_free done [10:12:16]process_json_proto returns [10:12:16]Send response to host [10:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103359,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:12:16]free response buf [10:12:16]execute_script done [10:12:16]execute_script returns [10:12:16]free content buf [10:12:16]Sock 9.Close socket [10:12:16]Sock 9.Thread stoped [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]accept exits with 7 [10:18:06]New connection [10:18:06]New thread 3067227492 created [10:18:06]Thread 3067084132 joined [10:18:06]Waiting for new connection... [10:18:06] Sock 7.Parse request [10:18:06]Sock 7.Check first char [10:18:06]Sock 7.First char is OK [10:18:06]request: POST /json_proto HTTP/1.0 [10:18:06]Method: POST [10:18:06]URL: /json_proto [10:18:06]Method is POST - this is cgi request [10:18:06]url: /json_proto [10:18:06]query_string will be loaded in cgi processing [10:18:06]execute_cgi json_proto POST (null) [10:18:06]execute_cgi path=json_proto method=POST [10:18:06]POST find Content-Length [10:18:06]Host: 172.17.38.133:8080 [10:18:06]Content-Length: 819 [10:18:06]Content-Type: application/json [10:18:06] [10:18:06]POST finish read [10:18:06]Found Content-Length = 819 [10:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:06]execute_script... [10:18:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:06]POST & json_proto [10:18:06]process_json_proto [10:18:06]json parsed OK: [10:18:06]protocol is kg_v1.0 [10:18:06]action value=close_receipt [10:18:06]process_action close_receipt [10:18:06]cmd_close_receipt [10:18:06]MH_GetDate [10:18:06]Write to MH i2c: F0 00 00 29 45 5D [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: F0 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: F0 09 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: F0 09 00 29 45 00 E4 5E 71 66 BD 8F 7C 64 AB [10:18:06]GetLastDocTimeStamp 1718705539 [10:18:06]current date 1718705892 [10:18:06]FM_GetShiftState [10:18:06]SAM_PROTO_GetShiftState [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 13 01 00 [10:18:06]Write to MH i2c: E2 08 00 2A 45 80 13 01 00 00 00 00 00 EC [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]OFD Sender: No OFD packet to send [10:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0E 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0E 00 2A 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6D [10:18:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:18:06]wFMCommunicate OK [10:18:06]SAM_PROTO_GetShiftState done [10:18:06]FM_GetShiftState done [10:18:06]opened in 1718670284 [10:18:06]opened+sec_in_day 1718756684 [10:18:06]quantity*price = 100064 [10:18:06]sum+1 = 100066 [10:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 44 18.06.2024 10:18 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103360 ФПД: 278252199662052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103360&fm=278252199662052&tin=02508201610067®Number=0000000000092785&sum=100065 [10:18:07]StoreToDocumentArchive [10:18:07]shift 352 fd 103360 [10:18:07]save to /storage/0352/doc_00103360 [10:18:07]save last doc name /storage/0352/doc_00103360 to /storage/kkm_last_doc_name [10:18:07]save OK [10:18:07]Clear old archive folders... [10:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:07]tlvbuf is 013EBA20 [10:18:07]SAM_PROTO_ClearQueue [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 09 00 00 [10:18:07]Write to MH i2c: E2 08 00 37 45 80 09 00 00 00 00 00 00 EE [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 37 45 00 90 00 F0 [10:18:07]RAPDU: 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_ClearQueue done [10:18:07]KKMCreateOFDPacket [10:18:07]OFDProtocolAddRootSTLVToBuf [10:18:07]FM_MakeSignedData [10:18:07]FM_MakeSignedData [10:18:07]SAM_PROTO_SignData [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 0D 01 02 [10:18:07]Write to MH i2c: E2 08 00 38 45 80 0D 01 02 00 00 00 00 F6 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 38 45 00 90 00 F1 [10:18:07]RAPDU: 90 00 [10:18:07]wFMCommunicate OK [10:18:07]wFMCommunicate request_size=255 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E4 5E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 93 01 00 35 04 06 00 FD [10:18:07]Write to MH i2c: E2 02 01 39 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E4 5E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 93 01 00 35 04 06 00 FD 00 00 79 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 39 45 00 90 00 F2 [10:18:07]RAPDU: 90 00 [10:18:07]wFMCommunicate OK [10:18:07]wFMCommunicate request_size=10 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 0D 02 02 05 11 A3 84 D1 E4 [10:18:07]Write to MH i2c: E2 0D 00 3A 45 80 0D 02 02 05 00 11 A3 84 D1 E4 00 00 F0 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 03 00 3A 45 00 90 00 F3 [10:18:07]RAPDU: 90 00 [10:18:07]wFMCommunicate OK [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 0D 03 02 [10:18:07]Write to MH i2c: E2 08 00 3B 45 80 0D 03 02 00 00 00 00 FB [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0B 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0B 00 3B 45 00 19 60 34 C8 51 B1 01 16 90 00 8A [10:18:07]RAPDU: 19 60 34 C8 51 B1 01 16 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_SignData done [10:18:07]FM_MakeSignedData done [10:18:07]CreateOFDProtocolMessage [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 11 00 00 [10:18:07]Write to MH i2c: E2 08 00 3C 45 80 11 00 00 00 00 00 00 FB [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 3C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [10:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:18:07]wFMCommunicate OK [10:18:07]CreateOFDProtocolMessage done [10:18:07]OFDSenderStorePacket 103360 [10:18:07]StoreOFDPacket docnum=103360 [10:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2D F0 07 01 49 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E4 5E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 93 01 00 35 04 06 00 FD 11 A3 84 D1 E4 19 60 34 C8 51 B1 01 16 [10:18:07]CheckFolder [10:18:07]dirname=/storage/ofd_packets [10:18:07]CheckFolder done [10:18:07]ProducePacketName [10:18:07]name=ofd_packets/00103360 [10:18:07]NVStorageSaveData ofd_packets/00103360 [10:18:07]File name is /storage/ofd_packets/00103360 [10:18:07]Write 301 bytes [10:18:07]NVStorageSaveData done [10:18:07]OFDSenderStorePacket done [10:18:07]KKMCreateOFDPacket done [10:18:07]NVStorageSaveData kkm_last_timestamp [10:18:07]File name is /storage/kkm_last_timestamp [10:18:07]Write 4 bytes [10:18:07]NVStorageSaveData done [10:18:07]ExternCall_PrintAddStr [10:18:07]wPrintStart [10:18:07]Write to MH i2c: 01 00 00 3D 45 82 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 07 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 07 00 3D 45 00 00 00 00 00 FF 0F 97 [10:18:07]RasterBufferAndPrint [10:18:07]line Счет N : (1)672513 [10:18:07]line ИНН: 02508201610067 [10:18:07]line Контрольно-Кассовый Чек [10:18:07]line ПРОДАЖА [10:18:07]line ТРК (МРК, ГНК) : 42 [10:18:07]line Товар: 2710124130 [10:18:07]line Аи-92-К-5 [10:18:07]line 15.070 * 66.40 [10:18:07]line = 1000.65 [10:18:07]line НДС 12% НСП 1% [10:18:07]line > о реализуемом товаре [10:18:07]line ИТОГО: 1000.65 [10:18:07]line НСП 1% : 8.85 [10:18:07]line НДС 12% : 106.26 [10:18:07]line Наличными: 0.00 [10:18:07]line Безнал.: 1000.65 [10:18:07]line Место: АЗС № 120 "Партнер Нефть" [10:18:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:18:07]line СНО: Общий режим [10:18:07]line Чек 44 18.06.2024 10:18 [10:18:07]line Смена: 352 ФФД: 1.0 [10:18:07]line ЗНМ: 0300000164 [10:18:07]line РНМ: 0000000000092785 [10:18:07]line Версия ККМ: 001 [10:18:07]line Платежная система: Бакай Банк [10:18:07]line ФМ: 0000000000875093 [10:18:07]line ФД: 103360 [10:18:07]line ФПД: 278252199662052 [10:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103360&fm=278252199662052&tin=02508201610067®Number=0000000000092785&sum=100065 [10:18:08]written 0, free lines is 4095 [10:18:08]OFD Sender: Processing packet 103360 [packets to send 17, broken 16] [10:18:08]ProducePacketName [10:18:08]name=ofd_packets/00103360 [10:18:08]OFD Sender: To server: pG, [10:18:08]CommunicateWithHost lk.salyk.kg:30040 [10:18:08]ConnectInit lk.salyk.kg [10:18:08]Connected sock=10 [10:18:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2D F0 07 01 49 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E4 5E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 93 01 00 35 04 06 00 FD 11 A3 84 D1 E4 19 60 34 C8 51 B1 01 16 [10:18:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CE 9D 47 00 D8 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 93 01 00 F4 03 04 00 70 05 71 66 B6 04 01 00 00 C9 0B 7E D8 49 E9 98 E9 [10:18:08]CommunicateWithHost err = 0 [10:18:08]CheckOFDResponse [10:18:08]1017 (14) - 77093643461234 [10:18:08]1041 (16) - 0000000000875093 [10:18:08]1040 (4) - 103360 [10:18:08]1012 (4) - 18.06.2024 03:56 [10:18:08]1206 (1) - 0 [10:18:08]OFD Sender: Remove packet 103360 [10:18:08]ProducePacketName [10:18:08]name=ofd_packets/00103360 [10:18:08]NVStorageDeleteData [10:18:08]Write to MH i2c: 01 00 00 67 45 AC [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: 01 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: 01 07 00 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: 01 07 00 67 45 00 00 00 00 00 FA 0C B9 [10:18:08]RasterBufferAndPrint [10:18:08]line [10:18:08]line [10:18:08]line [10:18:08]line [10:18:08]line [10:18:08]written 0, free lines is 3330 [10:18:08]MH_Cut [10:18:08]Write to MH i2c: D1 01 00 6E 45 01 85 [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: D1 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: D1 01 00 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: D1 01 00 6E 45 00 84 [10:18:08]Write to MH i2c: 01 00 00 6F 45 B4 [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:08]OFD Sender: No OFD packet to send [10:18:09]*** Cut start [10:18:09]*** Partial cut [10:18:09]*** CUTSNS_PIN = 1 [10:18:09]*** CUTSNS_PIN = 0 [10:18:09]*** Brake cut motor [10:18:09]Read from MH i2c: 01 [10:18:09]MH_I2C_Read... [10:18:09]*** Stop cut motor [10:18:09]*** Cut end [10:18:09]Read from MH i2c: 01 07 00 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: 01 07 00 6F 45 00 00 00 00 00 FF 0F C9 [10:18:09]process_action close_receipt done [10:18:09]requested_data is exist [10:18:09]produce_requested_data [10:18:09]requested_item fm.sn is exist - process it [10:18:09]wFMCommunicate request_size=4 [10:18:09]MH_SAM_APDU [10:18:09]CAPDU: 80 11 00 00 [10:18:09]Write to MH i2c: E2 08 00 70 45 80 11 00 00 00 00 00 00 2F [10:18:09]Write i2c OK [10:18:09]MH_I2C_Read... [10:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:09]Read from MH i2c: E2 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 17 00 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 17 00 70 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [10:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:18:09]wFMCommunicate OK [10:18:09]requested_item fd.num is exist - process it [10:18:09]SAM_PROTO_GetFieldsCounters [10:18:09]wFMCommunicate request_size=4 [10:18:09]MH_SAM_APDU [10:18:09]CAPDU: 80 13 00 00 [10:18:09]Write to MH i2c: E2 08 00 71 45 80 13 00 00 00 00 00 00 32 [10:18:09]Write i2c OK [10:18:09]MH_I2C_Read... [10:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:10]Read from MH i2c: E2 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 62 00 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 62 00 71 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:18:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:10]wFMCommunicate OK [10:18:10]SAM_PROTO_GetFieldsCounters done [10:18:10]requested_item shift.num is exist - process it [10:18:10]requested_item shift.opened is exist - process it [10:18:10]req_shift_opened [10:18:10]FM_GetShiftState [10:18:10]SAM_PROTO_GetShiftState [10:18:10]wFMCommunicate request_size=4 [10:18:10]MH_SAM_APDU [10:18:10]CAPDU: 80 13 01 00 [10:18:10]Write to MH i2c: E2 08 00 72 45 80 13 01 00 00 00 00 00 34 [10:18:10]Write i2c OK [10:18:10]MH_I2C_Read... [10:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:10]Read from MH i2c: E2 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 0E 00 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 0E 00 72 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [10:18:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:18:10]wFMCommunicate OK [10:18:10]SAM_PROTO_GetShiftState done [10:18:10]FM_GetShiftState done [10:18:10]req_shift_opened done [10:18:10]requested_item shift.open_date is exist - process it [10:18:10]req_shift_open_date [10:18:10]req_shift_open_date done [10:18:10]produce_requested_data done [10:18:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103360,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:18:10]process_action_free close_receipt [10:18:10]json_value_free [10:18:10]json_value_free done [10:18:10]process_json_proto returns [10:18:10]Send response to host [10:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103360,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:18:10]free response buf [10:18:10]execute_script done [10:18:10]execute_script returns [10:18:10]free content buf [10:18:10]Sock 7.Close socket [10:18:10]Sock 7.Thread stoped [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:26]accept exits with 9 [10:31:26]New connection [10:31:26]New thread 3067084132 created [10:31:26]Thread 3067227492 joined [10:31:26]Waiting for new connection... [10:31:26] Sock 9.Parse request [10:31:26]Sock 9.Check first char [10:31:26]Sock 9.First char is OK [10:31:26]request: POST /json_proto HTTP/1.0 [10:31:26]Method: POST [10:31:26]URL: /json_proto [10:31:26]Method is POST - this is cgi request [10:31:26]url: /json_proto [10:31:26]query_string will be loaded in cgi processing [10:31:26]execute_cgi json_proto POST (null) [10:31:26]execute_cgi path=json_proto method=POST [10:31:26]POST find Content-Length [10:31:26]Host: 172.17.38.133:8080 [10:31:26]Content-Length: 1195 [10:31:26]Content-Type: application/json [10:31:26] [10:31:26]POST finish read [10:31:26]Found Content-Length = 1195 [10:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672514\u000A18.06.2024 10:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]execute_script... [10:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672514\u000A18.06.2024 10:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]POST & json_proto [10:31:26]process_json_proto [10:31:26]json parsed OK: [10:31:26]protocol is kg_v1.0 [10:31:26]action value=print_text [10:31:26]process_action print_text [10:31:26]cmd_print_text [10:31:26]ExternCall_PrintAddStr [10:31:26]wPrintStart [10:31:26]Write to MH i2c: 01 00 00 73 45 B8 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 73 45 00 00 00 00 00 FF 0F CD [10:31:26]RasterBufferAndPrint [10:31:26]line *****ТОВАРНЫЙ ЧЕК***** [10:31:26]line АЗС 120 [10:31:26]line Партнер нефть [10:31:26]line 02508201610067 [10:31:26]line Кассир : Асанбаев Н. [10:31:26]line Счет N : (1)672514 [10:31:26]line 18.06.2024 10:08 [10:31:26]line ПРОДАЖА [10:31:26]line ТРК (МРК, ГНК): 31 [10:31:26]line Вид ГСМ : 2710124500 [10:31:26]line Аи-95-К-5 [10:31:26]line 27.070 x 73.90 [10:31:26]line ИТОГ: 2000.47 [10:31:26]line Тип оплаты: Талоны: Топливная Карта [10:31:26]line 32170 [10:31:26]line ______________________ [10:31:26]line (подпись) [10:31:26]written 0, free lines is 4095 [10:31:26]Write to MH i2c: 01 00 00 87 45 CC [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 87 45 00 00 00 00 00 10 0E F1 [10:31:26]RasterBufferAndPrint [10:31:26]line [10:31:26]line [10:31:26]line [10:31:26]line [10:31:26]line [10:31:26]written 0, free lines is 3602 [10:31:26]MH_Cut [10:31:26]Write to MH i2c: D1 01 00 8E 45 01 A5 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: D1 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: D1 01 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: D1 01 00 8E 45 00 A4 [10:31:26]Write to MH i2c: 01 00 00 8F 45 D4 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:27]*** Cut start [10:31:27]*** Partial cut [10:31:27]*** CUTSNS_PIN = 1 [10:31:27]*** CUTSNS_PIN = 0 [10:31:27]*** Brake cut motor [10:31:28]Read from MH i2c: 01 [10:31:28]MH_I2C_Read... [10:31:28]*** Stop cut motor [10:31:28]*** Cut end [10:31:28]Read from MH i2c: 01 07 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 8F 45 00 00 00 00 00 FF 0F E9 [10:31:28]process_action print_text done [10:31:28]requested_data is exist [10:31:28]produce_requested_data [10:31:28]requested_item fm.sn is exist - process it [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 11 00 00 [10:31:28]Write to MH i2c: E2 08 00 90 45 80 11 00 00 00 00 00 00 4F [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 90 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [10:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:31:28]wFMCommunicate OK [10:31:28]requested_item fd.num is exist - process it [10:31:28]SAM_PROTO_GetFieldsCounters [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 13 00 00 [10:31:28]Write to MH i2c: E2 08 00 91 45 80 13 00 00 00 00 00 00 52 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 62 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 62 00 91 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_GetFieldsCounters done [10:31:28]requested_item shift.num is exist - process it [10:31:28]requested_item shift.opened is exist - process it [10:31:28]req_shift_opened [10:31:28]FM_GetShiftState [10:31:28]SAM_PROTO_GetShiftState [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 13 01 00 [10:31:28]Write to MH i2c: E2 08 00 92 45 80 13 01 00 00 00 00 00 54 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0E 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0E 00 92 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D5 [10:31:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_GetShiftState done [10:31:28]FM_GetShiftState done [10:31:28]req_shift_opened done [10:31:28]requested_item shift.open_date is exist - process it [10:31:28]req_shift_open_date [10:31:28]req_shift_open_date done [10:31:28]produce_requested_data done [10:31:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103360,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:31:28]process_action_free print_text [10:31:28]json_value_free [10:31:28]json_value_free done [10:31:28]process_json_proto returns [10:31:28]Send response to host [10:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103360,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:31:28]free response buf [10:31:28]execute_script done [10:31:28]execute_script returns [10:31:28]free content buf [10:31:28]Sock 9.Close socket [10:31:28]Sock 9.Thread stoped [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:51]accept exits with 7 [10:32:51]New connection [10:32:51]New thread 3067227492 created [10:32:51]Thread 3067084132 joined [10:32:51]Waiting for new connection... [10:32:51] Sock 7.Parse request [10:32:51]Sock 7.Check first char [10:32:51]Sock 7.First char is OK [10:32:51]request: POST /json_proto HTTP/1.0 [10:32:51]Method: POST [10:32:51]URL: /json_proto [10:32:51]Method is POST - this is cgi request [10:32:51]url: /json_proto [10:32:51]query_string will be loaded in cgi processing [10:32:51]execute_cgi json_proto POST (null) [10:32:51]execute_cgi path=json_proto method=POST [10:32:51]POST find Content-Length [10:32:51]Host: 172.17.38.133:8080 [10:32:51]Content-Length: 677 [10:32:51]Content-Type: application/json [10:32:51] [10:32:51]POST finish read [10:32:51]Found Content-Length = 677 [10:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:51]execute_script... [10:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:51]POST & json_proto [10:32:51]process_json_proto [10:32:51]json parsed OK: [10:32:51]protocol is kg_v1.0 [10:32:51]action value=close_receipt [10:32:51]process_action close_receipt [10:32:51]cmd_close_receipt [10:32:51]MH_GetDate [10:32:51]Write to MH i2c: F0 00 00 93 45 C7 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 09 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 09 00 93 45 00 5A 62 71 66 BD 8F 7C 64 8F [10:32:51]GetLastDocTimeStamp 1718705892 [10:32:51]current date 1718706778 [10:32:51]FM_GetShiftState [10:32:51]SAM_PROTO_GetShiftState [10:32:51]wFMCommunicate request_size=4 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 13 01 00 [10:32:51]Write to MH i2c: E2 08 00 94 45 80 13 01 00 00 00 00 00 56 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 94 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D7 [10:32:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:32:51]wFMCommunicate OK [10:32:51]SAM_PROTO_GetShiftState done [10:32:51]FM_GetShiftState done [10:32:51]opened in 1718670284 [10:32:51]opened+sec_in_day 1718756684 [10:32:51]quantity*price = 50065 [10:32:51]sum+1 = 50067 [10:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 18.06.2024 10:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103361 ФПД: 113261704234975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103258&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103361&fm=113261704234975&tin=02508201610067®Number=0000000000092785&sum=50000 [10:32:53]StoreToDocumentArchive [10:32:53]shift 352 fd 103361 [10:32:53]save to /storage/0352/doc_00103361 [10:32:53]save last doc name /storage/0352/doc_00103361 to /storage/kkm_last_doc_name [10:32:53]save OK [10:32:53]Clear old archive folders... [10:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:53]tlvbuf is 0144D300 [10:32:53]SAM_PROTO_ClearQueue [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 09 00 00 [10:32:53]Write to MH i2c: E2 08 00 A1 45 80 09 00 00 00 00 00 00 58 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A1 45 00 90 00 5A [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]SAM_PROTO_ClearQueue done [10:32:53]KKMCreateOFDPacket [10:32:53]OFDProtocolAddRootSTLVToBuf [10:32:53]FM_MakeSignedData [10:32:53]FM_MakeSignedData [10:32:53]SAM_PROTO_SignData [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 01 02 [10:32:53]Write to MH i2c: E2 08 00 A2 45 80 0D 01 02 00 00 00 00 60 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A2 45 00 90 00 5B [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]wFMCommunicate request_size=255 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 5A 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 93 01 00 35 04 06 00 67 [10:32:53]Write to MH i2c: E2 02 01 A3 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 5A 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 93 01 00 35 04 06 00 67 00 00 F7 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A3 45 00 90 00 5C [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]wFMCommunicate request_size=10 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 02 02 05 02 CB A5 C7 DF [10:32:53]Write to MH i2c: E2 0D 00 A4 45 80 0D 02 02 05 00 02 CB A5 C7 DF 00 00 85 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A4 45 00 90 00 5D [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 03 02 [10:32:53]Write to MH i2c: E2 08 00 A5 45 80 0D 03 02 00 00 00 00 65 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 0B 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 0B 00 A5 45 00 CD 26 A7 EB 74 25 3F 5F 90 00 22 [10:32:53]RAPDU: CD 26 A7 EB 74 25 3F 5F 90 00 [10:32:53]wFMCommunicate OK [10:32:53]SAM_PROTO_SignData done [10:32:53]FM_MakeSignedData done [10:32:53]CreateOFDProtocolMessage [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 11 00 00 [10:32:53]Write to MH i2c: E2 08 00 A6 45 80 11 00 00 00 00 00 00 65 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 17 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 17 00 A6 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [10:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:32:53]wFMCommunicate OK [10:32:53]CreateOFDProtocolMessage done [10:32:53]OFDSenderStorePacket 103361 [10:32:53]StoreOFDPacket docnum=103361 [10:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 84 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 5A 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 93 01 00 35 04 06 00 67 02 CB A5 C7 DF CD 26 A7 EB 74 25 3F 5F [10:32:53]CheckFolder [10:32:53]dirname=/storage/ofd_packets [10:32:53]CheckFolder done [10:32:53]ProducePacketName [10:32:53]name=ofd_packets/00103361 [10:32:53]NVStorageSaveData ofd_packets/00103361 [10:32:53]File name is /storage/ofd_packets/00103361 [10:32:53]Write 301 bytes [10:32:53]NVStorageSaveData done [10:32:53]OFDSenderStorePacket done [10:32:53]KKMCreateOFDPacket done [10:32:53]NVStorageSaveData kkm_last_timestamp [10:32:53]File name is /storage/kkm_last_timestamp [10:32:53]Write 4 bytes [10:32:53]NVStorageSaveData done [10:32:53]ExternCall_PrintAddStr [10:32:53]wPrintStart [10:32:53]Write to MH i2c: 01 00 00 A7 45 EC [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 07 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 07 00 A7 45 00 00 00 00 00 FF 0F 01 [10:32:53]RasterBufferAndPrint [10:32:53]line Счет N : (1)672515 [10:32:53]line ИНН: 02508201610067 [10:32:53]line Контрольно-Кассовый Чек [10:32:53]line ПРОДАЖА [10:32:53]line ТРК (МРК, ГНК) : 42 [10:32:53]line Товар: 2710124130 [10:32:53]line Аи-92-К-5 [10:32:53]line 7.540 * 66.40 [10:32:53]line = 500.66 [10:32:53]line НДС 12% НСП 1% [10:32:53]line > о реализуемом товаре [10:32:53]line ОКРУГЛЕНИЕ: -0.66 [10:32:53]line ИТОГО: 500.00 [10:32:53]line Внесено: 500.00 [10:32:53]line СДАЧА: 0.00 [10:32:53]line НСП 1% : 4.43 [10:32:53]line НДС 12% : 53.17 [10:32:53]line Наличными: 500.00 [10:32:53]line Безнал.: 0.00 [10:32:53]line Место: АЗС № 120 "Партнер Нефть" [10:32:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:32:53]line СНО: Общий режим [10:32:53]line Чек 45 18.06.2024 10:32 [10:32:53]line Смена: 352 ФФД: 1.0 [10:32:53]line ЗНМ: 0300000164 [10:32:53]line РНМ: 0000000000092785 [10:32:53]line Версия ККМ: 001 [10:32:53]line ФМ: 0000000000875093 [10:32:53]line ФД: 103361 [10:32:53]line ФПД: 113261704234975 [10:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103258&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103361&fm=113261704234975&tin=02508201610067®Number=0000000000092785&sum=50000 [10:32:53]written 0, free lines is 4095 [10:32:53]OFD Sender: Processing packet 103361 [packets to send 17, broken 16] [10:32:53]ProducePacketName [10:32:53]name=ofd_packets/00103361 [10:32:53]OFD Sender: To server: pG, [10:32:53]CommunicateWithHost lk.salyk.kg:30040 [10:32:53]ConnectInit lk.salyk.kg [10:32:54]Connected sock=9 [10:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 84 07 01 8D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 5A 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 93 01 00 35 04 06 00 67 02 CB A5 C7 DF CD 26 A7 EB 74 25 3F 5F [10:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DE 7D 47 00 D7 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 93 01 00 F4 03 04 00 E6 08 71 66 B6 04 01 00 00 D5 5F 1A F7 BB 6A D7 DC [10:32:54]CommunicateWithHost err = 0 [10:32:54]CheckOFDResponse [10:32:54]1017 (14) - 77093643461234 [10:32:54]1041 (16) - 0000000000875093 [10:32:54]1040 (4) - 103361 [10:32:54]1012 (4) - 18.06.2024 04:11 [10:32:54]1206 (1) - 0 [10:32:54]OFD Sender: Remove packet 103361 [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00103361 [10:32:54]NVStorageDeleteData [10:32:54]Write to MH i2c: 01 00 00 D2 45 17 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 D2 45 00 00 00 00 00 DA 0C 04 [10:32:54]RasterBufferAndPrint [10:32:54]line [10:32:54]line [10:32:54]line [10:32:54]line [10:32:54]line [10:32:54]written 0, free lines is 3297 [10:32:54]MH_Cut [10:32:54]Write to MH i2c: D1 01 00 D9 45 01 F0 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: D1 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: D1 01 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: D1 01 00 D9 45 00 EF [10:32:54]Write to MH i2c: 01 00 00 DA 45 1F [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]OFD Sender: No OFD packet to send [10:32:55]*** Cut start [10:32:55]*** Partial cut [10:32:55]*** CUTSNS_PIN = 1 [10:32:55]*** CUTSNS_PIN = 0 [10:32:55]*** Brake cut motor [10:32:55]Read from MH i2c: 01 [10:32:55]MH_I2C_Read... [10:32:55]*** Stop cut motor [10:32:55]*** Cut end [10:32:55]Read from MH i2c: 01 07 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 DA 45 00 00 00 00 00 FF 0F 34 [10:32:55]process_action close_receipt done [10:32:55]requested_data is exist [10:32:55]produce_requested_data [10:32:55]requested_item fm.sn is exist - process it [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 11 00 00 [10:32:55]Write to MH i2c: E2 08 00 DB 45 80 11 00 00 00 00 00 00 9A [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 17 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 17 00 DB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [10:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:32:55]wFMCommunicate OK [10:32:55]requested_item fd.num is exist - process it [10:32:55]SAM_PROTO_GetFieldsCounters [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 00 00 [10:32:55]Write to MH i2c: E2 08 00 DC 45 80 13 00 00 00 00 00 00 9D [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 62 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 62 00 DC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [10:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:55]wFMCommunicate OK [10:32:55]SAM_PROTO_GetFieldsCounters done [10:32:55]requested_item shift.num is exist - process it [10:32:55]requested_item shift.opened is exist - process it [10:32:55]req_shift_opened [10:32:55]FM_GetShiftState [10:32:55]SAM_PROTO_GetShiftState [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 01 00 [10:32:55]Write to MH i2c: E2 08 00 DD 45 80 13 01 00 00 00 00 00 9F [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 DD 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 20 [10:32:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]req_shift_opened done [10:32:56]requested_item shift.open_date is exist - process it [10:32:56]req_shift_open_date [10:32:56]req_shift_open_date done [10:32:56]produce_requested_data done [10:32:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103361,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:32:56]process_action_free close_receipt [10:32:56]json_value_free [10:32:56]json_value_free done [10:32:56]process_json_proto returns [10:32:56]Send response to host [10:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103361,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:32:56]free response buf [10:32:56]execute_script done [10:32:56]execute_script returns [10:32:56]free content buf [10:32:56]Sock 7.Close socket [10:32:56]Sock 7.Thread stoped [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]accept exits with 10 [10:34:44]New connection [10:34:44]New thread 3067084132 created [10:34:44]Thread 3067227492 joined [10:34:44]Waiting for new connection... [10:34:44] Sock 10.Parse request [10:34:44]Sock 10.Check first char [10:34:44]Sock 10.First char is OK [10:34:44]request: POST /json_proto HTTP/1.0 [10:34:44]Method: POST [10:34:44]URL: /json_proto [10:34:44]Method is POST - this is cgi request [10:34:44]url: /json_proto [10:34:44]query_string will be loaded in cgi processing [10:34:44]execute_cgi json_proto POST (null) [10:34:44]execute_cgi path=json_proto method=POST [10:34:44]POST find Content-Length [10:34:44]Host: 172.17.38.133:8080 [10:34:44]Content-Length: 682 [10:34:44]Content-Type: application/json [10:34:44] [10:34:44]POST finish read [10:34:44]Found Content-Length = 682 [10:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:44]execute_script... [10:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:44]POST & json_proto [10:34:44]process_json_proto [10:34:44]json parsed OK: [10:34:44]protocol is kg_v1.0 [10:34:44]action value=close_receipt [10:34:44]process_action close_receipt [10:34:44]cmd_close_receipt [10:34:44]MH_GetDate [10:34:44]Write to MH i2c: F0 00 00 DE 45 12 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: F0 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: F0 09 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: F0 09 00 DE 45 00 CA 62 71 66 BD 8F 7C 64 4A [10:34:44]GetLastDocTimeStamp 1718706778 [10:34:44]current date 1718706890 [10:34:44]FM_GetShiftState [10:34:44]SAM_PROTO_GetShiftState [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 13 01 00 [10:34:44]Write to MH i2c: E2 08 00 DF 45 80 13 01 00 00 00 00 00 A1 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 0E 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 0E 00 DF 45 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [10:34:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:34:44]wFMCommunicate OK [10:34:44]SAM_PROTO_GetShiftState done [10:34:44]FM_GetShiftState done [10:34:44]opened in 1718670284 [10:34:44]opened+sec_in_day 1718756684 [10:34:44]quantity*price = 50009 [10:34:44]sum+1 = 50010 [10:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 18.06.2024 10:34 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103362 ФПД: 203447160869403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103450&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103362&fm=203447160869403&tin=02508201610067®Number=0000000000092785&sum=50000 [10:34:45]StoreToDocumentArchive [10:34:45]shift 352 fd 103362 [10:34:45]save to /storage/0352/doc_00103362 [10:34:45]save last doc name /storage/0352/doc_00103362 to /storage/kkm_last_doc_name [10:34:45]save OK [10:34:45]Clear old archive folders... [10:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:34:45]tlvbuf is 01461F50 [10:34:45]SAM_PROTO_ClearQueue [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 09 00 00 [10:34:45]Write to MH i2c: E2 08 00 EC 45 80 09 00 00 00 00 00 00 A3 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 EC 45 00 90 00 A5 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_ClearQueue done [10:34:45]KKMCreateOFDPacket [10:34:45]OFDProtocolAddRootSTLVToBuf [10:34:45]FM_MakeSignedData [10:34:45]FM_MakeSignedData [10:34:45]SAM_PROTO_SignData [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 01 02 [10:34:45]Write to MH i2c: E2 08 00 ED 45 80 0D 01 02 00 00 00 00 AB [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 ED 45 00 90 00 A6 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=255 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 CA 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 93 01 00 35 04 06 00 [10:34:45]Write to MH i2c: E2 02 01 EE 45 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 CA 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 93 01 00 35 04 06 00 00 00 2B [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 EE 45 00 90 00 A7 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=11 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 02 02 06 B9 08 BB C1 12 1B [10:34:45]Write to MH i2c: E2 0E 00 EF 45 80 0D 02 02 06 00 B9 08 BB C1 12 1B 00 00 24 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 03 02 [10:34:45]Write to MH i2c: E2 08 00 F0 45 80 0D 03 02 00 00 00 00 B0 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 F0 45 00 AD 4C E8 ED 0A 88 50 4E 90 00 AF [10:34:45]RAPDU: AD 4C E8 ED 0A 88 50 4E 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_SignData done [10:34:45]FM_MakeSignedData done [10:34:45]CreateOFDProtocolMessage [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 11 00 00 [10:34:45]Write to MH i2c: E2 08 00 F1 45 80 11 00 00 00 00 00 00 B0 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 F1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [10:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:34:45]wFMCommunicate OK [10:34:45]CreateOFDProtocolMessage done [10:34:45]OFDSenderStorePacket 103362 [10:34:45]StoreOFDPacket docnum=103362 [10:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FE E1 08 01 07 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 CA 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 93 01 00 35 04 06 00 B9 08 BB C1 12 1B AD 4C E8 ED 0A 88 50 4E [10:34:45]CheckFolder [10:34:45]dirname=/storage/ofd_packets [10:34:45]CheckFolder done [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00103362 [10:34:45]NVStorageSaveData ofd_packets/00103362 [10:34:45]File name is /storage/ofd_packets/00103362 [10:34:45]Write 302 bytes [10:34:45]NVStorageSaveData done [10:34:45]OFDSenderStorePacket done [10:34:45]KKMCreateOFDPacket done [10:34:45]NVStorageSaveData kkm_last_timestamp [10:34:45]File name is /storage/kkm_last_timestamp [10:34:45]Write 4 bytes [10:34:45]NVStorageSaveData done [10:34:45]ExternCall_PrintAddStr [10:34:45]wPrintStart [10:34:45]Write to MH i2c: 01 00 00 F2 45 37 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 F2 45 00 00 00 00 00 FF 0F 4C [10:34:45]RasterBufferAndPrint [10:34:45]line Счет N : (1)672516 [10:34:45]line ИНН: 02508201610067 [10:34:45]line Контрольно-Кассовый Чек [10:34:45]line ПРОДАЖА [10:34:45]line ТРК (МРК, ГНК) : 21 [10:34:45]line Товар: 2710194210 [10:34:45]line ДТ(л)-К-5 [10:34:45]line 6.860 * 72.90 [10:34:45]line = 500.09 [10:34:45]line НДС 12% НСП 1% [10:34:45]line > о реализуемом товаре [10:34:45]line ОКРУГЛЕНИЕ: -0.09 [10:34:45]line ИТОГО: 500.00 [10:34:45]line Внесено: 500.00 [10:34:45]line СДАЧА: 0.00 [10:34:45]line НСП 1% : 4.43 [10:34:45]line НДС 12% : 53.11 [10:34:45]line Наличными: 500.00 [10:34:45]line Безнал.: 0.00 [10:34:45]line Место: АЗС № 120 "Партнер Нефть" [10:34:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:34:45]line СНО: Общий режим [10:34:45]line Чек 46 18.06.2024 10:34 [10:34:45]line Смена: 352 ФФД: 1.0 [10:34:45]line ЗНМ: 0300000164 [10:34:45]line РНМ: 0000000000092785 [10:34:45]line Версия ККМ: 001 [10:34:45]line ФМ: 0000000000875093 [10:34:45]line ФД: 103362 [10:34:45]line ФПД: 203447160869403 [10:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103450&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103362&fm=203447160869403&tin=02508201610067®Number=0000000000092785&sum=50000 [10:34:45]written 0, free lines is 4095 [10:34:45]OFD Sender: Processing packet 103362 [packets to send 17, broken 16] [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00103362 [10:34:45]OFD Sender: To server: pG, [10:34:45]CommunicateWithHost lk.salyk.kg:30040 [10:34:45]ConnectInit lk.salyk.kg [10:34:45]Connected sock=7 [10:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FE E1 08 01 07 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 CA 62 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 93 01 00 35 04 06 00 B9 08 BB C1 12 1B AD 4C E8 ED 0A 88 50 4E [10:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A0 11 47 00 4E 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 35 30 39 33 10 04 04 00 C2 93 01 00 F4 03 04 00 56 09 71 66 B6 04 01 00 00 22 13 B9 42 63 BD 6B 0C [10:34:46]CommunicateWithHost err = 0 [10:34:46]CheckOFDResponse [10:34:46]1017 (14) - 77093643461234 [10:34:46]1041 (16) - 0000000000875093 [10:34:46]1040 (4) - 103362 [10:34:46]1012 (4) - 18.06.2024 04:13 [10:34:46]1206 (1) - 0 [10:34:46]OFD Sender: Remove packet 103362 [10:34:46]ProducePacketName [10:34:46]name=ofd_packets/00103362 [10:34:46]NVStorageDeleteData [10:34:46]Write to MH i2c: 01 00 00 1D 46 63 [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 07 00 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 07 00 1D 46 00 00 00 00 00 DF 0C 55 [10:34:46]RasterBufferAndPrint [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]written 0, free lines is 3304 [10:34:46]MH_Cut [10:34:46]Write to MH i2c: D1 01 00 24 46 01 3C [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 01 00 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 01 00 24 46 00 3B [10:34:46]Write to MH i2c: 01 00 00 25 46 6B [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]OFD Sender: No OFD packet to send [10:34:46]*** Cut start [10:34:46]*** Partial cut [10:34:46]*** CUTSNS_PIN = 1 [10:34:47]*** CUTSNS_PIN = 0 [10:34:47]*** Brake cut motor [10:34:47]Read from MH i2c: 01 [10:34:47]MH_I2C_Read... [10:34:47]*** Stop cut motor [10:34:47]*** Cut end [10:34:47]Read from MH i2c: 01 07 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: 01 07 00 25 46 00 00 00 00 00 FF 0F 80 [10:34:47]process_action close_receipt done [10:34:47]requested_data is exist [10:34:47]produce_requested_data [10:34:47]requested_item fm.sn is exist - process it [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 11 00 00 [10:34:47]Write to MH i2c: E2 08 00 26 46 80 11 00 00 00 00 00 00 E6 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 26 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [10:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:34:47]wFMCommunicate OK [10:34:47]requested_item fd.num is exist - process it [10:34:47]SAM_PROTO_GetFieldsCounters [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 00 00 [10:34:47]Write to MH i2c: E2 08 00 27 46 80 13 00 00 00 00 00 00 E9 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 27 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:34: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetFieldsCounters done [10:34:47]requested_item shift.num is exist - process it [10:34:47]requested_item shift.opened is exist - process it [10:34:47]req_shift_opened [10:34:47]FM_GetShiftState [10:34:47]SAM_PROTO_GetShiftState [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 01 00 [10:34:47]Write to MH i2c: E2 08 00 28 46 80 13 01 00 00 00 00 00 EB [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 28 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6C [10:34:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetShiftState done [10:34:47]FM_GetShiftState done [10:34:47]req_shift_opened done [10:34:47]requested_item shift.open_date is exist - process it [10:34:47]req_shift_open_date [10:34:47]req_shift_open_date done [10:34:47]produce_requested_data done [10:34:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103362,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:34:47]process_action_free close_receipt [10:34:47]json_value_free [10:34:47]json_value_free done [10:34:47]process_json_proto returns [10:34:47]Send response to host [10:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103362,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:34:47]free response buf [10:34:47]execute_script done [10:34:47]execute_script returns [10:34:47]free content buf [10:34:47]Sock 10.Close socket [10:34:47]Sock 10.Thread stoped [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:07]accept exits with 9 [10:36:07]New connection [10:36:07]New thread 3067227492 created [10:36:07]Thread 3067084132 joined [10:36:07]Waiting for new connection... [10:36:07] Sock 9.Parse request [10:36:07]Sock 9.Check first char [10:36:07]Sock 9.First char is OK [10:36:07]request: POST /json_proto HTTP/1.0 [10:36:07]Method: POST [10:36:07]URL: /json_proto [10:36:07]Method is POST - this is cgi request [10:36:07]url: /json_proto [10:36:07]query_string will be loaded in cgi processing [10:36:07]execute_cgi json_proto POST (null) [10:36:07]execute_cgi path=json_proto method=POST [10:36:07]POST find Content-Length [10:36:07]Host: 172.17.38.133:8080 [10:36:07]Content-Length: 682 [10:36:07]Content-Type: application/json [10:36:07] [10:36:07]POST finish read [10:36:07]Found Content-Length = 682 [10:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:07]execute_script... [10:36: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)672517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:07]POST & json_proto [10:36:07]process_json_proto [10:36:07]json parsed OK: [10:36:07]protocol is kg_v1.0 [10:36:07]action value=close_receipt [10:36:07]process_action close_receipt [10:36:07]cmd_close_receipt [10:36:07]MH_GetDate [10:36:07]Write to MH i2c: F0 00 00 29 46 5E [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 29 46 00 1D 63 71 66 BD 8F 7C 64 EA [10:36:07]GetLastDocTimeStamp 1718706890 [10:36:07]current date 1718706973 [10:36:07]FM_GetShiftState [10:36:07]SAM_PROTO_GetShiftState [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 01 00 [10:36:07]Write to MH i2c: E2 08 00 2A 46 80 13 01 00 00 00 00 00 ED [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 2A 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [10:36:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetShiftState done [10:36:07]FM_GetShiftState done [10:36:07]opened in 1718670284 [10:36:07]opened+sec_in_day 1718756684 [10:36:07]quantity*price = 100064 [10:36:07]sum+1 = 100066 [10:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 18.06.2024 10:36 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103363 ФПД: 85378008179446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103363&fm=85378008179446&tin=02508201610067®Number=0000000000092785&sum=100000 [10:36:08]StoreToDocumentArchive [10:36:08]shift 352 fd 103363 [10:36:08]save to /storage/0352/doc_00103363 [10:36:08]save last doc name /storage/0352/doc_00103363 to /storage/kkm_last_doc_name [10:36:08]save OK [10:36:08]Clear old archive folders... [10:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:08]tlvbuf is 0132D230 [10:36:08]SAM_PROTO_ClearQueue [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 09 00 00 [10:36:08]Write to MH i2c: E2 08 00 37 46 80 09 00 00 00 00 00 00 EF [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 37 46 00 90 00 F1 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_ClearQueue done [10:36:08]KKMCreateOFDPacket [10:36:08]OFDProtocolAddRootSTLVToBuf [10:36:08]FM_MakeSignedData [10:36:08]FM_MakeSignedData [10:36:08]SAM_PROTO_SignData [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 01 02 [10:36:08]Write to MH i2c: E2 08 00 38 46 80 0D 01 02 00 00 00 00 F7 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 38 46 00 90 00 F2 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=255 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 63 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 93 01 00 35 04 06 00 4D [10:36:08]Write to MH i2c: E2 02 01 39 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 63 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 93 01 00 35 04 06 00 4D 00 00 8C [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 39 46 00 90 00 F3 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=10 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 05 A6 9D D9 62 F6 [10:36:08]Write to MH i2c: E2 0D 00 3A 46 80 0D 02 02 05 00 A6 9D D9 62 F6 00 00 78 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 03 02 [10:36:08]Write to MH i2c: E2 08 00 3B 46 80 0D 03 02 00 00 00 00 FC [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 3B 46 00 01 E3 FF 56 6D 14 56 63 90 00 70 [10:36:08]RAPDU: 01 E3 FF 56 6D 14 56 63 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_SignData done [10:36:08]FM_MakeSignedData done [10:36:08]CreateOFDProtocolMessage [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 11 00 00 [10:36:08]Write to MH i2c: E2 08 00 3C 46 80 11 00 00 00 00 00 00 FC [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 3C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [10:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:36:08]wFMCommunicate OK [10:36:08]CreateOFDProtocolMessage done [10:36:08]OFDSenderStorePacket 103363 [10:36:08]StoreOFDPacket docnum=103363 [10:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 29 07 01 69 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 63 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 93 01 00 35 04 06 00 4D A6 9D D9 62 F6 01 E3 FF 56 6D 14 56 63 [10:36:08]CheckFolder [10:36:08]dirname=/storage/ofd_packets [10:36:08]CheckFolder done [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00103363 [10:36:08]NVStorageSaveData ofd_packets/00103363 [10:36:08]File name is /storage/ofd_packets/00103363 [10:36:08]Write 301 bytes [10:36:08]NVStorageSaveData done [10:36:08]OFDSenderStorePacket done [10:36:08]KKMCreateOFDPacket done [10:36:08]NVStorageSaveData kkm_last_timestamp [10:36:08]File name is /storage/kkm_last_timestamp [10:36:08]Write 4 bytes [10:36:08]NVStorageSaveData done [10:36:08]ExternCall_PrintAddStr [10:36:08]wPrintStart [10:36:08]Write to MH i2c: 01 00 00 3D 46 83 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 3D 46 00 00 00 00 00 FF 0F 98 [10:36:08]RasterBufferAndPrint [10:36:08]line Счет N : (1)672517 [10:36:08]line ИНН: 02508201610067 [10:36:08]line Контрольно-Кассовый Чек [10:36:08]line ПРОДАЖА [10:36:08]line ТРК (МРК, ГНК) : 32 [10:36:08]line Товар: 2710124130 [10:36:08]line Аи-92-К-5 [10:36:08]line 15.070 * 66.40 [10:36:08]line = 1000.65 [10:36:08]line НДС 12% НСП 1% [10:36:08]line > о реализуемом товаре [10:36:08]line ОКРУГЛЕНИЕ: -0.65 [10:36:08]line ИТОГО: 1000.00 [10:36:08]line Внесено: 1000.00 [10:36:08]line СДАЧА: 0.00 [10:36:08]line НСП 1% : 8.85 [10:36:08]line НДС 12% : 106.26 [10:36:08]line Наличными: 1000.00 [10:36:08]line Безнал.: 0.00 [10:36:08]line Место: АЗС № 120 "Партнер Нефть" [10:36:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:36:08]line СНО: Общий режим [10:36:08]line Чек 47 18.06.2024 10:36 [10:36:08]line Смена: 352 ФФД: 1.0 [10:36:08]line ЗНМ: 0300000164 [10:36:08]line РНМ: 0000000000092785 [10:36:08]line Версия ККМ: 001 [10:36:08]line ФМ: 0000000000875093 [10:36:08]line ФД: 103363 [10:36:08]line ФПД: 85378008179446 [10:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103363&fm=85378008179446&tin=02508201610067®Number=0000000000092785&sum=100000 [10:36:09]OFD Sender: Processing packet 103363 [packets to send 17, broken 16] [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00103363 [10:36:09]OFD Sender: To server: pG, [10:36:09]CommunicateWithHost lk.salyk.kg:30040 [10:36:09]ConnectInit lk.salyk.kg [10:36:09]written 0, free lines is 4095 [10:36:09]Connected sock=6 [10:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 29 07 01 69 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 63 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 93 01 00 35 04 06 00 4D A6 9D D9 62 F6 01 E3 FF 56 6D 14 56 63 [10:36:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E3 37 47 00 7D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 93 01 00 F4 03 04 00 A9 09 71 66 B6 04 01 00 00 48 5A 8A B9 08 C4 68 1D [10:36:09]CommunicateWithHost err = 0 [10:36:09]CheckOFDResponse [10:36:09]1017 (14) - 77093643461234 [10:36:09]1041 (16) - 0000000000875093 [10:36:09]1040 (4) - 103363 [10:36:09]1012 (4) - 18.06.2024 04:14 [10:36:09]1206 (1) - 0 [10:36:09]OFD Sender: Remove packet 103363 [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00103363 [10:36:09]NVStorageDeleteData [10:36:09]Write to MH i2c: 01 00 00 68 46 AE [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 68 46 00 00 00 00 00 D6 0C 97 [10:36:09]RasterBufferAndPrint [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]written 0, free lines is 3294 [10:36:09]MH_Cut [10:36:09]Write to MH i2c: D1 01 00 6F 46 01 87 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 6F 46 00 86 [10:36:09]Write to MH i2c: 01 00 00 70 46 B6 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:10]OFD Sender: No OFD packet to send [10:36:10]*** Cut start [10:36:10]*** Partial cut [10:36:10]*** CUTSNS_PIN = 1 [10:36:10]*** CUTSNS_PIN = 0 [10:36:10]*** Brake cut motor [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]*** Stop cut motor [10:36:11]*** Cut end [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 70 46 00 00 00 00 00 FF 0F CB [10:36:11]process_action close_receipt done [10:36:11]requested_data is exist [10:36:11]produce_requested_data [10:36:11]requested_item fm.sn is exist - process it [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 11 00 00 [10:36:11]Write to MH i2c: E2 08 00 71 46 80 11 00 00 00 00 00 00 31 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 71 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [10:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:36:11]wFMCommunicate OK [10:36:11]requested_item fd.num is exist - process it [10:36:11]SAM_PROTO_GetFieldsCounters [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 00 00 [10:36:11]Write to MH i2c: E2 08 00 72 46 80 13 00 00 00 00 00 00 34 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 62 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 62 00 72 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetFieldsCounters done [10:36:11]requested_item shift.num is exist - process it [10:36:11]requested_item shift.opened is exist - process it [10:36:11]req_shift_opened [10:36:11]FM_GetShiftState [10:36:11]SAM_PROTO_GetShiftState [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 01 00 [10:36:11]Write to MH i2c: E2 08 00 73 46 80 13 01 00 00 00 00 00 36 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 73 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [10:36:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetShiftState done [10:36:11]FM_GetShiftState done [10:36:11]req_shift_opened done [10:36:11]requested_item shift.open_date is exist - process it [10:36:11]req_shift_open_date [10:36:11]req_shift_open_date done [10:36:11]produce_requested_data done [10:36:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103363,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:36:11]process_action_free close_receipt [10:36:11]json_value_free [10:36:11]json_value_free done [10:36:11]process_json_proto returns [10:36:11]Send response to host [10:36:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103363,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:36:11]free response buf [10:36:11]execute_script done [10:36:11]execute_script returns [10:36:11]free content buf [10:36:11]Sock 9.Close socket [10:36:11]Sock 9.Thread stoped [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:00]accept exits with 7 [10:41:00]New connection [10:41:00]New thread 3067084132 created [10:41:00]Thread 3067227492 joined [10:41:00]Waiting for new connection... [10:41:00] Sock 7.Parse request [10:41:00]Sock 7.Check first char [10:41:00]Sock 7.First char is OK [10:41:00]request: POST /json_proto HTTP/1.0 [10:41:00]Method: POST [10:41:00]URL: /json_proto [10:41:00]Method is POST - this is cgi request [10:41:00]url: /json_proto [10:41:00]query_string will be loaded in cgi processing [10:41:00]execute_cgi json_proto POST (null) [10:41:00]execute_cgi path=json_proto method=POST [10:41:00]POST find Content-Length [10:41:00]Host: 172.17.38.133:8080 [10:41:00]Content-Length: 1195 [10:41:00]Content-Type: application/json [10:41:00] [10:41:00]POST finish read [10:41:00]Found Content-Length = 1195 [10:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672519\u000A18.06.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.600 x 73.90\u000A\u0418\u0422\u041E\u0413: 3000.34\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:00]execute_script... [10:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672519\u000A18.06.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.600 x 73.90\u000A\u0418\u0422\u041E\u0413: 3000.34\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:00]POST & json_proto [10:41:00]process_json_proto [10:41:00]json parsed OK: [10:41:00]protocol is kg_v1.0 [10:41:00]action value=print_text [10:41:00]process_action print_text [10:41:00]cmd_print_text [10:41:00]ExternCall_PrintAddStr [10:41:00]wPrintStart [10:41:00]Write to MH i2c: 01 00 00 74 46 BA [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 07 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 07 00 74 46 00 00 00 00 00 FF 0F CF [10:41:00]RasterBufferAndPrint [10:41:00]line *****ТОВАРНЫЙ ЧЕК***** [10:41:00]line АЗС 120 [10:41:00]line Партнер нефть [10:41:00]line 02508201610067 [10:41:00]line Кассир : Асанбаев Н. [10:41:00]line Счет N : (1)672519 [10:41:00]line 18.06.2024 10:18 [10:41:00]line ПРОДАЖА [10:41:00]line ТРК (МРК, ГНК): 31 [10:41:00]line Вид ГСМ : 2710124500 [10:41:00]line Аи-95-К-5 [10:41:00]line 40.600 x 73.90 [10:41:00]line ИТОГ: 3000.34 [10:41:00]line Тип оплаты: Талоны: Топливная Карта [10:41:00]line 32170 [10:41:00]line ______________________ [10:41:00]line (подпись) [10:41:00]written 0, free lines is 4095 [10:41:00]Write to MH i2c: 01 00 00 88 46 CE [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 07 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: 01 07 00 88 46 00 00 00 00 00 11 0E F4 [10:41:00]RasterBufferAndPrint [10:41:00]line [10:41:00]line [10:41:00]line [10:41:00]line [10:41:00]line [10:41:00]written 0, free lines is 3603 [10:41:00]MH_Cut [10:41:00]Write to MH i2c: D1 01 00 8F 46 01 A7 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: D1 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: D1 01 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: D1 01 00 8F 46 00 A6 [10:41:00]Write to MH i2c: 01 00 00 90 46 D6 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:01]*** Cut start [10:41:01]*** Partial cut [10:41:01]*** CUTSNS_PIN = 1 [10:41:01]*** CUTSNS_PIN = 0 [10:41:01]*** Brake cut motor [10:41:02]Read from MH i2c: 01 [10:41:02]MH_I2C_Read... [10:41:02]*** Stop cut motor [10:41:02]*** Cut end [10:41:02]Read from MH i2c: 01 07 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 90 46 00 00 00 00 00 FF 0F EB [10:41:02]process_action print_text done [10:41:02]requested_data is exist [10:41:02]produce_requested_data [10:41:02]requested_item fm.sn is exist - process it [10:41:02]wFMCommunicate request_size=4 [10:41:02]MH_SAM_APDU [10:41:02]CAPDU: 80 11 00 00 [10:41:02]Write to MH i2c: E2 08 00 91 46 80 11 00 00 00 00 00 00 51 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:02]Read from MH i2c: E2 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 17 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 17 00 91 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [10:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:41:02]wFMCommunicate OK [10:41:02]requested_item fd.num is exist - process it [10:41:02]SAM_PROTO_GetFieldsCounters [10:41:02]wFMCommunicate request_size=4 [10:41:02]MH_SAM_APDU [10:41:02]CAPDU: 80 13 00 00 [10:41:02]Write to MH i2c: E2 08 00 92 46 80 13 00 00 00 00 00 00 54 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:02]Read from MH i2c: E2 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 62 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 62 00 92 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:02]wFMCommunicate OK [10:41:02]SAM_PROTO_GetFieldsCounters done [10:41:02]requested_item shift.num is exist - process it [10:41:02]requested_item shift.opened is exist - process it [10:41:02]req_shift_opened [10:41:02]FM_GetShiftState [10:41:02]SAM_PROTO_GetShiftState [10:41:02]wFMCommunicate request_size=4 [10:41:02]MH_SAM_APDU [10:41:02]CAPDU: 80 13 01 00 [10:41:02]Write to MH i2c: E2 08 00 93 46 80 13 01 00 00 00 00 00 56 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:02]Read from MH i2c: E2 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 0E 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: E2 0E 00 93 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D7 [10:41:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:41:02]wFMCommunicate OK [10:41:02]SAM_PROTO_GetShiftState done [10:41:02]FM_GetShiftState done [10:41:02]req_shift_opened done [10:41:02]requested_item shift.open_date is exist - process it [10:41:02]req_shift_open_date [10:41:02]req_shift_open_date done [10:41:02]produce_requested_data done [10:41:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103363,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:41:02]process_action_free print_text [10:41:02]json_value_free [10:41:02]json_value_free done [10:41:02]process_json_proto returns [10:41:02]Send response to host [10:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103363,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:41:02]free response buf [10:41:02]execute_script done [10:41:02]execute_script returns [10:41:02]free content buf [10:41:02]Sock 7.Close socket [10:41:02]Sock 7.Thread stoped [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:27]accept exits with 9 [10:44:27]New connection [10:44:27]New thread 3067227492 created [10:44:27]Thread 3067084132 joined [10:44:27]Waiting for new connection... [10:44:27] Sock 9.Parse request [10:44:27]Sock 9.Check first char [10:44:27]Sock 9.First char is OK [10:44:27]request: POST /json_proto HTTP/1.0 [10:44:27]Method: POST [10:44:27]URL: /json_proto [10:44:27]Method is POST - this is cgi request [10:44:27]url: /json_proto [10:44:27]query_string will be loaded in cgi processing [10:44:27]execute_cgi json_proto POST (null) [10:44:27]execute_cgi path=json_proto method=POST [10:44:27]POST find Content-Length [10:44:27]Host: 172.17.38.133:8080 [10:44:27]Content-Length: 687 [10:44:28]Content-Type: application/json [10:44:28] [10:44:28]POST finish read [10:44:28]Found Content-Length = 687 [10:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:28]execute_script... [10:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:28]POST & json_proto [10:44:28]process_json_proto [10:44:28]json parsed OK: [10:44:28]protocol is kg_v1.0 [10:44:28]action value=close_receipt [10:44:28]process_action close_receipt [10:44:28]cmd_close_receipt [10:44:28]MH_GetDate [10:44:28]Write to MH i2c: F0 00 00 94 46 C9 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 09 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 09 00 94 46 00 12 65 71 66 BD 8F 7C 64 4C [10:44:28]GetLastDocTimeStamp 1718706973 [10:44:28]current date 1718707474 [10:44:28]FM_GetShiftState [10:44:28]SAM_PROTO_GetShiftState [10:44:28]wFMCommunicate request_size=4 [10:44:28]MH_SAM_APDU [10:44:28]CAPDU: 80 13 01 00 [10:44:28]Write to MH i2c: E2 08 00 95 46 80 13 01 00 00 00 00 00 58 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0E 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0E 00 95 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D9 [10:44:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:44:28]wFMCommunicate OK [10:44:28]SAM_PROTO_GetShiftState done [10:44:28]FM_GetShiftState done [10:44:28]opened in 1718670284 [10:44:28]opened+sec_in_day 1718756684 [10:44:28]quantity*price = 100018 [10:44:28]sum+1 = 100020 [10:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 48 18.06.2024 10:44 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103364 ФПД: 61050335306527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104434&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103364&fm=61050335306527&tin=02508201610067®Number=0000000000092785&sum=100000 [10:44:29]StoreToDocumentArchive [10:44:29]shift 352 fd 103364 [10:44:29]save to /storage/0352/doc_00103364 [10:44:29]save last doc name /storage/0352/doc_00103364 to /storage/kkm_last_doc_name [10:44:29]save OK [10:44:29]Clear old archive folders... [10:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:44:29]tlvbuf is 01337950 [10:44:29]SAM_PROTO_ClearQueue [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 09 00 00 [10:44:29]Write to MH i2c: E2 08 00 A2 46 80 09 00 00 00 00 00 00 5A [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 A2 46 00 90 00 5C [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_ClearQueue done [10:44:29]KKMCreateOFDPacket [10:44:29]OFDProtocolAddRootSTLVToBuf [10:44:29]FM_MakeSignedData [10:44:29]FM_MakeSignedData [10:44:29]SAM_PROTO_SignData [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 01 02 [10:44:29]Write to MH i2c: E2 08 00 A3 46 80 0D 01 02 00 00 00 00 62 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=255 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 12 65 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 93 01 00 35 04 06 00 [10:44:29]Write to MH i2c: E2 02 01 A4 46 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 12 65 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 93 01 00 35 04 06 00 00 00 ED [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=11 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 02 02 06 37 86 63 8C A3 1F [10:44:29]Write to MH i2c: E2 0E 00 A5 46 80 0D 02 02 06 00 37 86 63 8C A3 1F 00 00 DF [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 03 02 [10:44:29]Write to MH i2c: E2 08 00 A6 46 80 0D 03 02 00 00 00 00 67 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0B 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0B 00 A6 46 00 B6 13 63 35 9D 28 AB 55 90 00 8E [10:44:29]RAPDU: B6 13 63 35 9D 28 AB 55 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_SignData done [10:44:29]FM_MakeSignedData done [10:44:29]CreateOFDProtocolMessage [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 11 00 00 [10:44:29]Write to MH i2c: E2 08 00 A7 46 80 11 00 00 00 00 00 00 67 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 A7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [10:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:29]wFMCommunicate OK [10:44:29]CreateOFDProtocolMessage done [10:44:29]OFDSenderStorePacket 103364 [10:44:29]StoreOFDPacket docnum=103364 [10:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 38 5C 08 01 5A 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 12 65 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 93 01 00 35 04 06 00 37 86 63 8C A3 1F B6 13 63 35 9D 28 AB 55 [10:44:29]CheckFolder [10:44:29]dirname=/storage/ofd_packets [10:44:29]CheckFolder done [10:44:29]ProducePacketName [10:44:29]name=ofd_packets/00103364 [10:44:29]NVStorageSaveData ofd_packets/00103364 [10:44:29]File name is /storage/ofd_packets/00103364 [10:44:29]Write 302 bytes [10:44:29]NVStorageSaveData done [10:44:29]OFDSenderStorePacket done [10:44:29]KKMCreateOFDPacket done [10:44:29]NVStorageSaveData kkm_last_timestamp [10:44:29]File name is /storage/kkm_last_timestamp [10:44:29]Write 4 bytes [10:44:29]NVStorageSaveData done [10:44:29]ExternCall_PrintAddStr [10:44:29]wPrintStart [10:44:29]Write to MH i2c: 01 00 00 A8 46 EE [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 A8 46 00 00 00 00 00 FF 0F 03 [10:44:29]RasterBufferAndPrint [10:44:29]line Счет N : (1)672520 [10:44:29]line ИНН: 02508201610067 [10:44:29]line Контрольно-Кассовый Чек [10:44:29]line ПРОДАЖА [10:44:29]line ТРК (МРК, ГНК) : 11 [10:44:29]line Товар: 2710194210 [10:44:29]line ДТ(л)-К-5 [10:44:29]line 13.720 * 72.90 [10:44:29]line = 1000.19 [10:44:29]line НДС 12% НСП 1% [10:44:29]line > о реализуемом товаре [10:44:29]line ОКРУГЛЕНИЕ: -0.19 [10:44:29]line ИТОГО: 1000.00 [10:44:29]line Внесено: 1000.00 [10:44:29]line СДАЧА: 0.00 [10:44:29]line НСП 1% : 8.85 [10:44:29]line НДС 12% : 106.21 [10:44:29]line Наличными: 1000.00 [10:44:29]line Безнал.: 0.00 [10:44:29]line Место: АЗС № 120 "Партнер Нефть" [10:44:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:44:29]line СНО: Общий режим [10:44:29]line Чек 48 18.06.2024 10:44 [10:44:29]line Смена: 352 ФФД: 1.0 [10:44:29]line ЗНМ: 0300000164 [10:44:29]line РНМ: 0000000000092785 [10:44:29]line Версия ККМ: 001 [10:44:29]line ФМ: 0000000000875093 [10:44:29]line ФД: 103364 [10:44:29]line ФПД: 61050335306527 [10:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104434&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103364&fm=61050335306527&tin=02508201610067®Number=0000000000092785&sum=100000 [10:44:30]OFD Sender: Processing packet 103364 [packets to send 17, broken 16] [10:44:30]ProducePacketName [10:44:30]name=ofd_packets/00103364 [10:44:30]OFD Sender: To server: pG, [10:44:30]CommunicateWithHost lk.salyk.kg:30040 [10:44:30]ConnectInit lk.salyk.kg [10:44:30]written 0, free lines is 4095 [10:44:30]Connected sock=10 [10:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 38 5C 08 01 5A 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 12 65 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 93 01 00 35 04 06 00 37 86 63 8C A3 1F B6 13 63 35 9D 28 AB 55 [10:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2D 50 47 00 10 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 93 01 00 F4 03 04 00 9E 0B 71 66 B6 04 01 00 00 CC 0D BD 0D 90 31 63 17 [10:44:30]CommunicateWithHost err = 0 [10:44:30]CheckOFDResponse [10:44:30]1017 (14) - 77093643461234 [10:44:30]1041 (16) - 0000000000875093 [10:44:30]1040 (4) - 103364 [10:44:30]1012 (4) - 18.06.2024 04:22 [10:44:30]1206 (1) - 0 [10:44:30]OFD Sender: Remove packet 103364 [10:44:30]ProducePacketName [10:44:30]name=ofd_packets/00103364 [10:44:30]NVStorageDeleteData [10:44:30]Write to MH i2c: 01 00 00 D3 46 19 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 07 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 07 00 D3 46 00 00 00 00 00 EC 0C 18 [10:44:30]RasterBufferAndPrint [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]written 0, free lines is 3318 [10:44:30]MH_Cut [10:44:30]Write to MH i2c: D1 01 00 DA 46 01 F2 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 01 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 01 00 DA 46 00 F1 [10:44:30]Write to MH i2c: 01 00 00 DB 46 21 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]OFD Sender: No OFD packet to send [10:44:31]*** Cut start [10:44:31]*** Partial cut [10:44:31]*** CUTSNS_PIN = 1 [10:44:31]*** CUTSNS_PIN = 0 [10:44:31]*** Brake cut motor [10:44:31]Read from MH i2c: 01 [10:44:31]MH_I2C_Read... [10:44:31]*** Stop cut motor [10:44:31]*** Cut end [10:44:31]Read from MH i2c: 01 07 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 DB 46 00 00 00 00 00 FF 0F 36 [10:44:31]process_action close_receipt done [10:44:31]requested_data is exist [10:44:31]produce_requested_data [10:44:31]requested_item fm.sn is exist - process it [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 11 00 00 [10:44:31]Write to MH i2c: E2 08 00 DC 46 80 11 00 00 00 00 00 00 9C [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 DC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [10:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:31]wFMCommunicate OK [10:44:31]requested_item fd.num is exist - process it [10:44:31]SAM_PROTO_GetFieldsCounters [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 13 00 00 [10:44:31]Write to MH i2c: E2 08 00 DD 46 80 13 00 00 00 00 00 00 9F [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 62 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 62 00 DD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [10:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_GetFieldsCounters done [10:44:32]requested_item shift.num is exist - process it [10:44:32]requested_item shift.opened is exist - process it [10:44:32]req_shift_opened [10:44:32]FM_GetShiftState [10:44:32]SAM_PROTO_GetShiftState [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 13 01 00 [10:44:32]Write to MH i2c: E2 08 00 DE 46 80 13 01 00 00 00 00 00 A1 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 DE 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [10:44:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_GetShiftState done [10:44:32]FM_GetShiftState done [10:44:32]req_shift_opened done [10:44:32]requested_item shift.open_date is exist - process it [10:44:32]req_shift_open_date [10:44:32]req_shift_open_date done [10:44:32]produce_requested_data done [10:44:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103364,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:44:32]process_action_free close_receipt [10:44:32]json_value_free [10:44:32]json_value_free done [10:44:32]process_json_proto returns [10:44:32]Send response to host [10:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103364,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:44:32]free response buf [10:44:32]execute_script done [10:44:32]execute_script returns [10:44:32]free content buf [10:44:32]Sock 9.Close socket [10:44:32]Sock 9.Thread stoped [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46: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:27]accept exits with 7 [10:48:27]New connection [10:48:27]New thread 3067084132 created [10:48:27]Thread 3067227492 joined [10:48:27]Waiting for new connection... [10:48:27] Sock 7.Parse request [10:48:27]Sock 7.Check first char [10:48:27]Sock 7.First char is OK [10:48:27]request: POST /json_proto HTTP/1.0 [10:48:27]Method: POST [10:48:27]URL: /json_proto [10:48:27]Method is POST - this is cgi request [10:48:27]url: /json_proto [10:48:27]query_string will be loaded in cgi processing [10:48:27]execute_cgi json_proto POST (null) [10:48:27]execute_cgi path=json_proto method=POST [10:48:27]POST find Content-Length [10:48:27]Host: 172.17.38.133:8080 [10:48:27]Content-Length: 687 [10:48:27]Content-Type: application/json [10:48:27] [10:48:27]POST finish read [10:48:27]Found Content-Length = 687 [10:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:27]execute_script... [10:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 24.700, "sum" : 1800.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:27]POST & json_proto [10:48:27]process_json_proto [10:48:27]json parsed OK: [10:48:27]protocol is kg_v1.0 [10:48:27]action value=close_receipt [10:48:27]process_action close_receipt [10:48:27]cmd_close_receipt [10:48:27]MH_GetDate [10:48:27]Write to MH i2c: F0 00 00 DF 46 14 [10:48:27]Write i2c OK [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 09 00 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 09 00 DF 46 00 01 66 71 66 BD 8F 7C 64 87 [10:48:27]GetLastDocTimeStamp 1718707474 [10:48:27]current date 1718707713 [10:48:27]FM_GetShiftState [10:48:27]SAM_PROTO_GetShiftState [10:48:27]wFMCommunicate request_size=4 [10:48:27]MH_SAM_APDU [10:48:27]CAPDU: 80 13 01 00 [10:48:27]Write to MH i2c: E2 08 00 E0 46 80 13 01 00 00 00 00 00 A3 [10:48:27]Write i2c OK [10:48:27]MH_I2C_Read... [10:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:27]Read from MH i2c: E2 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: E2 0E 00 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: E2 0E 00 E0 46 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 24 [10:48:27]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:48:27]wFMCommunicate OK [10:48:27]SAM_PROTO_GetShiftState done [10:48:27]FM_GetShiftState done [10:48:27]opened in 1718670284 [10:48:27]opened+sec_in_day 1718756684 [10:48:27]quantity*price = 180063 [10:48:27]sum+1 = 180064 [10:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.22 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 49 18.06.2024 10:48 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103365 ФПД: 212394691050898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104833&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103365&fm=212394691050898&tin=02508201610067®Number=0000000000092785&sum=180000 [10:48:28]StoreToDocumentArchive [10:48:28]shift 352 fd 103365 [10:48:28]save to /storage/0352/doc_00103365 [10:48:28]save last doc name /storage/0352/doc_00103365 to /storage/kkm_last_doc_name [10:48:28]save OK [10:48:28]Clear old archive folders... [10:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:48:28]tlvbuf is B6F1D350 [10:48:28]SAM_PROTO_ClearQueue [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 09 00 00 [10:48:28]Write to MH i2c: E2 08 00 ED 46 80 09 00 00 00 00 00 00 A5 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 ED 46 00 90 00 A7 [10:48:28]RAPDU: 90 00 [10:48:28]wFMCommunicate OK [10:48:28]SAM_PROTO_ClearQueue done [10:48:28]KKMCreateOFDPacket [10:48:28]OFDProtocolAddRootSTLVToBuf [10:48:28]FM_MakeSignedData [10:48:28]FM_MakeSignedData [10:48:28]SAM_PROTO_SignData [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 0D 01 02 [10:48:28]Write to MH i2c: E2 08 00 EE 46 80 0D 01 02 00 00 00 00 AD [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 EE 46 00 90 00 A8 [10:48:28]RAPDU: 90 00 [10:48:28]wFMCommunicate OK [10:48:28]wFMCommunicate request_size=255 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 01 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 93 01 00 35 04 06 00 [10:48:28]Write to MH i2c: E2 02 01 EF 46 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 01 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 93 01 00 35 04 06 00 00 00 B0 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 EF 46 00 90 00 A9 [10:48:28]RAPDU: 90 00 [10:48:28]wFMCommunicate OK [10:48:28]wFMCommunicate request_size=11 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 0D 02 02 06 C1 2B FE 1C BD 92 [10:48:28]Write to MH i2c: E2 0E 00 F0 46 80 0D 02 02 06 00 C1 2B FE 1C BD 92 00 00 11 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [10:48:28]RAPDU: 90 00 [10:48:28]wFMCommunicate OK [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 0D 03 02 [10:48:28]Write to MH i2c: E2 08 00 F1 46 80 0D 03 02 00 00 00 00 B2 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 0B 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 0B 00 F1 46 00 61 18 0F 14 D9 0B 83 F9 90 00 AF [10:48:29]RAPDU: 61 18 0F 14 D9 0B 83 F9 90 00 [10:48:29]wFMCommunicate OK [10:48:29]SAM_PROTO_SignData done [10:48:29]FM_MakeSignedData done [10:48:29]CreateOFDProtocolMessage [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 11 00 00 [10:48:29]Write to MH i2c: E2 08 00 F2 46 80 11 00 00 00 00 00 00 B2 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 17 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 17 00 F2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [10:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:48:29]wFMCommunicate OK [10:48:29]CreateOFDProtocolMessage done [10:48:29]OFDSenderStorePacket 103365 [10:48:29]StoreOFDPacket docnum=103365 [10:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 59 0E 08 01 1B 99 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 01 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 93 01 00 35 04 06 00 C1 2B FE 1C BD 92 61 18 0F 14 D9 0B 83 F9 [10:48:29]CheckFolder [10:48:29]dirname=/storage/ofd_packets [10:48:29]CheckFolder done [10:48:29]ProducePacketName [10:48:29]name=ofd_packets/00103365 [10:48:29]NVStorageSaveData ofd_packets/00103365 [10:48:29]File name is /storage/ofd_packets/00103365 [10:48:29]Write 302 bytes [10:48:29]NVStorageSaveData done [10:48:29]OFDSenderStorePacket done [10:48:29]KKMCreateOFDPacket done [10:48:29]NVStorageSaveData kkm_last_timestamp [10:48:29]File name is /storage/kkm_last_timestamp [10:48:29]Write 4 bytes [10:48:29]NVStorageSaveData done [10:48:29]ExternCall_PrintAddStr [10:48:29]wPrintStart [10:48:29]Write to MH i2c: 01 00 00 F3 46 39 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 F3 46 00 00 00 00 00 FF 0F 4E [10:48:29]RasterBufferAndPrint [10:48:29]line Счет N : (1)672521 [10:48:29]line ИНН: 02508201610067 [10:48:29]line Контрольно-Кассовый Чек [10:48:29]line ПРОДАЖА [10:48:29]line ТРК (МРК, ГНК) : 11 [10:48:29]line Товар: 2710194210 [10:48:29]line ДТ(л)-К-5 [10:48:29]line 24.700 * 72.90 [10:48:29]line = 1800.63 [10:48:29]line НДС 12% НСП 1% [10:48:29]line > о реализуемом товаре [10:48:29]line ОКРУГЛЕНИЕ: -0.63 [10:48:29]line ИТОГО: 1800.00 [10:48:29]line Внесено: 1800.00 [10:48:29]line СДАЧА: 0.00 [10:48:29]line НСП 1% : 15.93 [10:48:29]line НДС 12% : 191.22 [10:48:29]line Наличными: 1800.00 [10:48:29]line Безнал.: 0.00 [10:48:29]line Место: АЗС № 120 "Партнер Нефть" [10:48:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:48:29]line СНО: Общий режим [10:48:29]line Чек 49 18.06.2024 10:48 [10:48:29]line Смена: 352 ФФД: 1.0 [10:48:29]line ЗНМ: 0300000164 [10:48:29]line РНМ: 0000000000092785 [10:48:29]line Версия ККМ: 001 [10:48:29]line ФМ: 0000000000875093 [10:48:29]line ФД: 103365 [10:48:29]line ФПД: 212394691050898 [10:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104833&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103365&fm=212394691050898&tin=02508201610067®Number=0000000000092785&sum=180000 [10:48:29]OFD Sender: Processing packet 103365 [packets to send 17, broken 16] [10:48:29]ProducePacketName [10:48:29]name=ofd_packets/00103365 [10:48:29]OFD Sender: To server: pG, [10:48:29]CommunicateWithHost lk.salyk.kg:30040 [10:48:29]ConnectInit lk.salyk.kg [10:48:29]written 0, free lines is 4095 [10:48:29]Connected sock=10 [10:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 59 0E 08 01 1B 99 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 60 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 01 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 93 01 00 35 04 06 00 C1 2B FE 1C BD 92 61 18 0F 14 D9 0B 83 F9 [10:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 BD 47 00 6A 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 35 30 39 33 10 04 04 00 C5 93 01 00 F4 03 04 00 8E 0C 71 66 B6 04 01 00 00 BF 26 E9 56 FE 5C 82 0F [10:48:29]CommunicateWithHost err = 0 [10:48:29]CheckOFDResponse [10:48:29]1017 (14) - 77093643461234 [10:48:29]1041 (16) - 0000000000875093 [10:48:29]1040 (4) - 103365 [10:48:29]1012 (4) - 18.06.2024 04:26 [10:48:29]1206 (1) - 0 [10:48:29]OFD Sender: Remove packet 103365 [10:48:29]ProducePacketName [10:48:29]name=ofd_packets/00103365 [10:48:29]NVStorageDeleteData [10:48:29]Write to MH i2c: 01 00 00 1E 47 65 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 1E 47 00 00 00 00 00 EC 0C 64 [10:48:29]RasterBufferAndPrint [10:48:29]line [10:48:29]line [10:48:29]line [10:48:29]line [10:48:29]line [10:48:29]written 0, free lines is 3314 [10:48:29]MH_Cut [10:48:29]Write to MH i2c: D1 01 00 25 47 01 3E [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: D1 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: D1 01 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: D1 01 00 25 47 00 3D [10:48:29]Write to MH i2c: 01 00 00 26 47 6D [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:30]OFD Sender: No OFD packet to send [10:48:30]*** Cut start [10:48:30]*** Partial cut [10:48:30]*** CUTSNS_PIN = 1 [10:48:30]*** CUTSNS_PIN = 0 [10:48:30]*** Brake cut motor [10:48:31]Read from MH i2c: 01 [10:48:31]MH_I2C_Read... [10:48:31]*** Stop cut motor [10:48:31]*** Cut end [10:48:31]Read from MH i2c: 01 07 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: 01 07 00 26 47 00 00 00 00 00 FF 0F 82 [10:48:31]process_action close_receipt done [10:48:31]requested_data is exist [10:48:31]produce_requested_data [10:48:31]requested_item fm.sn is exist - process it [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 11 00 00 [10:48:31]Write to MH i2c: E2 08 00 27 47 80 11 00 00 00 00 00 00 E8 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 17 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 17 00 27 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [10:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:48:31]wFMCommunicate OK [10:48:31]requested_item fd.num is exist - process it [10:48:31]SAM_PROTO_GetFieldsCounters [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 13 00 00 [10:48:31]Write to MH i2c: E2 08 00 28 47 80 13 00 00 00 00 00 00 EB [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 62 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 62 00 28 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:31]wFMCommunicate OK [10:48:31]SAM_PROTO_GetFieldsCounters done [10:48:31]requested_item shift.num is exist - process it [10:48:31]requested_item shift.opened is exist - process it [10:48:31]req_shift_opened [10:48:31]FM_GetShiftState [10:48:31]SAM_PROTO_GetShiftState [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 13 01 00 [10:48:31]Write to MH i2c: E2 08 00 29 47 80 13 01 00 00 00 00 00 ED [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 0E 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 0E 00 29 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [10:48:31]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:48:31]wFMCommunicate OK [10:48:31]SAM_PROTO_GetShiftState done [10:48:31]FM_GetShiftState done [10:48:31]req_shift_opened done [10:48:31]requested_item shift.open_date is exist - process it [10:48:31]req_shift_open_date [10:48:31]req_shift_open_date done [10:48:31]produce_requested_data done [10:48:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103365,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:48:31]process_action_free close_receipt [10:48:31]json_value_free [10:48:31]json_value_free done [10:48:31]process_json_proto returns [10:48:31]Send response to host [10:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103365,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:48:31]free response buf [10:48:31]execute_script done [10:48:31]execute_script returns [10:48:31]free content buf [10:48:31]Sock 7.Close socket [10:48:31]Sock 7.Thread stoped [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [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:47]accept exits with 9 [10:49:47]New connection [10:49:47]New thread 3067227492 created [10:49:47]Thread 3067084132 joined [10:49:47]Waiting for new connection... [10:49:47] Sock 9.Parse request [10:49:47]Sock 9.Check first char [10:49:47]Sock 9.First char is OK [10:49:47]request: POST /json_proto HTTP/1.0 [10:49:47]Method: POST [10:49:47]URL: /json_proto [10:49:47]Method is POST - this is cgi request [10:49:47]url: /json_proto [10:49:47]query_string will be loaded in cgi processing [10:49:47]execute_cgi json_proto POST (null) [10:49:47]execute_cgi path=json_proto method=POST [10:49:47]POST find Content-Length [10:49:47]Host: 172.17.38.133:8080 [10:49:47]Content-Length: 682 [10:49:47]Content-Type: application/json [10:49:47] [10:49:47]POST finish read [10:49:47]Found Content-Length = 682 [10:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]execute_script... [10:49:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:47]POST & json_proto [10:49:47]process_json_proto [10:49:47]json parsed OK: [10:49:47]protocol is kg_v1.0 [10:49:47]action value=close_receipt [10:49:47]process_action close_receipt [10:49:47]cmd_close_receipt [10:49:47]MH_GetDate [10:49:47]Write to MH i2c: F0 00 00 2A 47 60 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: F0 09 00 2A 47 00 52 66 71 66 BD 8F 7C 64 24 [10:49:47]GetLastDocTimeStamp 1718707713 [10:49:47]current date 1718707794 [10:49:47]FM_GetShiftState [10:49:47]SAM_PROTO_GetShiftState [10:49:47]wFMCommunicate request_size=4 [10:49:47]MH_SAM_APDU [10:49:47]CAPDU: 80 13 01 00 [10:49:47]Write to MH i2c: E2 08 00 2B 47 80 13 01 00 00 00 00 00 EF [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:47]Read from MH i2c: E2 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: E2 0E 00 2B 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 70 [10:49:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:49:47]wFMCommunicate OK [10:49:47]SAM_PROTO_GetShiftState done [10:49:47]FM_GetShiftState done [10:49:47]opened in 1718670284 [10:49:47]opened+sec_in_day 1718756684 [10:49:47]quantity*price = 100064 [10:49:47]sum+1 = 100066 [10:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 18.06.2024 10:49 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103366 ФПД: 271081219586527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104954&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103366&fm=271081219586527&tin=02508201610067®Number=0000000000092785&sum=100000 [10:49:48]StoreToDocumentArchive [10:49:48]shift 352 fd 103366 [10:49:48]save to /storage/0352/doc_00103366 [10:49:48]save last doc name /storage/0352/doc_00103366 to /storage/kkm_last_doc_name [10:49:48]save OK [10:49:48]Clear old archive folders... [10:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:48]tlvbuf is 01394B40 [10:49:48]SAM_PROTO_ClearQueue [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 09 00 00 [10:49:48]Write to MH i2c: E2 08 00 38 47 80 09 00 00 00 00 00 00 F1 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 38 47 00 90 00 F3 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_ClearQueue done [10:49:49]KKMCreateOFDPacket [10:49:49]OFDProtocolAddRootSTLVToBuf [10:49:49]FM_MakeSignedData [10:49:49]FM_MakeSignedData [10:49:49]SAM_PROTO_SignData [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 01 02 [10:49:49]Write to MH i2c: E2 08 00 39 47 80 0D 01 02 00 00 00 00 F9 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=255 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 93 01 00 35 04 06 00 F6 [10:49:49]Write to MH i2c: E2 02 01 3A 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 93 01 00 35 04 06 00 F6 00 00 75 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=10 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 02 02 05 8C 03 CC 79 DF [10:49:49]Write to MH i2c: E2 0D 00 3B 47 80 0D 02 02 05 00 8C 03 CC 79 DF 00 00 B9 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [10:49:49]RAPDU: 90 00 [10:49:49]wFMCommunicate OK [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 0D 03 02 [10:49:49]Write to MH i2c: E2 08 00 3C 47 80 0D 03 02 00 00 00 00 FE [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0B 00 3C 47 00 C2 A5 8A C5 DD 77 96 B5 90 00 54 [10:49:49]RAPDU: C2 A5 8A C5 DD 77 96 B5 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_SignData done [10:49:49]FM_MakeSignedData done [10:49:49]CreateOFDProtocolMessage [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 11 00 00 [10:49:49]Write to MH i2c: E2 08 00 3D 47 80 11 00 00 00 00 00 00 FE [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 3D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [10:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:49:49]wFMCommunicate OK [10:49:49]CreateOFDProtocolMessage done [10:49:49]OFDSenderStorePacket 103366 [10:49:49]StoreOFDPacket docnum=103366 [10:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 52 70 07 01 86 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 93 01 00 35 04 06 00 F6 8C 03 CC 79 DF C2 A5 8A C5 DD 77 96 B5 [10:49:49]CheckFolder [10:49:49]dirname=/storage/ofd_packets [10:49:49]CheckFolder done [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00103366 [10:49:49]NVStorageSaveData ofd_packets/00103366 [10:49:49]File name is /storage/ofd_packets/00103366 [10:49:49]Write 301 bytes [10:49:49]NVStorageSaveData done [10:49:49]OFDSenderStorePacket done [10:49:49]KKMCreateOFDPacket done [10:49:49]NVStorageSaveData kkm_last_timestamp [10:49:49]File name is /storage/kkm_last_timestamp [10:49:49]Write 4 bytes [10:49:49]NVStorageSaveData done [10:49:49]ExternCall_PrintAddStr [10:49:49]wPrintStart [10:49:49]Write to MH i2c: 01 00 00 3E 47 85 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 3E 47 00 00 00 00 00 FF 0F 9A [10:49:49]RasterBufferAndPrint [10:49:49]line Счет N : (1)672523 [10:49:49]line ИНН: 02508201610067 [10:49:49]line Контрольно-Кассовый Чек [10:49:49]line ПРОДАЖА [10:49:49]line ТРК (МРК, ГНК) : 32 [10:49:49]line Товар: 2710124130 [10:49:49]line Аи-92-К-5 [10:49:49]line 15.070 * 66.40 [10:49:49]line = 1000.65 [10:49:49]line НДС 12% НСП 1% [10:49:49]line > о реализуемом товаре [10:49:49]line ОКРУГЛЕНИЕ: -0.65 [10:49:49]line ИТОГО: 1000.00 [10:49:49]line Внесено: 1000.00 [10:49:49]line СДАЧА: 0.00 [10:49:49]line НСП 1% : 8.85 [10:49:49]line НДС 12% : 106.26 [10:49:49]line Наличными: 1000.00 [10:49:49]line Безнал.: 0.00 [10:49:49]line Место: АЗС № 120 "Партнер Нефть" [10:49:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:49:49]line СНО: Общий режим [10:49:49]line Чек 50 18.06.2024 10:49 [10:49:49]line Смена: 352 ФФД: 1.0 [10:49:49]line ЗНМ: 0300000164 [10:49:49]line РНМ: 0000000000092785 [10:49:49]line Версия ККМ: 001 [10:49:49]line ФМ: 0000000000875093 [10:49:49]line ФД: 103366 [10:49:49]line ФПД: 271081219586527 [10:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104954&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103366&fm=271081219586527&tin=02508201610067®Number=0000000000092785&sum=100000 [10:49:49]OFD Sender: Processing packet 103366 [packets to send 17, broken 16] [10:49:49]ProducePacketName [10:49:49]name=ofd_packets/00103366 [10:49:49]OFD Sender: To server: pG, [10:49:49]CommunicateWithHost lk.salyk.kg:30040 [10:49:49]ConnectInit lk.salyk.kg [10:49:49]written 0, free lines is 4095 [10:49:49]Connected sock=10 [10:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 52 70 07 01 86 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 66 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 93 01 00 35 04 06 00 F6 8C 03 CC 79 DF C2 A5 8A C5 DD 77 96 B5 [10:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 4B 47 00 3B D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 93 01 00 F4 03 04 00 DE 0C 71 66 B6 04 01 00 00 A2 ED AB 35 29 1C F5 5B [10:49:50]CommunicateWithHost err = 0 [10:49:50]CheckOFDResponse [10:49:50]1017 (14) - 77093643461234 [10:49:50]1041 (16) - 0000000000875093 [10:49:50]1040 (4) - 103366 [10:49:50]1012 (4) - 18.06.2024 04:28 [10:49:50]1206 (1) - 0 [10:49:50]OFD Sender: Remove packet 103366 [10:49:50]ProducePacketName [10:49:50]name=ofd_packets/00103366 [10:49:50]NVStorageDeleteData [10:49:50]Write to MH i2c: 01 00 00 69 47 B0 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 69 47 00 00 00 00 00 E4 0C A7 [10:49:50]RasterBufferAndPrint [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]written 0, free lines is 3306 [10:49:50]MH_Cut [10:49:50]Write to MH i2c: D1 01 00 70 47 01 89 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 70 47 00 88 [10:49:50]Write to MH i2c: 01 00 00 71 47 B8 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]OFD Sender: No OFD packet to send [10:49:51]*** Cut start [10:49:51]*** Partial cut [10:49:51]*** CUTSNS_PIN = 1 [10:49:51]*** CUTSNS_PIN = 0 [10:49:51]*** Brake cut motor [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]*** Stop cut motor [10:49:51]*** Cut end [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 71 47 00 00 00 00 00 FF 0F CD [10:49:51]process_action close_receipt done [10:49:51]requested_data is exist [10:49:51]produce_requested_data [10:49:51]requested_item fm.sn is exist - process it [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 72 47 80 11 00 00 00 00 00 00 33 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 72 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:49:51]wFMCommunicate OK [10:49:51]requested_item fd.num is exist - process it [10:49:51]SAM_PROTO_GetFieldsCounters [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 00 00 [10:49:51]Write to MH i2c: E2 08 00 73 47 80 13 00 00 00 00 00 00 36 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 73 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:49:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetFieldsCounters done [10:49:51]requested_item shift.num is exist - process it [10:49:51]requested_item shift.opened is exist - process it [10:49:51]req_shift_opened [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 74 47 80 13 01 00 00 00 00 00 38 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 74 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [10:49:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]req_shift_opened done [10:49:51]requested_item shift.open_date is exist - process it [10:49:51]req_shift_open_date [10:49:51]req_shift_open_date done [10:49:51]produce_requested_data done [10:49:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:49:51]process_action_free close_receipt [10:49:51]json_value_free [10:49:51]json_value_free done [10:49:51]process_json_proto returns [10:49:51]Send response to host [10:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:49:51]free response buf [10:49:51]execute_script done [10:49:51]execute_script returns [10:49:51]free content buf [10:49:51]Sock 9.Close socket [10:49:51]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:54]accept exits with 7 [10:51:54]New connection [10:51:54]New thread 3067084132 created [10:51:54]Thread 3067227492 joined [10:51:54]Waiting for new connection... [10:51:54] Sock 7.Parse request [10:51:54]Sock 7.Check first char [10:51:54]Sock 7.First char is OK [10:51:54]request: POST /json_proto HTTP/1.0 [10:51:54]Method: POST [10:51:54]URL: /json_proto [10:51:54]Method is POST - this is cgi request [10:51:54]url: /json_proto [10:51:54]query_string will be loaded in cgi processing [10:51:54]execute_cgi json_proto POST (null) [10:51:54]execute_cgi path=json_proto method=POST [10:51:54]POST find Content-Length [10:51:54]Host: 172.17.38.133:8080 [10:51:54]Content-Length: 1157 [10:51:54]Content-Type: application/json [10:51:54] [10:51:54]POST finish read [10:51:54]Found Content-Length = 1157 [10:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672522\u000A18.06.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 41.530 x 66.40\u000A\u0418\u0422\u041E\u0413: 2757.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:54]execute_script... [10:51:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672522\u000A18.06.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 41.530 x 66.40\u000A\u0418\u0422\u041E\u0413: 2757.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:54]POST & json_proto [10:51:54]process_json_proto [10:51:54]json parsed OK: [10:51:54]protocol is kg_v1.0 [10:51:54]action value=print_text [10:51:54]process_action print_text [10:51:54]cmd_print_text [10:51:54]ExternCall_PrintAddStr [10:51:54]wPrintStart [10:51:54]Write to MH i2c: 01 00 00 75 47 BC [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 75 47 00 00 00 00 00 FF 0F D1 [10:51:54]RasterBufferAndPrint [10:51:54]line *****ТОВАРНЫЙ ЧЕК***** [10:51:54]line АЗС 120 [10:51:54]line Партнер нефть [10:51:54]line 02508201610067 [10:51:54]line Кассир : Асанбаев Н. [10:51:54]line Счет N : (1)672522 [10:51:54]line 18.06.2024 10:29 [10:51:54]line ПРОДАЖА [10:51:54]line ТРК (МРК, ГНК): 42 [10:51:54]line Вид ГСМ : 2710124130 [10:51:54]line Аи-92-К-5 [10:51:54]line 41.530 x 66.40 [10:51:54]line ИТОГ: 2757.59 [10:51:54]line Тип оплаты: Талоны: ТК ГПНА Online [10:51:54]line 30101572 [10:51:54]line ______________________ [10:51:54]line (подпись) [10:51:54]written 0, free lines is 4095 [10:51:54]Write to MH i2c: 01 00 00 89 47 D0 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 89 47 00 00 00 00 00 11 0E F6 [10:51:54]RasterBufferAndPrint [10:51:54]line [10:51:54]line [10:51:54]line [10:51:54]line [10:51:54]line [10:51:54]written 0, free lines is 3603 [10:51:54]MH_Cut [10:51:54]Write to MH i2c: D1 01 00 90 47 01 A9 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: D1 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: D1 01 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: D1 01 00 90 47 00 A8 [10:51:54]Write to MH i2c: 01 00 00 91 47 D8 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:55]*** Cut start [10:51:55]*** Partial cut [10:51:55]*** CUTSNS_PIN = 1 [10:51:55]*** CUTSNS_PIN = 0 [10:51:55]*** Brake cut motor [10:51:55]OFD Sender: No OFD packet to send [10:51:55]Read from MH i2c: 01 [10:51:55]MH_I2C_Read... [10:51:55]*** Stop cut motor [10:51:55]*** Cut end [10:51:55]Read from MH i2c: 01 07 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 07 00 91 47 00 00 00 00 00 FF 0F ED [10:51:55]process_action print_text done [10:51:55]requested_data is exist [10:51:55]produce_requested_data [10:51:55]requested_item fm.sn is exist - process it [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 11 00 00 [10:51:55]Write to MH i2c: E2 08 00 92 47 80 11 00 00 00 00 00 00 53 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:56]Read from MH i2c: E2 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 17 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 17 00 92 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [10:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:51:56]wFMCommunicate OK [10:51:56]requested_item fd.num is exist - process it [10:51:56]SAM_PROTO_GetFieldsCounters [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 13 00 00 [10:51:56]Write to MH i2c: E2 08 00 93 47 80 13 00 00 00 00 00 00 56 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:56]Read from MH i2c: E2 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 62 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 62 00 93 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [10:51: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:56]wFMCommunicate OK [10:51:56]SAM_PROTO_GetFieldsCounters done [10:51:56]requested_item shift.num is exist - process it [10:51:56]requested_item shift.opened is exist - process it [10:51:56]req_shift_opened [10:51:56]FM_GetShiftState [10:51:56]SAM_PROTO_GetShiftState [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 13 01 00 [10:51:56]Write to MH i2c: E2 08 00 94 47 80 13 01 00 00 00 00 00 58 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:56]Read from MH i2c: E2 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 0E 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 0E 00 94 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D9 [10:51:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:51:56]wFMCommunicate OK [10:51:56]SAM_PROTO_GetShiftState done [10:51:56]FM_GetShiftState done [10:51:56]req_shift_opened done [10:51:56]requested_item shift.open_date is exist - process it [10:51:56]req_shift_open_date [10:51:56]req_shift_open_date done [10:51:56]produce_requested_data done [10:51:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:51:56]process_action_free print_text [10:51:56]json_value_free [10:51:56]json_value_free done [10:51:56]process_json_proto returns [10:51:56]Send response to host [10:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:51:56]free response buf [10:51:56]execute_script done [10:51:56]execute_script returns [10:51:56]free content buf [10:51:56]Sock 7.Close socket [10:51:56]Sock 7.Thread stoped [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:54:58]accept exits with 9 [10:54:58]New connection [10:54:58]New thread 3067227492 created [10:54:58]Thread 3067084132 joined [10:54:58]Waiting for new connection... [10:54:58] Sock 9.Parse request [10:54:58]Sock 9.Check first char [10:54:58]Sock 9.First char is OK [10:54:58]request: POST /json_proto HTTP/1.0 [10:54:58]Method: POST [10:54:58]URL: /json_proto [10:54:58]Method is POST - this is cgi request [10:54:58]url: /json_proto [10:54:58]query_string will be loaded in cgi processing [10:54:58]execute_cgi json_proto POST (null) [10:54:58]execute_cgi path=json_proto method=POST [10:54:58]POST find Content-Length [10:54:58]Host: 172.17.38.133:8080 [10:54:58]Content-Length: 1200 [10:54:58]Content-Type: application/json [10:54:58] [10:54:58]POST finish read [10:54:58]Found Content-Length = 1200 [10:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672524\u000A18.06.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:58]execute_script... [10:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672524\u000A18.06.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:58]POST & json_proto [10:54:58]process_json_proto [10:54:58]json parsed OK: [10:54:58]protocol is kg_v1.0 [10:54:58]action value=print_text [10:54:58]process_action print_text [10:54:58]cmd_print_text [10:54:58]ExternCall_PrintAddStr [10:54:58]wPrintStart [10:54:58]Write to MH i2c: 01 00 00 95 47 DC [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 95 47 00 00 00 00 00 FF 0F F1 [10:54:58]RasterBufferAndPrint [10:54:58]line *****ТОВАРНЫЙ ЧЕК***** [10:54:58]line АЗС 120 [10:54:58]line Партнер нефть [10:54:58]line 02508201610067 [10:54:58]line Кассир : Асанбаев Н. [10:54:58]line Счет N : (1)672524 [10:54:58]line 18.06.2024 10:32 [10:54:58]line ПРОДАЖА [10:54:58]line ТРК (МРК, ГНК): 21 [10:54:58]line Вид ГСМ : 2710194210 [10:54:58]line ДТ(л)-К-5 [10:54:58]line 50.000 x 72.90 [10:54:58]line ИТОГ: 3645.00 [10:54:58]line Тип оплаты: Талоны: Топливная Карта [10:54:58]line 24058 [10:54:58]line ______________________ [10:54:58]line (подпись) [10:54:58]written 0, free lines is 4095 [10:54:58]Write to MH i2c: 01 00 00 A9 47 F0 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 A9 47 00 00 00 00 00 11 0E 16 [10:54:58]RasterBufferAndPrint [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]written 0, free lines is 3603 [10:54:58]MH_Cut [10:54:58]Write to MH i2c: D1 01 00 B0 47 01 C9 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 01 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 01 00 B0 47 00 C8 [10:54:58]Write to MH i2c: 01 00 00 B1 47 F8 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:59]*** Cut start [10:54:59]*** Partial cut [10:54:59]*** CUTSNS_PIN = 1 [10:54:59]*** CUTSNS_PIN = 0 [10:54:59]*** Brake cut motor [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]*** Stop cut motor [10:55:00]*** Cut end [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 B1 47 00 00 00 00 00 FF 0F 0D [10:55:00]process_action print_text done [10:55:00]requested_data is exist [10:55:00]produce_requested_data [10:55:00]requested_item fm.sn is exist - process it [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 B2 47 80 11 00 00 00 00 00 00 73 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 B2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:55:00]wFMCommunicate OK [10:55:00]requested_item fd.num is exist - process it [10:55:00]SAM_PROTO_GetFieldsCounters [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 00 00 [10:55:00]Write to MH i2c: E2 08 00 B3 47 80 13 00 00 00 00 00 00 76 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 B3 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetFieldsCounters done [10:55:00]requested_item shift.num is exist - process it [10:55:00]requested_item shift.opened is exist - process it [10:55:00]req_shift_opened [10:55:00]FM_GetShiftState [10:55:00]SAM_PROTO_GetShiftState [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 01 00 [10:55:00]Write to MH i2c: E2 08 00 B4 47 80 13 01 00 00 00 00 00 78 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 B4 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F9 [10:55:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetShiftState done [10:55:00]FM_GetShiftState done [10:55:00]req_shift_opened done [10:55:00]requested_item shift.open_date is exist - process it [10:55:00]req_shift_open_date [10:55:00]req_shift_open_date done [10:55:00]produce_requested_data done [10:55:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:55:00]process_action_free print_text [10:55:00]json_value_free [10:55:00]json_value_free done [10:55:00]process_json_proto returns [10:55:00]Send response to host [10:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103366,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:55:00]free response buf [10:55:00]execute_script done [10:55:00]execute_script returns [10:55:00]free content buf [10:55:00]Sock 9.Close socket [10:55:00]Sock 9.Thread stoped [10:55:00]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:30]accept exits with 7 [10:59:30]New connection [10:59:30]New thread 3067084132 created [10:59:30]Thread 3067227492 joined [10:59:30]Waiting for new connection... [10:59:30] Sock 7.Parse request [10:59:30]Sock 7.Check first char [10:59:30]Sock 7.First char is OK [10:59:30]request: POST /json_proto HTTP/1.0 [10:59:30]Method: POST [10:59:30]URL: /json_proto [10:59:30]Method is POST - this is cgi request [10:59:30]url: /json_proto [10:59:30]query_string will be loaded in cgi processing [10:59:30]execute_cgi json_proto POST (null) [10:59:30]execute_cgi path=json_proto method=POST [10:59:30]POST find Content-Length [10:59:30]Host: 172.17.38.133:8080 [10:59:30]Content-Length: 682 [10:59:30]Content-Type: application/json [10:59:30] [10:59:30]POST finish read [10:59:30]Found Content-Length = 682 [10:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:30]execute_script... [10:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:30]POST & json_proto [10:59:30]process_json_proto [10:59:30]json parsed OK: [10:59:30]protocol is kg_v1.0 [10:59:30]action value=close_receipt [10:59:30]process_action close_receipt [10:59:30]cmd_close_receipt [10:59:30]MH_GetDate [10:59:30]Write to MH i2c: F0 00 00 B5 47 EB [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: F0 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: F0 09 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: F0 09 00 B5 47 00 99 68 71 66 BD 8F 7C 64 F8 [10:59:30]GetLastDocTimeStamp 1718707794 [10:59:30]current date 1718708377 [10:59:30]FM_GetShiftState [10:59:30]SAM_PROTO_GetShiftState [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 13 01 00 [10:59:30]Write to MH i2c: E2 08 00 B6 47 80 13 01 00 00 00 00 00 7A [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 0E 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 0E 00 B6 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FB [10:59:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:59:30]wFMCommunicate OK [10:59:30]SAM_PROTO_GetShiftState done [10:59:30]FM_GetShiftState done [10:59:30]opened in 1718670284 [10:59:30]opened+sec_in_day 1718756684 [10:59:30]quantity*price = 100064 [10:59:30]sum+1 = 100066 [10:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 51 18.06.2024 10:59 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103367 ФПД: 194901407698952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T105937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103367&fm=194901407698952&tin=02508201610067®Number=0000000000092785&sum=100000 [10:59:32]StoreToDocumentArchive [10:59:32]shift 352 fd 103367 [10:59:32]save to /storage/0352/doc_00103367 [10:59:32]save last doc name /storage/0352/doc_00103367 to /storage/kkm_last_doc_name [10:59:32]save OK [10:59:32]Clear old archive folders... [10:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:32]tlvbuf is 0132D170 [10:59:32]SAM_PROTO_ClearQueue [10:59:32]wFMCommunicate request_size=4 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 09 00 00 [10:59:32]Write to MH i2c: E2 08 00 C3 47 80 09 00 00 00 00 00 00 7C [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 C3 47 00 90 00 7E [10:59:32]RAPDU: 90 00 [10:59:32]wFMCommunicate OK [10:59:32]SAM_PROTO_ClearQueue done [10:59:32]KKMCreateOFDPacket [10:59:32]OFDProtocolAddRootSTLVToBuf [10:59:32]FM_MakeSignedData [10:59:32]FM_MakeSignedData [10:59:32]SAM_PROTO_SignData [10:59:32]wFMCommunicate request_size=4 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 0D 01 02 [10:59:32]Write to MH i2c: E2 08 00 C4 47 80 0D 01 02 00 00 00 00 84 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 C4 47 00 90 00 7F [10:59:32]RAPDU: 90 00 [10:59:32]wFMCommunicate OK [10:59:32]wFMCommunicate request_size=255 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 99 68 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 93 01 00 35 04 06 00 B1 [10:59:32]Write to MH i2c: E2 02 01 C5 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 99 68 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 93 01 00 35 04 06 00 B1 00 00 06 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 C5 47 00 90 00 80 [10:59:32]RAPDU: 90 00 [10:59:32]wFMCommunicate OK [10:59:32]wFMCommunicate request_size=10 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 0D 02 02 05 43 05 2C 10 08 [10:59:32]Write to MH i2c: E2 0D 00 C6 47 80 0D 02 02 05 00 43 05 2C 10 08 00 00 1D [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 03 00 C6 47 00 90 00 81 [10:59:32]RAPDU: 90 00 [10:59:32]wFMCommunicate OK [10:59:32]wFMCommunicate request_size=4 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 0D 03 02 [10:59:32]Write to MH i2c: E2 08 00 C7 47 80 0D 03 02 00 00 00 00 89 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 0B 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 0B 00 C7 47 00 4C 4A 0E 1B E4 1B B0 40 90 00 38 [10:59:32]RAPDU: 4C 4A 0E 1B E4 1B B0 40 90 00 [10:59:32]wFMCommunicate OK [10:59:32]SAM_PROTO_SignData done [10:59:32]FM_MakeSignedData done [10:59:32]CreateOFDProtocolMessage [10:59:32]wFMCommunicate request_size=4 [10:59:32]MH_SAM_APDU [10:59:32]CAPDU: 80 11 00 00 [10:59:32]Write to MH i2c: E2 08 00 C8 47 80 11 00 00 00 00 00 00 89 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:32]Read from MH i2c: E2 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 17 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: E2 17 00 C8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [10:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:32]wFMCommunicate OK [10:59:32]CreateOFDProtocolMessage done [10:59:32]OFDSenderStorePacket 103367 [10:59:32]StoreOFDPacket docnum=103367 [10:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 8A 07 01 88 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 99 68 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 93 01 00 35 04 06 00 B1 43 05 2C 10 08 4C 4A 0E 1B E4 1B B0 40 [10:59:32]CheckFolder [10:59:32]dirname=/storage/ofd_packets [10:59:32]CheckFolder done [10:59:32]ProducePacketName [10:59:32]name=ofd_packets/00103367 [10:59:32]NVStorageSaveData ofd_packets/00103367 [10:59:32]File name is /storage/ofd_packets/00103367 [10:59:32]Write 301 bytes [10:59:32]NVStorageSaveData done [10:59:32]OFDSenderStorePacket done [10:59:32]KKMCreateOFDPacket done [10:59:32]NVStorageSaveData kkm_last_timestamp [10:59:32]File name is /storage/kkm_last_timestamp [10:59:32]Write 4 bytes [10:59:32]NVStorageSaveData done [10:59:32]ExternCall_PrintAddStr [10:59:32]wPrintStart [10:59:32]Write to MH i2c: 01 00 00 C9 47 10 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 C9 47 00 00 00 00 00 FF 0F 25 [10:59:32]RasterBufferAndPrint [10:59:32]line Счет N : (1)672526 [10:59:32]line ИНН: 02508201610067 [10:59:32]line Контрольно-Кассовый Чек [10:59:32]line ПРОДАЖА [10:59:32]line ТРК (МРК, ГНК) : 32 [10:59:32]line Товар: 2710124130 [10:59:32]line Аи-92-К-5 [10:59:32]line 15.070 * 66.40 [10:59:32]line = 1000.65 [10:59:32]line НДС 12% НСП 1% [10:59:32]line > о реализуемом товаре [10:59:32]line ОКРУГЛЕНИЕ: -0.65 [10:59:32]line ИТОГО: 1000.00 [10:59:32]line Внесено: 1000.00 [10:59:32]line СДАЧА: 0.00 [10:59:32]line НСП 1% : 8.85 [10:59:32]line НДС 12% : 106.26 [10:59:32]line Наличными: 1000.00 [10:59:32]line Безнал.: 0.00 [10:59:32]line Место: АЗС № 120 "Партнер Нефть" [10:59:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:59:32]line СНО: Общий режим [10:59:32]line Чек 51 18.06.2024 10:59 [10:59:32]line Смена: 352 ФФД: 1.0 [10:59:32]line ЗНМ: 0300000164 [10:59:32]line РНМ: 0000000000092785 [10:59:32]line Версия ККМ: 001 [10:59:32]line ФМ: 0000000000875093 [10:59:32]line ФД: 103367 [10:59:32]line ФПД: 194901407698952 [10:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T105937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103367&fm=194901407698952&tin=02508201610067®Number=0000000000092785&sum=100000 [10:59:32]OFD Sender: Processing packet 103367 [packets to send 17, broken 16] [10:59:32]ProducePacketName [10:59:32]name=ofd_packets/00103367 [10:59:32]OFD Sender: To server: pG, [10:59:32]CommunicateWithHost lk.salyk.kg:30040 [10:59:32]ConnectInit lk.salyk.kg [10:59:32]written 0, free lines is 4095 [10:59:33]Connected sock=10 [10:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 8A 07 01 88 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 99 68 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 93 01 00 35 04 06 00 B1 43 05 2C 10 08 4C 4A 0E 1B E4 1B B0 40 [10:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C7 E9 47 00 73 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 35 30 39 33 10 04 04 00 C7 93 01 00 F4 03 04 00 25 0F 71 66 B6 04 01 00 00 8D CB C7 1D 34 0A 6C 1D [10:59:33]CommunicateWithHost err = 0 [10:59:33]CheckOFDResponse [10:59:33]1017 (14) - 77093643461234 [10:59:33]1041 (16) - 0000000000875093 [10:59:33]1040 (4) - 103367 [10:59:33]1012 (4) - 18.06.2024 04:37 [10:59:33]1206 (1) - 0 [10:59:33]OFD Sender: Remove packet 103367 [10:59:33]ProducePacketName [10:59:33]name=ofd_packets/00103367 [10:59:33]NVStorageDeleteData [10:59:33]Write to MH i2c: 01 00 00 F4 47 3B [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: 01 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: 01 07 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: 01 07 00 F4 47 00 00 00 00 00 E5 0C 33 [10:59:33]RasterBufferAndPrint [10:59:33]line [10:59:33]line [10:59:33]line [10:59:33]line [10:59:33]line [10:59:33]written 0, free lines is 3307 [10:59:33]MH_Cut [10:59:33]Write to MH i2c: D1 01 00 FB 47 01 14 [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: D1 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: D1 01 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: D1 01 00 FB 47 00 13 [10:59:33]Write to MH i2c: 01 00 00 FC 47 43 [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]OFD Sender: No OFD packet to send [10:59:34]*** Cut start [10:59:34]*** Partial cut [10:59:34]*** CUTSNS_PIN = 1 [10:59:34]*** CUTSNS_PIN = 0 [10:59:34]*** Brake cut motor [10:59:34]Read from MH i2c: 01 [10:59:34]MH_I2C_Read... [10:59:34]*** Stop cut motor [10:59:34]*** Cut end [10:59:34]Read from MH i2c: 01 07 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: 01 07 00 FC 47 00 00 00 00 00 FF 0F 58 [10:59:34]process_action close_receipt done [10:59:34]requested_data is exist [10:59:34]produce_requested_data [10:59:34]requested_item fm.sn is exist - process it [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 11 00 00 [10:59:34]Write to MH i2c: E2 08 00 FD 47 80 11 00 00 00 00 00 00 BE [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 17 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 17 00 FD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [10:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:34]wFMCommunicate OK [10:59:34]requested_item fd.num is exist - process it [10:59:34]SAM_PROTO_GetFieldsCounters [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 13 00 00 [10:59:34]Write to MH i2c: E2 08 00 FE 47 80 13 00 00 00 00 00 00 C1 [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 62 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 62 00 FE 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:34]wFMCommunicate OK [10:59:34]SAM_PROTO_GetFieldsCounters done [10:59:34]requested_item shift.num is exist - process it [10:59:34]requested_item shift.opened is exist - process it [10:59:34]req_shift_opened [10:59:34]FM_GetShiftState [10:59:34]SAM_PROTO_GetShiftState [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 13 01 00 [10:59:34]Write to MH i2c: E2 08 00 FF 47 80 13 01 00 00 00 00 00 C3 [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:35]Read from MH i2c: E2 [10:59:35]MH_I2C_Read... [10:59:35]Read from MH i2c: E2 0E 00 [10:59:35]MH_I2C_Read... [10:59:35]Read from MH i2c: E2 0E 00 FF 47 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 44 [10:59:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [10:59:35]wFMCommunicate OK [10:59:35]SAM_PROTO_GetShiftState done [10:59:35]FM_GetShiftState done [10:59:35]req_shift_opened done [10:59:35]requested_item shift.open_date is exist - process it [10:59:35]req_shift_open_date [10:59:35]req_shift_open_date done [10:59:35]produce_requested_data done [10:59:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103367,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [10:59:35]process_action_free close_receipt [10:59:35]json_value_free [10:59:35]json_value_free done [10:59:35]process_json_proto returns [10:59:35]Send response to host [10:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103367,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [10:59:35]free response buf [10:59:35]execute_script done [10:59:35]execute_script returns [10:59:35]free content buf [10:59:35]Sock 7.Close socket [10:59:35]Sock 7.Thread stoped [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:46]accept exits with 9 [11:04:46]New connection [11:04:46]New thread 3067227492 created [11:04:46]Thread 3067084132 joined [11:04:46]Waiting for new connection... [11:04:46] Sock 9.Parse request [11:04:46]Sock 9.Check first char [11:04:46]Sock 9.First char is OK [11:04:46]request: POST /json_proto HTTP/1.0 [11:04:46]Method: POST [11:04:46]URL: /json_proto [11:04:46]Method is POST - this is cgi request [11:04:46]url: /json_proto [11:04:46]query_string will be loaded in cgi processing [11:04:46]execute_cgi json_proto POST (null) [11:04:46]execute_cgi path=json_proto method=POST [11:04:46]POST find Content-Length [11:04:46]Host: 172.17.38.133:8080 [11:04:46]Content-Length: 682 [11:04:46]Content-Type: application/json [11:04:46] [11:04:46]POST finish read [11:04:46]Found Content-Length = 682 [11:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:04:46]execute_script... [11:04:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:04:46]POST & json_proto [11:04:46]process_json_proto [11:04:46]json parsed OK: [11:04:46]protocol is kg_v1.0 [11:04:46]action value=close_receipt [11:04:46]process_action close_receipt [11:04:46]cmd_close_receipt [11:04:46]MH_GetDate [11:04:46]Write to MH i2c: F0 00 00 00 48 37 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: F0 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: F0 09 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: F0 09 00 00 48 00 D4 69 71 66 BD 8F 7C 64 80 [11:04:46]GetLastDocTimeStamp 1718708377 [11:04:46]current date 1718708692 [11:04:46]FM_GetShiftState [11:04:46]SAM_PROTO_GetShiftState [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 13 01 00 [11:04:46]Write to MH i2c: E2 08 00 01 48 80 13 01 00 00 00 00 00 C6 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 0E 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 0E 00 01 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 47 [11:04:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:04:46]wFMCommunicate OK [11:04:46]SAM_PROTO_GetShiftState done [11:04:46]FM_GetShiftState done [11:04:46]opened in 1718670284 [11:04:46]opened+sec_in_day 1718756684 [11:04:46]quantity*price = 200063 [11:04:46]sum+1 = 200064 [11:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 18.06.2024 11:04 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103368 ФПД: 96128188853913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103368&fm=96128188853913&tin=02508201610067®Number=0000000000092785&sum=200000 [11:04:47]StoreToDocumentArchive [11:04:47]shift 352 fd 103368 [11:04:47]save to /storage/0352/doc_00103368 [11:04:47]save last doc name /storage/0352/doc_00103368 to /storage/kkm_last_doc_name [11:04:47]save OK [11:04:47]Clear old archive folders... [11:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:47]tlvbuf is 0145DEB0 [11:04:47]SAM_PROTO_ClearQueue [11:04:47]wFMCommunicate request_size=4 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 09 00 00 [11:04:47]Write to MH i2c: E2 08 00 0E 48 80 09 00 00 00 00 00 00 C8 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 0E 48 00 90 00 CA [11:04:47]RAPDU: 90 00 [11:04:47]wFMCommunicate OK [11:04:47]SAM_PROTO_ClearQueue done [11:04:47]KKMCreateOFDPacket [11:04:47]OFDProtocolAddRootSTLVToBuf [11:04:47]FM_MakeSignedData [11:04:47]FM_MakeSignedData [11:04:47]SAM_PROTO_SignData [11:04:47]wFMCommunicate request_size=4 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 0D 01 02 [11:04:47]Write to MH i2c: E2 08 00 0F 48 80 0D 01 02 00 00 00 00 D0 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 0F 48 00 90 00 CB [11:04:47]RAPDU: 90 00 [11:04:47]wFMCommunicate OK [11:04:47]wFMCommunicate request_size=255 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D4 69 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 93 01 00 35 04 06 00 57 [11:04:47]Write to MH i2c: E2 02 01 10 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D4 69 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 93 01 00 35 04 06 00 57 00 00 DB [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:48]Read from MH i2c: E2 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 03 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 03 00 10 48 00 90 00 CC [11:04:48]RAPDU: 90 00 [11:04:48]wFMCommunicate OK [11:04:48]wFMCommunicate request_size=10 [11:04:48]MH_SAM_APDU [11:04:48]CAPDU: 80 0D 02 02 05 6D 96 8C AE 99 [11:04:48]Write to MH i2c: E2 0D 00 11 48 80 0D 02 02 05 00 6D 96 8C AE 99 00 00 B3 [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:48]Read from MH i2c: E2 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 03 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 03 00 11 48 00 90 00 CD [11:04:48]RAPDU: 90 00 [11:04:48]wFMCommunicate OK [11:04:48]wFMCommunicate request_size=4 [11:04:48]MH_SAM_APDU [11:04:48]CAPDU: 80 0D 03 02 [11:04:48]Write to MH i2c: E2 08 00 12 48 80 0D 03 02 00 00 00 00 D5 [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:48]Read from MH i2c: E2 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 0B 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 0B 00 12 48 00 07 91 34 69 FE 87 2A 85 90 00 3F [11:04:48]RAPDU: 07 91 34 69 FE 87 2A 85 90 00 [11:04:48]wFMCommunicate OK [11:04:48]SAM_PROTO_SignData done [11:04:48]FM_MakeSignedData done [11:04:48]CreateOFDProtocolMessage [11:04:48]wFMCommunicate request_size=4 [11:04:48]MH_SAM_APDU [11:04:48]CAPDU: 80 11 00 00 [11:04:48]Write to MH i2c: E2 08 00 13 48 80 11 00 00 00 00 00 00 D5 [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:48]Read from MH i2c: E2 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 17 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: E2 17 00 13 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [11:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:04:48]wFMCommunicate OK [11:04:48]CreateOFDProtocolMessage done [11:04:48]OFDSenderStorePacket 103368 [11:04:48]StoreOFDPacket docnum=103368 [11:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 14 07 01 56 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D4 69 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 93 01 00 35 04 06 00 57 6D 96 8C AE 99 07 91 34 69 FE 87 2A 85 [11:04:48]CheckFolder [11:04:48]dirname=/storage/ofd_packets [11:04:48]CheckFolder done [11:04:48]ProducePacketName [11:04:48]name=ofd_packets/00103368 [11:04:48]NVStorageSaveData ofd_packets/00103368 [11:04:48]File name is /storage/ofd_packets/00103368 [11:04:48]Write 301 bytes [11:04:48]NVStorageSaveData done [11:04:48]OFDSenderStorePacket done [11:04:48]KKMCreateOFDPacket done [11:04:48]NVStorageSaveData kkm_last_timestamp [11:04:48]File name is /storage/kkm_last_timestamp [11:04:48]Write 4 bytes [11:04:48]NVStorageSaveData done [11:04:48]ExternCall_PrintAddStr [11:04:48]wPrintStart [11:04:48]Write to MH i2c: 01 00 00 14 48 5C [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 07 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 07 00 14 48 00 00 00 00 00 FF 0F 71 [11:04:48]RasterBufferAndPrint [11:04:48]line Счет N : (1)672528 [11:04:48]line ИНН: 02508201610067 [11:04:48]line Контрольно-Кассовый Чек [11:04:48]line ПРОДАЖА [11:04:48]line ТРК (МРК, ГНК) : 42 [11:04:48]line Товар: 2710124130 [11:04:48]line Аи-92-К-5 [11:04:48]line 30.130 * 66.40 [11:04:48]line = 2000.63 [11:04:48]line НДС 12% НСП 1% [11:04:48]line > о реализуемом товаре [11:04:48]line ОКРУГЛЕНИЕ: -0.63 [11:04:48]line ИТОГО: 2000.00 [11:04:48]line Внесено: 2000.00 [11:04:48]line СДАЧА: 0.00 [11:04:48]line НСП 1% : 17.70 [11:04:48]line НДС 12% : 212.46 [11:04:48]line Наличными: 2000.00 [11:04:48]line Безнал.: 0.00 [11:04:48]line Место: АЗС № 120 "Партнер Нефть" [11:04:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:04:48]line СНО: Общий режим [11:04:48]line Чек 52 18.06.2024 11:04 [11:04:48]line Смена: 352 ФФД: 1.0 [11:04:48]line ЗНМ: 0300000164 [11:04:48]line РНМ: 0000000000092785 [11:04:48]line Версия ККМ: 001 [11:04:48]line ФМ: 0000000000875093 [11:04:48]line ФД: 103368 [11:04:48]line ФПД: 96128188853913 [11:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103368&fm=96128188853913&tin=02508201610067®Number=0000000000092785&sum=200000 [11:04:48]OFD Sender: Processing packet 103368 [packets to send 17, broken 16] [11:04:48]ProducePacketName [11:04:48]name=ofd_packets/00103368 [11:04:48]OFD Sender: To server: pG, [11:04:48]CommunicateWithHost lk.salyk.kg:30040 [11:04:48]ConnectInit lk.salyk.kg [11:04:48]written 0, free lines is 4095 [11:04:48]Connected sock=10 [11:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 14 07 01 56 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D4 69 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 93 01 00 35 04 06 00 57 6D 96 8C AE 99 07 91 34 69 FE 87 2A 85 [11:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0B 19 47 00 20 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 93 01 00 F4 03 04 00 61 10 71 66 B6 04 01 00 00 5C 49 5D FF DF 87 AE 76 [11:04:48]CommunicateWithHost err = 0 [11:04:48]CheckOFDResponse [11:04:48]1017 (14) - 77093643461234 [11:04:48]1041 (16) - 0000000000875093 [11:04:48]1040 (4) - 103368 [11:04:48]1012 (4) - 18.06.2024 04:43 [11:04:48]1206 (1) - 0 [11:04:48]OFD Sender: Remove packet 103368 [11:04:48]ProducePacketName [11:04:48]name=ofd_packets/00103368 [11:04:48]NVStorageDeleteData [11:04:49]Write to MH i2c: 01 00 00 3F 48 87 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 3F 48 00 00 00 00 00 E5 0C 7F [11:04:49]RasterBufferAndPrint [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]written 0, free lines is 3310 [11:04:49]MH_Cut [11:04:49]Write to MH i2c: D1 01 00 46 48 01 60 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: D1 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: D1 01 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: D1 01 00 46 48 00 5F [11:04:49]Write to MH i2c: 01 00 00 47 48 8F [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]OFD Sender: No OFD packet to send [11:04:49]*** Cut start [11:04:49]*** Partial cut [11:04:49]*** CUTSNS_PIN = 1 [11:04:49]*** CUTSNS_PIN = 0 [11:04:50]*** Brake cut motor [11:04:50]Read from MH i2c: 01 [11:04:50]MH_I2C_Read... [11:04:50]*** Stop cut motor [11:04:50]*** Cut end [11:04:50]Read from MH i2c: 01 07 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: 01 07 00 47 48 00 00 00 00 00 FF 0F A4 [11:04:50]process_action close_receipt done [11:04:50]requested_data is exist [11:04:50]produce_requested_data [11:04:50]requested_item fm.sn is exist - process it [11:04:50]wFMCommunicate request_size=4 [11:04:50]MH_SAM_APDU [11:04:50]CAPDU: 80 11 00 00 [11:04:50]Write to MH i2c: E2 08 00 48 48 80 11 00 00 00 00 00 00 0A [11:04:50]Write i2c OK [11:04:50]MH_I2C_Read... [11:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:50]Read from MH i2c: E2 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 17 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 17 00 48 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [11:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:04:50]wFMCommunicate OK [11:04:50]requested_item fd.num is exist - process it [11:04:50]SAM_PROTO_GetFieldsCounters [11:04:50]wFMCommunicate request_size=4 [11:04:50]MH_SAM_APDU [11:04:50]CAPDU: 80 13 00 00 [11:04:50]Write to MH i2c: E2 08 00 49 48 80 13 00 00 00 00 00 00 0D [11:04:50]Write i2c OK [11:04:50]MH_I2C_Read... [11:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:50]Read from MH i2c: E2 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 62 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 62 00 49 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:50]wFMCommunicate OK [11:04:50]SAM_PROTO_GetFieldsCounters done [11:04:50]requested_item shift.num is exist - process it [11:04:50]requested_item shift.opened is exist - process it [11:04:50]req_shift_opened [11:04:50]FM_GetShiftState [11:04:50]SAM_PROTO_GetShiftState [11:04:50]wFMCommunicate request_size=4 [11:04:50]MH_SAM_APDU [11:04:50]CAPDU: 80 13 01 00 [11:04:50]Write to MH i2c: E2 08 00 4A 48 80 13 01 00 00 00 00 00 0F [11:04:50]Write i2c OK [11:04:50]MH_I2C_Read... [11:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:50]Read from MH i2c: E2 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 0E 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 0E 00 4A 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 90 [11:04:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:04:50]wFMCommunicate OK [11:04:50]SAM_PROTO_GetShiftState done [11:04:50]FM_GetShiftState done [11:04:50]req_shift_opened done [11:04:50]requested_item shift.open_date is exist - process it [11:04:50]req_shift_open_date [11:04:50]req_shift_open_date done [11:04:50]produce_requested_data done [11:04:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103368,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:04:50]process_action_free close_receipt [11:04:50]json_value_free [11:04:50]json_value_free done [11:04:50]process_json_proto returns [11:04:50]Send response to host [11:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103368,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:04:50]free response buf [11:04:50]execute_script done [11:04:50]execute_script returns [11:04:50]free content buf [11:04:50]Sock 9.Close socket [11:04:50]Sock 9.Thread stoped [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]accept exits with 7 [11:06:39]New connection [11:06:39]New thread 3067084132 created [11:06:39]Thread 3067227492 joined [11:06:39]Waiting for new connection... [11:06:39] Sock 7.Parse request [11:06:39]Sock 7.Check first char [11:06:39]Sock 7.First char is OK [11:06:39]request: POST /json_proto HTTP/1.0 [11:06:39]Method: POST [11:06:39]URL: /json_proto [11:06:39]Method is POST - this is cgi request [11:06:39]url: /json_proto [11:06:39]query_string will be loaded in cgi processing [11:06:39]execute_cgi json_proto POST (null) [11:06:39]execute_cgi path=json_proto method=POST [11:06:39]POST find Content-Length [11:06:39]Host: 172.17.38.133:8080 [11:06:39]Content-Length: 682 [11:06:39]Content-Type: application/json [11:06:39] [11:06:39]POST finish read [11:06:39]Found Content-Length = 682 [11:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [11:06:39]execute_script... [11:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [11:06:39]POST & json_proto [11:06:39]process_json_proto [11:06:39]json parsed OK: [11:06:39]protocol is kg_v1.0 [11:06:39]action value=close_receipt [11:06:39]process_action close_receipt [11:06:39]cmd_close_receipt [11:06:39]MH_GetDate [11:06:39]Write to MH i2c: F0 00 00 4B 48 82 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: F0 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: F0 09 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: F0 09 00 4B 48 00 45 6A 71 66 BD 8F 7C 64 3D [11:06:39]GetLastDocTimeStamp 1718708692 [11:06:39]current date 1718708805 [11:06:39]FM_GetShiftState [11:06:39]SAM_PROTO_GetShiftState [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 13 01 00 [11:06:39]Write to MH i2c: E2 08 00 4C 48 80 13 01 00 00 00 00 00 11 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0E 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0E 00 4C 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 92 [11:06:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_GetShiftState done [11:06:39]FM_GetShiftState done [11:06:39]opened in 1718670284 [11:06:39]opened+sec_in_day 1718756684 [11:06:39]quantity*price = 150017 [11:06:39]sum+1 = 150018 [11:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 53 18.06.2024 11:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103369 ФПД: 44034290170023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103369&fm=44034290170023&tin=02508201610067®Number=0000000000092785&sum=150000 [11:06:40]StoreToDocumentArchive [11:06:40]shift 352 fd 103369 [11:06:40]save to /storage/0352/doc_00103369 [11:06:40]save last doc name /storage/0352/doc_00103369 to /storage/kkm_last_doc_name [11:06:40]save OK [11:06:40]Clear old archive folders... [11:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:40]tlvbuf is 014164E0 [11:06:40]SAM_PROTO_ClearQueue [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 09 00 00 [11:06:40]Write to MH i2c: E2 08 00 59 48 80 09 00 00 00 00 00 00 13 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 59 48 00 90 00 15 [11:06:40]RAPDU: 90 00 [11:06:40]wFMCommunicate OK [11:06:40]SAM_PROTO_ClearQueue done [11:06:40]KKMCreateOFDPacket [11:06:40]OFDProtocolAddRootSTLVToBuf [11:06:40]FM_MakeSignedData [11:06:40]FM_MakeSignedData [11:06:40]SAM_PROTO_SignData [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 0D 01 02 [11:06:40]Write to MH i2c: E2 08 00 5A 48 80 0D 01 02 00 00 00 00 1B [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 5A 48 00 90 00 16 [11:06:40]RAPDU: 90 00 [11:06:40]wFMCommunicate OK [11:06:40]wFMCommunicate request_size=255 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 35 00 00 00 F4 03 04 00 45 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 93 01 00 35 04 06 00 28 [11:06:40]Write to MH i2c: E2 02 01 5B 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 35 00 00 00 F4 03 04 00 45 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 93 01 00 35 04 06 00 28 00 00 D6 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 5B 48 00 90 00 17 [11:06:40]RAPDU: 90 00 [11:06:40]wFMCommunicate OK [11:06:40]wFMCommunicate request_size=10 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 0D 02 02 05 0C 88 39 38 A7 [11:06:40]Write to MH i2c: E2 0D 00 5C 48 80 0D 02 02 05 00 0C 88 39 38 A7 00 00 D4 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 03 00 5C 48 00 90 00 18 [11:06:40]RAPDU: 90 00 [11:06:40]wFMCommunicate OK [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 0D 03 02 [11:06:40]Write to MH i2c: E2 08 00 5D 48 80 0D 03 02 00 00 00 00 20 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0B 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0B 00 5D 48 00 02 78 1B C5 EE 63 77 E5 90 00 28 [11:06:40]RAPDU: 02 78 1B C5 EE 63 77 E5 90 00 [11:06:40]wFMCommunicate OK [11:06:40]SAM_PROTO_SignData done [11:06:40]FM_MakeSignedData done [11:06:40]CreateOFDProtocolMessage [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 11 00 00 [11:06:40]Write to MH i2c: E2 08 00 5E 48 80 11 00 00 00 00 00 00 20 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 17 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 17 00 5E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [11:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:40]wFMCommunicate OK [11:06:40]CreateOFDProtocolMessage done [11:06:40]OFDSenderStorePacket 103369 [11:06:40]StoreOFDPacket docnum=103369 [11:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E5 98 07 01 E5 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 35 00 00 00 F4 03 04 00 45 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 93 01 00 35 04 06 00 28 0C 88 39 38 A7 02 78 1B C5 EE 63 77 E5 [11:06:40]CheckFolder [11:06:40]dirname=/storage/ofd_packets [11:06:40]CheckFolder done [11:06:40]ProducePacketName [11:06:40]name=ofd_packets/00103369 [11:06:40]NVStorageSaveData ofd_packets/00103369 [11:06:40]File name is /storage/ofd_packets/00103369 [11:06:40]Write 301 bytes [11:06:40]NVStorageSaveData done [11:06:40]OFDSenderStorePacket done [11:06:40]KKMCreateOFDPacket done [11:06:40]NVStorageSaveData kkm_last_timestamp [11:06:40]File name is /storage/kkm_last_timestamp [11:06:40]Write 4 bytes [11:06:40]NVStorageSaveData done [11:06:40]ExternCall_PrintAddStr [11:06:40]wPrintStart [11:06:40]Write to MH i2c: 01 00 00 5F 48 A7 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 5F 48 00 00 00 00 00 FF 0F BC [11:06:40]RasterBufferAndPrint [11:06:40]line Счет N : (1)672529 [11:06:40]line ИНН: 02508201610067 [11:06:40]line Контрольно-Кассовый Чек [11:06:40]line ПРОДАЖА [11:06:40]line ТРК (МРК, ГНК) : 31 [11:06:40]line Товар: 2710124500 [11:06:40]line Аи-95-К-5 [11:06:40]line 20.300 * 73.90 [11:06:40]line = 1500.17 [11:06:40]line НДС 12% НСП 1% [11:06:40]line > о реализуемом товаре [11:06:40]line ОКРУГЛЕНИЕ: -0.17 [11:06:40]line ИТОГО: 1500.00 [11:06:40]line Внесено: 1500.00 [11:06:40]line СДАЧА: 0.00 [11:06:40]line НСП 1% : 13.28 [11:06:40]line НДС 12% : 159.31 [11:06:40]line Наличными: 1500.00 [11:06:40]line Безнал.: 0.00 [11:06:40]line Место: АЗС № 120 "Партнер Нефть" [11:06:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:06:40]line СНО: Общий режим [11:06:40]line Чек 53 18.06.2024 11:06 [11:06:40]line Смена: 352 ФФД: 1.0 [11:06:40]line ЗНМ: 0300000164 [11:06:40]line РНМ: 0000000000092785 [11:06:40]line Версия ККМ: 001 [11:06:40]line ФМ: 0000000000875093 [11:06:40]line ФД: 103369 [11:06:40]line ФПД: 44034290170023 [11:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103369&fm=44034290170023&tin=02508201610067®Number=0000000000092785&sum=150000 [11:06:41]OFD Sender: Processing packet 103369 [packets to send 17, broken 16] [11:06:41]ProducePacketName [11:06:41]name=ofd_packets/00103369 [11:06:41]OFD Sender: To server: pG, [11:06:41]CommunicateWithHost lk.salyk.kg:30040 [11:06:41]ConnectInit lk.salyk.kg [11:06:41]written 0, free lines is 4095 [11:06:41]Connected sock=10 [11:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E5 98 07 01 E5 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 35 00 00 00 F4 03 04 00 45 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 93 01 00 35 04 06 00 28 0C 88 39 38 A7 02 78 1B C5 EE 63 77 E5 [11:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8D 0A 47 00 F4 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 93 01 00 F4 03 04 00 D2 10 71 66 B6 04 01 00 00 F0 2F 77 ED 07 F8 B5 1F [11:06:41]CommunicateWithHost err = 0 [11:06:41]CheckOFDResponse [11:06:41]1017 (14) - 77093643461234 [11:06:41]1041 (16) - 0000000000875093 [11:06:41]1040 (4) - 103369 [11:06:41]1012 (4) - 18.06.2024 04:45 [11:06:41]1206 (1) - 0 [11:06:41]OFD Sender: Remove packet 103369 [11:06:41]ProducePacketName [11:06:41]name=ofd_packets/00103369 [11:06:41]NVStorageDeleteData [11:06:41]Write to MH i2c: 01 00 00 8A 48 D2 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: 01 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: 01 07 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: 01 07 00 8A 48 00 00 00 00 00 DC 0C C1 [11:06:41]RasterBufferAndPrint [11:06:41]line [11:06:41]line [11:06:41]line [11:06:41]line [11:06:41]line [11:06:41]written 0, free lines is 3302 [11:06:41]MH_Cut [11:06:41]Write to MH i2c: D1 01 00 91 48 01 AB [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: D1 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: D1 01 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: D1 01 00 91 48 00 AA [11:06:41]Write to MH i2c: 01 00 00 92 48 DA [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:42]OFD Sender: No OFD packet to send [11:06:42]*** Cut start [11:06:42]*** Partial cut [11:06:42]*** CUTSNS_PIN = 1 [11:06:42]*** CUTSNS_PIN = 0 [11:06:42]*** Brake cut motor [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]*** Stop cut motor [11:06:43]*** Cut end [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 92 48 00 00 00 00 00 FF 0F EF [11:06:43]process_action close_receipt done [11:06:43]requested_data is exist [11:06:43]produce_requested_data [11:06:43]requested_item fm.sn is exist - process it [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 11 00 00 [11:06:43]Write to MH i2c: E2 08 00 93 48 80 11 00 00 00 00 00 00 55 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 93 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A8 [11:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:43]wFMCommunicate OK [11:06:43]requested_item fd.num is exist - process it [11:06:43]SAM_PROTO_GetFieldsCounters [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 13 00 00 [11:06:43]Write to MH i2c: E2 08 00 94 48 80 13 00 00 00 00 00 00 58 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 62 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 62 00 94 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:43]wFMCommunicate OK [11:06:43]SAM_PROTO_GetFieldsCounters done [11:06:43]requested_item shift.num is exist - process it [11:06:43]requested_item shift.opened is exist - process it [11:06:43]req_shift_opened [11:06:43]FM_GetShiftState [11:06:43]SAM_PROTO_GetShiftState [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 13 01 00 [11:06:43]Write to MH i2c: E2 08 00 95 48 80 13 01 00 00 00 00 00 5A [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0E 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0E 00 95 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DB [11:06:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:06:43]wFMCommunicate OK [11:06:43]SAM_PROTO_GetShiftState done [11:06:43]FM_GetShiftState done [11:06:43]req_shift_opened done [11:06:43]requested_item shift.open_date is exist - process it [11:06:43]req_shift_open_date [11:06:43]req_shift_open_date done [11:06:43]produce_requested_data done [11:06:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103369,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:06:43]process_action_free close_receipt [11:06:43]json_value_free [11:06:43]json_value_free done [11:06:43]process_json_proto returns [11:06:43]Send response to host [11:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103369,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:06:43]free response buf [11:06:43]execute_script done [11:06:43]execute_script returns [11:06:43]free content buf [11:06:43]Sock 7.Close socket [11:06:43]Sock 7.Thread stoped [11:06:43]accept exits with 9 [11:06:43]New connection [11:06:43]New thread 3067227492 created [11:06:43]Thread 3067084132 joined [11:06:43]Waiting for new connection... [11:06:43] Sock 9.Parse request [11:06:43]Sock 9.Check first char [11:06:43]Sock 9.First char is OK [11:06:43]request: POST /json_proto HTTP/1.0 [11:06:43]Method: POST [11:06:43]URL: /json_proto [11:06:43]Method is POST - this is cgi request [11:06:43]url: /json_proto [11:06:43]query_string will be loaded in cgi processing [11:06:43]execute_cgi json_proto POST (null) [11:06:43]execute_cgi path=json_proto method=POST [11:06:43]POST find Content-Length [11:06:43]Host: 172.17.38.133:8080 [11:06:43]Content-Length: 1200 [11:06:43]Content-Type: application/json [11:06:43] [11:06:43]POST finish read [11:06:43]Found Content-Length = 1200 [11:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672527\u000A18.06.2024 10:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 51.790 x 72.90\u000A\u0418\u0422\u041E\u0413: 3775.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:43]execute_script... [11:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672527\u000A18.06.2024 10:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 51.790 x 72.90\u000A\u0418\u0422\u041E\u0413: 3775.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:43]POST & json_proto [11:06:43]process_json_proto [11:06:43]json parsed OK: [11:06:43]protocol is kg_v1.0 [11:06:43]action value=print_text [11:06:43]process_action print_text [11:06:43]cmd_print_text [11:06:43]ExternCall_PrintAddStr [11:06:43]wPrintStart [11:06:43]Write to MH i2c: 01 00 00 96 48 DE [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 96 48 00 00 00 00 00 FF 0F F3 [11:06:43]RasterBufferAndPrint [11:06:43]line *****ТОВАРНЫЙ ЧЕК***** [11:06:43]line АЗС 120 [11:06:43]line Партнер нефть [11:06:43]line 02508201610067 [11:06:43]line Кассир : Асанбаев Н. [11:06:43]line Счет N : (1)672527 [11:06:43]line 18.06.2024 10:44 [11:06:43]line ПРОДАЖА [11:06:43]line ТРК (МРК, ГНК): 21 [11:06:43]line Вид ГСМ : 2710194210 [11:06:43]line ДТ(л)-К-5 [11:06:43]line 51.790 x 72.90 [11:06:43]line ИТОГ: 3775.49 [11:06:43]line Тип оплаты: Талоны: Топливная Карта [11:06:43]line 24058 [11:06:43]line ______________________ [11:06:43]line (подпись) [11:06:43]written 0, free lines is 4095 [11:06:43]Write to MH i2c: 01 00 00 AA 48 F2 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 AA 48 00 00 00 00 00 11 0E 18 [11:06:43]RasterBufferAndPrint [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]written 0, free lines is 3604 [11:06:43]MH_Cut [11:06:43]Write to MH i2c: D1 01 00 B1 48 01 CB [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 B1 48 00 CA [11:06:43]Write to MH i2c: 01 00 00 B2 48 FA [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:44]*** Cut start [11:06:44]*** Partial cut [11:06:44]*** CUTSNS_PIN = 1 [11:06:44]*** CUTSNS_PIN = 0 [11:06:44]*** Brake cut motor [11:06:44]Read from MH i2c: 01 [11:06:45]MH_I2C_Read... [11:06:45]*** Stop cut motor [11:06:45]*** Cut end [11:06:45]Read from MH i2c: 01 07 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: 01 07 00 B2 48 00 00 00 00 00 FF 0F 0F [11:06:45]process_action print_text done [11:06:45]requested_data is exist [11:06:45]produce_requested_data [11:06:45]requested_item fm.sn is exist - process it [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 11 00 00 [11:06:45]Write to MH i2c: E2 08 00 B3 48 80 11 00 00 00 00 00 00 75 [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 17 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 17 00 B3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [11:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:45]wFMCommunicate OK [11:06:45]requested_item fd.num is exist - process it [11:06:45]SAM_PROTO_GetFieldsCounters [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 13 00 00 [11:06:45]Write to MH i2c: E2 08 00 B4 48 80 13 00 00 00 00 00 00 78 [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 62 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 62 00 B4 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetFieldsCounters done [11:06:45]requested_item shift.num is exist - process it [11:06:45]requested_item shift.opened is exist - process it [11:06:45]req_shift_opened [11:06:45]FM_GetShiftState [11:06:45]SAM_PROTO_GetShiftState [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 13 01 00 [11:06:45]Write to MH i2c: E2 08 00 B5 48 80 13 01 00 00 00 00 00 7A [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 B5 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FB [11:06:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetShiftState done [11:06:45]FM_GetShiftState done [11:06:45]req_shift_opened done [11:06:45]requested_item shift.open_date is exist - process it [11:06:45]req_shift_open_date [11:06:45]req_shift_open_date done [11:06:45]produce_requested_data done [11:06:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103369,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:06:45]process_action_free print_text [11:06:45]json_value_free [11:06:45]json_value_free done [11:06:45]process_json_proto returns [11:06:45]Send response to host [11:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103369,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:06:45]free response buf [11:06:45]execute_script done [11:06:45]execute_script returns [11:06:45]free content buf [11:06:45]Sock 9.Close socket [11:06:45]Sock 9.Thread stoped [11:06:45]accept exits with 10 [11:06:45]New connection [11:06:45]New thread 3067084132 created [11:06:45]Thread 3067227492 joined [11:06:45]Waiting for new connection... [11:06:45] Sock 10.Parse request [11:06:45]Sock 10.Check first char [11:06:45]Sock 10.First char is OK [11:06:45]request: POST /json_proto HTTP/1.0 [11:06:45]Method: POST [11:06:45]URL: /json_proto [11:06:45]Method is POST - this is cgi request [11:06:45]url: /json_proto [11:06:45]query_string will be loaded in cgi processing [11:06:45]execute_cgi json_proto POST (null) [11:06:45]execute_cgi path=json_proto method=POST [11:06:45]POST find Content-Length [11:06:45]Host: 172.17.38.133:8080 [11:06:45]Content-Length: 678 [11:06:45]Content-Type: application/json [11:06:45] [11:06:45]POST finish read [11:06:45]Found Content-Length = 678 [11:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:45]execute_script... [11:06:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:45]POST & json_proto [11:06:45]process_json_proto [11:06:45]json parsed OK: [11:06:45]protocol is kg_v1.0 [11:06:45]action value=close_receipt [11:06:45]process_action close_receipt [11:06:45]cmd_close_receipt [11:06:45]MH_GetDate [11:06:45]Write to MH i2c: F0 00 00 B6 48 ED [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: F0 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: F0 09 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: F0 09 00 B6 48 00 4B 6A 71 66 BD 8F 7C 64 AE [11:06:45]GetLastDocTimeStamp 1718708805 [11:06:45]current date 1718708811 [11:06:45]FM_GetShiftState [11:06:45]SAM_PROTO_GetShiftState [11:06:45]wFMCommunicate request_size=4 [11:06:45]MH_SAM_APDU [11:06:45]CAPDU: 80 13 01 00 [11:06:45]Write to MH i2c: E2 08 00 B7 48 80 13 01 00 00 00 00 00 7C [11:06:45]Write i2c OK [11:06:45]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 B7 48 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FD [11:06:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetShiftState done [11:06:45]FM_GetShiftState done [11:06:45]opened in 1718670284 [11:06:45]opened+sec_in_day 1718756684 [11:06:45]quantity*price = 70052 [11:06:45]sum+1 = 70053 [11:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 54 18.06.2024 11:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103370 ФПД: 281256592490342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103370&fm=281256592490342&tin=02508201610067®Number=0000000000092785&sum=70000 [11:06:46]StoreToDocumentArchive [11:06:46]shift 352 fd 103370 [11:06:46]save to /storage/0352/doc_00103370 [11:06:46]save last doc name /storage/0352/doc_00103370 to /storage/kkm_last_doc_name [11:06:46]save OK [11:06:46]Clear old archive folders... [11:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:46]tlvbuf is 0135B830 [11:06:46]SAM_PROTO_ClearQueue [11:06:46]wFMCommunicate request_size=4 [11:06:46]MH_SAM_APDU [11:06:46]CAPDU: 80 09 00 00 [11:06:46]Write to MH i2c: E2 08 00 C4 48 80 09 00 00 00 00 00 00 7E [11:06:46]Write i2c OK [11:06:46]MH_I2C_Read... [11:06:46]Read from MH i2c: E2 [11:06:46]MH_I2C_Read... [11:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:46]Read from MH i2c: E2 03 00 [11:06:46]MH_I2C_Read... [11:06:46]Read from MH i2c: E2 03 00 C4 48 00 90 00 80 [11:06:46]RAPDU: 90 00 [11:06:46]wFMCommunicate OK [11:06:46]SAM_PROTO_ClearQueue done [11:06:46]KKMCreateOFDPacket [11:06:46]OFDProtocolAddRootSTLVToBuf [11:06:46]FM_MakeSignedData [11:06:46]FM_MakeSignedData [11:06:46]SAM_PROTO_SignData [11:06:46]wFMCommunicate request_size=4 [11:06:46]MH_SAM_APDU [11:06:46]CAPDU: 80 0D 01 02 [11:06:46]Write to MH i2c: E2 08 00 C5 48 80 0D 01 02 00 00 00 00 86 [11:06:46]Write i2c OK [11:06:46]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]OFD Sender: No OFD packet to send [11:06:47]Read from MH i2c: E2 03 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 03 00 C5 48 00 90 00 81 [11:06:47]RAPDU: 90 00 [11:06:47]wFMCommunicate OK [11:06:47]wFMCommunicate request_size=255 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4C 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 93 01 00 35 04 06 00 FF [11:06:47]Write to MH i2c: E2 02 01 C6 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4C 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 93 01 00 35 04 06 00 FF 00 00 D3 [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 03 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 03 00 C6 48 00 90 00 82 [11:06:47]RAPDU: 90 00 [11:06:47]wFMCommunicate OK [11:06:47]wFMCommunicate request_size=10 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 0D 02 02 05 CD 27 49 3F 66 [11:06:47]Write to MH i2c: E2 0D 00 C7 48 80 0D 02 02 05 00 CD 27 49 3F 66 00 00 75 [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 03 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 03 00 C7 48 00 90 00 83 [11:06:47]RAPDU: 90 00 [11:06:47]wFMCommunicate OK [11:06:47]wFMCommunicate request_size=4 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 0D 03 02 [11:06:47]Write to MH i2c: E2 08 00 C8 48 80 0D 03 02 00 00 00 00 8B [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0B 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0B 00 C8 48 00 51 44 2B D9 7D 25 41 D9 90 00 E1 [11:06:47]RAPDU: 51 44 2B D9 7D 25 41 D9 90 00 [11:06:47]wFMCommunicate OK [11:06:47]SAM_PROTO_SignData done [11:06:47]FM_MakeSignedData done [11:06:47]CreateOFDProtocolMessage [11:06:47]wFMCommunicate request_size=4 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 11 00 00 [11:06:47]Write to MH i2c: E2 08 00 C9 48 80 11 00 00 00 00 00 00 8B [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 17 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 17 00 C9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [11:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:47]wFMCommunicate OK [11:06:47]CreateOFDProtocolMessage done [11:06:47]OFDSenderStorePacket 103370 [11:06:47]StoreOFDPacket docnum=103370 [11:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C9 E1 07 01 88 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4C 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 93 01 00 35 04 06 00 FF CD 27 49 3F 66 51 44 2B D9 7D 25 41 D9 [11:06:47]CheckFolder [11:06:47]dirname=/storage/ofd_packets [11:06:47]CheckFolder done [11:06:47]ProducePacketName [11:06:47]name=ofd_packets/00103370 [11:06:47]NVStorageSaveData ofd_packets/00103370 [11:06:47]File name is /storage/ofd_packets/00103370 [11:06:47]Write 301 bytes [11:06:47]NVStorageSaveData done [11:06:47]OFDSenderStorePacket done [11:06:47]KKMCreateOFDPacket done [11:06:47]NVStorageSaveData kkm_last_timestamp [11:06:47]File name is /storage/kkm_last_timestamp [11:06:47]Write 4 bytes [11:06:47]NVStorageSaveData done [11:06:47]ExternCall_PrintAddStr [11:06:47]wPrintStart [11:06:47]Write to MH i2c: 01 00 00 CA 48 12 [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: 01 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: 01 07 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: 01 07 00 CA 48 00 00 00 00 00 FF 0F 27 [11:06:47]RasterBufferAndPrint [11:06:47]line Счет N : (1)672530 [11:06:47]line ИНН: 02508201610067 [11:06:47]line Контрольно-Кассовый Чек [11:06:47]line ПРОДАЖА [11:06:47]line ТРК (МРК, ГНК) : 42 [11:06:47]line Товар: 2710124130 [11:06:47]line Аи-92-К-5 [11:06:47]line 10.550 * 66.40 [11:06:47]line = 700.52 [11:06:47]line НДС 12% НСП 1% [11:06:47]line > о реализуемом товаре [11:06:47]line ОКРУГЛЕНИЕ: -0.52 [11:06:47]line ИТОГО: 700.00 [11:06:47]line Внесено: 700.00 [11:06:47]line СДАЧА: 0.00 [11:06:47]line НСП 1% : 6.20 [11:06:47]line НДС 12% : 74.39 [11:06:47]line Наличными: 700.00 [11:06:47]line Безнал.: 0.00 [11:06:47]line Место: АЗС № 120 "Партнер Нефть" [11:06:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:06:47]line СНО: Общий режим [11:06:47]line Чек 54 18.06.2024 11:06 [11:06:47]line Смена: 352 ФФД: 1.0 [11:06:47]line ЗНМ: 0300000164 [11:06:47]line РНМ: 0000000000092785 [11:06:47]line Версия ККМ: 001 [11:06:47]line ФМ: 0000000000875093 [11:06:47]line ФД: 103370 [11:06:47]line ФПД: 281256592490342 [11:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103370&fm=281256592490342&tin=02508201610067®Number=0000000000092785&sum=70000 [11:06:47]written 0, free lines is 4095 [11:06:47]OFD Sender: Processing packet 103370 [packets to send 17, broken 16] [11:06:47]ProducePacketName [11:06:47]name=ofd_packets/00103370 [11:06:47]OFD Sender: To server: pG, [11:06:47]CommunicateWithHost lk.salyk.kg:30040 [11:06:47]ConnectInit lk.salyk.kg [11:06:48]Connected sock=9 [11:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C9 E1 07 01 88 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4C 6A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 93 01 00 35 04 06 00 FF CD 27 49 3F 66 51 44 2B D9 7D 25 41 D9 [11:06:48]Write to MH i2c: 01 00 00 F5 48 3D [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 07 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 07 00 F5 48 00 00 00 00 00 F2 0C 42 [11:06:48]RasterBufferAndPrint [11:06:48]line [11:06:48]line [11:06:48]line [11:06:48]line [11:06:48]line [11:06:48]written 0, free lines is 3332 [11:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 82 5F 47 00 0C 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 93 01 00 F4 03 04 00 D8 10 71 66 B6 04 01 00 00 32 C0 3F DE 54 66 89 D7 [11:06:48]CommunicateWithHost err = 0 [11:06:48]CheckOFDResponse [11:06:48]1017 (14) - 77093643461234 [11:06:48]1041 (16) - 0000000000875093 [11:06:48]1040 (4) - 103370 [11:06:48]1012 (4) - 18.06.2024 04:45 [11:06:48]1206 (1) - 0 [11:06:48]OFD Sender: Remove packet 103370 [11:06:48]ProducePacketName [11:06:48]name=ofd_packets/00103370 [11:06:48]NVStorageDeleteData [11:06:48]MH_Cut [11:06:48]Write to MH i2c: D1 01 00 FC 48 01 16 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: D1 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: D1 01 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: D1 01 00 FC 48 00 15 [11:06:48]Write to MH i2c: 01 00 00 FD 48 45 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]OFD Sender: No OFD packet to send [11:06:49]*** Cut start [11:06:49]*** Partial cut [11:06:49]*** CUTSNS_PIN = 1 [11:06:49]*** CUTSNS_PIN = 0 [11:06:49]*** Brake cut motor [11:06:49]Read from MH i2c: 01 [11:06:49]MH_I2C_Read... [11:06:49]*** Stop cut motor [11:06:49]*** Cut end [11:06:49]Read from MH i2c: 01 07 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 FD 48 00 00 00 00 00 FF 0F 5A [11:06:49]process_action close_receipt done [11:06:49]requested_data is exist [11:06:49]produce_requested_data [11:06:49]requested_item fm.sn is exist - process it [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 11 00 00 [11:06:49]Write to MH i2c: E2 08 00 FE 48 80 11 00 00 00 00 00 00 C0 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 17 00 FE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [11:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:49]wFMCommunicate OK [11:06:49]requested_item fd.num is exist - process it [11:06:49]SAM_PROTO_GetFieldsCounters [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 13 00 00 [11:06:49]Write to MH i2c: E2 08 00 FF 48 80 13 00 00 00 00 00 00 C3 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 62 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 62 00 FF 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [11:06:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:49]wFMCommunicate OK [11:06:49]SAM_PROTO_GetFieldsCounters done [11:06:49]requested_item shift.num is exist - process it [11:06:49]requested_item shift.opened is exist - process it [11:06:49]req_shift_opened [11:06:49]FM_GetShiftState [11:06:49]SAM_PROTO_GetShiftState [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 13 01 00 [11:06:49]Write to MH i2c: E2 08 00 00 49 80 13 01 00 00 00 00 00 C6 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0E 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0E 00 00 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 47 [11:06:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:06:49]wFMCommunicate OK [11:06:49]SAM_PROTO_GetShiftState done [11:06:49]FM_GetShiftState done [11:06:49]req_shift_opened done [11:06:49]requested_item shift.open_date is exist - process it [11:06:49]req_shift_open_date [11:06:49]req_shift_open_date done [11:06:49]produce_requested_data done [11:06:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103370,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:06:49]process_action_free close_receipt [11:06:49]json_value_free [11:06:49]json_value_free done [11:06:49]process_json_proto returns [11:06:49]Send response to host [11:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103370,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:06:49]free response buf [11:06:49]execute_script done [11:06:49]execute_script returns [11:06:49]free content buf [11:06:49]Sock 10.Close socket [11:06:49]Sock 10.Thread stoped [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:08]accept exits with 7 [11:10:08]New connection [11:10:08]New thread 3067227492 created [11:10:08]Thread 3067084132 joined [11:10:08]Waiting for new connection... [11:10:08] Sock 7.Parse request [11:10:08]Sock 7.Check first char [11:10:08]Sock 7.First char is OK [11:10:08]request: POST /json_proto HTTP/1.0 [11:10:08]Method: POST [11:10:08]URL: /json_proto [11:10:08]Method is POST - this is cgi request [11:10:08]url: /json_proto [11:10:08]query_string will be loaded in cgi processing [11:10:08]execute_cgi json_proto POST (null) [11:10:08]execute_cgi path=json_proto method=POST [11:10:08]POST find Content-Length [11:10:08]Host: 172.17.38.133:8080 [11:10:08]Content-Length: 677 [11:10:08]Content-Type: application/json [11:10:08] [11:10:08]POST finish read [11:10:08]Found Content-Length = 677 [11:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:08]execute_script... [11:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:08]POST & json_proto [11:10:08]process_json_proto [11:10:08]json parsed OK: [11:10:08]protocol is kg_v1.0 [11:10:08]action value=close_receipt [11:10:08]process_action close_receipt [11:10:08]cmd_close_receipt [11:10:08]MH_GetDate [11:10:08]Write to MH i2c: F0 00 00 01 49 39 [11:10:08]Write i2c OK [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: F0 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: F0 09 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: F0 09 00 01 49 00 16 6B 71 66 BD 8F 7C 64 C6 [11:10:08]GetLastDocTimeStamp 1718708812 [11:10:08]current date 1718709014 [11:10:08]FM_GetShiftState [11:10:08]SAM_PROTO_GetShiftState [11:10:08]wFMCommunicate request_size=4 [11:10:08]MH_SAM_APDU [11:10:08]CAPDU: 80 13 01 00 [11:10:08]Write to MH i2c: E2 08 00 02 49 80 13 01 00 00 00 00 00 C8 [11:10:08]Write i2c OK [11:10:08]MH_I2C_Read... [11:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:08]Read from MH i2c: E2 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 0E 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 0E 00 02 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 49 [11:10:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:10:08]wFMCommunicate OK [11:10:08]SAM_PROTO_GetShiftState done [11:10:08]FM_GetShiftState done [11:10:08]opened in 1718670284 [11:10:08]opened+sec_in_day 1718756684 [11:10:08]quantity*price = 64009 [11:10:08]sum+1 = 64011 [11:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 18.06.2024 11:10 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103371 ФПД: 139112212930152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103371&fm=139112212930152&tin=02508201610067®Number=0000000000092785&sum=64000 [11:10:09]StoreToDocumentArchive [11:10:09]shift 352 fd 103371 [11:10:09]save to /storage/0352/doc_00103371 [11:10:09]save last doc name /storage/0352/doc_00103371 to /storage/kkm_last_doc_name [11:10:09]save OK [11:10:09]Clear old archive folders... [11:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:09]tlvbuf is 013300F0 [11:10:09]SAM_PROTO_ClearQueue [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 09 00 00 [11:10:09]Write to MH i2c: E2 08 00 0F 49 80 09 00 00 00 00 00 00 CA [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 0F 49 00 90 00 CC [11:10:09]RAPDU: 90 00 [11:10:09]wFMCommunicate OK [11:10:09]SAM_PROTO_ClearQueue done [11:10:09]KKMCreateOFDPacket [11:10:09]OFDProtocolAddRootSTLVToBuf [11:10:09]FM_MakeSignedData [11:10:09]FM_MakeSignedData [11:10:09]SAM_PROTO_SignData [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 0D 01 02 [11:10:09]Write to MH i2c: E2 08 00 10 49 80 0D 01 02 00 00 00 00 D2 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 10 49 00 90 00 CD [11:10:09]RAPDU: 90 00 [11:10:09]wFMCommunicate OK [11:10:09]wFMCommunicate request_size=255 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 16 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 93 01 00 35 04 06 00 7E [11:10:09]Write to MH i2c: E2 02 01 11 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 16 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 93 01 00 35 04 06 00 7E 00 00 5C [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 11 49 00 90 00 CE [11:10:09]RAPDU: 90 00 [11:10:09]wFMCommunicate OK [11:10:09]wFMCommunicate request_size=10 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 0D 02 02 05 85 96 09 1E 68 [11:10:09]Write to MH i2c: E2 0D 00 12 49 80 0D 02 02 05 00 85 96 09 1E 68 00 00 89 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 03 00 12 49 00 90 00 CF [11:10:09]RAPDU: 90 00 [11:10:09]wFMCommunicate OK [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 0D 03 02 [11:10:09]Write to MH i2c: E2 08 00 13 49 80 0D 03 02 00 00 00 00 D7 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0B 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0B 00 13 49 00 AE CC C1 F3 95 93 1B 33 90 00 7C [11:10:09]RAPDU: AE CC C1 F3 95 93 1B 33 90 00 [11:10:09]wFMCommunicate OK [11:10:09]SAM_PROTO_SignData done [11:10:09]FM_MakeSignedData done [11:10:09]CreateOFDProtocolMessage [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 11 00 00 [11:10:09]Write to MH i2c: E2 08 00 14 49 80 11 00 00 00 00 00 00 D7 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 17 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 17 00 14 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2A [11:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:10:09]wFMCommunicate OK [11:10:09]CreateOFDProtocolMessage done [11:10:09]OFDSenderStorePacket 103371 [11:10:09]StoreOFDPacket docnum=103371 [11:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 65 6A 07 01 B3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 16 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 93 01 00 35 04 06 00 7E 85 96 09 1E 68 AE CC C1 F3 95 93 1B 33 [11:10:09]CheckFolder [11:10:09]dirname=/storage/ofd_packets [11:10:09]CheckFolder done [11:10:09]ProducePacketName [11:10:09]name=ofd_packets/00103371 [11:10:09]NVStorageSaveData ofd_packets/00103371 [11:10:09]File name is /storage/ofd_packets/00103371 [11:10:09]Write 301 bytes [11:10:09]NVStorageSaveData done [11:10:09]OFDSenderStorePacket done [11:10:09]KKMCreateOFDPacket done [11:10:09]NVStorageSaveData kkm_last_timestamp [11:10:09]File name is /storage/kkm_last_timestamp [11:10:09]Write 4 bytes [11:10:09]NVStorageSaveData done [11:10:09]ExternCall_PrintAddStr [11:10:09]wPrintStart [11:10:09]Write to MH i2c: 01 00 00 15 49 5E [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: 01 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: 01 07 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: 01 07 00 15 49 00 00 00 00 00 FF 0F 73 [11:10:09]RasterBufferAndPrint [11:10:09]line Счет N : (1)672532 [11:10:09]line ИНН: 02508201610067 [11:10:09]line Контрольно-Кассовый Чек [11:10:09]line ПРОДАЖА [11:10:09]line ТРК (МРК, ГНК) : 32 [11:10:09]line Товар: 2710124130 [11:10:09]line Аи-92-К-5 [11:10:09]line 9.640 * 66.40 [11:10:09]line = 640.10 [11:10:09]line НДС 12% НСП 1% [11:10:09]line > о реализуемом товаре [11:10:09]line ОКРУГЛЕНИЕ: -0.10 [11:10:09]line ИТОГО: 640.00 [11:10:09]line Внесено: 640.00 [11:10:09]line СДАЧА: 0.00 [11:10:09]line НСП 1% : 5.66 [11:10:09]line НДС 12% : 67.97 [11:10:09]line Наличными: 640.00 [11:10:09]line Безнал.: 0.00 [11:10:09]line Место: АЗС № 120 "Партнер Нефть" [11:10:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:10:09]line СНО: Общий режим [11:10:09]line Чек 55 18.06.2024 11:10 [11:10:09]line Смена: 352 ФФД: 1.0 [11:10:09]line ЗНМ: 0300000164 [11:10:09]line РНМ: 0000000000092785 [11:10:09]line Версия ККМ: 001 [11:10:09]line ФМ: 0000000000875093 [11:10:09]line ФД: 103371 [11:10:09]line ФПД: 139112212930152 [11:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111014&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103371&fm=139112212930152&tin=02508201610067®Number=0000000000092785&sum=64000 [11:10:10]written 0, free lines is 4095 [11:10:10]OFD Sender: Processing packet 103371 [packets to send 17, broken 16] [11:10:10]ProducePacketName [11:10:10]name=ofd_packets/00103371 [11:10:10]OFD Sender: To server: pG, [11:10:10]CommunicateWithHost lk.salyk.kg:30040 [11:10:10]ConnectInit lk.salyk.kg [11:10:10]Connected sock=10 [11:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 65 6A 07 01 B3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 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 16 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 93 01 00 35 04 06 00 7E 85 96 09 1E 68 AE CC C1 F3 95 93 1B 33 [11:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F2 C2 47 00 6F 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 35 30 39 33 10 04 04 00 CB 93 01 00 F4 03 04 00 A2 11 71 66 B6 04 01 00 00 53 09 C2 EB EB 03 5A 5B [11:10:10]CommunicateWithHost err = 0 [11:10:10]CheckOFDResponse [11:10:10]1017 (14) - 77093643461234 [11:10:10]1041 (16) - 0000000000875093 [11:10:10]1040 (4) - 103371 [11:10:10]1012 (4) - 18.06.2024 04:48 [11:10:10]1206 (1) - 0 [11:10:10]OFD Sender: Remove packet 103371 [11:10:10]ProducePacketName [11:10:10]name=ofd_packets/00103371 [11:10:10]NVStorageDeleteData [11:10:10]Write to MH i2c: 01 00 00 40 49 89 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 07 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 07 00 40 49 00 00 00 00 00 D8 0C 74 [11:10:10]RasterBufferAndPrint [11:10:10]line [11:10:10]line [11:10:10]line [11:10:10]line [11:10:10]line [11:10:10]written 0, free lines is 3298 [11:10:10]MH_Cut [11:10:10]Write to MH i2c: D1 01 00 47 49 01 62 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: D1 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: D1 01 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: D1 01 00 47 49 00 61 [11:10:10]Write to MH i2c: 01 00 00 48 49 91 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:11]OFD Sender: No OFD packet to send [11:10:11]*** Cut start [11:10:11]*** Partial cut [11:10:11]*** CUTSNS_PIN = 1 [11:10:11]*** CUTSNS_PIN = 0 [11:10:11]*** Brake cut motor [11:10:12]Read from MH i2c: 01 [11:10:12]MH_I2C_Read... [11:10:12]*** Stop cut motor [11:10:12]*** Cut end [11:10:12]Read from MH i2c: 01 07 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: 01 07 00 48 49 00 00 00 00 00 FF 0F A6 [11:10:12]process_action close_receipt done [11:10:12]requested_data is exist [11:10:12]produce_requested_data [11:10:12]requested_item fm.sn is exist - process it [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 11 00 00 [11:10:12]Write to MH i2c: E2 08 00 49 49 80 11 00 00 00 00 00 00 0C [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 17 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 17 00 49 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [11:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:10:12]wFMCommunicate OK [11:10:12]requested_item fd.num is exist - process it [11:10:12]SAM_PROTO_GetFieldsCounters [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 13 00 00 [11:10:12]Write to MH i2c: E2 08 00 4A 49 80 13 00 00 00 00 00 00 0F [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 62 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 62 00 4A 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:12]wFMCommunicate OK [11:10:12]SAM_PROTO_GetFieldsCounters done [11:10:12]requested_item shift.num is exist - process it [11:10:12]requested_item shift.opened is exist - process it [11:10:12]req_shift_opened [11:10:12]FM_GetShiftState [11:10:12]SAM_PROTO_GetShiftState [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 13 01 00 [11:10:12]Write to MH i2c: E2 08 00 4B 49 80 13 01 00 00 00 00 00 11 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 4B 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 92 [11:10:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:10:12]wFMCommunicate OK [11:10:12]SAM_PROTO_GetShiftState done [11:10:12]FM_GetShiftState done [11:10:12]req_shift_opened done [11:10:12]requested_item shift.open_date is exist - process it [11:10:12]req_shift_open_date [11:10:12]req_shift_open_date done [11:10:12]produce_requested_data done [11:10:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103371,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:10:12]process_action_free close_receipt [11:10:12]json_value_free [11:10:12]json_value_free done [11:10:12]process_json_proto returns [11:10:12]Send response to host [11:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103371,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:10:12]free response buf [11:10:12]execute_script done [11:10:12]execute_script returns [11:10:12]free content buf [11:10:12]Sock 7.Close socket [11:10:12]Sock 7.Thread stoped [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:20]accept exits with 9 [11:11:20]New connection [11:11:20]New thread 3067084132 created [11:11:20]Thread 3067227492 joined [11:11:20]Waiting for new connection... [11:11:20] Sock 9.Parse request [11:11:20]Sock 9.Check first char [11:11:20]Sock 9.First char is OK [11:11:20]request: POST /json_proto HTTP/1.0 [11:11:20]Method: POST [11:11:20]URL: /json_proto [11:11:20]Method is POST - this is cgi request [11:11:20]url: /json_proto [11:11:20]query_string will be loaded in cgi processing [11:11:20]execute_cgi json_proto POST (null) [11:11:20]execute_cgi path=json_proto method=POST [11:11:20]POST find Content-Length [11:11:20]Host: 172.17.38.133:8080 [11:11:20]Content-Length: 805 [11:11:20]Content-Type: application/json [11:11:20] [11:11:20]POST finish read [11:11:20]Found Content-Length = 805 [11:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:20]execute_script... [11: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 : (1)672531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:20]POST & json_proto [11:11:20]process_json_proto [11:11:20]json parsed OK: [11:11:20]protocol is kg_v1.0 [11:11:20]action value=close_receipt [11:11:20]process_action close_receipt [11:11:20]cmd_close_receipt [11:11:20]MH_GetDate [11:11:20]Write to MH i2c: F0 00 00 4C 49 84 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 09 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: F0 09 00 4C 49 00 5E 6B 71 66 BD 8F 7C 64 59 [11:11:20]GetLastDocTimeStamp 1718709014 [11:11:20]current date 1718709086 [11:11:20]FM_GetShiftState [11:11:20]SAM_PROTO_GetShiftState [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 13 01 00 [11:11:20]Write to MH i2c: E2 08 00 4D 49 80 13 01 00 00 00 00 00 13 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 4D 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 94 [11:11:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:11:20]wFMCommunicate OK [11:11:20]SAM_PROTO_GetShiftState done [11:11:20]FM_GetShiftState done [11:11:20]opened in 1718670284 [11:11:20]opened+sec_in_day 1718756684 [11:11:20]quantity*price = 50009 [11:11:20]sum+1 = 50010 [11:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 18.06.2024 11:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103372 ФПД: 219328069087017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103372&fm=219328069087017&tin=02508201610067®Number=0000000000092785&sum=50009 [11:11:21]StoreToDocumentArchive [11:11:21]shift 352 fd 103372 [11:11:21]save to /storage/0352/doc_00103372 [11:11:21]save last doc name /storage/0352/doc_00103372 to /storage/kkm_last_doc_name [11:11:21]save OK [11:11:21]Clear old archive folders... [11:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:11:21]tlvbuf is 01454910 [11:11:21]SAM_PROTO_ClearQueue [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 09 00 00 [11:11:21]Write to MH i2c: E2 08 00 5A 49 80 09 00 00 00 00 00 00 15 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]OFD Sender: No OFD packet to send [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 5A 49 00 90 00 17 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]SAM_PROTO_ClearQueue done [11:11:21]KKMCreateOFDPacket [11:11:21]OFDProtocolAddRootSTLVToBuf [11:11:21]FM_MakeSignedData [11:11:21]FM_MakeSignedData [11:11:21]SAM_PROTO_SignData [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 01 02 [11:11:21]Write to MH i2c: E2 08 00 5B 49 80 0D 01 02 00 00 00 00 1D [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 5B 49 00 90 00 18 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=255 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5E 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 93 01 00 35 04 06 00 [11:11:21]Write to MH i2c: E2 02 01 5C 49 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5E 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 93 01 00 35 04 06 00 00 00 60 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 5C 49 00 90 00 19 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=11 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 02 02 06 C7 7A 4B A5 AF 29 [11:11:21]Write to MH i2c: E2 0E 00 5D 49 80 0D 02 02 06 00 C7 7A 4B A5 AF 29 00 00 35 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 5D 49 00 90 00 1A [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 03 02 [11:11:21]Write to MH i2c: E2 08 00 5E 49 80 0D 03 02 00 00 00 00 22 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0B 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0B 00 5E 49 00 3D 1B 79 95 DC 93 C1 22 90 00 DB [11:11:21]RAPDU: 3D 1B 79 95 DC 93 C1 22 90 00 [11:11:21]wFMCommunicate OK [11:11:21]SAM_PROTO_SignData done [11:11:21]FM_MakeSignedData done [11:11:21]CreateOFDProtocolMessage [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 11 00 00 [11:11:21]Write to MH i2c: E2 08 00 5F 49 80 11 00 00 00 00 00 00 22 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 17 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 17 00 5F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 75 [11:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:11:21]wFMCommunicate OK [11:11:21]CreateOFDProtocolMessage done [11:11:21]OFDSenderStorePacket 103372 [11:11:21]StoreOFDPacket docnum=103372 [11:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 14 C2 08 01 03 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5E 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 93 01 00 35 04 06 00 C7 7A 4B A5 AF 29 3D 1B 79 95 DC 93 C1 22 [11:11:21]CheckFolder [11:11:21]dirname=/storage/ofd_packets [11:11:21]CheckFolder done [11:11:21]ProducePacketName [11:11:21]name=ofd_packets/00103372 [11:11:21]NVStorageSaveData ofd_packets/00103372 [11:11:21]File name is /storage/ofd_packets/00103372 [11:11:21]Write 302 bytes [11:11:21]NVStorageSaveData done [11:11:21]OFDSenderStorePacket done [11:11:21]KKMCreateOFDPacket done [11:11:21]NVStorageSaveData kkm_last_timestamp [11:11:21]File name is /storage/kkm_last_timestamp [11:11:21]Write 4 bytes [11:11:21]NVStorageSaveData done [11:11:21]ExternCall_PrintAddStr [11:11:21]wPrintStart [11:11:21]Write to MH i2c: 01 00 00 60 49 A9 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 07 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 07 00 60 49 00 00 00 00 00 FF 0F BE [11:11:21]RasterBufferAndPrint [11:11:21]line Счет N : (1)672531 [11:11:21]line ИНН: 02508201610067 [11:11:21]line Контрольно-Кассовый Чек [11:11:21]line ПРОДАЖА [11:11:21]line ТРК (МРК, ГНК) : 21 [11:11:21]line Товар: 2710194210 [11:11:21]line ДТ(л)-К-5 [11:11:21]line 6.860 * 72.90 [11:11:21]line = 500.09 [11:11:21]line НДС 12% НСП 1% [11:11:21]line > о реализуемом товаре [11:11:21]line ИТОГО: 500.09 [11:11:21]line НСП 1% : 4.43 [11:11:21]line НДС 12% : 53.11 [11:11:21]line Наличными: 0.00 [11:11:21]line Безнал.: 500.09 [11:11:21]line Место: АЗС № 120 "Партнер Нефть" [11:11:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:11:21]line СНО: Общий режим [11:11:21]line Чек 56 18.06.2024 11:11 [11:11:21]line Смена: 352 ФФД: 1.0 [11:11:21]line ЗНМ: 0300000164 [11:11:21]line РНМ: 0000000000092785 [11:11:21]line Версия ККМ: 001 [11:11:21]line Платежная система: O! деньги [11:11:21]line ФМ: 0000000000875093 [11:11:21]line ФД: 103372 [11:11:21]line ФПД: 219328069087017 [11:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103372&fm=219328069087017&tin=02508201610067®Number=0000000000092785&sum=50009 [11:11:22]OFD Sender: Processing packet 103372 [packets to send 17, broken 16] [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00103372 [11:11:22]OFD Sender: To server: pG, [11:11:22]CommunicateWithHost lk.salyk.kg:30040 [11:11:22]ConnectInit lk.salyk.kg [11:11:22]written 0, free lines is 4095 [11:11:22]Connected sock=10 [11: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 35 30 39 33 10 01 00 00 14 C2 08 01 03 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5E 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 93 01 00 35 04 06 00 C7 7A 4B A5 AF 29 3D 1B 79 95 DC 93 C1 22 [11:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B7 2B 47 00 68 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 93 01 00 F4 03 04 00 EA 11 71 66 B6 04 01 00 00 74 07 B6 5F C4 9A C1 C8 [11:11:22]CommunicateWithHost err = 0 [11:11:22]CheckOFDResponse [11:11:22]1017 (14) - 77093643461234 [11:11:22]1041 (16) - 0000000000875093 [11:11:22]1040 (4) - 103372 [11:11:22]1012 (4) - 18.06.2024 04:49 [11:11:22]1206 (1) - 0 [11:11:22]OFD Sender: Remove packet 103372 [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00103372 [11:11:22]NVStorageDeleteData [11:11:22]Write to MH i2c: 01 00 00 8A 49 D3 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 8A 49 00 00 00 00 00 F4 0C DA [11:11:22]RasterBufferAndPrint [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]written 0, free lines is 3323 [11:11:22]MH_Cut [11:11:22]Write to MH i2c: D1 01 00 91 49 01 AC [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 01 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 01 00 91 49 00 AB [11:11:22]Write to MH i2c: 01 00 00 92 49 DB [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]OFD Sender: No OFD packet to send [11:11:23]*** Cut start [11:11:23]*** Partial cut [11:11:23]*** CUTSNS_PIN = 1 [11:11:23]*** CUTSNS_PIN = 0 [11:11:23]*** Brake cut motor [11:11:23]Read from MH i2c: 01 [11:11:23]MH_I2C_Read... [11:11:23]*** Stop cut motor [11:11:23]*** Cut end [11:11:23]Read from MH i2c: 01 07 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 92 49 00 00 00 00 00 FF 0F F0 [11:11:23]process_action close_receipt done [11:11:23]requested_data is exist [11:11:23]produce_requested_data [11:11:23]requested_item fm.sn is exist - process it [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 11 00 00 [11:11:23]Write to MH i2c: E2 08 00 93 49 80 11 00 00 00 00 00 00 56 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 17 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 17 00 93 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [11:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:11:23]wFMCommunicate OK [11:11:23]requested_item fd.num is exist - process it [11:11:23]SAM_PROTO_GetFieldsCounters [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 13 00 00 [11:11:23]Write to MH i2c: E2 08 00 94 49 80 13 00 00 00 00 00 00 59 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 62 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 62 00 94 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetFieldsCounters done [11:11:24]requested_item shift.num is exist - process it [11:11:24]requested_item shift.opened is exist - process it [11:11:24]req_shift_opened [11:11:24]FM_GetShiftState [11:11:24]SAM_PROTO_GetShiftState [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 01 00 [11:11:24]Write to MH i2c: E2 08 00 95 49 80 13 01 00 00 00 00 00 5B [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 95 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DC [11:11:24]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetShiftState done [11:11:24]FM_GetShiftState done [11:11:24]req_shift_opened done [11:11:24]requested_item shift.open_date is exist - process it [11:11:24]req_shift_open_date [11:11:24]req_shift_open_date done [11:11:24]produce_requested_data done [11:11:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103372,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:11:24]process_action_free close_receipt [11:11:24]json_value_free [11:11:24]json_value_free done [11:11:24]process_json_proto returns [11:11:24]Send response to host [11:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103372,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:11:24]free response buf [11:11:24]execute_script done [11:11:24]execute_script returns [11:11:24]free content buf [11:11:24]Sock 9.Close socket [11:11:24]Sock 9.Thread stoped [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:49]accept exits with 7 [11:12:49]New connection [11:12:49]New thread 3067227492 created [11:12:49]Thread 3067084132 joined [11:12:49]Waiting for new connection... [11:12:49] Sock 7.Parse request [11:12:49]Sock 7.Check first char [11:12:49]Sock 7.First char is OK [11:12:49]request: POST /json_proto HTTP/1.0 [11:12:49]Method: POST [11:12:49]URL: /json_proto [11:12:49]Method is POST - this is cgi request [11:12:49]url: /json_proto [11:12:49]query_string will be loaded in cgi processing [11:12:49]execute_cgi json_proto POST (null) [11:12:49]execute_cgi path=json_proto method=POST [11:12:49]POST find Content-Length [11:12:49]Host: 172.17.38.133:8080 [11:12:49]Content-Length: 682 [11:12:49]Content-Type: application/json [11:12:49] [11:12:49]POST finish read [11:12:49]Found Content-Length = 682 [11:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:49]execute_script... [11:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:49]POST & json_proto [11:12:49]process_json_proto [11:12:49]json parsed OK: [11:12:49]protocol is kg_v1.0 [11:12:49]action value=close_receipt [11:12:49]process_action close_receipt [11:12:49]cmd_close_receipt [11:12:49]MH_GetDate [11:12:49]Write to MH i2c: F0 00 00 96 49 CE [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 09 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: F0 09 00 96 49 00 B7 6B 71 66 BD 8F 7C 64 FC [11:12:49]GetLastDocTimeStamp 1718709086 [11:12:49]current date 1718709175 [11:12:49]FM_GetShiftState [11:12:49]SAM_PROTO_GetShiftState [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 13 01 00 [11:12:49]Write to MH i2c: E2 08 00 97 49 80 13 01 00 00 00 00 00 5D [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 97 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DE [11:12:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_GetShiftState done [11:12:49]FM_GetShiftState done [11:12:49]opened in 1718670284 [11:12:49]opened+sec_in_day 1718756684 [11:12:49]quantity*price = 50009 [11:12:49]sum+1 = 50010 [11:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 18.06.2024 11:12 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103373 ФПД: 94924240875363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111255&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103373&fm=94924240875363&tin=02508201610067®Number=0000000000092785&sum=50000 [11:12:50]StoreToDocumentArchive [11:12:50]shift 352 fd 103373 [11:12:50]save to /storage/0352/doc_00103373 [11:12:50]save last doc name /storage/0352/doc_00103373 to /storage/kkm_last_doc_name [11:12:50]save OK [11:12:50]Clear old archive folders... [11:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:12:50]tlvbuf is 01416400 [11:12:50]SAM_PROTO_ClearQueue [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 09 00 00 [11:12:50]Write to MH i2c: E2 08 00 A4 49 80 09 00 00 00 00 00 00 5F [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 A4 49 00 90 00 61 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_ClearQueue done [11:12:50]KKMCreateOFDPacket [11:12:50]OFDProtocolAddRootSTLVToBuf [11:12:50]FM_MakeSignedData [11:12:50]FM_MakeSignedData [11:12:50]SAM_PROTO_SignData [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 01 02 [11:12:50]Write to MH i2c: E2 08 00 A5 49 80 0D 01 02 00 00 00 00 67 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 A5 49 00 90 00 62 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=255 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 93 01 00 35 04 06 00 [11:12:50]Write to MH i2c: E2 02 01 A6 49 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 93 01 00 35 04 06 00 00 00 F3 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 A6 49 00 90 00 63 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=11 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 02 02 06 56 55 45 A8 6F 63 [11:12:50]Write to MH i2c: E2 0E 00 A7 49 80 0D 02 02 06 00 56 55 45 A8 6F 63 00 00 E0 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 03 02 [11:12:50]Write to MH i2c: E2 08 00 A8 49 80 0D 03 02 00 00 00 00 6C [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 A8 49 00 C7 98 5E CA CE 9C D8 50 90 00 86 [11:12:50]RAPDU: C7 98 5E CA CE 9C D8 50 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_SignData done [11:12:50]FM_MakeSignedData done [11:12:50]CreateOFDProtocolMessage [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 11 00 00 [11:12:50]Write to MH i2c: E2 08 00 A9 49 80 11 00 00 00 00 00 00 6C [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 A9 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [11:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:12:50]wFMCommunicate OK [11:12:50]CreateOFDProtocolMessage done [11:12:50]OFDSenderStorePacket 103373 [11:12:50]StoreOFDPacket docnum=103373 [11:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 47 98 08 01 32 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 93 01 00 35 04 06 00 56 55 45 A8 6F 63 C7 98 5E CA CE 9C D8 50 [11:12:50]CheckFolder [11:12:50]dirname=/storage/ofd_packets [11:12:50]CheckFolder done [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00103373 [11:12:50]NVStorageSaveData ofd_packets/00103373 [11:12:50]File name is /storage/ofd_packets/00103373 [11:12:50]Write 302 bytes [11:12:50]NVStorageSaveData done [11:12:50]OFDSenderStorePacket done [11:12:50]KKMCreateOFDPacket done [11:12:50]NVStorageSaveData kkm_last_timestamp [11:12:50]File name is /storage/kkm_last_timestamp [11:12:50]Write 4 bytes [11:12:50]NVStorageSaveData done [11:12:50]ExternCall_PrintAddStr [11:12:50]wPrintStart [11:12:50]Write to MH i2c: 01 00 00 AA 49 F3 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 AA 49 00 00 00 00 00 FF 0F 08 [11:12:50]RasterBufferAndPrint [11:12:50]line Счет N : (1)672533 [11:12:50]line ИНН: 02508201610067 [11:12:50]line Контрольно-Кассовый Чек [11:12:50]line ПРОДАЖА [11:12:50]line ТРК (МРК, ГНК) : 21 [11:12:50]line Товар: 2710194210 [11:12:50]line ДТ(л)-К-5 [11:12:50]line 6.860 * 72.90 [11:12:50]line = 500.09 [11:12:50]line НДС 12% НСП 1% [11:12:50]line > о реализуемом товаре [11:12:50]line ОКРУГЛЕНИЕ: -0.09 [11:12:50]line ИТОГО: 500.00 [11:12:50]line Внесено: 500.00 [11:12:50]line СДАЧА: 0.00 [11:12:50]line НСП 1% : 4.43 [11:12:50]line НДС 12% : 53.11 [11:12:50]line Наличными: 500.00 [11:12:50]line Безнал.: 0.00 [11:12:50]line Место: АЗС № 120 "Партнер Нефть" [11:12:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:12:50]line СНО: Общий режим [11:12:50]line Чек 57 18.06.2024 11:12 [11:12:50]line Смена: 352 ФФД: 1.0 [11:12:50]line ЗНМ: 0300000164 [11:12:50]line РНМ: 0000000000092785 [11:12:50]line Версия ККМ: 001 [11:12:50]line ФМ: 0000000000875093 [11:12:50]line ФД: 103373 [11:12:50]line ФПД: 94924240875363 [11:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111255&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103373&fm=94924240875363&tin=02508201610067®Number=0000000000092785&sum=50000 [11:12:51]OFD Sender: Processing packet 103373 [packets to send 17, broken 16] [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00103373 [11:12:51]OFD Sender: To server: pG, [11:12:51]CommunicateWithHost lk.salyk.kg:30040 [11:12:51]ConnectInit lk.salyk.kg [11:12:51]written 0, free lines is 4095 [11:12:51]Connected sock=6 [11:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 47 98 08 01 32 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 6B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 93 01 00 35 04 06 00 56 55 45 A8 6F 63 C7 98 5E CA CE 9C D8 50 [11:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FF F5 47 00 4A 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 35 30 39 33 10 04 04 00 CD 93 01 00 F4 03 04 00 44 12 71 66 B6 04 01 00 00 0C D3 71 E4 CC 92 7C BF [11:12:51]CommunicateWithHost err = 0 [11:12:51]CheckOFDResponse [11:12:51]1017 (14) - 77093643461234 [11:12:51]1041 (16) - 0000000000875093 [11:12:51]1040 (4) - 103373 [11:12:51]1012 (4) - 18.06.2024 04:51 [11:12:51]1206 (1) - 0 [11:12:51]OFD Sender: Remove packet 103373 [11:12:51]ProducePacketName [11:12:51]name=ofd_packets/00103373 [11:12:51]NVStorageDeleteData [11:12:51]Write to MH i2c: 01 00 00 D5 49 1E [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: 01 07 00 D5 49 00 00 00 00 00 E0 0C 11 [11:12:51]RasterBufferAndPrint [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]line [11:12:51]written 0, free lines is 3302 [11:12:51]MH_Cut [11:12:51]Write to MH i2c: D1 01 00 DC 49 01 F7 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 01 00 [11:12:51]MH_I2C_Read... [11:12:51]Read from MH i2c: D1 01 00 DC 49 00 F6 [11:12:51]Write to MH i2c: 01 00 00 DD 49 26 [11:12:51]Write i2c OK [11:12:51]MH_I2C_Read... [11:12:52]OFD Sender: No OFD packet to send [11:12:52]*** Cut start [11:12:52]*** Partial cut [11:12:52]*** CUTSNS_PIN = 1 [11:12:52]*** CUTSNS_PIN = 0 [11:12:52]*** Brake cut motor [11:12:53]Read from MH i2c: 01 [11:12:53]MH_I2C_Read... [11:12:53]*** Stop cut motor [11:12:53]*** Cut end [11:12:53]Read from MH i2c: 01 07 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: 01 07 00 DD 49 00 00 00 00 00 FF 0F 3B [11:12:53]process_action close_receipt done [11:12:53]requested_data is exist [11:12:53]produce_requested_data [11:12:53]requested_item fm.sn is exist - process it [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 11 00 00 [11:12:53]Write to MH i2c: E2 08 00 DE 49 80 11 00 00 00 00 00 00 A1 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 DE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [11:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:12:53]wFMCommunicate OK [11:12:53]requested_item fd.num is exist - process it [11:12:53]SAM_PROTO_GetFieldsCounters [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 13 00 00 [11:12:53]Write to MH i2c: E2 08 00 DF 49 80 13 00 00 00 00 00 00 A4 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 62 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 62 00 DF 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [11:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:53]wFMCommunicate OK [11:12:53]SAM_PROTO_GetFieldsCounters done [11:12:53]requested_item shift.num is exist - process it [11:12:53]requested_item shift.opened is exist - process it [11:12:53]req_shift_opened [11:12:53]FM_GetShiftState [11:12:53]SAM_PROTO_GetShiftState [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 13 01 00 [11:12:53]Write to MH i2c: E2 08 00 E0 49 80 13 01 00 00 00 00 00 A6 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 0E 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 0E 00 E0 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 27 [11:12:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:12:53]wFMCommunicate OK [11:12:53]SAM_PROTO_GetShiftState done [11:12:53]FM_GetShiftState done [11:12:53]req_shift_opened done [11:12:53]requested_item shift.open_date is exist - process it [11:12:53]req_shift_open_date [11:12:53]req_shift_open_date done [11:12:53]produce_requested_data done [11:12:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103373,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:12:53]process_action_free close_receipt [11:12:53]json_value_free [11:12:53]json_value_free done [11:12:53]process_json_proto returns [11:12:53]Send response to host [11:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103373,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:12:53]free response buf [11:12:53]execute_script done [11:12:53]execute_script returns [11:12:53]free content buf [11:12:53]Sock 7.Close socket [11:12:53]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [11:15:06]New connection [11:15:06]New thread 3067084132 created [11:15:06]Thread 3067227492 joined [11:15:06]Waiting for new connection... [11:15:06] Sock 9.Parse request [11:15:06]Sock 9.Check first char [11:15:06]Sock 9.First char is OK [11:15:06]request: POST /json_proto HTTP/1.0 [11:15:06]Method: POST [11:15:06]URL: /json_proto [11:15:06]Method is POST - this is cgi request [11:15:06]url: /json_proto [11:15:06]query_string will be loaded in cgi processing [11:15:06]execute_cgi json_proto POST (null) [11:15:06]execute_cgi path=json_proto method=POST [11:15:06]POST find Content-Length [11:15:06]Host: 172.17.38.133:8080 [11:15:06]Content-Length: 677 [11:15:06]Content-Type: application/json [11:15:06] [11:15:06]POST finish read [11:15:06]Found Content-Length = 677 [11:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:06]execute_script... [11:15:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:06]POST & json_proto [11:15:06]process_json_proto [11:15:06]json parsed OK: [11:15:06]protocol is kg_v1.0 [11:15:06]action value=close_receipt [11:15:06]process_action close_receipt [11:15:06]cmd_close_receipt [11:15:06]MH_GetDate [11:15:06]Write to MH i2c: F0 00 00 E1 49 19 [11:15:06]Write i2c OK [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: F0 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: F0 09 00 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: F0 09 00 E1 49 00 40 6C 71 66 BD 8F 7C 64 D1 [11:15:06]GetLastDocTimeStamp 1718709175 [11:15:06]current date 1718709312 [11:15:06]FM_GetShiftState [11:15:06]SAM_PROTO_GetShiftState [11:15:06]wFMCommunicate request_size=4 [11:15:06]MH_SAM_APDU [11:15:06]CAPDU: 80 13 01 00 [11:15:06]Write to MH i2c: E2 08 00 E2 49 80 13 01 00 00 00 00 00 A8 [11:15:06]Write i2c OK [11:15:06]MH_I2C_Read... [11:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:06]Read from MH i2c: E2 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 0E 00 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 0E 00 E2 49 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 29 [11:15:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:15:06]wFMCommunicate OK [11:15:06]SAM_PROTO_GetShiftState done [11:15:06]FM_GetShiftState done [11:15:06]opened in 1718670284 [11:15:06]opened+sec_in_day 1718756684 [11:15:06]quantity*price = 10026 [11:15:06]sum+1 = 10027 [11:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 58 18.06.2024 11:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103374 ФПД: 121099371688994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111512&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103374&fm=121099371688994&tin=02508201610067®Number=0000000000092785&sum=10000 [11:15:07]StoreToDocumentArchive [11:15:07]shift 352 fd 103374 [11:15:07]save to /storage/0352/doc_00103374 [11:15:07]save last doc name /storage/0352/doc_00103374 to /storage/kkm_last_doc_name [11:15:07]save OK [11:15:07]Clear old archive folders... [11:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:07]tlvbuf is 01337A30 [11:15:07]SAM_PROTO_ClearQueue [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 09 00 00 [11:15:07]Write to MH i2c: E2 08 00 EF 49 80 09 00 00 00 00 00 00 AA [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]OFD Sender: No OFD packet to send [11:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 EF 49 00 90 00 AC [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_ClearQueue done [11:15:07]KKMCreateOFDPacket [11:15:07]OFDProtocolAddRootSTLVToBuf [11:15:07]FM_MakeSignedData [11:15:07]FM_MakeSignedData [11:15:07]SAM_PROTO_SignData [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 01 02 [11:15:07]Write to MH i2c: E2 08 00 F0 49 80 0D 01 02 00 00 00 00 B2 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 F0 49 00 90 00 AD [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=255 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 6C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 93 01 00 35 04 06 00 6E [11:15:07]Write to MH i2c: E2 02 01 F1 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 6C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 93 01 00 35 04 06 00 6E 00 00 E9 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 F1 49 00 90 00 AE [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=10 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 02 02 05 23 A5 08 34 22 [11:15:07]Write to MH i2c: E2 0D 00 F2 49 80 0D 02 02 05 00 23 A5 08 34 22 00 00 E5 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 F2 49 00 90 00 AF [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 03 02 [11:15:07]Write to MH i2c: E2 08 00 F3 49 80 0D 03 02 00 00 00 00 B7 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0B 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0B 00 F3 49 00 13 4B E0 0F 46 28 18 59 90 00 E4 [11:15:07]RAPDU: 13 4B E0 0F 46 28 18 59 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_SignData done [11:15:07]FM_MakeSignedData done [11:15:07]CreateOFDProtocolMessage [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 11 00 00 [11:15:07]Write to MH i2c: E2 08 00 F4 49 80 11 00 00 00 00 00 00 B7 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 17 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 17 00 F4 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0A [11:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:07]wFMCommunicate OK [11:15:07]CreateOFDProtocolMessage done [11:15:07]OFDSenderStorePacket 103374 [11:15:07]StoreOFDPacket docnum=103374 [11:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 12 07 01 5D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 6C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 93 01 00 35 04 06 00 6E 23 A5 08 34 22 13 4B E0 0F 46 28 18 59 [11:15:07]CheckFolder [11:15:07]dirname=/storage/ofd_packets [11:15:07]CheckFolder done [11:15:07]ProducePacketName [11:15:07]name=ofd_packets/00103374 [11:15:07]NVStorageSaveData ofd_packets/00103374 [11:15:07]File name is /storage/ofd_packets/00103374 [11:15:07]Write 301 bytes [11:15:07]NVStorageSaveData done [11:15:07]OFDSenderStorePacket done [11:15:07]KKMCreateOFDPacket done [11:15:07]NVStorageSaveData kkm_last_timestamp [11:15:07]File name is /storage/kkm_last_timestamp [11:15:07]Write 4 bytes [11:15:07]NVStorageSaveData done [11:15:07]ExternCall_PrintAddStr [11:15:07]wPrintStart [11:15:07]Write to MH i2c: 01 00 00 F5 49 3E [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 07 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 07 00 F5 49 00 00 00 00 00 FF 0F 53 [11:15:07]RasterBufferAndPrint [11:15:07]line Счет N : (1)672534 [11:15:07]line ИНН: 02508201610067 [11:15:07]line Контрольно-Кассовый Чек [11:15:07]line ПРОДАЖА [11:15:07]line ТРК (МРК, ГНК) : 32 [11:15:07]line Товар: 2710124130 [11:15:07]line Аи-92-К-5 [11:15:07]line 1.510 * 66.40 [11:15:07]line = 100.26 [11:15:07]line НДС 12% НСП 1% [11:15:07]line > о реализуемом товаре [11:15:07]line ОКРУГЛЕНИЕ: -0.26 [11:15:07]line ИТОГО: 100.00 [11:15:07]line Внесено: 100.00 [11:15:07]line СДАЧА: 0.00 [11:15:07]line НСП 1% : 0.89 [11:15:07]line НДС 12% : 10.65 [11:15:07]line Наличными: 100.00 [11:15:07]line Безнал.: 0.00 [11:15:07]line Место: АЗС № 120 "Партнер Нефть" [11:15:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:15:07]line СНО: Общий режим [11:15:07]line Чек 58 18.06.2024 11:15 [11:15:07]line Смена: 352 ФФД: 1.0 [11:15:07]line ЗНМ: 0300000164 [11:15:07]line РНМ: 0000000000092785 [11:15:07]line Версия ККМ: 001 [11:15:07]line ФМ: 0000000000875093 [11:15:07]line ФД: 103374 [11:15:07]line ФПД: 121099371688994 [11:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111512&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103374&fm=121099371688994&tin=02508201610067®Number=0000000000092785&sum=10000 [11:15:08]OFD Sender: Processing packet 103374 [packets to send 17, broken 16] [11:15:08]ProducePacketName [11:15:08]name=ofd_packets/00103374 [11:15:08]OFD Sender: To server: pG, [11:15:08]CommunicateWithHost lk.salyk.kg:30040 [11:15:08]ConnectInit lk.salyk.kg [11:15:08]written 0, free lines is 4095 [11:15:08]Connected sock=10 [11:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 12 07 01 5D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 6C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 93 01 00 35 04 06 00 6E 23 A5 08 34 22 13 4B E0 0F 46 28 18 59 [11:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7C EF 47 00 75 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 93 01 00 F4 03 04 00 CC 12 71 66 B6 04 01 00 00 21 67 06 5F 8F 16 B0 4A [11:15:08]CommunicateWithHost err = 0 [11:15:08]CheckOFDResponse [11:15:08]1017 (14) - 77093643461234 [11:15:08]1041 (16) - 0000000000875093 [11:15:08]1040 (4) - 103374 [11:15:08]1012 (4) - 18.06.2024 04:53 [11:15:08]1206 (1) - 0 [11:15:08]OFD Sender: Remove packet 103374 [11:15:08]ProducePacketName [11:15:08]name=ofd_packets/00103374 [11:15:08]NVStorageDeleteData [11:15:08]Write to MH i2c: 01 00 00 20 4A 6A [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 07 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 07 00 20 4A 00 00 00 00 00 DF 0C 5C [11:15:08]RasterBufferAndPrint [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]written 0, free lines is 3301 [11:15:08]MH_Cut [11:15:08]Write to MH i2c: D1 01 00 27 4A 01 43 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 01 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 01 00 27 4A 00 42 [11:15:08]Write to MH i2c: 01 00 00 28 4A 72 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:09]OFD Sender: No OFD packet to send [11:15:09]*** Cut start [11:15:09]*** Partial cut [11:15:09]*** CUTSNS_PIN = 1 [11:15:09]*** CUTSNS_PIN = 0 [11:15:09]*** Brake cut motor [11:15:09]Read from MH i2c: 01 [11:15:10]MH_I2C_Read... [11:15:10]*** Stop cut motor [11:15:10]*** Cut end [11:15:10]Read from MH i2c: 01 07 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 28 4A 00 00 00 00 00 FF 0F 87 [11:15:10]process_action close_receipt done [11:15:10]requested_data is exist [11:15:10]produce_requested_data [11:15:10]requested_item fm.sn is exist - process it [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 11 00 00 [11:15:10]Write to MH i2c: E2 08 00 29 4A 80 11 00 00 00 00 00 00 ED [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 17 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 17 00 29 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [11:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:10]wFMCommunicate OK [11:15:10]requested_item fd.num is exist - process it [11:15:10]SAM_PROTO_GetFieldsCounters [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 13 00 00 [11:15:10]Write to MH i2c: E2 08 00 2A 4A 80 13 00 00 00 00 00 00 F0 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 62 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 62 00 2A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [11:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_GetFieldsCounters done [11:15:10]requested_item shift.num is exist - process it [11:15:10]requested_item shift.opened is exist - process it [11:15:10]req_shift_opened [11:15:10]FM_GetShiftState [11:15:10]SAM_PROTO_GetShiftState [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 13 01 00 [11:15:10]Write to MH i2c: E2 08 00 2B 4A 80 13 01 00 00 00 00 00 F2 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0E 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0E 00 2B 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 73 [11:15:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_GetShiftState done [11:15:10]FM_GetShiftState done [11:15:10]req_shift_opened done [11:15:10]requested_item shift.open_date is exist - process it [11:15:10]req_shift_open_date [11:15:10]req_shift_open_date done [11:15:10]produce_requested_data done [11:15:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103374,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:15:10]process_action_free close_receipt [11:15:10]json_value_free [11:15:10]json_value_free done [11:15:10]process_json_proto returns [11:15:10]Send response to host [11:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103374,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:15:10]free response buf [11:15:10]execute_script done [11:15:10]execute_script returns [11:15:10]free content buf [11:15:10]Sock 9.Close socket [11:15:10]Sock 9.Thread stoped [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:08]accept exits with 7 [11:26:08]New connection [11:26:08]New thread 3067227492 created [11:26:08]Thread 3067084132 joined [11:26:08]Waiting for new connection... [11:26:08] Sock 7.Parse request [11:26:08]Sock 7.Check first char [11:26:08]Sock 7.First char is OK [11:26:08]request: POST /json_proto HTTP/1.0 [11:26:08]Method: POST [11:26:08]URL: /json_proto [11:26:08]Method is POST - this is cgi request [11:26:08]url: /json_proto [11:26:08]query_string will be loaded in cgi processing [11:26:08]execute_cgi json_proto POST (null) [11:26:08]execute_cgi path=json_proto method=POST [11:26:08]POST find Content-Length [11:26:08]Host: 172.17.38.133:8080 [11:26:08]Content-Length: 1200 [11:26:08]Content-Type: application/json [11:26:08] [11:26:08]POST finish read [11:26:08]Found Content-Length = 1200 [11:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672535\u000A18.06.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:08]execute_script... [11:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672535\u000A18.06.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:08]POST & json_proto [11:26:08]process_json_proto [11:26:08]json parsed OK: [11:26:08]protocol is kg_v1.0 [11:26:08]action value=print_text [11:26:08]process_action print_text [11:26:08]cmd_print_text [11:26:08]ExternCall_PrintAddStr [11:26:08]wPrintStart [11:26:08]Write to MH i2c: 01 00 00 2C 4A 76 [11:26:08]Write i2c OK [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: 01 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: 01 07 00 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: 01 07 00 2C 4A 00 00 00 00 00 FF 0F 8B [11:26:08]RasterBufferAndPrint [11:26:08]line *****ТОВАРНЫЙ ЧЕК***** [11:26:08]line АЗС 120 [11:26:08]line Партнер нефть [11:26:08]line 02508201610067 [11:26:08]line Кассир : Асанбаев Н. [11:26:08]line Счет N : (1)672535 [11:26:08]line 18.06.2024 11:03 [11:26:08]line ПРОДАЖА [11:26:08]line ТРК (МРК, ГНК): 21 [11:26:08]line Вид ГСМ : 2710194210 [11:26:08]line ДТ(л)-К-5 [11:26:08]line 54.870 x 72.90 [11:26:08]line ИТОГ: 4000.02 [11:26:08]line Тип оплаты: Талоны: Топливная Карта [11:26:08]line 24058 [11:26:08]line ______________________ [11:26:08]line (подпись) [11:26:08]written 0, free lines is 4095 [11:26:09]Write to MH i2c: 01 00 00 40 4A 8A [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 07 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 07 00 40 4A 00 00 00 00 00 0F 0E AE [11:26:09]RasterBufferAndPrint [11:26:09]line [11:26:09]line [11:26:09]line [11:26:09]line [11:26:09]line [11:26:09]written 0, free lines is 3601 [11:26:09]MH_Cut [11:26:09]Write to MH i2c: D1 01 00 47 4A 01 63 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: D1 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: D1 01 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: D1 01 00 47 4A 00 62 [11:26:09]Write to MH i2c: 01 00 00 48 4A 92 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** Cut start [11:26:09]*** Partial cut [11:26:09]*** CUTSNS_PIN = 1 [11:26:09]*** CUTSNS_PIN = 0 [11:26:09]OFD Sender: No OFD packet to send [11:26:09]*** Brake cut motor [11:26:10]Read from MH i2c: 01 [11:26:10]MH_I2C_Read... [11:26:10]*** Stop cut motor [11:26:10]*** Cut end [11:26:10]Read from MH i2c: 01 07 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 07 00 48 4A 00 00 00 00 00 FF 0F A7 [11:26:10]process_action print_text done [11:26:10]requested_data is exist [11:26:10]produce_requested_data [11:26:10]requested_item fm.sn is exist - process it [11:26:10]wFMCommunicate request_size=4 [11:26:10]MH_SAM_APDU [11:26:10]CAPDU: 80 11 00 00 [11:26:10]Write to MH i2c: E2 08 00 49 4A 80 11 00 00 00 00 00 00 0D [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:10]Read from MH i2c: E2 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 17 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 17 00 49 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [11:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:26:10]wFMCommunicate OK [11:26:10]requested_item fd.num is exist - process it [11:26:10]SAM_PROTO_GetFieldsCounters [11:26:10]wFMCommunicate request_size=4 [11:26:10]MH_SAM_APDU [11:26:10]CAPDU: 80 13 00 00 [11:26:10]Write to MH i2c: E2 08 00 4A 4A 80 13 00 00 00 00 00 00 10 [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:10]Read from MH i2c: E2 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 62 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 62 00 4A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:10]wFMCommunicate OK [11:26:10]SAM_PROTO_GetFieldsCounters done [11:26:10]requested_item shift.num is exist - process it [11:26:10]requested_item shift.opened is exist - process it [11:26:10]req_shift_opened [11:26:10]FM_GetShiftState [11:26:10]SAM_PROTO_GetShiftState [11:26:10]wFMCommunicate request_size=4 [11:26:10]MH_SAM_APDU [11:26:10]CAPDU: 80 13 01 00 [11:26:10]Write to MH i2c: E2 08 00 4B 4A 80 13 01 00 00 00 00 00 12 [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:10]Read from MH i2c: E2 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 0E 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: E2 0E 00 4B 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 93 [11:26:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:26:10]wFMCommunicate OK [11:26:10]SAM_PROTO_GetShiftState done [11:26:10]FM_GetShiftState done [11:26:10]req_shift_opened done [11:26:10]requested_item shift.open_date is exist - process it [11:26:10]req_shift_open_date [11:26:10]req_shift_open_date done [11:26:10]produce_requested_data done [11:26:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103374,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:26:10]process_action_free print_text [11:26:10]json_value_free [11:26:10]json_value_free done [11:26:10]process_json_proto returns [11:26:10]Send response to host [11:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103374,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:26:10]free response buf [11:26:10]execute_script done [11:26:10]execute_script returns [11:26:10]free content buf [11:26:10]Sock 7.Close socket [11:26:10]Sock 7.Thread stoped [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:52]accept exits with 9 [11:29:52]New connection [11:29:52]New thread 3067084132 created [11:29:52]Thread 3067227492 joined [11:29:52]Waiting for new connection... [11:29:52] Sock 9.Parse request [11:29:52]Sock 9.Check first char [11:29:52]Sock 9.First char is OK [11:29:52]request: POST /json_proto HTTP/1.0 [11:29:52]Method: POST [11:29:52]URL: /json_proto [11:29:52]Method is POST - this is cgi request [11:29:52]url: /json_proto [11:29:52]query_string will be loaded in cgi processing [11:29:52]execute_cgi json_proto POST (null) [11:29:52]execute_cgi path=json_proto method=POST [11:29:52]POST find Content-Length [11:29:52]Host: 172.17.38.133:8080 [11:29:52]Content-Length: 682 [11:29:52]Content-Type: application/json [11:29:52] [11:29:52]POST finish read [11:29:52]Found Content-Length = 682 [11:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [11:29:52]execute_script... [11:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [11:29:52]POST & json_proto [11:29:52]process_json_proto [11:29:52]json parsed OK: [11:29:52]protocol is kg_v1.0 [11:29:52]action value=close_receipt [11:29:52]process_action close_receipt [11:29:52]cmd_close_receipt [11:29:52]MH_GetDate [11:29:52]Write to MH i2c: F0 00 00 4C 4A 85 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 09 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 09 00 4C 4A 00 B6 6F 71 66 BD 8F 7C 64 B6 [11:29:52]GetLastDocTimeStamp 1718709312 [11:29:52]current date 1718710198 [11:29:52]FM_GetShiftState [11:29:52]SAM_PROTO_GetShiftState [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 13 01 00 [11:29:52]Write to MH i2c: E2 08 00 4D 4A 80 13 01 00 00 00 00 00 14 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 4D 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 95 [11:29:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_GetShiftState done [11:29:52]FM_GetShiftState done [11:29:52]opened in 1718670284 [11:29:52]opened+sec_in_day 1718756684 [11:29:52]quantity*price = 150064 [11:29:52]sum+1 = 150065 [11:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 59 18.06.2024 11:29 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103375 ФПД: 196646338201250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112959&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103375&fm=196646338201250&tin=02508201610067®Number=0000000000092785&sum=150000 [11:29:53]StoreToDocumentArchive [11:29:53]shift 352 fd 103375 [11:29:53]save to /storage/0352/doc_00103375 [11:29:53]save last doc name /storage/0352/doc_00103375 to /storage/kkm_last_doc_name [11:29:53]save OK [11:29:53]Clear old archive folders... [11:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:53]tlvbuf is 01416540 [11:29:53]SAM_PROTO_ClearQueue [11:29:53]wFMCommunicate request_size=4 [11:29:53]MH_SAM_APDU [11:29:53]CAPDU: 80 09 00 00 [11:29:53]Write to MH i2c: E2 08 00 5A 4A 80 09 00 00 00 00 00 00 16 [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:53]Read from MH i2c: E2 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 5A 4A 00 90 00 18 [11:29:53]RAPDU: 90 00 [11:29:53]wFMCommunicate OK [11:29:53]SAM_PROTO_ClearQueue done [11:29:53]KKMCreateOFDPacket [11:29:53]OFDProtocolAddRootSTLVToBuf [11:29:53]FM_MakeSignedData [11:29:53]FM_MakeSignedData [11:29:53]SAM_PROTO_SignData [11:29:53]wFMCommunicate request_size=4 [11:29:53]MH_SAM_APDU [11:29:53]CAPDU: 80 0D 01 02 [11:29:53]Write to MH i2c: E2 08 00 5B 4A 80 0D 01 02 00 00 00 00 1E [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:53]Read from MH i2c: E2 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 5B 4A 00 90 00 19 [11:29:53]RAPDU: 90 00 [11:29:53]wFMCommunicate OK [11:29:53]wFMCommunicate request_size=255 [11:29:53]MH_SAM_APDU [11:29:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 3B 00 00 00 F4 03 04 00 B7 6F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 93 01 00 35 04 06 00 B2 [11:29:53]Write to MH i2c: E2 02 01 5C 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 3B 00 00 00 F4 03 04 00 B7 6F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 93 01 00 35 04 06 00 B2 00 00 2A [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 5C 4A 00 90 00 1A [11:29:54]RAPDU: 90 00 [11:29:54]wFMCommunicate OK [11:29:54]wFMCommunicate request_size=10 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 0D 02 02 05 D9 4B 22 86 A2 [11:29:54]Write to MH i2c: E2 0D 00 5D 4A 80 0D 02 02 05 00 D9 4B 22 86 A2 00 00 99 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 5D 4A 00 90 00 1B [11:29:54]RAPDU: 90 00 [11:29:54]wFMCommunicate OK [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 0D 03 02 [11:29:54]Write to MH i2c: E2 08 00 5E 4A 80 0D 03 02 00 00 00 00 23 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 0B 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 0B 00 5E 4A 00 E0 2B 28 0D 0A D0 EB B6 90 00 DF [11:29:54]RAPDU: E0 2B 28 0D 0A D0 EB B6 90 00 [11:29:54]wFMCommunicate OK [11:29:54]SAM_PROTO_SignData done [11:29:54]FM_MakeSignedData done [11:29:54]CreateOFDProtocolMessage [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 11 00 00 [11:29:54]Write to MH i2c: E2 08 00 5F 4A 80 11 00 00 00 00 00 00 23 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 5F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [11:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:29:54]wFMCommunicate OK [11:29:54]CreateOFDProtocolMessage done [11:29:54]OFDSenderStorePacket 103375 [11:29:54]StoreOFDPacket docnum=103375 [11:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 93 07 01 E6 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 3B 00 00 00 F4 03 04 00 B7 6F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 93 01 00 35 04 06 00 B2 D9 4B 22 86 A2 E0 2B 28 0D 0A D0 EB B6 [11:29:54]CheckFolder [11:29:54]dirname=/storage/ofd_packets [11:29:54]CheckFolder done [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00103375 [11:29:54]NVStorageSaveData ofd_packets/00103375 [11:29:54]File name is /storage/ofd_packets/00103375 [11:29:54]Write 301 bytes [11:29:54]NVStorageSaveData done [11:29:54]OFDSenderStorePacket done [11:29:54]KKMCreateOFDPacket done [11:29:54]NVStorageSaveData kkm_last_timestamp [11:29:54]File name is /storage/kkm_last_timestamp [11:29:54]Write 4 bytes [11:29:54]NVStorageSaveData done [11:29:54]ExternCall_PrintAddStr [11:29:54]wPrintStart [11:29:54]Write to MH i2c: 01 00 00 60 4A AA [11:29:54]OFD Sender: Processing packet 103375 [packets to send 17, broken 16] [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00103375 [11:29:54]OFD Sender: To server: pG, [11:29:54]CommunicateWithHost lk.salyk.kg:30040 [11:29:54]ConnectInit lk.salyk.kg [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 60 4A 00 00 00 00 00 FF 0F BF [11:29:54]RasterBufferAndPrint [11:29:54]line Счет N : (1)672536 [11:29:54]line ИНН: 02508201610067 [11:29:54]line Контрольно-Кассовый Чек [11:29:54]line ПРОДАЖА [11:29:54]line ТРК (МРК, ГНК) : 42 [11:29:54]line Товар: 2710124130 [11:29:54]line Аи-92-К-5 [11:29:54]line 22.600 * 66.40 [11:29:54]line = 1500.64 [11:29:54]line НДС 12% НСП 1% [11:29:54]line > о реализуемом товаре [11:29:54]line ОКРУГЛЕНИЕ: -0.64 [11:29:54]line ИТОГО: 1500.00 [11:29:54]line Внесено: 1500.00 [11:29:54]line СДАЧА: 0.00 [11:29:54]line НСП 1% : 13.28 [11:29:54]line НДС 12% : 159.36 [11:29:54]line Наличными: 1500.00 [11:29:54]line Безнал.: 0.00 [11:29:54]line Место: АЗС № 120 "Партнер Нефть" [11:29:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:29:54]line СНО: Общий режим [11:29:54]line Чек 59 18.06.2024 11:29 [11:29:54]line Смена: 352 ФФД: 1.0 [11:29:54]line ЗНМ: 0300000164 [11:29:54]line РНМ: 0000000000092785 [11:29:54]line Версия ККМ: 001 [11:29:54]line ФМ: 0000000000875093 [11:29:54]line ФД: 103375 [11:29:54]line ФПД: 196646338201250 [11:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112959&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103375&fm=196646338201250&tin=02508201610067®Number=0000000000092785&sum=150000 [11:29:54]Connected sock=10 [11:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 93 07 01 E6 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 3B 00 00 00 F4 03 04 00 B7 6F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 93 01 00 35 04 06 00 B2 D9 4B 22 86 A2 E0 2B 28 0D 0A D0 EB B6 [11:29:54]written 0, free lines is 4095 [11:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 E2 47 00 51 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 93 01 00 F4 03 04 00 43 16 71 66 B6 04 01 00 00 91 82 11 B9 24 5F E2 43 [11:29:54]CommunicateWithHost err = 0 [11:29:54]CheckOFDResponse [11:29:54]1017 (14) - 77093643461234 [11:29:54]1041 (16) - 0000000000875093 [11:29:54]1040 (4) - 103375 [11:29:54]1012 (4) - 18.06.2024 05:08 [11:29:54]1206 (1) - 0 [11:29:54]OFD Sender: Remove packet 103375 [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00103375 [11:29:54]NVStorageDeleteData [11:29:54]Write to MH i2c: 01 00 00 8B 4A D5 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 8B 4A 00 00 00 00 00 DC 0C C4 [11:29:54]RasterBufferAndPrint [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]written 0, free lines is 3302 [11:29:55]MH_Cut [11:29:55]Write to MH i2c: D1 01 00 92 4A 01 AE [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: D1 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: D1 01 00 [11:29:55]MH_I2C_Read... [11:29:55]Read from MH i2c: D1 01 00 92 4A 00 AD [11:29:55]Write to MH i2c: 01 00 00 93 4A DD [11:29:55]Write i2c OK [11:29:55]MH_I2C_Read... [11:29:55]OFD Sender: No OFD packet to send [11:29:55]*** Cut start [11:29:55]*** Partial cut [11:29:55]*** CUTSNS_PIN = 1 [11:29:55]*** CUTSNS_PIN = 0 [11:29:56]*** Brake cut motor [11:29:56]Read from MH i2c: 01 [11:29:56]MH_I2C_Read... [11:29:56]*** Stop cut motor [11:29:56]*** Cut end [11:29:56]Read from MH i2c: 01 07 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 93 4A 00 00 00 00 00 FF 0F F2 [11:29:56]process_action close_receipt done [11:29:56]requested_data is exist [11:29:56]produce_requested_data [11:29:56]requested_item fm.sn is exist - process it [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 11 00 00 [11:29:56]Write to MH i2c: E2 08 00 94 4A 80 11 00 00 00 00 00 00 58 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 94 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [11:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:29:56]wFMCommunicate OK [11:29:56]requested_item fd.num is exist - process it [11:29:56]SAM_PROTO_GetFieldsCounters [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 00 00 [11:29:56]Write to MH i2c: E2 08 00 95 4A 80 13 00 00 00 00 00 00 5B [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 62 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 62 00 95 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [11:29: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetFieldsCounters done [11:29:56]requested_item shift.num is exist - process it [11:29:56]requested_item shift.opened is exist - process it [11:29:56]req_shift_opened [11:29:56]FM_GetShiftState [11:29:56]SAM_PROTO_GetShiftState [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 01 00 [11:29:56]Write to MH i2c: E2 08 00 96 4A 80 13 01 00 00 00 00 00 5D [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 96 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DE [11:29:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetShiftState done [11:29:56]FM_GetShiftState done [11:29:56]req_shift_opened done [11:29:56]requested_item shift.open_date is exist - process it [11:29:56]req_shift_open_date [11:29:56]req_shift_open_date done [11:29:56]produce_requested_data done [11:29:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103375,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:29:56]process_action_free close_receipt [11:29:56]json_value_free [11:29:56]json_value_free done [11:29:56]process_json_proto returns [11:29:56]Send response to host [11:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103375,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:29:56]free response buf [11:29:56]execute_script done [11:29:56]execute_script returns [11:29:56]free content buf [11:29:56]Sock 9.Close socket [11:29:56]Sock 9.Thread stoped [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:30]accept exits with 7 [11:33:30]New connection [11:33:30]New thread 3067227492 created [11:33:30]Thread 3067084132 joined [11:33:30]Waiting for new connection... [11:33:30] Sock 7.Parse request [11:33:30]Sock 7.Check first char [11:33:30]Sock 7.First char is OK [11:33:30]request: POST /json_proto HTTP/1.0 [11:33:30]Method: POST [11:33:30]URL: /json_proto [11:33:30]Method is POST - this is cgi request [11:33:30]url: /json_proto [11:33:30]query_string will be loaded in cgi processing [11:33:30]execute_cgi json_proto POST (null) [11:33:30]execute_cgi path=json_proto method=POST [11:33:30]POST find Content-Length [11:33:30]Host: 172.17.38.133:8080 [11:33:30]Content-Length: 677 [11:33:30]Content-Type: application/json [11:33:30] [11:33:30]POST finish read [11:33:30]Found Content-Length = 677 [11:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:30]execute_script... [11:33:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:30]POST & json_proto [11:33:30]process_json_proto [11:33:30]json parsed OK: [11:33:30]protocol is kg_v1.0 [11:33:30]action value=close_receipt [11:33:30]process_action close_receipt [11:33:30]cmd_close_receipt [11:33:30]MH_GetDate [11:33:30]Write to MH i2c: F0 00 00 97 4A D0 [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: F0 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: F0 09 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: F0 09 00 97 4A 00 91 70 71 66 BD 8F 7C 64 DD [11:33:30]GetLastDocTimeStamp 1718710199 [11:33:30]current date 1718710417 [11:33:30]FM_GetShiftState [11:33:30]SAM_PROTO_GetShiftState [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 13 01 00 [11:33:30]Write to MH i2c: E2 08 00 98 4A 80 13 01 00 00 00 00 00 5F [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 98 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E0 [11:33:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:33:30]wFMCommunicate OK [11:33:30]SAM_PROTO_GetShiftState done [11:33:30]FM_GetShiftState done [11:33:30]opened in 1718670284 [11:33:30]opened+sec_in_day 1718756684 [11:33:30]quantity*price = 50065 [11:33:30]sum+1 = 50067 [11:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 60 18.06.2024 11:33 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103376 ФПД: 86908187725589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T113337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103376&fm=86908187725589&tin=02508201610067®Number=0000000000092785&sum=50000 [11:33:32]StoreToDocumentArchive [11:33:32]shift 352 fd 103376 [11:33:32]save to /storage/0352/doc_00103376 [11:33:32]save last doc name /storage/0352/doc_00103376 to /storage/kkm_last_doc_name [11:33:32]save OK [11:33:32]Clear old archive folders... [11:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:32]tlvbuf is 0134FEA0 [11:33:32]SAM_PROTO_ClearQueue [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 09 00 00 [11:33:32]Write to MH i2c: E2 08 00 A5 4A 80 09 00 00 00 00 00 00 61 [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 A5 4A 00 90 00 63 [11:33:32]RAPDU: 90 00 [11:33:32]wFMCommunicate OK [11:33:32]SAM_PROTO_ClearQueue done [11:33:32]KKMCreateOFDPacket [11:33:32]OFDProtocolAddRootSTLVToBuf [11:33:32]FM_MakeSignedData [11:33:32]FM_MakeSignedData [11:33:32]SAM_PROTO_SignData [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 0D 01 02 [11:33:32]Write to MH i2c: E2 08 00 A6 4A 80 0D 01 02 00 00 00 00 69 [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 A6 4A 00 90 00 64 [11:33:32]RAPDU: 90 00 [11:33:32]wFMCommunicate OK [11:33:32]wFMCommunicate request_size=255 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 91 70 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 93 01 00 35 04 06 00 4F [11:33:32]Write to MH i2c: E2 02 01 A7 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 91 70 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 93 01 00 35 04 06 00 4F 00 00 4B [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 A7 4A 00 90 00 65 [11:33:32]RAPDU: 90 00 [11:33:32]wFMCommunicate OK [11:33:32]wFMCommunicate request_size=10 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 0D 02 02 05 0A E3 A8 4F 15 [11:33:32]Write to MH i2c: E2 0D 00 A8 4A 80 0D 02 02 05 00 0A E3 A8 4F 15 00 00 6F [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 03 00 A8 4A 00 90 00 66 [11:33:32]RAPDU: 90 00 [11:33:32]wFMCommunicate OK [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 0D 03 02 [11:33:32]Write to MH i2c: E2 08 00 A9 4A 80 0D 03 02 00 00 00 00 6E [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 0B 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 0B 00 A9 4A 00 8A 44 67 90 78 BE EF 29 90 00 82 [11:33:32]RAPDU: 8A 44 67 90 78 BE EF 29 90 00 [11:33:32]wFMCommunicate OK [11:33:32]SAM_PROTO_SignData done [11:33:32]FM_MakeSignedData done [11:33:32]CreateOFDProtocolMessage [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 11 00 00 [11:33:32]Write to MH i2c: E2 08 00 AA 4A 80 11 00 00 00 00 00 00 6E [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 17 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 17 00 AA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [11:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:33:32]wFMCommunicate OK [11:33:32]CreateOFDProtocolMessage done [11:33:32]OFDSenderStorePacket 103376 [11:33:32]StoreOFDPacket docnum=103376 [11:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 52 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 91 70 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 93 01 00 35 04 06 00 4F 0A E3 A8 4F 15 8A 44 67 90 78 BE EF 29 [11:33:32]CheckFolder [11:33:32]dirname=/storage/ofd_packets [11:33:32]CheckFolder done [11:33:32]ProducePacketName [11:33:32]name=ofd_packets/00103376 [11:33:32]NVStorageSaveData ofd_packets/00103376 [11:33:32]File name is /storage/ofd_packets/00103376 [11:33:32]Write 301 bytes [11:33:32]NVStorageSaveData done [11:33:32]OFDSenderStorePacket done [11:33:32]KKMCreateOFDPacket done [11:33:32]NVStorageSaveData kkm_last_timestamp [11:33:32]File name is /storage/kkm_last_timestamp [11:33:32]Write 4 bytes [11:33:32]NVStorageSaveData done [11:33:32]ExternCall_PrintAddStr [11:33:32]wPrintStart [11:33:32]Write to MH i2c: 01 00 00 AB 4A F5 [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: 01 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: 01 07 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: 01 07 00 AB 4A 00 00 00 00 00 FF 0F 0A [11:33:32]RasterBufferAndPrint [11:33:32]line Счет N : (1)672537 [11:33:32]line ИНН: 02508201610067 [11:33:32]line Контрольно-Кассовый Чек [11:33:32]line ПРОДАЖА [11:33:32]line ТРК (МРК, ГНК) : 32 [11:33:32]line Товар: 2710124130 [11:33:32]line Аи-92-К-5 [11:33:32]line 7.540 * 66.40 [11:33:32]line = 500.66 [11:33:32]line НДС 12% НСП 1% [11:33:32]line > о реализуемом товаре [11:33:32]line ОКРУГЛЕНИЕ: -0.66 [11:33:32]line ИТОГО: 500.00 [11:33:32]line Внесено: 500.00 [11:33:32]line СДАЧА: 0.00 [11:33:32]line НСП 1% : 4.43 [11:33:32]line НДС 12% : 53.17 [11:33:32]line Наличными: 500.00 [11:33:32]line Безнал.: 0.00 [11:33:32]line Место: АЗС № 120 "Партнер Нефть" [11:33:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:33:32]line СНО: Общий режим [11:33:32]line Чек 60 18.06.2024 11:33 [11:33:32]line Смена: 352 ФФД: 1.0 [11:33:32]line ЗНМ: 0300000164 [11:33:32]line РНМ: 0000000000092785 [11:33:32]line Версия ККМ: 001 [11:33:32]line ФМ: 0000000000875093 [11:33:32]line ФД: 103376 [11:33:32]line ФПД: 86908187725589 [11:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T113337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103376&fm=86908187725589&tin=02508201610067®Number=0000000000092785&sum=50000 [11:33:32]written 0, free lines is 4095 [11:33:32]OFD Sender: Processing packet 103376 [packets to send 17, broken 16] [11:33:32]ProducePacketName [11:33:32]name=ofd_packets/00103376 [11:33:32]OFD Sender: To server: pG, [11:33:32]CommunicateWithHost lk.salyk.kg:30040 [11:33:32]ConnectInit lk.salyk.kg [11:33:33]Connected sock=10 [11:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 52 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 91 70 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 93 01 00 35 04 06 00 4F 0A E3 A8 4F 15 8A 44 67 90 78 BE EF 29 [11:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D0 46 47 00 4D 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 35 30 39 33 10 04 04 00 D0 93 01 00 F4 03 04 00 1D 17 71 66 B6 04 01 00 00 D4 87 3C 6A E5 05 57 91 [11:33:33]CommunicateWithHost err = 0 [11:33:33]CheckOFDResponse [11:33:33]1017 (14) - 77093643461234 [11:33:33]1041 (16) - 0000000000875093 [11:33:33]1040 (4) - 103376 [11:33:33]1012 (4) - 18.06.2024 05:11 [11:33:33]1206 (1) - 0 [11:33:33]OFD Sender: Remove packet 103376 [11:33:33]ProducePacketName [11:33:33]name=ofd_packets/00103376 [11:33:33]NVStorageDeleteData [11:33:33]Write to MH i2c: 01 00 00 D6 4A 20 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 07 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 07 00 D6 4A 00 00 00 00 00 D4 0C 07 [11:33:33]RasterBufferAndPrint [11:33:33]line [11:33:33]line [11:33:33]line [11:33:33]line [11:33:33]line [11:33:33]written 0, free lines is 3292 [11:33:33]MH_Cut [11:33:33]Write to MH i2c: D1 01 00 DD 4A 01 F9 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: D1 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: D1 01 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: D1 01 00 DD 4A 00 F8 [11:33:33]Write to MH i2c: 01 00 00 DE 4A 28 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]OFD Sender: No OFD packet to send [11:33:34]*** Cut start [11:33:34]*** Partial cut [11:33:34]*** CUTSNS_PIN = 1 [11:33:34]*** CUTSNS_PIN = 0 [11:33:34]*** Brake cut motor [11:33:34]Read from MH i2c: 01 [11:33:34]MH_I2C_Read... [11:33:34]*** Stop cut motor [11:33:34]*** Cut end [11:33:34]Read from MH i2c: 01 07 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: 01 07 00 DE 4A 00 00 00 00 00 FF 0F 3D [11:33:34]process_action close_receipt done [11:33:34]requested_data is exist [11:33:34]produce_requested_data [11:33:34]requested_item fm.sn is exist - process it [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 11 00 00 [11:33:34]Write to MH i2c: E2 08 00 DF 4A 80 11 00 00 00 00 00 00 A3 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 17 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 17 00 DF 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [11:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:33:34]wFMCommunicate OK [11:33:34]requested_item fd.num is exist - process it [11:33:34]SAM_PROTO_GetFieldsCounters [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 13 00 00 [11:33:34]Write to MH i2c: E2 08 00 E0 4A 80 13 00 00 00 00 00 00 A6 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 62 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 62 00 E0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_GetFieldsCounters done [11:33:34]requested_item shift.num is exist - process it [11:33:34]requested_item shift.opened is exist - process it [11:33:34]req_shift_opened [11:33:34]FM_GetShiftState [11:33:34]SAM_PROTO_GetShiftState [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 13 01 00 [11:33:34]Write to MH i2c: E2 08 00 E1 4A 80 13 01 00 00 00 00 00 A8 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 E1 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 29 [11:33:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_GetShiftState done [11:33:34]FM_GetShiftState done [11:33:34]req_shift_opened done [11:33:34]requested_item shift.open_date is exist - process it [11:33:34]req_shift_open_date [11:33:34]req_shift_open_date done [11:33:34]produce_requested_data done [11:33:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103376,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:33:34]process_action_free close_receipt [11:33:34]json_value_free [11:33:34]json_value_free done [11:33:34]process_json_proto returns [11:33:34]Send response to host [11:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103376,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:33:34]free response buf [11:33:34]execute_script done [11:33:34]execute_script returns [11:33:34]free content buf [11:33:34]Sock 7.Close socket [11:33:34]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:05]accept exits with 9 [11:40:05]New connection [11:40:05]New thread 3067084132 created [11:40:05]Thread 3067227492 joined [11:40:05]Waiting for new connection... [11:40:05] Sock 9.Parse request [11:40:05]Sock 9.Check first char [11:40:05]Sock 9.First char is OK [11:40:05]request: POST /json_proto HTTP/1.0 [11:40:05]Method: POST [11:40:05]URL: /json_proto [11:40:05]Method is POST - this is cgi request [11:40:05]url: /json_proto [11:40:05]query_string will be loaded in cgi processing [11:40:05]execute_cgi json_proto POST (null) [11:40:05]execute_cgi path=json_proto method=POST [11:40:05]POST find Content-Length [11:40:05]Host: 172.17.38.133:8080 [11:40:05]Content-Length: 677 [11:40:05]Content-Type: application/json [11:40:05] [11:40:05]POST finish read [11:40:05]Found Content-Length = 677 [11:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:05]execute_script... [11:40:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:05]POST & json_proto [11:40:05]process_json_proto [11:40:05]json parsed OK: [11:40:05]protocol is kg_v1.0 [11:40:05]action value=close_receipt [11:40:05]process_action close_receipt [11:40:05]cmd_close_receipt [11:40:05]MH_GetDate [11:40:05]Write to MH i2c: F0 00 00 E2 4A 1B [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: F0 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: F0 09 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: F0 09 00 E2 4A 00 1B 72 71 66 BD 8F 7C 64 B4 [11:40:05]GetLastDocTimeStamp 1718710417 [11:40:05]current date 1718710811 [11:40:05]FM_GetShiftState [11:40:05]SAM_PROTO_GetShiftState [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 01 00 [11:40:05]Write to MH i2c: E2 08 00 E3 4A 80 13 01 00 00 00 00 00 AA [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 E3 4A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2B [11:40:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetShiftState done [11:40:05]FM_GetShiftState done [11:40:05]opened in 1718670284 [11:40:05]opened+sec_in_day 1718756684 [11:40:05]quantity*price = 20052 [11:40:05]sum+1 = 20054 [11:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 18.06.2024 11:40 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103377 ФПД: 137503511476721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103377&fm=137503511476721&tin=02508201610067®Number=0000000000092785&sum=20000 [11:40:06]StoreToDocumentArchive [11:40:06]shift 352 fd 103377 [11:40:06]save to /storage/0352/doc_00103377 [11:40:06]save last doc name /storage/0352/doc_00103377 to /storage/kkm_last_doc_name [11:40:06]save OK [11:40:06]Clear old archive folders... [11:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:06]tlvbuf is 01394CE0 [11:40:06]SAM_PROTO_ClearQueue [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 09 00 00 [11:40:06]Write to MH i2c: E2 08 00 F0 4A 80 09 00 00 00 00 00 00 AC [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 F0 4A 00 90 00 AE [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]SAM_PROTO_ClearQueue done [11:40:06]KKMCreateOFDPacket [11:40:06]OFDProtocolAddRootSTLVToBuf [11:40:06]FM_MakeSignedData [11:40:06]FM_MakeSignedData [11:40:06]SAM_PROTO_SignData [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 01 02 [11:40:06]Write to MH i2c: E2 08 00 F1 4A 80 0D 01 02 00 00 00 00 B4 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 F1 4A 00 90 00 AF [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=255 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1B 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 93 01 00 35 04 06 00 7D [11:40:06]Write to MH i2c: E2 02 01 F2 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1B 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 93 01 00 35 04 06 00 7D 00 00 11 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 F2 4A 00 90 00 B0 [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=10 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 02 02 05 0F 07 F4 F9 F1 [11:40:06]Write to MH i2c: E2 0D 00 F3 4A 80 0D 02 02 05 00 0F 07 F4 F9 F1 00 00 B5 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 F3 4A 00 90 00 B1 [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 03 02 [11:40:06]Write to MH i2c: E2 08 00 F4 4A 80 0D 03 02 00 00 00 00 B9 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:07]Read from MH i2c: E2 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: E2 0B 00 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: E2 0B 00 F4 4A 00 33 5E A4 90 B4 13 0B 19 90 00 6A [11:40:07]RAPDU: 33 5E A4 90 B4 13 0B 19 90 00 [11:40:07]wFMCommunicate OK [11:40:07]SAM_PROTO_SignData done [11:40:07]FM_MakeSignedData done [11:40:07]CreateOFDProtocolMessage [11:40:07]wFMCommunicate request_size=4 [11:40:07]MH_SAM_APDU [11:40:07]CAPDU: 80 11 00 00 [11:40:07]Write to MH i2c: E2 08 00 F5 4A 80 11 00 00 00 00 00 00 B9 [11:40:07]Write i2c OK [11:40:07]MH_I2C_Read... [11:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:07]Read from MH i2c: E2 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: E2 17 00 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: E2 17 00 F5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [11:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:40:07]wFMCommunicate OK [11:40:07]CreateOFDProtocolMessage done [11:40:07]OFDSenderStorePacket 103377 [11:40:07]StoreOFDPacket docnum=103377 [11:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 87 07 01 A0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1B 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 93 01 00 35 04 06 00 7D 0F 07 F4 F9 F1 33 5E A4 90 B4 13 0B 19 [11:40:07]CheckFolder [11:40:07]dirname=/storage/ofd_packets [11:40:07]CheckFolder done [11:40:07]ProducePacketName [11:40:07]name=ofd_packets/00103377 [11:40:07]NVStorageSaveData ofd_packets/00103377 [11:40:07]File name is /storage/ofd_packets/00103377 [11:40:07]Write 301 bytes [11:40:07]NVStorageSaveData done [11:40:07]OFDSenderStorePacket done [11:40:07]KKMCreateOFDPacket done [11:40:07]NVStorageSaveData kkm_last_timestamp [11:40:07]File name is /storage/kkm_last_timestamp [11:40:07]Write 4 bytes [11:40:07]NVStorageSaveData done [11:40:07]ExternCall_PrintAddStr [11:40:07]wPrintStart [11:40:07]Write to MH i2c: 01 00 00 F6 4A 40 [11:40:07]Write i2c OK [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 07 00 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 07 00 F6 4A 00 00 00 00 00 FF 0F 55 [11:40:07]RasterBufferAndPrint [11:40:07]line Счет N : (1)672538 [11:40:07]line ИНН: 02508201610067 [11:40:07]line Контрольно-Кассовый Чек [11:40:07]line ПРОДАЖА [11:40:07]line ТРК (МРК, ГНК) : 42 [11:40:07]line Товар: 2710124130 [11:40:07]line Аи-92-К-5 [11:40:07]line 3.020 * 66.40 [11:40:07]line = 200.53 [11:40:07]line НДС 12% НСП 1% [11:40:07]line > о реализуемом товаре [11:40:07]line ОКРУГЛЕНИЕ: -0.53 [11:40:07]line ИТОГО: 200.00 [11:40:07]line Внесено: 200.00 [11:40:07]line СДАЧА: 0.00 [11:40:07]line НСП 1% : 1.77 [11:40:07]line НДС 12% : 21.29 [11:40:07]line Наличными: 200.00 [11:40:07]line Безнал.: 0.00 [11:40:07]line Место: АЗС № 120 "Партнер Нефть" [11:40:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:40:07]line СНО: Общий режим [11:40:07]line Чек 61 18.06.2024 11:40 [11:40:07]line Смена: 352 ФФД: 1.0 [11:40:07]line ЗНМ: 0300000164 [11:40:07]line РНМ: 0000000000092785 [11:40:07]line Версия ККМ: 001 [11:40:07]line ФМ: 0000000000875093 [11:40:07]line ФД: 103377 [11:40:07]line ФПД: 137503511476721 [11:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103377&fm=137503511476721&tin=02508201610067®Number=0000000000092785&sum=20000 [11:40:07]OFD Sender: Processing packet 103377 [packets to send 17, broken 16] [11:40:07]ProducePacketName [11:40:07]name=ofd_packets/00103377 [11:40:07]OFD Sender: To server: pG, [11:40:07]CommunicateWithHost lk.salyk.kg:30040 [11:40:07]ConnectInit lk.salyk.kg [11:40:07]written 0, free lines is 4095 [11:40:07]Connected sock=10 [11:40:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 87 07 01 A0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1B 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 93 01 00 35 04 06 00 7D 0F 07 F4 F9 F1 33 5E A4 90 B4 13 0B 19 [11:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8E 0A 47 00 35 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 93 01 00 F4 03 04 00 A8 18 71 66 B6 04 01 00 00 25 68 64 28 FB C0 EB 59 [11:40:07]CommunicateWithHost err = 0 [11:40:07]CheckOFDResponse [11:40:07]1017 (14) - 77093643461234 [11:40:07]1041 (16) - 0000000000875093 [11:40:07]1040 (4) - 103377 [11:40:07]1012 (4) - 18.06.2024 05:18 [11:40:07]1206 (1) - 0 [11:40:07]OFD Sender: Remove packet 103377 [11:40:07]ProducePacketName [11:40:07]name=ofd_packets/00103377 [11:40:07]NVStorageDeleteData [11:40:07]Write to MH i2c: 01 00 00 21 4B 6C [11:40:07]Write i2c OK [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 07 00 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: 01 07 00 21 4B 00 00 00 00 00 E0 0C 5F [11:40:07]RasterBufferAndPrint [11:40:07]line [11:40:07]line [11:40:07]line [11:40:07]line [11:40:07]line [11:40:07]written 0, free lines is 3304 [11:40:07]MH_Cut [11:40:07]Write to MH i2c: D1 01 00 28 4B 01 45 [11:40:07]Write i2c OK [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: D1 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: D1 01 00 [11:40:07]MH_I2C_Read... [11:40:07]Read from MH i2c: D1 01 00 28 4B 00 44 [11:40:07]Write to MH i2c: 01 00 00 29 4B 74 [11:40:07]Write i2c OK [11:40:07]MH_I2C_Read... [11:40:08]OFD Sender: No OFD packet to send [11:40:08]*** Cut start [11:40:08]*** Partial cut [11:40:08]*** CUTSNS_PIN = 1 [11:40:08]*** CUTSNS_PIN = 0 [11:40:08]*** Brake cut motor [11:40:09]Read from MH i2c: 01 [11:40:09]MH_I2C_Read... [11:40:09]*** Stop cut motor [11:40:09]*** Cut end [11:40:09]Read from MH i2c: 01 07 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: 01 07 00 29 4B 00 00 00 00 00 FF 0F 89 [11:40:09]process_action close_receipt done [11:40:09]requested_data is exist [11:40:09]produce_requested_data [11:40:09]requested_item fm.sn is exist - process it [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 11 00 00 [11:40:09]Write to MH i2c: E2 08 00 2A 4B 80 11 00 00 00 00 00 00 EF [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 17 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 17 00 2A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [11:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:40:09]wFMCommunicate OK [11:40:09]requested_item fd.num is exist - process it [11:40:09]SAM_PROTO_GetFieldsCounters [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 13 00 00 [11:40:09]Write to MH i2c: E2 08 00 2B 4B 80 13 00 00 00 00 00 00 F2 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 62 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 62 00 2B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [11:40:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:09]wFMCommunicate OK [11:40:09]SAM_PROTO_GetFieldsCounters done [11:40:09]requested_item shift.num is exist - process it [11:40:09]requested_item shift.opened is exist - process it [11:40:09]req_shift_opened [11:40:09]FM_GetShiftState [11:40:09]SAM_PROTO_GetShiftState [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 13 01 00 [11:40:09]Write to MH i2c: E2 08 00 2C 4B 80 13 01 00 00 00 00 00 F4 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 0E 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 0E 00 2C 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 75 [11:40:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:40:09]wFMCommunicate OK [11:40:09]SAM_PROTO_GetShiftState done [11:40:09]FM_GetShiftState done [11:40:09]req_shift_opened done [11:40:09]requested_item shift.open_date is exist - process it [11:40:09]req_shift_open_date [11:40:09]req_shift_open_date done [11:40:09]produce_requested_data done [11:40:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103377,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:40:09]process_action_free close_receipt [11:40:09]json_value_free [11:40:09]json_value_free done [11:40:09]process_json_proto returns [11:40:09]Send response to host [11:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103377,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:40:09]free response buf [11:40:09]execute_script done [11:40:09]execute_script returns [11:40:09]free content buf [11:40:09]Sock 9.Close socket [11:40:09]Sock 9.Thread stoped [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:22]accept exits with 7 [11:42:22]New connection [11:42:22]New thread 3067227492 created [11:42:22]Thread 3067084132 joined [11:42:22]Waiting for new connection... [11:42:22] Sock 7.Parse request [11:42:22]Sock 7.Check first char [11:42:22]Sock 7.First char is OK [11:42:22]request: POST /json_proto HTTP/1.0 [11:42:22]Method: POST [11:42:22]URL: /json_proto [11:42:22]Method is POST - this is cgi request [11:42:22]url: /json_proto [11:42:22]query_string will be loaded in cgi processing [11:42:22]execute_cgi json_proto POST (null) [11:42:22]execute_cgi path=json_proto method=POST [11:42:22]POST find Content-Length [11:42:22]Host: 172.17.38.133:8080 [11:42:22]Content-Length: 640 [11:42:22]Content-Type: application/json [11:42:22] [11:42:22]POST finish read [11:42:22]Found Content-Length = 640 [11:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:22]execute_script... [11:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:22]POST & json_proto [11:42:22]process_json_proto [11:42:22]json parsed OK: [11:42:22]protocol is kg_v1.0 [11:42:22]action value=close_receipt [11:42:22]process_action close_receipt [11:42:22]cmd_close_receipt [11:42:22]MH_GetDate [11:42:22]Write to MH i2c: F0 00 00 2D 4B 67 [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: F0 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: F0 09 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: F0 09 00 2D 4B 00 A5 72 71 66 BD 8F 7C 64 8A [11:42:22]GetLastDocTimeStamp 1718710811 [11:42:22]current date 1718710949 [11:42:22]FM_GetShiftState [11:42:22]SAM_PROTO_GetShiftState [11:42:22]wFMCommunicate request_size=4 [11:42:22]MH_SAM_APDU [11:42:22]CAPDU: 80 13 01 00 [11:42:22]Write to MH i2c: E2 08 00 2E 4B 80 13 01 00 00 00 00 00 F6 [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 2E 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 77 [11:42:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:42:22]wFMCommunicate OK [11:42:22]SAM_PROTO_GetShiftState done [11:42:22]FM_GetShiftState done [11:42:22]opened in 1718670284 [11:42:22]opened+sec_in_day 1718756684 [11:42:22]quantity*price = 66400 [11:42:22]sum+1 = 66401 [11:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 62 18.06.2024 11:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103378 ФПД: 22860120196241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114229&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103378&fm=22860120196241&tin=02508201610067®Number=0000000000092785&sum=66400 [11:42:23]StoreToDocumentArchive [11:42:23]shift 352 fd 103378 [11:42:23]save to /storage/0352/doc_00103378 [11:42:23]save last doc name /storage/0352/doc_00103378 to /storage/kkm_last_doc_name [11:42:23]save OK [11:42:23]Clear old archive folders... [11:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:23]tlvbuf is 0147B780 [11:42:23]SAM_PROTO_ClearQueue [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 09 00 00 [11:42:23]Write to MH i2c: E2 08 00 3B 4B 80 09 00 00 00 00 00 00 F8 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 03 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 03 00 3B 4B 00 90 00 FA [11:42:23]RAPDU: 90 00 [11:42:23]wFMCommunicate OK [11:42:23]SAM_PROTO_ClearQueue done [11:42:23]KKMCreateOFDPacket [11:42:23]OFDProtocolAddRootSTLVToBuf [11:42:23]FM_MakeSignedData [11:42:23]FM_MakeSignedData [11:42:23]SAM_PROTO_SignData [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 0D 01 02 [11:42:23]Write to MH i2c: E2 08 00 3C 4B 80 0D 01 02 00 00 00 00 00 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 03 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 03 00 3C 4B 00 90 00 FB [11:42:23]RAPDU: 90 00 [11:42:23]wFMCommunicate OK [11:42:23]wFMCommunicate request_size=255 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 A5 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 93 01 00 35 04 06 00 14 [11:42:23]Write to MH i2c: E2 02 01 3D 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 A5 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 93 01 00 35 04 06 00 14 00 00 77 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 03 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 03 00 3D 4B 00 90 00 FC [11:42:24]RAPDU: 90 00 [11:42:24]wFMCommunicate OK [11:42:24]wFMCommunicate request_size=10 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 0D 02 02 05 CA 89 58 04 91 [11:42:24]Write to MH i2c: E2 0D 00 3E 4B 80 0D 02 02 05 00 CA 89 58 04 91 00 00 4D [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 03 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 03 00 3E 4B 00 90 00 FD [11:42:24]RAPDU: 90 00 [11:42:24]wFMCommunicate OK [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 0D 03 02 [11:42:24]Write to MH i2c: E2 08 00 3F 4B 80 0D 03 02 00 00 00 00 05 [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0B 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0B 00 3F 4B 00 EA 8F 0C D5 B9 62 92 F5 90 00 02 [11:42:24]RAPDU: EA 8F 0C D5 B9 62 92 F5 90 00 [11:42:24]wFMCommunicate OK [11:42:24]SAM_PROTO_SignData done [11:42:24]FM_MakeSignedData done [11:42:24]CreateOFDProtocolMessage [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 11 00 00 [11:42:24]Write to MH i2c: E2 08 00 40 4B 80 11 00 00 00 00 00 00 05 [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 40 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [11:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:42:24]wFMCommunicate OK [11:42:24]CreateOFDProtocolMessage done [11:42:24]OFDSenderStorePacket 103378 [11:42:24]StoreOFDPacket docnum=103378 [11:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD AB 07 01 3A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 A5 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 93 01 00 35 04 06 00 14 CA 89 58 04 91 EA 8F 0C D5 B9 62 92 F5 [11:42:24]CheckFolder [11:42:24]dirname=/storage/ofd_packets [11:42:24]CheckFolder done [11:42:24]ProducePacketName [11:42:24]name=ofd_packets/00103378 [11:42:24]NVStorageSaveData ofd_packets/00103378 [11:42:24]File name is /storage/ofd_packets/00103378 [11:42:24]Write 301 bytes [11:42:24]NVStorageSaveData done [11:42:24]OFDSenderStorePacket done [11:42:24]KKMCreateOFDPacket done [11:42:24]NVStorageSaveData kkm_last_timestamp [11:42:24]File name is /storage/kkm_last_timestamp [11:42:24]Write 4 bytes [11:42:24]NVStorageSaveData done [11:42:24]ExternCall_PrintAddStr [11:42:24]wPrintStart [11:42:24]Write to MH i2c: 01 00 00 41 4B 8C [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: 01 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: 01 07 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: 01 07 00 41 4B 00 00 00 00 00 FF 0F A1 [11:42:24]RasterBufferAndPrint [11:42:24]line Счет N : (1)672539 [11:42:24]line ИНН: 02508201610067 [11:42:24]line Контрольно-Кассовый Чек [11:42:24]line ПРОДАЖА [11:42:24]line ТРК (МРК, ГНК) : 32 [11:42:24]line Товар: 2710124130 [11:42:24]line Аи-92-К-5 [11:42:24]line 10.000 * 66.40 [11:42:24]line = 664.00 [11:42:24]line НДС 12% НСП 1% [11:42:24]line > о реализуемом товаре [11:42:24]line ИТОГО: 664.00 [11:42:24]line НСП 1% : 5.88 [11:42:24]line НДС 12% : 70.51 [11:42:24]line Наличными: 664.00 [11:42:24]line Безнал.: 0.00 [11:42:24]line Место: АЗС № 120 "Партнер Нефть" [11:42:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:42:24]line СНО: Общий режим [11:42:24]line Чек 62 18.06.2024 11:42 [11:42:24]line Смена: 352 ФФД: 1.0 [11:42:24]line ЗНМ: 0300000164 [11:42:24]line РНМ: 0000000000092785 [11:42:24]line Версия ККМ: 001 [11:42:24]line ФМ: 0000000000875093 [11:42:24]line ФД: 103378 [11:42:24]line ФПД: 22860120196241 [11:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114229&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103378&fm=22860120196241&tin=02508201610067®Number=0000000000092785&sum=66400 [11:42:24]OFD Sender: Processing packet 103378 [packets to send 17, broken 16] [11:42:24]ProducePacketName [11:42:24]name=ofd_packets/00103378 [11:42:24]OFD Sender: To server: pG, [11:42:24]CommunicateWithHost lk.salyk.kg:30040 [11:42:24]ConnectInit lk.salyk.kg [11:42:24]written 0, free lines is 4095 [11:42:24]Connected sock=10 [11:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD AB 07 01 3A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 A5 72 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 93 01 00 35 04 06 00 14 CA 89 58 04 91 EA 8F 0C D5 B9 62 92 F5 [11:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 15 7C 47 00 20 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 93 01 00 F4 03 04 00 31 19 71 66 B6 04 01 00 00 2F 28 AF EB 4E F0 09 21 [11:42:25]CommunicateWithHost err = 0 [11:42:25]CheckOFDResponse [11:42:25]1017 (14) - 77093643461234 [11:42:25]1041 (16) - 0000000000875093 [11:42:25]1040 (4) - 103378 [11:42:25]1012 (4) - 18.06.2024 05:20 [11:42:25]1206 (1) - 0 [11:42:25]OFD Sender: Remove packet 103378 [11:42:25]ProducePacketName [11:42:25]name=ofd_packets/00103378 [11:42:25]NVStorageDeleteData [11:42:25]Write to MH i2c: 01 00 00 69 4B B4 [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 07 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 07 00 69 4B 00 00 00 00 00 10 0D D8 [11:42:25]RasterBufferAndPrint [11:42:25]line [11:42:25]line [11:42:25]line [11:42:25]line [11:42:25]line [11:42:25]written 0, free lines is 3350 [11:42:25]MH_Cut [11:42:25]Write to MH i2c: D1 01 00 70 4B 01 8D [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: D1 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: D1 01 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: D1 01 00 70 4B 00 8C [11:42:25]Write to MH i2c: 01 00 00 71 4B BC [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]OFD Sender: No OFD packet to send [11:42:25]*** Cut start [11:42:25]*** Partial cut [11:42:25]*** CUTSNS_PIN = 1 [11:42:25]*** CUTSNS_PIN = 0 [11:42:26]*** Brake cut motor [11:42:26]Read from MH i2c: 01 [11:42:26]MH_I2C_Read... [11:42:26]*** Stop cut motor [11:42:26]*** Cut end [11:42:26]Read from MH i2c: 01 07 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: 01 07 00 71 4B 00 00 00 00 00 FF 0F D1 [11:42:26]process_action close_receipt done [11:42:26]requested_data is exist [11:42:26]produce_requested_data [11:42:26]requested_item fm.sn is exist - process it [11:42:26]wFMCommunicate request_size=4 [11:42:26]MH_SAM_APDU [11:42:26]CAPDU: 80 11 00 00 [11:42:26]Write to MH i2c: E2 08 00 72 4B 80 11 00 00 00 00 00 00 37 [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:26]Read from MH i2c: E2 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 17 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 17 00 72 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [11:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:42:26]wFMCommunicate OK [11:42:26]requested_item fd.num is exist - process it [11:42:26]SAM_PROTO_GetFieldsCounters [11:42:26]wFMCommunicate request_size=4 [11:42:26]MH_SAM_APDU [11:42:26]CAPDU: 80 13 00 00 [11:42:26]Write to MH i2c: E2 08 00 73 4B 80 13 00 00 00 00 00 00 3A [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:26]Read from MH i2c: E2 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 62 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 62 00 73 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:26]wFMCommunicate OK [11:42:26]SAM_PROTO_GetFieldsCounters done [11:42:26]requested_item shift.num is exist - process it [11:42:26]requested_item shift.opened is exist - process it [11:42:26]req_shift_opened [11:42:26]FM_GetShiftState [11:42:26]SAM_PROTO_GetShiftState [11:42:26]wFMCommunicate request_size=4 [11:42:26]MH_SAM_APDU [11:42:26]CAPDU: 80 13 01 00 [11:42:26]Write to MH i2c: E2 08 00 74 4B 80 13 01 00 00 00 00 00 3C [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 [11:42:26]MH_I2C_Read... [11:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:26]Read from MH i2c: E2 0E 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: E2 0E 00 74 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BD [11:42:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:42:26]wFMCommunicate OK [11:42:26]SAM_PROTO_GetShiftState done [11:42:26]FM_GetShiftState done [11:42:26]req_shift_opened done [11:42:26]requested_item shift.open_date is exist - process it [11:42:26]req_shift_open_date [11:42:26]req_shift_open_date done [11:42:26]produce_requested_data done [11:42:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103378,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:42:26]process_action_free close_receipt [11:42:26]json_value_free [11:42:26]json_value_free done [11:42:26]process_json_proto returns [11:42:26]Send response to host [11:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103378,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:42:26]free response buf [11:42:26]execute_script done [11:42:26]execute_script returns [11:42:26]free content buf [11:42:26]Sock 7.Close socket [11:42:26]Sock 7.Thread stoped [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:09]accept exits with 9 [11:47:09]New connection [11:47:09]New thread 3067084132 created [11:47:09]Thread 3067227492 joined [11:47:09]Waiting for new connection... [11:47:09] Sock 9.Parse request [11:47:09]Sock 9.Check first char [11:47:09]Sock 9.First char is OK [11:47:09]request: POST /json_proto HTTP/1.0 [11:47:09]Method: POST [11:47:09]URL: /json_proto [11:47:09]Method is POST - this is cgi request [11:47:09]url: /json_proto [11:47:09]query_string will be loaded in cgi processing [11:47:09]execute_cgi json_proto POST (null) [11:47:09]execute_cgi path=json_proto method=POST [11:47:09]POST find Content-Length [11:47:09]Host: 172.17.38.133:8080 [11:47:09]Content-Length: 816 [11:47:09]Content-Type: application/json [11:47:09] [11:47:09]POST finish read [11:47:09]Found Content-Length = 816 [11:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:09]execute_script... [11:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:09]POST & json_proto [11:47:09]process_json_proto [11:47:09]json parsed OK: [11:47:09]protocol is kg_v1.0 [11:47:09]action value=close_receipt [11:47:09]process_action close_receipt [11:47:09]cmd_close_receipt [11:47:09]MH_GetDate [11:47:09]Write to MH i2c: F0 00 00 75 4B AF [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: F0 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: F0 09 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: F0 09 00 75 4B 00 C4 73 71 66 BD 8F 7C 64 F2 [11:47:09]GetLastDocTimeStamp 1718710949 [11:47:09]current date 1718711236 [11:47:09]FM_GetShiftState [11:47:09]SAM_PROTO_GetShiftState [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 13 01 00 [11:47:09]Write to MH i2c: E2 08 00 76 4B 80 13 01 00 00 00 00 00 3E [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0E 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0E 00 76 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BF [11:47:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:47:09]wFMCommunicate OK [11:47:09]SAM_PROTO_GetShiftState done [11:47:09]FM_GetShiftState done [11:47:09]opened in 1718670284 [11:47:09]opened+sec_in_day 1718756684 [11:47:09]quantity*price = 50065 [11:47:09]sum+1 = 50067 [11:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 18.06.2024 11:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103379 ФПД: 203378446915059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114716&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103379&fm=203378446915059&tin=02508201610067®Number=0000000000092785&sum=50066 [11:47:10]StoreToDocumentArchive [11:47:10]shift 352 fd 103379 [11:47:10]save to /storage/0352/doc_00103379 [11:47:10]save last doc name /storage/0352/doc_00103379 to /storage/kkm_last_doc_name [11:47:10]save OK [11:47:10]Clear old archive folders... [11:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:10]tlvbuf is 013A23B0 [11:47:10]SAM_PROTO_ClearQueue [11:47:10]wFMCommunicate request_size=4 [11:47:10]MH_SAM_APDU [11:47:10]CAPDU: 80 09 00 00 [11:47:10]Write to MH i2c: E2 08 00 83 4B 80 09 00 00 00 00 00 00 40 [11:47:10]Write i2c OK [11:47:10]MH_I2C_Read... [11:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:10]Read from MH i2c: E2 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: E2 03 00 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: E2 03 00 83 4B 00 90 00 42 [11:47:10]RAPDU: 90 00 [11:47:10]wFMCommunicate OK [11:47:10]SAM_PROTO_ClearQueue done [11:47:10]KKMCreateOFDPacket [11:47:10]OFDProtocolAddRootSTLVToBuf [11:47:10]FM_MakeSignedData [11:47:10]FM_MakeSignedData [11:47:10]SAM_PROTO_SignData [11:47:10]wFMCommunicate request_size=4 [11:47:10]MH_SAM_APDU [11:47:10]CAPDU: 80 0D 01 02 [11:47:10]Write to MH i2c: E2 08 00 84 4B 80 0D 01 02 00 00 00 00 48 [11:47:10]Write i2c OK [11:47:10]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 84 4B 00 90 00 43 [11:47:11]RAPDU: 90 00 [11:47:11]wFMCommunicate OK [11:47:11]wFMCommunicate request_size=255 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 73 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 93 01 00 35 04 06 00 B8 [11:47:11]Write to MH i2c: E2 02 01 85 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 73 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 93 01 00 35 04 06 00 B8 00 00 53 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 85 4B 00 90 00 44 [11:47:11]RAPDU: 90 00 [11:47:11]wFMCommunicate OK [11:47:11]wFMCommunicate request_size=10 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 0D 02 02 05 F8 BC 15 55 F3 [11:47:11]Write to MH i2c: E2 0D 00 86 4B 80 0D 02 02 05 00 F8 BC 15 55 F3 00 00 66 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 03 00 86 4B 00 90 00 45 [11:47:11]RAPDU: 90 00 [11:47:11]wFMCommunicate OK [11:47:11]wFMCommunicate request_size=4 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 0D 03 02 [11:47:11]Write to MH i2c: E2 08 00 87 4B 80 0D 03 02 00 00 00 00 4D [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 0B 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 0B 00 87 4B 00 74 91 88 32 93 AA F8 9F 90 00 E1 [11:47:11]RAPDU: 74 91 88 32 93 AA F8 9F 90 00 [11:47:11]wFMCommunicate OK [11:47:11]SAM_PROTO_SignData done [11:47:11]FM_MakeSignedData done [11:47:11]CreateOFDProtocolMessage [11:47:11]wFMCommunicate request_size=4 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 11 00 00 [11:47:11]Write to MH i2c: E2 08 00 88 4B 80 11 00 00 00 00 00 00 4D [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 17 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 17 00 88 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [11:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:47:11]wFMCommunicate OK [11:47:11]CreateOFDProtocolMessage done [11:47:11]OFDSenderStorePacket 103379 [11:47:11]StoreOFDPacket docnum=103379 [11:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E6 FE 07 01 EA CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 73 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 93 01 00 35 04 06 00 B8 F8 BC 15 55 F3 74 91 88 32 93 AA F8 9F [11:47:11]CheckFolder [11:47:11]dirname=/storage/ofd_packets [11:47:11]CheckFolder done [11:47:11]ProducePacketName [11:47:11]name=ofd_packets/00103379 [11:47:11]NVStorageSaveData ofd_packets/00103379 [11:47:11]File name is /storage/ofd_packets/00103379 [11:47:11]Write 301 bytes [11:47:11]NVStorageSaveData done [11:47:11]OFDSenderStorePacket done [11:47:11]KKMCreateOFDPacket done [11:47:11]NVStorageSaveData kkm_last_timestamp [11:47:11]File name is /storage/kkm_last_timestamp [11:47:11]Write 4 bytes [11:47:11]NVStorageSaveData done [11:47:11]ExternCall_PrintAddStr [11:47:11]wPrintStart [11:47:11]Write to MH i2c: 01 00 00 89 4B D4 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: 01 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: 01 07 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: 01 07 00 89 4B 00 00 00 00 00 FF 0F E9 [11:47:11]RasterBufferAndPrint [11:47:11]line Счет N : (1)672540 [11:47:11]line ИНН: 02508201610067 [11:47:11]line Контрольно-Кассовый Чек [11:47:11]line ПРОДАЖА [11:47:11]line ТРК (МРК, ГНК) : 32 [11:47:11]line Товар: 2710124130 [11:47:11]line Аи-92-К-5 [11:47:11]line 7.540 * 66.40 [11:47:11]line = 500.66 [11:47:11]line НДС 12% НСП 1% [11:47:11]line > о реализуемом товаре [11:47:11]line ИТОГО: 500.66 [11:47:11]line НСП 1% : 4.43 [11:47:11]line НДС 12% : 53.17 [11:47:11]line Наличными: 0.00 [11:47:11]line Безнал.: 500.66 [11:47:11]line Место: АЗС № 120 "Партнер Нефть" [11:47:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:47:11]line СНО: Общий режим [11:47:11]line Чек 63 18.06.2024 11:47 [11:47:11]line Смена: 352 ФФД: 1.0 [11:47:11]line ЗНМ: 0300000164 [11:47:11]line РНМ: 0000000000092785 [11:47:11]line Версия ККМ: 001 [11:47:11]line Платежная система: Бакай Банк [11:47:11]line ФМ: 0000000000875093 [11:47:11]line ФД: 103379 [11:47:11]line ФПД: 203378446915059 [11:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T114716&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103379&fm=203378446915059&tin=02508201610067®Number=0000000000092785&sum=50066 [11:47:11]OFD Sender: Processing packet 103379 [packets to send 17, broken 16] [11:47:11]ProducePacketName [11:47:11]name=ofd_packets/00103379 [11:47:11]OFD Sender: To server: pG, [11:47:11]CommunicateWithHost lk.salyk.kg:30040 [11:47:11]ConnectInit lk.salyk.kg [11:47:11]written 0, free lines is 4095 [11:47:12]Connected sock=11 [11:47:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E6 FE 07 01 EA CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C4 73 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 93 01 00 35 04 06 00 B8 F8 BC 15 55 F3 74 91 88 32 93 AA F8 9F [11:47:12]Write to MH i2c: 01 00 00 B3 4B FE [11:47:12]Write i2c OK [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: 01 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: 01 07 00 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: 01 07 00 B3 4B 00 00 00 00 00 F1 0C 02 [11:47:12]RasterBufferAndPrint [11:47:12]line [11:47:12]line [11:47:12]line [11:47:12]line [11:47:12]line [11:47:12]written 0, free lines is 3319 [11:47:12]MH_Cut [11:47:12]Write to MH i2c: D1 01 00 BA 4B 01 D7 [11:47:12]Write i2c OK [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: D1 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: D1 01 00 [11:47:12]MH_I2C_Read... [11:47:12]Read from MH i2c: D1 01 00 BA 4B 00 D6 [11:47:12]Write to MH i2c: 01 00 00 BB 4B 06 [11:47:12]Write i2c OK [11:47:12]MH_I2C_Read... [11:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F3 22 47 00 D7 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 93 01 00 F4 03 04 00 50 1A 71 66 B6 04 01 00 00 FA D7 BD 4F 26 8D E1 BD [11:47:12]CommunicateWithHost err = 0 [11:47:12]CheckOFDResponse [11:47:12]1017 (14) - 77093643461234 [11:47:12]1041 (16) - 0000000000875093 [11:47:12]1040 (4) - 103379 [11:47:12]1012 (4) - 18.06.2024 05:25 [11:47:12]1206 (1) - 0 [11:47:12]OFD Sender: Remove packet 103379 [11:47:12]ProducePacketName [11:47:12]name=ofd_packets/00103379 [11:47:12]NVStorageDeleteData [11:47:12]OFD Sender: No OFD packet to send [11:47:13]*** Cut start [11:47:13]*** Partial cut [11:47:13]*** CUTSNS_PIN = 1 [11:47:13]*** CUTSNS_PIN = 0 [11:47:13]*** Brake cut motor [11:47:13]Read from MH i2c: 01 [11:47:13]MH_I2C_Read... [11:47:13]*** Stop cut motor [11:47:13]*** Cut end [11:47:13]Read from MH i2c: 01 07 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: 01 07 00 BB 4B 00 00 00 00 00 FF 0F 1B [11:47:13]process_action close_receipt done [11:47:13]requested_data is exist [11:47:13]produce_requested_data [11:47:13]requested_item fm.sn is exist - process it [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 11 00 00 [11:47:13]Write to MH i2c: E2 08 00 BC 4B 80 11 00 00 00 00 00 00 81 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 17 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 17 00 BC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [11:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:47:13]wFMCommunicate OK [11:47:13]requested_item fd.num is exist - process it [11:47:13]SAM_PROTO_GetFieldsCounters [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 13 00 00 [11:47:13]Write to MH i2c: E2 08 00 BD 4B 80 13 00 00 00 00 00 00 84 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 62 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 62 00 BD 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:13]wFMCommunicate OK [11:47:13]SAM_PROTO_GetFieldsCounters done [11:47:13]requested_item shift.num is exist - process it [11:47:13]requested_item shift.opened is exist - process it [11:47:13]req_shift_opened [11:47:13]FM_GetShiftState [11:47:13]SAM_PROTO_GetShiftState [11:47:13]wFMCommunicate request_size=4 [11:47:13]MH_SAM_APDU [11:47:13]CAPDU: 80 13 01 00 [11:47:13]Write to MH i2c: E2 08 00 BE 4B 80 13 01 00 00 00 00 00 86 [11:47:13]Write i2c OK [11:47:13]MH_I2C_Read... [11:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:13]Read from MH i2c: E2 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 0E 00 [11:47:13]MH_I2C_Read... [11:47:13]Read from MH i2c: E2 0E 00 BE 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 07 [11:47:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:47:13]wFMCommunicate OK [11:47:13]SAM_PROTO_GetShiftState done [11:47:13]FM_GetShiftState done [11:47:13]req_shift_opened done [11:47:13]requested_item shift.open_date is exist - process it [11:47:13]req_shift_open_date [11:47:13]req_shift_open_date done [11:47:13]produce_requested_data done [11:47:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103379,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:47:13]process_action_free close_receipt [11:47:13]json_value_free [11:47:13]json_value_free done [11:47:13]process_json_proto returns [11:47:13]Send response to host [11:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103379,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:47:13]free response buf [11:47:13]execute_script done [11:47:13]execute_script returns [11:47:13]free content buf [11:47:13]Sock 9.Close socket [11:47:13]Sock 9.Thread stoped [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:17]accept exits with 7 [11:52:17]New connection [11:52:17]New thread 3067227492 created [11:52:17]Thread 3067084132 joined [11:52:17]Waiting for new connection... [11:52:17] Sock 7.Parse request [11:52:17]Sock 7.Check first char [11:52:17]Sock 7.First char is OK [11:52:17]request: POST /json_proto HTTP/1.0 [11:52:17]Method: POST [11:52:17]URL: /json_proto [11:52:17]Method is POST - this is cgi request [11:52:17]url: /json_proto [11:52:17]query_string will be loaded in cgi processing [11:52:17]execute_cgi json_proto POST (null) [11:52:17]execute_cgi path=json_proto method=POST [11:52:17]POST find Content-Length [11:52:17]Host: 172.17.38.133:8080 [11:52:17]Content-Length: 678 [11:52:17]Content-Type: application/json [11:52:17] [11:52:17]POST finish read [11:52:17]Found Content-Length = 678 [11:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:17]execute_script... [11:52:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:17]POST & json_proto [11:52:17]process_json_proto [11:52:17]json parsed OK: [11:52:17]protocol is kg_v1.0 [11:52:17]action value=close_receipt [11:52:17]process_action close_receipt [11:52:17]cmd_close_receipt [11:52:17]MH_GetDate [11:52:17]Write to MH i2c: F0 00 00 BF 4B F9 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: F0 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: F0 09 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: F0 09 00 BF 4B 00 F8 74 71 66 BD 8F 7C 64 71 [11:52:17]GetLastDocTimeStamp 1718711236 [11:52:17]current date 1718711544 [11:52:17]FM_GetShiftState [11:52:17]SAM_PROTO_GetShiftState [11:52:17]wFMCommunicate request_size=4 [11:52:17]MH_SAM_APDU [11:52:17]CAPDU: 80 13 01 00 [11:52:17]Write to MH i2c: E2 08 00 C0 4B 80 13 01 00 00 00 00 00 88 [11:52:17]Write i2c OK [11:52:17]MH_I2C_Read... [11:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:17]Read from MH i2c: E2 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 0E 00 [11:52:17]MH_I2C_Read... [11:52:17]Read from MH i2c: E2 0E 00 C0 4B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 09 [11:52:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:52:17]wFMCommunicate OK [11:52:17]SAM_PROTO_GetShiftState done [11:52:17]FM_GetShiftState done [11:52:17]opened in 1718670284 [11:52:17]opened+sec_in_day 1718756684 [11:52:17]quantity*price = 70052 [11:52:17]sum+1 = 70053 [11:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 18.06.2024 11:52 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103380 ФПД: 267765654511453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115224&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103380&fm=267765654511453&tin=02508201610067®Number=0000000000092785&sum=70000 [11:52:18]StoreToDocumentArchive [11:52:18]shift 352 fd 103380 [11:52:18]save to /storage/0352/doc_00103380 [11:52:18]save last doc name /storage/0352/doc_00103380 to /storage/kkm_last_doc_name [11:52:18]save OK [11:52:18]Clear old archive folders... [11:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:18]tlvbuf is 013587F0 [11:52:18]SAM_PROTO_ClearQueue [11:52:18]wFMCommunicate request_size=4 [11:52:18]MH_SAM_APDU [11:52:18]CAPDU: 80 09 00 00 [11:52:18]Write to MH i2c: E2 08 00 CD 4B 80 09 00 00 00 00 00 00 8A [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 CD 4B 00 90 00 8C [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_ClearQueue done [11:52:19]KKMCreateOFDPacket [11:52:19]OFDProtocolAddRootSTLVToBuf [11:52:19]FM_MakeSignedData [11:52:19]FM_MakeSignedData [11:52:19]SAM_PROTO_SignData [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 01 02 [11:52:19]Write to MH i2c: E2 08 00 CE 4B 80 0D 01 02 00 00 00 00 92 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 CE 4B 00 90 00 8D [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]wFMCommunicate request_size=255 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F8 74 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 93 01 00 35 04 06 00 F3 [11:52:19]Write to MH i2c: E2 02 01 CF 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F8 74 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 93 01 00 35 04 06 00 F3 00 00 9D [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 CF 4B 00 90 00 8E [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]wFMCommunicate request_size=10 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 02 02 05 88 0C B8 5F 5D [11:52:19]Write to MH i2c: E2 0D 00 D0 4B 80 0D 02 02 05 00 88 0C B8 5F 5D 00 00 A7 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 D0 4B 00 90 00 8F [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 03 02 [11:52:19]Write to MH i2c: E2 08 00 D1 4B 80 0D 03 02 00 00 00 00 97 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0B 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 0B 00 D1 4B 00 8C DD D7 C8 CC CD 01 64 90 00 9E [11:52:19]RAPDU: 8C DD D7 C8 CC CD 01 64 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_SignData done [11:52:19]FM_MakeSignedData done [11:52:19]CreateOFDProtocolMessage [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 11 00 00 [11:52:19]Write to MH i2c: E2 08 00 D2 4B 80 11 00 00 00 00 00 00 97 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 17 00 D2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [11:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:52:19]wFMCommunicate OK [11:52:19]CreateOFDProtocolMessage done [11:52:19]OFDSenderStorePacket 103380 [11:52:19]StoreOFDPacket docnum=103380 [11:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 1C 07 01 44 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F8 74 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 93 01 00 35 04 06 00 F3 88 0C B8 5F 5D 8C DD D7 C8 CC CD 01 64 [11:52:19]CheckFolder [11:52:19]dirname=/storage/ofd_packets [11:52:19]CheckFolder done [11:52:19]ProducePacketName [11:52:19]name=ofd_packets/00103380 [11:52:19]NVStorageSaveData ofd_packets/00103380 [11:52:19]File name is /storage/ofd_packets/00103380 [11:52:19]Write 301 bytes [11:52:19]NVStorageSaveData done [11:52:19]OFDSenderStorePacket done [11:52:19]KKMCreateOFDPacket done [11:52:19]NVStorageSaveData kkm_last_timestamp [11:52:19]File name is /storage/kkm_last_timestamp [11:52:19]Write 4 bytes [11:52:19]NVStorageSaveData done [11:52:19]ExternCall_PrintAddStr [11:52:19]wPrintStart [11:52:19]Write to MH i2c: 01 00 00 D3 4B 1E [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: 01 07 00 D3 4B 00 00 00 00 00 FF 0F 33 [11:52:19]RasterBufferAndPrint [11:52:19]line Счет N : (1)672541 [11:52:19]line ИНН: 02508201610067 [11:52:19]line Контрольно-Кассовый Чек [11:52:19]line ПРОДАЖА [11:52:19]line ТРК (МРК, ГНК) : 32 [11:52:19]line Товар: 2710124130 [11:52:19]line Аи-92-К-5 [11:52:19]line 10.550 * 66.40 [11:52:19]line = 700.52 [11:52:19]line НДС 12% НСП 1% [11:52:19]line > о реализуемом товаре [11:52:19]line ОКРУГЛЕНИЕ: -0.52 [11:52:19]line ИТОГО: 700.00 [11:52:19]line Внесено: 700.00 [11:52:19]line СДАЧА: 0.00 [11:52:19]line НСП 1% : 6.20 [11:52:19]line НДС 12% : 74.39 [11:52:19]line Наличными: 700.00 [11:52:19]line Безнал.: 0.00 [11:52:19]line Место: АЗС № 120 "Партнер Нефть" [11:52:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:52:19]line СНО: Общий режим [11:52:19]line Чек 64 18.06.2024 11:52 [11:52:19]line Смена: 352 ФФД: 1.0 [11:52:19]line ЗНМ: 0300000164 [11:52:19]line РНМ: 0000000000092785 [11:52:19]line Версия ККМ: 001 [11:52:19]line ФМ: 0000000000875093 [11:52:19]line ФД: 103380 [11:52:19]line ФПД: 267765654511453 [11:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115224&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103380&fm=267765654511453&tin=02508201610067®Number=0000000000092785&sum=70000 [11:52:19]OFD Sender: Processing packet 103380 [packets to send 17, broken 16] [11:52:19]ProducePacketName [11:52:19]name=ofd_packets/00103380 [11:52:19]OFD Sender: To server: pG, [11:52:19]CommunicateWithHost lk.salyk.kg:30040 [11:52:19]ConnectInit lk.salyk.kg [11:52:19]written 0, free lines is 4095 [11:52:19]Connected sock=10 [11:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 1C 07 01 44 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F8 74 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 93 01 00 35 04 06 00 F3 88 0C B8 5F 5D 8C DD D7 C8 CC CD 01 64 [11:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 88 7B 47 00 F1 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 93 01 00 F4 03 04 00 84 1B 71 66 B6 04 01 00 00 CD A9 FD 49 64 C6 8D E5 [11:52:20]CommunicateWithHost err = 0 [11:52:20]CheckOFDResponse [11:52:20]1017 (14) - 77093643461234 [11:52:20]1041 (16) - 0000000000875093 [11:52:20]1040 (4) - 103380 [11:52:20]1012 (4) - 18.06.2024 05:30 [11:52:20]1206 (1) - 0 [11:52:20]OFD Sender: Remove packet 103380 [11:52:20]ProducePacketName [11:52:20]name=ofd_packets/00103380 [11:52:20]NVStorageDeleteData [11:52:20]Write to MH i2c: 01 00 00 FE 4B 49 [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 07 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 07 00 FE 4B 00 00 00 00 00 ED 0C 49 [11:52:20]RasterBufferAndPrint [11:52:20]line [11:52:20]line [11:52:20]line [11:52:20]line [11:52:20]line [11:52:20]written 0, free lines is 3315 [11:52:20]MH_Cut [11:52:20]Write to MH i2c: D1 01 00 05 4C 01 23 [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: D1 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: D1 01 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: D1 01 00 05 4C 00 22 [11:52:20]Write to MH i2c: 01 00 00 06 4C 52 [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]OFD Sender: No OFD packet to send [11:52:21]*** Cut start [11:52:21]*** Partial cut [11:52:21]*** CUTSNS_PIN = 1 [11:52:21]*** CUTSNS_PIN = 0 [11:52:21]*** Brake cut motor [11:52:21]Read from MH i2c: 01 [11:52:21]MH_I2C_Read... [11:52:21]*** Stop cut motor [11:52:21]*** Cut end [11:52:21]Read from MH i2c: 01 07 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 07 00 06 4C 00 00 00 00 00 FF 0F 67 [11:52:21]process_action close_receipt done [11:52:21]requested_data is exist [11:52:21]produce_requested_data [11:52:21]requested_item fm.sn is exist - process it [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 11 00 00 [11:52:21]Write to MH i2c: E2 08 00 07 4C 80 11 00 00 00 00 00 00 CD [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 17 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 17 00 07 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [11:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:52:21]wFMCommunicate OK [11:52:21]requested_item fd.num is exist - process it [11:52:21]SAM_PROTO_GetFieldsCounters [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 13 00 00 [11:52:21]Write to MH i2c: E2 08 00 08 4C 80 13 00 00 00 00 00 00 D0 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 62 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 62 00 08 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:21]wFMCommunicate OK [11:52:21]SAM_PROTO_GetFieldsCounters done [11:52:21]requested_item shift.num is exist - process it [11:52:21]requested_item shift.opened is exist - process it [11:52:21]req_shift_opened [11:52:21]FM_GetShiftState [11:52:21]SAM_PROTO_GetShiftState [11:52:21]wFMCommunicate request_size=4 [11:52:21]MH_SAM_APDU [11:52:21]CAPDU: 80 13 01 00 [11:52:21]Write to MH i2c: E2 08 00 09 4C 80 13 01 00 00 00 00 00 D2 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:21]Read from MH i2c: E2 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 0E 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: E2 0E 00 09 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 53 [11:52:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:52:21]wFMCommunicate OK [11:52:21]SAM_PROTO_GetShiftState done [11:52:21]FM_GetShiftState done [11:52:21]req_shift_opened done [11:52:21]requested_item shift.open_date is exist - process it [11:52:21]req_shift_open_date [11:52:21]req_shift_open_date done [11:52:21]produce_requested_data done [11:52:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103380,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:52:21]process_action_free close_receipt [11:52:21]json_value_free [11:52:21]json_value_free done [11:52:21]process_json_proto returns [11:52:21]Send response to host [11:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103380,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:52:21]free response buf [11:52:21]execute_script done [11:52:21]execute_script returns [11:52:21]free content buf [11:52:21]Sock 7.Close socket [11:52:21]Sock 7.Thread stoped [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:46]accept exits with 9 [11:52:46]New connection [11:52:46]New thread 3067084132 created [11:52:46]Thread 3067227492 joined [11:52:46]Waiting for new connection... [11:52:46] Sock 9.Parse request [11:52:46]Sock 9.Check first char [11:52:46]Sock 9.First char is OK [11:52:46]request: POST /json_proto HTTP/1.0 [11:52:46]Method: POST [11:52:46]URL: /json_proto [11:52:46]Method is POST - this is cgi request [11:52:46]url: /json_proto [11:52:46]query_string will be loaded in cgi processing [11:52:46]execute_cgi json_proto POST (null) [11:52:46]execute_cgi path=json_proto method=POST [11:52:46]POST find Content-Length [11:52:46]Host: 172.17.38.133:8080 [11:52:46]Content-Length: 687 [11:52:46]Content-Type: application/json [11:52:46] [11:52:46]POST finish read [11:52:46]Found Content-Length = 687 [11:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.490, "sum" : 1129.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1129.00, "total" : 1129.00, "payments": [ { "type": 0, "sum" : 1129.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:46]execute_script... [11: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 : (1)672542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.490, "sum" : 1129.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1129.00, "total" : 1129.00, "payments": [ { "type": 0, "sum" : 1129.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:46]POST & json_proto [11:52:46]process_json_proto [11:52:46]json parsed OK: [11:52:46]protocol is kg_v1.0 [11:52:46]action value=close_receipt [11:52:46]process_action close_receipt [11:52:46]cmd_close_receipt [11:52:46]MH_GetDate [11:52:46]Write to MH i2c: F0 00 00 0A 4C 45 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: F0 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: F0 09 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: F0 09 00 0A 4C 00 15 75 71 66 BD 8F 7C 64 DB [11:52:46]GetLastDocTimeStamp 1718711544 [11:52:46]current date 1718711573 [11:52:46]FM_GetShiftState [11:52:46]SAM_PROTO_GetShiftState [11:52:46]wFMCommunicate request_size=4 [11:52:46]MH_SAM_APDU [11:52:46]CAPDU: 80 13 01 00 [11:52:46]Write to MH i2c: E2 08 00 0B 4C 80 13 01 00 00 00 00 00 D4 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:46]Read from MH i2c: E2 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: E2 0E 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: E2 0E 00 0B 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 55 [11:52:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:52:46]wFMCommunicate OK [11:52:46]SAM_PROTO_GetShiftState done [11:52:46]FM_GetShiftState done [11:52:46]opened in 1718670284 [11:52:46]opened+sec_in_day 1718756684 [11:52:46]quantity*price = 112922 [11:52:46]sum+1 = 112923 [11:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1129.00 Внесено: 1129.00 СДАЧА: 0.00 НСП 1% : 9.99 НДС 12% : 119.92 Наличными: 1129.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 18.06.2024 11:52 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103381 ФПД: 87681648909889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115253&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103381&fm=87681648909889&tin=02508201610067®Number=0000000000092785&sum=112900 [11:52:47]StoreToDocumentArchive [11:52:47]shift 352 fd 103381 [11:52:47]save to /storage/0352/doc_00103381 [11:52:47]save last doc name /storage/0352/doc_00103381 to /storage/kkm_last_doc_name [11:52:47]save OK [11:52:47]Clear old archive folders... [11:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:47]tlvbuf is 0144D230 [11:52:47]SAM_PROTO_ClearQueue [11:52:47]wFMCommunicate request_size=4 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 09 00 00 [11:52:47]Write to MH i2c: E2 08 00 18 4C 80 09 00 00 00 00 00 00 D6 [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:47]Read from MH i2c: E2 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 03 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 03 00 18 4C 00 90 00 D8 [11:52:47]RAPDU: 90 00 [11:52:47]wFMCommunicate OK [11:52:47]SAM_PROTO_ClearQueue done [11:52:47]KKMCreateOFDPacket [11:52:47]OFDProtocolAddRootSTLVToBuf [11:52:47]FM_MakeSignedData [11:52:47]FM_MakeSignedData [11:52:47]SAM_PROTO_SignData [11:52:47]wFMCommunicate request_size=4 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 0D 01 02 [11:52:47]Write to MH i2c: E2 08 00 19 4C 80 0D 01 02 00 00 00 00 DE [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:47]Read from MH i2c: E2 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 03 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 03 00 19 4C 00 90 00 D9 [11:52:47]RAPDU: 90 00 [11:52:47]wFMCommunicate OK [11:52:47]wFMCommunicate request_size=255 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 3C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 2E 00 00 00 00 07 04 06 00 04 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 93 01 00 35 04 06 00 [11:52:47]Write to MH i2c: E2 02 01 1A 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 3C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 2E 00 00 00 00 07 04 06 00 04 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 93 01 00 35 04 06 00 00 00 29 [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 03 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 03 00 1A 4C 00 90 00 DA [11:52:48]RAPDU: 90 00 [11:52:48]wFMCommunicate OK [11:52:48]wFMCommunicate request_size=11 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 0D 02 02 06 4F BE F9 89 5E 41 [11:52:48]Write to MH i2c: E2 0E 00 1B 4C 80 0D 02 02 06 00 4F BE F9 89 5E 41 00 00 1B [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 03 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 03 00 1B 4C 00 90 00 DB [11:52:48]RAPDU: 90 00 [11:52:48]wFMCommunicate OK [11:52:48]wFMCommunicate request_size=4 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 0D 03 02 [11:52:48]Write to MH i2c: E2 08 00 1C 4C 80 0D 03 02 00 00 00 00 E3 [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 0B 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 0B 00 1C 4C 00 20 D6 5F E2 24 74 04 77 90 00 2E [11:52:48]RAPDU: 20 D6 5F E2 24 74 04 77 90 00 [11:52:48]wFMCommunicate OK [11:52:48]SAM_PROTO_SignData done [11:52:48]FM_MakeSignedData done [11:52:48]CreateOFDProtocolMessage [11:52:48]wFMCommunicate request_size=4 [11:52:48]MH_SAM_APDU [11:52:48]CAPDU: 80 11 00 00 [11:52:48]Write to MH i2c: E2 08 00 1D 4C 80 11 00 00 00 00 00 00 E3 [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:48]Read from MH i2c: E2 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 17 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: E2 17 00 1D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [11:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:52:48]wFMCommunicate OK [11:52:48]CreateOFDProtocolMessage done [11:52:48]OFDSenderStorePacket 103381 [11:52:48]StoreOFDPacket docnum=103381 [11:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 BF A3 08 01 B5 B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 3C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 2E 00 00 00 00 07 04 06 00 04 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 93 01 00 35 04 06 00 4F BE F9 89 5E 41 20 D6 5F E2 24 74 04 77 [11:52:48]CheckFolder [11:52:48]dirname=/storage/ofd_packets [11:52:48]CheckFolder done [11:52:48]ProducePacketName [11:52:48]name=ofd_packets/00103381 [11:52:48]NVStorageSaveData ofd_packets/00103381 [11:52:48]File name is /storage/ofd_packets/00103381 [11:52:48]Write 302 bytes [11:52:48]NVStorageSaveData done [11:52:48]OFDSenderStorePacket done [11:52:48]KKMCreateOFDPacket done [11:52:48]NVStorageSaveData kkm_last_timestamp [11:52:48]File name is /storage/kkm_last_timestamp [11:52:48]Write 4 bytes [11:52:48]NVStorageSaveData done [11:52:48]ExternCall_PrintAddStr [11:52:48]wPrintStart [11:52:48]Write to MH i2c: 01 00 00 1E 4C 6A [11:52:48]Write i2c OK [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: 01 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: 01 07 00 [11:52:48]MH_I2C_Read... [11:52:48]Read from MH i2c: 01 07 00 1E 4C 00 00 00 00 00 FF 0F 7F [11:52:48]RasterBufferAndPrint [11:52:48]line Счет N : (1)672542 [11:52:48]line ИНН: 02508201610067 [11:52:48]line Контрольно-Кассовый Чек [11:52:48]line ПРОДАЖА [11:52:48]line ТРК (МРК, ГНК) : 21 [11:52:48]line Товар: 2710194210 [11:52:48]line ДТ(л)-К-5 [11:52:48]line 15.490 * 72.90 [11:52:48]line = 1129.22 [11:52:48]line НДС 12% НСП 1% [11:52:48]line > о реализуемом товаре [11:52:48]line ОКРУГЛЕНИЕ: -0.22 [11:52:48]line ИТОГО: 1129.00 [11:52:48]line Внесено: 1129.00 [11:52:48]line СДАЧА: 0.00 [11:52:48]line НСП 1% : 9.99 [11:52:48]line НДС 12% : 119.92 [11:52:48]line Наличными: 1129.00 [11:52:48]line Безнал.: 0.00 [11:52:48]line Место: АЗС № 120 "Партнер Нефть" [11:52:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:52:48]line СНО: Общий режим [11:52:48]line Чек 65 18.06.2024 11:52 [11:52:48]line Смена: 352 ФФД: 1.0 [11:52:48]line ЗНМ: 0300000164 [11:52:48]line РНМ: 0000000000092785 [11:52:48]line Версия ККМ: 001 [11:52:48]line ФМ: 0000000000875093 [11:52:48]line ФД: 103381 [11:52:48]line ФПД: 87681648909889 [11:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115253&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103381&fm=87681648909889&tin=02508201610067®Number=0000000000092785&sum=112900 [11:52:48]OFD Sender: Processing packet 103381 [packets to send 17, broken 16] [11:52:48]ProducePacketName [11:52:48]name=ofd_packets/00103381 [11:52:48]OFD Sender: To server: pG, [11:52:48]CommunicateWithHost lk.salyk.kg:30040 [11:52:48]ConnectInit lk.salyk.kg [11:52:48]written 0, free lines is 4095 [11:52:48]Connected sock=11 [11: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 35 30 39 33 10 01 00 00 BF A3 08 01 B5 B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 3C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 2E 00 00 00 00 07 04 06 00 04 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 93 01 00 35 04 06 00 4F BE F9 89 5E 41 20 D6 5F E2 24 74 04 77 [11:52:49]Write to MH i2c: 01 00 00 49 4C 95 [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: 01 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: 01 07 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 EA 0C 92 [11:52:49]RasterBufferAndPrint [11:52:49]line [11:52:49]line [11:52:49]line [11:52:49]line [11:52:49]line [11:52:49]written 0, free lines is 3312 [11:52:49]MH_Cut [11:52:49]Write to MH i2c: D1 01 00 50 4C 01 6E [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: D1 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: D1 01 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: D1 01 00 50 4C 00 6D [11:52:49]Write to MH i2c: 01 00 00 51 4C 9D [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FE 9B 47 00 6E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 93 01 00 F4 03 04 00 A1 1B 71 66 B6 04 01 00 00 7E 64 D3 CB ED 9F CD B0 [11:52:49]CommunicateWithHost err = 0 [11:52:49]CheckOFDResponse [11:52:49]1017 (14) - 77093643461234 [11:52:49]1041 (16) - 0000000000875093 [11:52:49]1040 (4) - 103381 [11:52:49]1012 (4) - 18.06.2024 05:31 [11:52:49]1206 (1) - 0 [11:52:49]OFD Sender: Remove packet 103381 [11:52:49]ProducePacketName [11:52:49]name=ofd_packets/00103381 [11:52:49]NVStorageDeleteData [11:52:49]OFD Sender: No OFD packet to send [11:52:49]*** Cut start [11:52:49]*** Partial cut [11:52:49]*** CUTSNS_PIN = 1 [11:52:49]*** CUTSNS_PIN = 0 [11:52:50]*** Brake cut motor [11:52:50]Read from MH i2c: 01 [11:52:50]MH_I2C_Read... [11:52:50]*** Stop cut motor [11:52:50]*** Cut end [11:52:50]Read from MH i2c: 01 07 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: 01 07 00 51 4C 00 00 00 00 00 FF 0F B2 [11:52:50]process_action close_receipt done [11:52:50]requested_data is exist [11:52:50]produce_requested_data [11:52:50]requested_item fm.sn is exist - process it [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 11 00 00 [11:52:50]Write to MH i2c: E2 08 00 52 4C 80 11 00 00 00 00 00 00 18 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 17 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 17 00 52 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [11:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:52:50]wFMCommunicate OK [11:52:50]requested_item fd.num is exist - process it [11:52:50]SAM_PROTO_GetFieldsCounters [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 13 00 00 [11:52:50]Write to MH i2c: E2 08 00 53 4C 80 13 00 00 00 00 00 00 1B [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 62 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 62 00 53 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [11: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:50]wFMCommunicate OK [11:52:50]SAM_PROTO_GetFieldsCounters done [11:52:50]requested_item shift.num is exist - process it [11:52:50]requested_item shift.opened is exist - process it [11:52:50]req_shift_opened [11:52:50]FM_GetShiftState [11:52:50]SAM_PROTO_GetShiftState [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 13 01 00 [11:52:50]Write to MH i2c: E2 08 00 54 4C 80 13 01 00 00 00 00 00 1D [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 0E 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 0E 00 54 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9E [11:52:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:52:50]wFMCommunicate OK [11:52:50]SAM_PROTO_GetShiftState done [11:52:50]FM_GetShiftState done [11:52:50]req_shift_opened done [11:52:50]requested_item shift.open_date is exist - process it [11:52:50]req_shift_open_date [11:52:50]req_shift_open_date done [11:52:50]produce_requested_data done [11:52:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103381,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:52:50]process_action_free close_receipt [11:52:50]json_value_free [11:52:50]json_value_free done [11:52:50]process_json_proto returns [11:52:50]Send response to host [11:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103381,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:52:50]free response buf [11:52:50]execute_script done [11:52:50]execute_script returns [11:52:50]free content buf [11:52:50]Sock 9.Close socket [11:52:50]Sock 9.Thread stoped [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:41]accept exits with 7 [11:55:41]New connection [11:55:41]New thread 3067227492 created [11:55:41]Thread 3067084132 joined [11:55:41]Waiting for new connection... [11:55:41] Sock 7.Parse request [11:55:41]Sock 7.Check first char [11:55:41]Sock 7.First char is OK [11:55:41]request: POST /json_proto HTTP/1.0 [11:55:41]Method: POST [11:55:41]URL: /json_proto [11:55:41]Method is POST - this is cgi request [11:55:41]url: /json_proto [11:55:41]query_string will be loaded in cgi processing [11:55:41]execute_cgi json_proto POST (null) [11:55:41]execute_cgi path=json_proto method=POST [11:55:41]POST find Content-Length [11:55:41]Host: 172.17.38.133:8080 [11:55:41]Content-Length: 677 [11:55:41]Content-Type: application/json [11:55:41] [11:55:41]POST finish read [11:55:41]Found Content-Length = 677 [11:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:41]execute_script... [11:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:41]POST & json_proto [11:55:41]process_json_proto [11:55:41]json parsed OK: [11:55:41]protocol is kg_v1.0 [11:55:41]action value=close_receipt [11:55:41]process_action close_receipt [11:55:41]cmd_close_receipt [11:55:41]MH_GetDate [11:55:41]Write to MH i2c: F0 00 00 55 4C 90 [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 09 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 09 00 55 4C 00 C3 75 71 66 BD 8F 7C 64 D4 [11:55:41]GetLastDocTimeStamp 1718711573 [11:55:41]current date 1718711747 [11:55:41]FM_GetShiftState [11:55:41]SAM_PROTO_GetShiftState [11:55:41]wFMCommunicate request_size=4 [11:55:41]MH_SAM_APDU [11:55:41]CAPDU: 80 13 01 00 [11:55:41]Write to MH i2c: E2 08 00 56 4C 80 13 01 00 00 00 00 00 1F [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:41]Read from MH i2c: E2 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 56 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A0 [11:55:41]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:55:41]wFMCommunicate OK [11:55:41]SAM_PROTO_GetShiftState done [11:55:41]FM_GetShiftState done [11:55:41]opened in 1718670284 [11:55:41]opened+sec_in_day 1718756684 [11:55:41]quantity*price = 34063 [11:55:41]sum+1 = 34064 [11:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 18.06.2024 11:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103382 ФПД: 259710777449415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115547&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103382&fm=259710777449415&tin=02508201610067®Number=0000000000092785&sum=34000 [11:55:42]StoreToDocumentArchive [11:55:42]shift 352 fd 103382 [11:55:42]save to /storage/0352/doc_00103382 [11:55:42]save last doc name /storage/0352/doc_00103382 to /storage/kkm_last_doc_name [11:55:42]save OK [11:55:42]Clear old archive folders... [11:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:42]tlvbuf is B6F9B820 [11:55:42]SAM_PROTO_ClearQueue [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 09 00 00 [11:55:42]Write to MH i2c: E2 08 00 63 4C 80 09 00 00 00 00 00 00 21 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 63 4C 00 90 00 23 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_ClearQueue done [11:55:42]KKMCreateOFDPacket [11:55:42]OFDProtocolAddRootSTLVToBuf [11:55:42]FM_MakeSignedData [11:55:42]FM_MakeSignedData [11:55:42]SAM_PROTO_SignData [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 01 02 [11:55:42]Write to MH i2c: E2 08 00 64 4C 80 0D 01 02 00 00 00 00 29 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 64 4C 00 90 00 24 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]wFMCommunicate request_size=255 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 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 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 42 00 00 00 F4 03 04 00 C3 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 93 01 00 35 04 06 00 EC [11:55:42]Write to MH i2c: E2 02 01 65 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 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 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 42 00 00 00 F4 03 04 00 C3 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 93 01 00 35 04 06 00 EC 00 00 01 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 65 4C 00 90 00 25 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]wFMCommunicate request_size=10 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 02 02 05 34 A0 A2 5B C7 [11:55:42]Write to MH i2c: E2 0D 00 66 4C 80 0D 02 02 05 00 34 A0 A2 5B C7 00 00 CE [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 66 4C 00 90 00 26 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 03 02 [11:55:42]Write to MH i2c: E2 08 00 67 4C 80 0D 03 02 00 00 00 00 2E [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0B 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0B 00 67 4C 00 CD 8D 7B B4 DA 05 AF 3A 90 00 80 [11:55:42]RAPDU: CD 8D 7B B4 DA 05 AF 3A 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_SignData done [11:55:42]FM_MakeSignedData done [11:55:42]CreateOFDProtocolMessage [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 11 00 00 [11:55:42]Write to MH i2c: E2 08 00 68 4C 80 11 00 00 00 00 00 00 2E [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 17 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 17 00 68 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [11:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:55:42]wFMCommunicate OK [11:55:42]CreateOFDProtocolMessage done [11:55:42]OFDSenderStorePacket 103382 [11:55:42]StoreOFDPacket docnum=103382 [11:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D4 11 07 01 B9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 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 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 42 00 00 00 F4 03 04 00 C3 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 93 01 00 35 04 06 00 EC 34 A0 A2 5B C7 CD 8D 7B B4 DA 05 AF 3A [11:55:42]CheckFolder [11:55:42]dirname=/storage/ofd_packets [11:55:42]CheckFolder done [11:55:42]ProducePacketName [11:55:42]name=ofd_packets/00103382 [11:55:42]NVStorageSaveData ofd_packets/00103382 [11:55:42]File name is /storage/ofd_packets/00103382 [11:55:42]Write 301 bytes [11:55:42]NVStorageSaveData done [11:55:42]OFDSenderStorePacket done [11:55:42]KKMCreateOFDPacket done [11:55:42]NVStorageSaveData kkm_last_timestamp [11:55:42]File name is /storage/kkm_last_timestamp [11:55:42]Write 4 bytes [11:55:42]NVStorageSaveData done [11:55:42]ExternCall_PrintAddStr [11:55:42]wPrintStart [11:55:42]Write to MH i2c: 01 00 00 69 4C B5 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: 01 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: 01 07 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: 01 07 00 69 4C 00 00 00 00 00 FF 0F CA [11:55:42]RasterBufferAndPrint [11:55:42]line Счет N : (1)672543 [11:55:42]line ИНН: 02508201610067 [11:55:42]line Контрольно-Кассовый Чек [11:55:42]line ПРОДАЖА [11:55:42]line ТРК (МРК, ГНК) : 32 [11:55:42]line Товар: 2710124130 [11:55:42]line Аи-92-К-5 [11:55:42]line 5.130 * 66.40 [11:55:42]line = 340.63 [11:55:42]line НДС 12% НСП 1% [11:55:42]line > о реализуемом товаре [11:55:42]line ОКРУГЛЕНИЕ: -0.63 [11:55:42]line ИТОГО: 340.00 [11:55:42]line Внесено: 340.00 [11:55:42]line СДАЧА: 0.00 [11:55:42]line НСП 1% : 3.01 [11:55:42]line НДС 12% : 36.17 [11:55:42]line Наличными: 340.00 [11:55:42]line Безнал.: 0.00 [11:55:42]line Место: АЗС № 120 "Партнер Нефть" [11:55:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:55:42]line СНО: Общий режим [11:55:42]line Чек 66 18.06.2024 11:55 [11:55:42]line Смена: 352 ФФД: 1.0 [11:55:42]line ЗНМ: 0300000164 [11:55:42]line РНМ: 0000000000092785 [11:55:42]line Версия ККМ: 001 [11:55:42]line ФМ: 0000000000875093 [11:55:42]line ФД: 103382 [11:55:42]line ФПД: 259710777449415 [11:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115547&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103382&fm=259710777449415&tin=02508201610067®Number=0000000000092785&sum=34000 [11:55:43]OFD Sender: Processing packet 103382 [packets to send 17, broken 16] [11:55:43]ProducePacketName [11:55:43]name=ofd_packets/00103382 [11:55:43]OFD Sender: To server: pG, [11:55:43]CommunicateWithHost lk.salyk.kg:30040 [11:55:43]ConnectInit lk.salyk.kg [11:55:43]written 0, free lines is 4095 [11:55:43]Connected sock=10 [11:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D4 11 07 01 B9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 85 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 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 42 00 00 00 F4 03 04 00 C3 75 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 93 01 00 35 04 06 00 EC 34 A0 A2 5B C7 CD 8D 7B B4 DA 05 AF 3A [11:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6C 27 47 00 03 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 93 01 00 F4 03 04 00 4F 1C 71 66 B6 04 01 00 00 F6 B4 EA E2 E3 F9 E6 90 [11:55:43]CommunicateWithHost err = 0 [11:55:43]CheckOFDResponse [11:55:43]1017 (14) - 77093643461234 [11:55:43]1041 (16) - 0000000000875093 [11:55:43]1040 (4) - 103382 [11:55:43]1012 (4) - 18.06.2024 05:34 [11:55:43]1206 (1) - 0 [11:55:43]OFD Sender: Remove packet 103382 [11:55:43]ProducePacketName [11:55:43]name=ofd_packets/00103382 [11:55:43]NVStorageDeleteData [11:55:43]Write to MH i2c: 01 00 00 94 4C E0 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 E9 0C DC [11:55:43]RasterBufferAndPrint [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]written 0, free lines is 3311 [11:55:43]MH_Cut [11:55:43]Write to MH i2c: D1 01 00 9B 4C 01 B9 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 01 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 01 00 9B 4C 00 B8 [11:55:43]Write to MH i2c: 01 00 00 9C 4C E8 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]OFD Sender: No OFD packet to send [11:55:44]*** Cut start [11:55:44]*** Partial cut [11:55:44]*** CUTSNS_PIN = 1 [11:55:44]*** CUTSNS_PIN = 0 [11:55:44]*** Brake cut motor [11:55:44]Read from MH i2c: 01 [11:55:44]MH_I2C_Read... [11:55:44]*** Stop cut motor [11:55:44]*** Cut end [11:55:44]Read from MH i2c: 01 07 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 9C 4C 00 00 00 00 00 FF 0F FD [11:55:44]process_action close_receipt done [11:55:44]requested_data is exist [11:55:44]produce_requested_data [11:55:44]requested_item fm.sn is exist - process it [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 11 00 00 [11:55:44]Write to MH i2c: E2 08 00 9D 4C 80 11 00 00 00 00 00 00 63 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 9D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [11:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:55:44]wFMCommunicate OK [11:55:44]requested_item fd.num is exist - process it [11:55:44]SAM_PROTO_GetFieldsCounters [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 13 00 00 [11:55:44]Write to MH i2c: E2 08 00 9E 4C 80 13 00 00 00 00 00 00 66 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 62 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 62 00 9E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_GetFieldsCounters done [11:55:45]requested_item shift.num is exist - process it [11:55:45]requested_item shift.opened is exist - process it [11:55:45]req_shift_opened [11:55:45]FM_GetShiftState [11:55:45]SAM_PROTO_GetShiftState [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 13 01 00 [11:55:45]Write to MH i2c: E2 08 00 9F 4C 80 13 01 00 00 00 00 00 68 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0E 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0E 00 9F 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E9 [11:55:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_GetShiftState done [11:55:45]FM_GetShiftState done [11:55:45]req_shift_opened done [11:55:45]requested_item shift.open_date is exist - process it [11:55:45]req_shift_open_date [11:55:45]req_shift_open_date done [11:55:45]produce_requested_data done [11:55:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103382,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:55:45]process_action_free close_receipt [11:55:45]json_value_free [11:55:45]json_value_free done [11:55:45]process_json_proto returns [11:55:45]Send response to host [11:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103382,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:55:45]free response buf [11:55:45]execute_script done [11:55:45]execute_script returns [11:55:45]free content buf [11:55:45]Sock 7.Close socket [11:55:45]Sock 7.Thread stoped [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:33]int [11:56:33]Write to MH i2c: 01 00 00 A0 4C EC [11:56:33]*** FLAG_PRN_PAP1 set [11:56:33]Write i2c OK [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 07 00 [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 07 00 A0 4C 00 01 00 00 00 FF 0F 02 [11:56:33]state=0 [11:56:33]No paper [11:56:33]int [11:56:33]Write to MH i2c: 01 00 00 A1 4C ED [11:56:33]*** FLAG_PRN_PAP2 set [11:56:33]Write i2c OK [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 07 00 [11:56:33]MH_I2C_Read... [11:56:33]Read from MH i2c: 01 07 00 A1 4C 00 03 00 00 00 FF 0F 05 [11:56:33]state=0 [11:56:33]No paper [11:56:33]Cover opened [11:56:34]OFD Sender: No OFD packet to send [11:56:38]Write to MH i2c: 01 00 00 A2 4C EE [11:56:38]Write i2c OK [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: 01 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: 01 07 00 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: 01 07 00 A2 4C 00 03 00 00 00 FF 0F 06 [11:56:38]state=3 [11:56:38]No paper [11:56:38]Cover opened [11:56:39]OFD Sender: No OFD packet to send [11:56:43]Write to MH i2c: 01 00 00 A3 4C EF [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: 01 07 00 A3 4C 00 03 00 00 00 FF 0F 07 [11:56:43]state=3 [11:56:43]No paper [11:56:43]Cover opened [11:56:44]OFD Sender: No OFD packet to send [11:56:48]Write to MH i2c: 01 00 00 A4 4C F0 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 07 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 07 00 A4 4C 00 03 00 00 00 FF 0F 08 [11:56:48]state=3 [11:56:48]No paper [11:56:48]Cover opened [11:56:49]OFD Sender: No OFD packet to send [11:56:53]Write to MH i2c: 01 00 00 A5 4C F1 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 A5 4C 00 03 00 00 00 FF 0F 09 [11:56:53]state=3 [11:56:53]No paper [11:56:53]Cover opened [11:56:54]OFD Sender: No OFD packet to send [11:56:58]Write to MH i2c: 01 00 00 A6 4C F2 [11:56:58]Write i2c OK [11:56:58]MH_I2C_Read... [11:56:58]Read from MH i2c: 01 [11:56:58]MH_I2C_Read... [11:56:58]Read from MH i2c: 01 07 00 [11:56:58]MH_I2C_Read... [11:56:58]Read from MH i2c: 01 07 00 A6 4C 00 03 00 00 00 FF 0F 0A [11:56:58]state=3 [11:56:58]No paper [11:56:58]Cover opened [11:56:59]OFD Sender: No OFD packet to send [11:57:02]int [11:57:02]Write to MH i2c: 01 00 00 A7 4C F3 [11:57:02]*** FLAG_PRN_PAP1 reset [11:57:02]*** FLAG_PRN_PAP2 reset [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 A7 4C 00 00 00 00 00 FF 0F 08 [11:57:02]state=3 [11:57:02]Cover closed [11:57:02]int [11:57:02]Write to MH i2c: 01 00 00 A8 4C F4 [11:57:02]*** FLAG_PRN_KEY set [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 A8 4C 00 08 00 00 00 FF 0F 11 [11:57:02]state=0 [11:57:02]Key pressed [11:57:02]Feed [11:57:02]Write to MH i2c: D8 00 00 A9 4C CC [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: D8 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: D8 01 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: D8 01 00 A9 4C 00 CD [11:57:02]int [11:57:02]Write to MH i2c: 01 00 00 AA 4C F6 [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 AA 4C 00 48 00 00 00 3C 00 81 [11:57:02]state=2 [11:57:02]Key pressed [11:57:02]int [11:57:02]Write to MH i2c: 01 00 00 AB 4C F7 [11:57:02]*** FLAG_PRN_KEY reset [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 AB 4C 00 00 00 00 00 F7 0F 04 [11:57:02]state=2 [11:57:02]Stop feed [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:48]accept exits with 9 [11:58:48]New connection [11:58:48]New thread 3067084132 created [11:58:48]Thread 3067227492 joined [11:58:48]Waiting for new connection... [11:58:48] Sock 9.Parse request [11:58:48]Sock 9.Check first char [11:58:48]Sock 9.First char is OK [11:58:48]request: POST /json_proto HTTP/1.0 [11:58:48]Method: POST [11:58:48]URL: /json_proto [11:58:48]Method is POST - this is cgi request [11:58:48]url: /json_proto [11:58:48]query_string will be loaded in cgi processing [11:58:48]execute_cgi json_proto POST (null) [11:58:48]execute_cgi path=json_proto method=POST [11:58:48]POST find Content-Length [11:58:48]Host: 172.17.38.133:8080 [11:58:48]Content-Length: 677 [11:58:48]Content-Type: application/json [11:58:48] [11:58:48]POST finish read [11:58:48]Found Content-Length = 677 [11:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:48]execute_script... [11:58: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)672544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:48]POST & json_proto [11:58:48]process_json_proto [11:58:48]json parsed OK: [11:58:48]protocol is kg_v1.0 [11:58:48]action value=close_receipt [11:58:48]process_action close_receipt [11:58:48]cmd_close_receipt [11:58:48]MH_GetDate [11:58:48]Write to MH i2c: F0 00 00 AC 4C E7 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: F0 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: F0 09 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: F0 09 00 AC 4C 00 7E 76 71 66 BD 8F 7C 64 E7 [11:58:48]GetLastDocTimeStamp 1718711747 [11:58:48]current date 1718711934 [11:58:48]FM_GetShiftState [11:58:48]SAM_PROTO_GetShiftState [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 13 01 00 [11:58:48]Write to MH i2c: E2 08 00 AD 4C 80 13 01 00 00 00 00 00 76 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0E 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0E 00 AD 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F7 [11:58:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:58:48]wFMCommunicate OK [11:58:48]SAM_PROTO_GetShiftState done [11:58:48]FM_GetShiftState done [11:58:48]opened in 1718670284 [11:58:48]opened+sec_in_day 1718756684 [11:58:48]quantity*price = 70057 [11:58:48]sum+1 = 70058 [11:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 67 18.06.2024 11:58 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103383 ФПД: 222234689313888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115854&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103383&fm=222234689313888&tin=02508201610067®Number=0000000000092785&sum=70000 [11:58:49]StoreToDocumentArchive [11:58:49]shift 352 fd 103383 [11:58:49]save to /storage/0352/doc_00103383 [11:58:49]save last doc name /storage/0352/doc_00103383 to /storage/kkm_last_doc_name [11:58:49]save OK [11:58:49]Clear old archive folders... [11:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:49]tlvbuf is 01395060 [11:58:49]SAM_PROTO_ClearQueue [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 09 00 00 [11:58:49]Write to MH i2c: E2 08 00 BA 4C 80 09 00 00 00 00 00 00 78 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 BA 4C 00 90 00 7A [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]SAM_PROTO_ClearQueue done [11:58:49]KKMCreateOFDPacket [11:58:49]OFDProtocolAddRootSTLVToBuf [11:58:49]FM_MakeSignedData [11:58:49]FM_MakeSignedData [11:58:49]SAM_PROTO_SignData [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 01 02 [11:58:49]Write to MH i2c: E2 08 00 BB 4C 80 0D 01 02 00 00 00 00 80 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 BB 4C 00 90 00 7B [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]wFMCommunicate request_size=255 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 93 01 00 35 04 06 00 CA [11:58:49]Write to MH i2c: E2 02 01 BC 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 93 01 00 35 04 06 00 CA 00 00 B9 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 BC 4C 00 90 00 7C [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]wFMCommunicate request_size=10 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 02 02 05 1F 0B B6 9C 60 [11:58:49]Write to MH i2c: E2 0D 00 BD 4C 80 0D 02 02 05 00 1F 0B B6 9C 60 00 00 69 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 03 00 BD 4C 00 90 00 7D [11:58:49]RAPDU: 90 00 [11:58:49]wFMCommunicate OK [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 0D 03 02 [11:58:49]Write to MH i2c: E2 08 00 BE 4C 80 0D 03 02 00 00 00 00 85 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0B 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0B 00 BE 4C 00 28 1A E3 A7 5D EA 33 57 90 00 23 [11:58:49]RAPDU: 28 1A E3 A7 5D EA 33 57 90 00 [11:58:49]wFMCommunicate OK [11:58:49]SAM_PROTO_SignData done [11:58:49]FM_MakeSignedData done [11:58:49]CreateOFDProtocolMessage [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 11 00 00 [11:58:49]Write to MH i2c: E2 08 00 BF 4C 80 11 00 00 00 00 00 00 85 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 BF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D8 [11:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:58:49]wFMCommunicate OK [11:58:49]CreateOFDProtocolMessage done [11:58:49]OFDSenderStorePacket 103383 [11:58:49]StoreOFDPacket docnum=103383 [11:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AD AE 07 01 B6 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 93 01 00 35 04 06 00 CA 1F 0B B6 9C 60 28 1A E3 A7 5D EA 33 57 [11:58:49]CheckFolder [11:58:49]dirname=/storage/ofd_packets [11:58:49]CheckFolder done [11:58:49]ProducePacketName [11:58:49]name=ofd_packets/00103383 [11:58:49]NVStorageSaveData ofd_packets/00103383 [11:58:49]File name is /storage/ofd_packets/00103383 [11:58:49]Write 301 bytes [11:58:49]NVStorageSaveData done [11:58:49]OFDSenderStorePacket done [11:58:49]KKMCreateOFDPacket done [11:58:49]NVStorageSaveData kkm_last_timestamp [11:58:49]File name is /storage/kkm_last_timestamp [11:58:49]Write 4 bytes [11:58:49]NVStorageSaveData done [11:58:49]ExternCall_PrintAddStr [11:58:49]wPrintStart [11:58:49]Write to MH i2c: 01 00 00 C0 4C 0C [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 C0 4C 00 00 00 00 00 FF 0F 21 [11:58:49]RasterBufferAndPrint [11:58:49]line Счет N : (1)672544 [11:58:49]line ИНН: 02508201610067 [11:58:49]line Контрольно-Кассовый Чек [11:58:49]line ПРОДАЖА [11:58:49]line ТРК (МРК, ГНК) : 31 [11:58:49]line Товар: 2710124500 [11:58:49]line Аи-95-К-5 [11:58:49]line 9.480 * 73.90 [11:58:49]line = 700.57 [11:58:49]line НДС 12% НСП 1% [11:58:49]line > о реализуемом товаре [11:58:49]line ОКРУГЛЕНИЕ: -0.57 [11:58:49]line ИТОГО: 700.00 [11:58:49]line Внесено: 700.00 [11:58:49]line СДАЧА: 0.00 [11:58:49]line НСП 1% : 6.20 [11:58:49]line НДС 12% : 74.40 [11:58:49]line Наличными: 700.00 [11:58:49]line Безнал.: 0.00 [11:58:49]line Место: АЗС № 120 "Партнер Нефть" [11:58:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:58:49]line СНО: Общий режим [11:58:49]line Чек 67 18.06.2024 11:58 [11:58:49]line Смена: 352 ФФД: 1.0 [11:58:49]line ЗНМ: 0300000164 [11:58:49]line РНМ: 0000000000092785 [11:58:49]line Версия ККМ: 001 [11:58:49]line ФМ: 0000000000875093 [11:58:49]line ФД: 103383 [11:58:49]line ФПД: 222234689313888 [11:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T115854&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103383&fm=222234689313888&tin=02508201610067®Number=0000000000092785&sum=70000 [11:58:50]written 0, free lines is 4095 [11:58:50]OFD Sender: Processing packet 103383 [packets to send 17, broken 16] [11:58:50]ProducePacketName [11:58:50]name=ofd_packets/00103383 [11:58:50]OFD Sender: To server: pG, [11:58:50]CommunicateWithHost lk.salyk.kg:30040 [11:58:50]ConnectInit lk.salyk.kg [11:58:50]Connected sock=10 [11:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AD AE 07 01 B6 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7E 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 93 01 00 35 04 06 00 CA 1F 0B B6 9C 60 28 1A E3 A7 5D EA 33 57 [11:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 04 4F 47 00 0F DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 93 01 00 F4 03 04 00 0B 1D 71 66 B6 04 01 00 00 81 63 18 9C 8B D3 6A 60 [11:58:50]CommunicateWithHost err = 0 [11:58:50]CheckOFDResponse [11:58:50]1017 (14) - 77093643461234 [11:58:50]1041 (16) - 0000000000875093 [11:58:50]1040 (4) - 103383 [11:58:50]1012 (4) - 18.06.2024 05:37 [11:58:50]1206 (1) - 0 [11:58:50]OFD Sender: Remove packet 103383 [11:58:50]ProducePacketName [11:58:50]name=ofd_packets/00103383 [11:58:50]NVStorageDeleteData [11:58:50]Write to MH i2c: 01 00 00 EB 4C 37 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 07 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 07 00 EB 4C 00 00 00 00 00 F6 0C 40 [11:58:50]RasterBufferAndPrint [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]line [11:58:50]written 0, free lines is 3324 [11:58:50]MH_Cut [11:58:50]Write to MH i2c: D1 01 00 F2 4C 01 10 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 01 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: D1 01 00 F2 4C 00 0F [11:58:50]Write to MH i2c: 01 00 00 F3 4C 3F [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:51]OFD Sender: No OFD packet to send [11:58:51]*** Cut start [11:58:51]*** Partial cut [11:58:51]*** CUTSNS_PIN = 1 [11:58:51]*** CUTSNS_PIN = 0 [11:58:51]*** Brake cut motor [11:58:51]Read from MH i2c: 01 [11:58:51]MH_I2C_Read... [11:58:51]*** Stop cut motor [11:58:51]*** Cut end [11:58:51]Read from MH i2c: 01 07 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: 01 07 00 F3 4C 00 00 00 00 00 FF 0F 54 [11:58:51]process_action close_receipt done [11:58:51]requested_data is exist [11:58:51]produce_requested_data [11:58:51]requested_item fm.sn is exist - process it [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 11 00 00 [11:58:51]Write to MH i2c: E2 08 00 F4 4C 80 11 00 00 00 00 00 00 BA [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:52]Read from MH i2c: E2 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 17 00 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 17 00 F4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [11:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:58:52]wFMCommunicate OK [11:58:52]requested_item fd.num is exist - process it [11:58:52]SAM_PROTO_GetFieldsCounters [11:58:52]wFMCommunicate request_size=4 [11:58:52]MH_SAM_APDU [11:58:52]CAPDU: 80 13 00 00 [11:58:52]Write to MH i2c: E2 08 00 F5 4C 80 13 00 00 00 00 00 00 BD [11:58:52]Write i2c OK [11:58:52]MH_I2C_Read... [11:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:52]Read from MH i2c: E2 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 62 00 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 62 00 F5 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:52]wFMCommunicate OK [11:58:52]SAM_PROTO_GetFieldsCounters done [11:58:52]requested_item shift.num is exist - process it [11:58:52]requested_item shift.opened is exist - process it [11:58:52]req_shift_opened [11:58:52]FM_GetShiftState [11:58:52]SAM_PROTO_GetShiftState [11:58:52]wFMCommunicate request_size=4 [11:58:52]MH_SAM_APDU [11:58:52]CAPDU: 80 13 01 00 [11:58:52]Write to MH i2c: E2 08 00 F6 4C 80 13 01 00 00 00 00 00 BF [11:58:52]Write i2c OK [11:58:52]MH_I2C_Read... [11:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:52]Read from MH i2c: E2 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 0E 00 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 0E 00 F6 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 40 [11:58:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [11:58:52]wFMCommunicate OK [11:58:52]SAM_PROTO_GetShiftState done [11:58:52]FM_GetShiftState done [11:58:52]req_shift_opened done [11:58:52]requested_item shift.open_date is exist - process it [11:58:52]req_shift_open_date [11:58:52]req_shift_open_date done [11:58:52]produce_requested_data done [11:58:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103383,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [11:58:52]process_action_free close_receipt [11:58:52]json_value_free [11:58:52]json_value_free done [11:58:52]process_json_proto returns [11:58:52]Send response to host [11:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103383,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [11:58:52]free response buf [11:58:52]execute_script done [11:58:52]execute_script returns [11:58:52]free content buf [11:58:52]Sock 9.Close socket [11:58:52]Sock 9.Thread stoped [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:44]accept exits with 7 [12:00:44]New connection [12:00:44]New thread 3067227492 created [12:00:44]Thread 3067084132 joined [12:00:44]Waiting for new connection... [12:00:44] Sock 7.Parse request [12:00:44]Sock 7.Check first char [12:00:44]Sock 7.First char is OK [12:00:44]request: POST /json_proto HTTP/1.0 [12:00:44]Method: POST [12:00:44]URL: /json_proto [12:00:44]Method is POST - this is cgi request [12:00:44]url: /json_proto [12:00:44]query_string will be loaded in cgi processing [12:00:44]execute_cgi json_proto POST (null) [12:00:44]execute_cgi path=json_proto method=POST [12:00:44]POST find Content-Length [12:00:44]Host: 172.17.38.133:8080 [12:00:44]Content-Length: 682 [12:00:44]Content-Type: application/json [12:00:44] [12:00:44]POST finish read [12:00:44]Found Content-Length = 682 [12:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:44]execute_script... [12:00:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:44]POST & json_proto [12:00:44]process_json_proto [12:00:44]json parsed OK: [12:00:44]protocol is kg_v1.0 [12:00:44]action value=close_receipt [12:00:44]process_action close_receipt [12:00:44]cmd_close_receipt [12:00:44]MH_GetDate [12:00:44]Write to MH i2c: F0 00 00 F7 4C 32 [12:00:44]Write i2c OK [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 09 00 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 09 00 F7 4C 00 F2 76 71 66 BD 8F 7C 64 A6 [12:00:44]GetLastDocTimeStamp 1718711934 [12:00:44]current date 1718712050 [12:00:44]FM_GetShiftState [12:00:44]SAM_PROTO_GetShiftState [12:00:44]wFMCommunicate request_size=4 [12:00:44]MH_SAM_APDU [12:00:44]CAPDU: 80 13 01 00 [12:00:44]Write to MH i2c: E2 08 00 F8 4C 80 13 01 00 00 00 00 00 C1 [12:00:44]Write i2c OK [12:00:44]MH_I2C_Read... [12:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:44]Read from MH i2c: E2 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: E2 0E 00 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: E2 0E 00 F8 4C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 42 [12:00:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:00:44]wFMCommunicate OK [12:00:44]SAM_PROTO_GetShiftState done [12:00:44]FM_GetShiftState done [12:00:44]opened in 1718670284 [12:00:44]opened+sec_in_day 1718756684 [12:00:44]quantity*price = 100064 [12:00:44]sum+1 = 100066 [12:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 68 18.06.2024 12:00 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103384 ФПД: 136274583524695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120050&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103384&fm=136274583524695&tin=02508201610067®Number=0000000000092785&sum=100000 [12:00:45]StoreToDocumentArchive [12:00:45]shift 352 fd 103384 [12:00:45]save to /storage/0352/doc_00103384 [12:00:45]save last doc name /storage/0352/doc_00103384 to /storage/kkm_last_doc_name [12:00:45]save OK [12:00:45]Clear old archive folders... [12:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:45]tlvbuf is 01390FA0 [12:00:45]SAM_PROTO_ClearQueue [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 09 00 00 [12:00:45]Write to MH i2c: E2 08 00 05 4D 80 09 00 00 00 00 00 00 C4 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 05 4D 00 90 00 C6 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_ClearQueue done [12:00:45]KKMCreateOFDPacket [12:00:45]OFDProtocolAddRootSTLVToBuf [12:00:45]FM_MakeSignedData [12:00:45]FM_MakeSignedData [12:00:45]SAM_PROTO_SignData [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 01 02 [12:00:45]Write to MH i2c: E2 08 00 06 4D 80 0D 01 02 00 00 00 00 CC [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 06 4D 00 90 00 C7 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=255 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F2 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 93 01 00 35 04 06 00 7B [12:00:45]Write to MH i2c: E2 02 01 07 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F2 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 93 01 00 35 04 06 00 7B 00 00 A1 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 07 4D 00 90 00 C8 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=10 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 02 02 05 F0 E6 24 95 57 [12:00:45]Write to MH i2c: E2 0D 00 08 4D 80 0D 02 02 05 00 F0 E6 24 95 57 00 00 BF [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 08 4D 00 90 00 C9 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 03 02 [12:00:45]Write to MH i2c: E2 08 00 09 4D 80 0D 03 02 00 00 00 00 D1 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0B 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 0B 00 09 4D 00 12 CD 8D C7 67 48 E8 C5 90 00 61 [12:00:45]RAPDU: 12 CD 8D C7 67 48 E8 C5 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_SignData done [12:00:45]FM_MakeSignedData done [12:00:45]CreateOFDProtocolMessage [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 11 00 00 [12:00:45]Write to MH i2c: E2 08 00 0A 4D 80 11 00 00 00 00 00 00 D1 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 17 00 0A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [12:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:00:45]wFMCommunicate OK [12:00:45]CreateOFDProtocolMessage done [12:00:45]OFDSenderStorePacket 103384 [12:00:45]StoreOFDPacket docnum=103384 [12:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C0 2D 07 01 14 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F2 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 93 01 00 35 04 06 00 7B F0 E6 24 95 57 12 CD 8D C7 67 48 E8 C5 [12:00:45]CheckFolder [12:00:45]dirname=/storage/ofd_packets [12:00:45]CheckFolder done [12:00:45]ProducePacketName [12:00:45]name=ofd_packets/00103384 [12:00:45]NVStorageSaveData ofd_packets/00103384 [12:00:45]File name is /storage/ofd_packets/00103384 [12:00:45]Write 301 bytes [12:00:45]NVStorageSaveData done [12:00:45]OFDSenderStorePacket done [12:00:45]KKMCreateOFDPacket done [12:00:45]NVStorageSaveData kkm_last_timestamp [12:00:45]File name is /storage/kkm_last_timestamp [12:00:45]Write 4 bytes [12:00:45]NVStorageSaveData done [12:00:45]ExternCall_PrintAddStr [12:00:45]wPrintStart [12:00:45]Write to MH i2c: 01 00 00 0B 4D 58 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 0B 4D 00 00 00 00 00 FF 0F 6D [12:00:45]RasterBufferAndPrint [12:00:45]line Счет N : (1)672545 [12:00:45]line ИНН: 02508201610067 [12:00:45]line Контрольно-Кассовый Чек [12:00:45]line ПРОДАЖА [12:00:45]line ТРК (МРК, ГНК) : 42 [12:00:45]line Товар: 2710124130 [12:00:45]line Аи-92-К-5 [12:00:45]line 15.070 * 66.40 [12:00:45]line = 1000.65 [12:00:45]line НДС 12% НСП 1% [12:00:45]line > о реализуемом товаре [12:00:45]line ОКРУГЛЕНИЕ: -0.65 [12:00:45]line ИТОГО: 1000.00 [12:00:45]line Внесено: 1000.00 [12:00:45]line СДАЧА: 0.00 [12:00:45]line НСП 1% : 8.85 [12:00:45]line НДС 12% : 106.26 [12:00:45]line Наличными: 1000.00 [12:00:45]line Безнал.: 0.00 [12:00:45]line Место: АЗС № 120 "Партнер Нефть" [12:00:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:00:45]line СНО: Общий режим [12:00:45]line Чек 68 18.06.2024 12:00 [12:00:45]line Смена: 352 ФФД: 1.0 [12:00:45]line ЗНМ: 0300000164 [12:00:45]line РНМ: 0000000000092785 [12:00:45]line Версия ККМ: 001 [12:00:45]line ФМ: 0000000000875093 [12:00:45]line ФД: 103384 [12:00:45]line ФПД: 136274583524695 [12:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120050&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103384&fm=136274583524695&tin=02508201610067®Number=0000000000092785&sum=100000 [12:00:46]OFD Sender: Processing packet 103384 [packets to send 17, broken 16] [12:00:46]ProducePacketName [12:00:46]name=ofd_packets/00103384 [12:00:46]OFD Sender: To server: pG, [12:00:46]CommunicateWithHost lk.salyk.kg:30040 [12:00:46]ConnectInit lk.salyk.kg [12:00:46]written 0, free lines is 4095 [12:00:46]Connected sock=11 [12:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C0 2D 07 01 14 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F2 76 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 93 01 00 35 04 06 00 7B F0 E6 24 95 57 12 CD 8D C7 67 48 E8 C5 [12:00:46]Write to MH i2c: 01 00 00 36 4D 83 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 36 4D 00 00 00 00 00 E4 0C 7A [12:00:46]RasterBufferAndPrint [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]line [12:00:46]written 0, free lines is 3306 [12:00:46]MH_Cut [12:00:46]Write to MH i2c: D1 01 00 3D 4D 01 5C [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 01 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: D1 01 00 3D 4D 00 5B [12:00:46]Write to MH i2c: 01 00 00 3E 4D 8B [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FB 10 47 00 21 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 93 01 00 F4 03 04 00 7F 1D 71 66 B6 04 01 00 00 39 4A FE AC 10 61 EF 33 [12:00:46]CommunicateWithHost err = 0 [12:00:46]CheckOFDResponse [12:00:46]1017 (14) - 77093643461234 [12:00:46]1041 (16) - 0000000000875093 [12:00:46]1040 (4) - 103384 [12:00:46]1012 (4) - 18.06.2024 05:39 [12:00:46]1206 (1) - 0 [12:00:46]OFD Sender: Remove packet 103384 [12:00:46]ProducePacketName [12:00:46]name=ofd_packets/00103384 [12:00:46]NVStorageDeleteData [12:00:47]OFD Sender: No OFD packet to send [12:00:47]*** Cut start [12:00:47]*** Partial cut [12:00:47]*** CUTSNS_PIN = 1 [12:00:47]*** CUTSNS_PIN = 0 [12:00:47]*** Brake cut motor [12:00:48]Read from MH i2c: 01 [12:00:48]MH_I2C_Read... [12:00:48]*** Stop cut motor [12:00:48]*** Cut end [12:00:48]Read from MH i2c: 01 07 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 3E 4D 00 00 00 00 00 FF 0F A0 [12:00:48]process_action close_receipt done [12:00:48]requested_data is exist [12:00:48]produce_requested_data [12:00:48]requested_item fm.sn is exist - process it [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 11 00 00 [12:00:48]Write to MH i2c: E2 08 00 3F 4D 80 11 00 00 00 00 00 00 06 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 3F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [12:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:00:48]wFMCommunicate OK [12:00:48]requested_item fd.num is exist - process it [12:00:48]SAM_PROTO_GetFieldsCounters [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 00 00 [12:00:48]Write to MH i2c: E2 08 00 40 4D 80 13 00 00 00 00 00 00 09 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 40 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [12:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetFieldsCounters done [12:00:48]requested_item shift.num is exist - process it [12:00:48]requested_item shift.opened is exist - process it [12:00:48]req_shift_opened [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 41 4D 80 13 01 00 00 00 00 00 0B [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 41 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8C [12:00:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]req_shift_opened done [12:00:48]requested_item shift.open_date is exist - process it [12:00:48]req_shift_open_date [12:00:48]req_shift_open_date done [12:00:48]produce_requested_data done [12:00:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103384,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:00:48]process_action_free close_receipt [12:00:48]json_value_free [12:00:48]json_value_free done [12:00:48]process_json_proto returns [12:00:48]Send response to host [12:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103384,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:00:48]free response buf [12:00:48]execute_script done [12:00:48]execute_script returns [12:00:48]free content buf [12:00:48]Sock 7.Close socket [12:00:48]Sock 7.Thread stoped [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]accept exits with 9 [12:02:02]New connection [12:02:02]New thread 3067084132 created [12:02:02]Thread 3067227492 joined [12:02:02]Waiting for new connection... [12:02:02] Sock 9.Parse request [12:02:02]Sock 9.Check first char [12:02:02]Sock 9.First char is OK [12:02:02]request: POST /json_proto HTTP/1.0 [12:02:02]Method: POST [12:02:02]URL: /json_proto [12:02:02]Method is POST - this is cgi request [12:02:02]url: /json_proto [12:02:02]query_string will be loaded in cgi processing [12:02:02]execute_cgi json_proto POST (null) [12:02:02]execute_cgi path=json_proto method=POST [12:02:02]POST find Content-Length [12:02:02]Host: 172.17.38.133:8080 [12:02:02]Content-Length: 682 [12:02:02]Content-Type: application/json [12:02:02] [12:02:02]POST finish read [12:02:02]Found Content-Length = 682 [12:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:02]execute_script... [12:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:02]POST & json_proto [12:02:02]process_json_proto [12:02:02]json parsed OK: [12:02:02]protocol is kg_v1.0 [12:02:02]action value=close_receipt [12:02:02]process_action close_receipt [12:02:02]cmd_close_receipt [12:02:02]MH_GetDate [12:02:02]Write to MH i2c: F0 00 00 42 4D 7E [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 09 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 09 00 42 4D 00 40 77 71 66 BD 8F 7C 64 41 [12:02:02]GetLastDocTimeStamp 1718712050 [12:02:02]current date 1718712128 [12:02:02]FM_GetShiftState [12:02:02]SAM_PROTO_GetShiftState [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 01 00 [12:02:02]Write to MH i2c: E2 08 00 43 4D 80 13 01 00 00 00 00 00 0D [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 43 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8E [12:02:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:02:02]wFMCommunicate OK [12:02:02]SAM_PROTO_GetShiftState done [12:02:02]FM_GetShiftState done [12:02:02]opened in 1718670284 [12:02:02]opened+sec_in_day 1718756684 [12:02:02]quantity*price = 100064 [12:02:02]sum+1 = 100066 [12:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 69 18.06.2024 12:02 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103385 ФПД: 152378687569240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120208&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103385&fm=152378687569240&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:03]StoreToDocumentArchive [12:02:03]shift 352 fd 103385 [12:02:03]save to /storage/0352/doc_00103385 [12:02:03]save last doc name /storage/0352/doc_00103385 to /storage/kkm_last_doc_name [12:02:03]save OK [12:02:03]Clear old archive folders... [12:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:03]tlvbuf is 014A33C0 [12:02:03]SAM_PROTO_ClearQueue [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 09 00 00 [12:02:03]Write to MH i2c: E2 08 00 50 4D 80 09 00 00 00 00 00 00 0F [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 50 4D 00 90 00 11 [12:02:03]RAPDU: 90 00 [12:02:03]wFMCommunicate OK [12:02:03]SAM_PROTO_ClearQueue done [12:02:03]KKMCreateOFDPacket [12:02:03]OFDProtocolAddRootSTLVToBuf [12:02:03]FM_MakeSignedData [12:02:03]FM_MakeSignedData [12:02:03]SAM_PROTO_SignData [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 0D 01 02 [12:02:03]Write to MH i2c: E2 08 00 51 4D 80 0D 01 02 00 00 00 00 17 [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 51 4D 00 90 00 12 [12:02:03]RAPDU: 90 00 [12:02:03]wFMCommunicate OK [12:02:03]wFMCommunicate request_size=255 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 40 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 93 01 00 35 04 06 00 8A [12:02:03]Write to MH i2c: E2 02 01 52 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 40 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 93 01 00 35 04 06 00 8A 00 00 4C [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 52 4D 00 90 00 13 [12:02:03]RAPDU: 90 00 [12:02:03]wFMCommunicate OK [12:02:03]wFMCommunicate request_size=10 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 0D 02 02 05 96 6D 8B 3D 58 [12:02:03]Write to MH i2c: E2 0D 00 53 4D 80 0D 02 02 05 00 96 6D 8B 3D 58 00 00 47 [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 53 4D 00 90 00 14 [12:02:03]RAPDU: 90 00 [12:02:03]wFMCommunicate OK [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 0D 03 02 [12:02:03]Write to MH i2c: E2 08 00 54 4D 80 0D 03 02 00 00 00 00 1C [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 0B 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 0B 00 54 4D 00 BE 9E 6B B3 6B D8 AB DF 90 00 64 [12:02:03]RAPDU: BE 9E 6B B3 6B D8 AB DF 90 00 [12:02:03]wFMCommunicate OK [12:02:03]SAM_PROTO_SignData done [12:02:03]FM_MakeSignedData done [12:02:03]CreateOFDProtocolMessage [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 11 00 00 [12:02:03]Write to MH i2c: E2 08 00 55 4D 80 11 00 00 00 00 00 00 1C [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 17 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 17 00 55 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [12:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:03]wFMCommunicate OK [12:02:03]CreateOFDProtocolMessage done [12:02:03]OFDSenderStorePacket 103385 [12:02:03]StoreOFDPacket docnum=103385 [12:02:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7F 91 07 01 AF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 40 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 93 01 00 35 04 06 00 8A 96 6D 8B 3D 58 BE 9E 6B B3 6B D8 AB DF [12:02:03]CheckFolder [12:02:03]dirname=/storage/ofd_packets [12:02:03]CheckFolder done [12:02:03]ProducePacketName [12:02:03]name=ofd_packets/00103385 [12:02:03]NVStorageSaveData ofd_packets/00103385 [12:02:03]File name is /storage/ofd_packets/00103385 [12:02:03]Write 301 bytes [12:02:03]NVStorageSaveData done [12:02:03]OFDSenderStorePacket done [12:02:03]KKMCreateOFDPacket done [12:02:03]NVStorageSaveData kkm_last_timestamp [12:02:03]File name is /storage/kkm_last_timestamp [12:02:03]Write 4 bytes [12:02:03]NVStorageSaveData done [12:02:03]ExternCall_PrintAddStr [12:02:03]wPrintStart [12:02:03]Write to MH i2c: 01 00 00 56 4D A3 [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: 01 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: 01 07 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: 01 07 00 56 4D 00 00 00 00 00 FF 0F B8 [12:02:03]RasterBufferAndPrint [12:02:03]line Счет N : (1)672546 [12:02:03]line ИНН: 02508201610067 [12:02:03]line Контрольно-Кассовый Чек [12:02:03]line ПРОДАЖА [12:02:03]line ТРК (МРК, ГНК) : 32 [12:02:03]line Товар: 2710124130 [12:02:03]line Аи-92-К-5 [12:02:03]line 15.070 * 66.40 [12:02:03]line = 1000.65 [12:02:03]line НДС 12% НСП 1% [12:02:03]line > о реализуемом товаре [12:02:03]line ОКРУГЛЕНИЕ: -0.65 [12:02:03]line ИТОГО: 1000.00 [12:02:03]line Внесено: 1000.00 [12:02:03]line СДАЧА: 0.00 [12:02:03]line НСП 1% : 8.85 [12:02:03]line НДС 12% : 106.26 [12:02:03]line Наличными: 1000.00 [12:02:03]line Безнал.: 0.00 [12:02:03]line Место: АЗС № 120 "Партнер Нефть" [12:02:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:02:03]line СНО: Общий режим [12:02:03]line Чек 69 18.06.2024 12:02 [12:02:03]line Смена: 352 ФФД: 1.0 [12:02:03]line ЗНМ: 0300000164 [12:02:03]line РНМ: 0000000000092785 [12:02:03]line Версия ККМ: 001 [12:02:03]line ФМ: 0000000000875093 [12:02:03]line ФД: 103385 [12:02:03]line ФПД: 152378687569240 [12:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120208&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103385&fm=152378687569240&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:04]OFD Sender: Processing packet 103385 [packets to send 17, broken 16] [12:02:04]ProducePacketName [12:02:04]name=ofd_packets/00103385 [12:02:04]OFD Sender: To server: pG, [12:02:04]CommunicateWithHost lk.salyk.kg:30040 [12:02:04]ConnectInit lk.salyk.kg [12:02:04]written 0, free lines is 4095 [12:02:04]Connected sock=10 [12:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7F 91 07 01 AF 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 40 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 93 01 00 35 04 06 00 8A 96 6D 8B 3D 58 BE 9E 6B B3 6B D8 AB DF [12:02:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4F 20 47 00 D0 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 93 01 00 F4 03 04 00 CD 1D 71 66 B6 04 01 00 00 0C EA 5C 18 DF 83 13 33 [12:02:04]CommunicateWithHost err = 0 [12:02:04]CheckOFDResponse [12:02:04]1017 (14) - 77093643461234 [12:02:04]1041 (16) - 0000000000875093 [12:02:04]1040 (4) - 103385 [12:02:04]1012 (4) - 18.06.2024 05:40 [12:02:04]1206 (1) - 0 [12:02:04]OFD Sender: Remove packet 103385 [12:02:04]ProducePacketName [12:02:04]name=ofd_packets/00103385 [12:02:04]NVStorageDeleteData [12:02:04]Write to MH i2c: 01 00 00 81 4D CE [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 07 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 07 00 81 4D 00 00 00 00 00 F0 0C D1 [12:02:04]RasterBufferAndPrint [12:02:04]line [12:02:04]line [12:02:04]line [12:02:04]line [12:02:04]line [12:02:04]written 0, free lines is 3318 [12:02:04]MH_Cut [12:02:04]Write to MH i2c: D1 01 00 88 4D 01 A7 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: D1 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: D1 01 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: D1 01 00 88 4D 00 A6 [12:02:04]Write to MH i2c: 01 00 00 89 4D D6 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:05]OFD Sender: No OFD packet to send [12:02:05]*** Cut start [12:02:05]*** Partial cut [12:02:05]*** CUTSNS_PIN = 1 [12:02:05]*** CUTSNS_PIN = 0 [12:02:05]*** Brake cut motor [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]*** Stop cut motor [12:02:06]*** Cut end [12:02:06]Read from MH i2c: 01 07 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 89 4D 00 00 00 00 00 FF 0F EB [12:02:06]process_action close_receipt done [12:02:06]requested_data is exist [12:02:06]produce_requested_data [12:02:06]requested_item fm.sn is exist - process it [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 11 00 00 [12:02:06]Write to MH i2c: E2 08 00 8A 4D 80 11 00 00 00 00 00 00 51 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 17 00 8A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [12:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:06]wFMCommunicate OK [12:02:06]requested_item fd.num is exist - process it [12:02:06]SAM_PROTO_GetFieldsCounters [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 13 00 00 [12:02:06]Write to MH i2c: E2 08 00 8B 4D 80 13 00 00 00 00 00 00 54 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 62 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 62 00 8B 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_GetFieldsCounters done [12:02:06]requested_item shift.num is exist - process it [12:02:06]requested_item shift.opened is exist - process it [12:02:06]req_shift_opened [12:02:06]FM_GetShiftState [12:02:06]SAM_PROTO_GetShiftState [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 13 01 00 [12:02:06]Write to MH i2c: E2 08 00 8C 4D 80 13 01 00 00 00 00 00 56 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0E 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0E 00 8C 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D7 [12:02:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_GetShiftState done [12:02:06]FM_GetShiftState done [12:02:06]req_shift_opened done [12:02:06]requested_item shift.open_date is exist - process it [12:02:06]req_shift_open_date [12:02:06]req_shift_open_date done [12:02:06]produce_requested_data done [12:02:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103385,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:02:06]process_action_free close_receipt [12:02:06]json_value_free [12:02:06]json_value_free done [12:02:06]process_json_proto returns [12:02:06]Send response to host [12:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103385,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:02:06]free response buf [12:02:06]execute_script done [12:02:06]execute_script returns [12:02:06]free content buf [12:02:06]Sock 9.Close socket [12:02:06]Sock 9.Thread stoped [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:24]accept exits with 7 [12:04:24]New connection [12:04:24]New thread 3067227492 created [12:04:24]Thread 3067084132 joined [12:04:24]Waiting for new connection... [12:04:24] Sock 7.Parse request [12:04:24]Sock 7.Check first char [12:04:24]Sock 7.First char is OK [12:04:24]request: POST /json_proto HTTP/1.0 [12:04:24]Method: POST [12:04:24]URL: /json_proto [12:04:24]Method is POST - this is cgi request [12:04:24]url: /json_proto [12:04:24]query_string will be loaded in cgi processing [12:04:24]execute_cgi json_proto POST (null) [12:04:24]execute_cgi path=json_proto method=POST [12:04:24]POST find Content-Length [12:04:24]Host: 172.17.38.133:8080 [12:04:24]Content-Length: 678 [12:04:24]Content-Type: application/json [12:04:24] [12:04:24]POST finish read [12:04:24]Found Content-Length = 678 [12:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:24]execute_script... [12:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:24]POST & json_proto [12:04:24]process_json_proto [12:04:24]json parsed OK: [12:04:24]protocol is kg_v1.0 [12:04:24]action value=close_receipt [12:04:24]process_action close_receipt [12:04:24]cmd_close_receipt [12:04:24]MH_GetDate [12:04:24]Write to MH i2c: F0 00 00 8D 4D C9 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: F0 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: F0 09 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: F0 09 00 8D 4D 00 CF 77 71 66 BD 8F 7C 64 1B [12:04:24]GetLastDocTimeStamp 1718712128 [12:04:24]current date 1718712271 [12:04:24]FM_GetShiftState [12:04:24]SAM_PROTO_GetShiftState [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 13 01 00 [12:04:24]Write to MH i2c: E2 08 00 8E 4D 80 13 01 00 00 00 00 00 58 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0E 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0E 00 8E 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D9 [12:04:24]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:04:24]wFMCommunicate OK [12:04:24]SAM_PROTO_GetShiftState done [12:04:24]FM_GetShiftState done [12:04:24]opened in 1718670284 [12:04:24]opened+sec_in_day 1718756684 [12:04:24]quantity*price = 70052 [12:04:24]sum+1 = 70053 [12:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 70 18.06.2024 12:04 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103386 ФПД: 34187675498048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103386&fm=34187675498048&tin=02508201610067®Number=0000000000092785&sum=70000 [12:04:25]StoreToDocumentArchive [12:04:25]shift 352 fd 103386 [12:04:25]save to /storage/0352/doc_00103386 [12:04:25]save last doc name /storage/0352/doc_00103386 to /storage/kkm_last_doc_name [12:04:25]save OK [12:04:25]Clear old archive folders... [12:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:25]tlvbuf is 014CBCF0 [12:04:25]SAM_PROTO_ClearQueue [12:04:25]wFMCommunicate request_size=4 [12:04:25]MH_SAM_APDU [12:04:25]CAPDU: 80 09 00 00 [12:04:25]Write to MH i2c: E2 08 00 9B 4D 80 09 00 00 00 00 00 00 5A [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:25]Read from MH i2c: E2 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 03 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: E2 03 00 9B 4D 00 90 00 5C [12:04:25]RAPDU: 90 00 [12:04:25]wFMCommunicate OK [12:04:25]SAM_PROTO_ClearQueue done [12:04:25]KKMCreateOFDPacket [12:04:25]OFDProtocolAddRootSTLVToBuf [12:04:25]FM_MakeSignedData [12:04:25]FM_MakeSignedData [12:04:25]SAM_PROTO_SignData [12:04:25]wFMCommunicate request_size=4 [12:04:25]MH_SAM_APDU [12:04:25]CAPDU: 80 0D 01 02 [12:04:25]Write to MH i2c: E2 08 00 9C 4D 80 0D 01 02 00 00 00 00 62 [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 03 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 03 00 9C 4D 00 90 00 5D [12:04:26]RAPDU: 90 00 [12:04:26]wFMCommunicate OK [12:04:26]wFMCommunicate request_size=255 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CF 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 93 01 00 35 04 06 00 1F [12:04:26]Write to MH i2c: E2 02 01 9D 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CF 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 93 01 00 35 04 06 00 1F 00 00 7F [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:26]Read from MH i2c: E2 03 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 03 00 9D 4D 00 90 00 5E [12:04:26]RAPDU: 90 00 [12:04:26]wFMCommunicate OK [12:04:26]wFMCommunicate request_size=10 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 0D 02 02 05 17 F0 40 F6 40 [12:04:26]Write to MH i2c: E2 0D 00 9E 4D 80 0D 02 02 05 00 17 F0 40 F6 40 00 00 EC [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 03 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 03 00 9E 4D 00 90 00 5F [12:04:26]RAPDU: 90 00 [12:04:26]wFMCommunicate OK [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 0D 03 02 [12:04:26]Write to MH i2c: E2 08 00 9F 4D 80 0D 03 02 00 00 00 00 67 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0B 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0B 00 9F 4D 00 A4 F5 63 5C F6 17 DC 18 90 00 C1 [12:04:26]RAPDU: A4 F5 63 5C F6 17 DC 18 90 00 [12:04:26]wFMCommunicate OK [12:04:26]SAM_PROTO_SignData done [12:04:26]FM_MakeSignedData done [12:04:26]CreateOFDProtocolMessage [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 11 00 00 [12:04:26]Write to MH i2c: E2 08 00 A0 4D 80 11 00 00 00 00 00 00 67 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 17 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 17 00 A0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [12:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:04:26]wFMCommunicate OK [12:04:26]CreateOFDProtocolMessage done [12:04:26]OFDSenderStorePacket 103386 [12:04:26]StoreOFDPacket docnum=103386 [12:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 0C 07 01 FE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CF 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 93 01 00 35 04 06 00 1F 17 F0 40 F6 40 A4 F5 63 5C F6 17 DC 18 [12:04:26]CheckFolder [12:04:26]dirname=/storage/ofd_packets [12:04:26]CheckFolder done [12:04:26]ProducePacketName [12:04:26]name=ofd_packets/00103386 [12:04:26]NVStorageSaveData ofd_packets/00103386 [12:04:26]File name is /storage/ofd_packets/00103386 [12:04:26]Write 301 bytes [12:04:26]NVStorageSaveData done [12:04:26]OFDSenderStorePacket done [12:04:26]KKMCreateOFDPacket done [12:04:26]NVStorageSaveData kkm_last_timestamp [12:04:26]File name is /storage/kkm_last_timestamp [12:04:26]Write 4 bytes [12:04:26]NVStorageSaveData done [12:04:26]ExternCall_PrintAddStr [12:04:26]wPrintStart [12:04:26]Write to MH i2c: 01 00 00 A1 4D EE [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: 01 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: 01 07 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: 01 07 00 A1 4D 00 00 00 00 00 FF 0F 03 [12:04:26]RasterBufferAndPrint [12:04:26]line Счет N : (1)672547 [12:04:26]line ИНН: 02508201610067 [12:04:26]line Контрольно-Кассовый Чек [12:04:26]line ПРОДАЖА [12:04:26]line ТРК (МРК, ГНК) : 32 [12:04:26]line Товар: 2710124130 [12:04:26]line Аи-92-К-5 [12:04:26]line 10.550 * 66.40 [12:04:26]line = 700.52 [12:04:26]line НДС 12% НСП 1% [12:04:26]line > о реализуемом товаре [12:04:26]line ОКРУГЛЕНИЕ: -0.52 [12:04:26]line ИТОГО: 700.00 [12:04:26]line Внесено: 700.00 [12:04:26]line СДАЧА: 0.00 [12:04:26]line НСП 1% : 6.20 [12:04:26]line НДС 12% : 74.39 [12:04:26]line Наличными: 700.00 [12:04:26]line Безнал.: 0.00 [12:04:26]line Место: АЗС № 120 "Партнер Нефть" [12:04:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:04:26]line СНО: Общий режим [12:04:26]line Чек 70 18.06.2024 12:04 [12:04:26]line Смена: 352 ФФД: 1.0 [12:04:26]line ЗНМ: 0300000164 [12:04:26]line РНМ: 0000000000092785 [12:04:26]line Версия ККМ: 001 [12:04:26]line ФМ: 0000000000875093 [12:04:26]line ФД: 103386 [12:04:26]line ФПД: 34187675498048 [12:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103386&fm=34187675498048&tin=02508201610067®Number=0000000000092785&sum=70000 [12:04:26]OFD Sender: Processing packet 103386 [packets to send 17, broken 16] [12:04:26]ProducePacketName [12:04:26]name=ofd_packets/00103386 [12:04:26]OFD Sender: To server: pG, [12:04:26]CommunicateWithHost lk.salyk.kg:30040 [12:04:26]ConnectInit lk.salyk.kg [12:04:26]written 0, free lines is 4095 [12:04:26]Connected sock=10 [12:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 0C 07 01 FE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 CF 77 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 93 01 00 35 04 06 00 1F 17 F0 40 F6 40 A4 F5 63 5C F6 17 DC 18 [12:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BA 4C 47 00 9C 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 35 30 39 33 10 04 04 00 DA 93 01 00 F4 03 04 00 5B 1E 71 66 B6 04 01 00 00 D1 25 D9 81 18 6C FE C9 [12:04:27]CommunicateWithHost err = 0 [12:04:27]CheckOFDResponse [12:04:27]1017 (14) - 77093643461234 [12:04:27]1041 (16) - 0000000000875093 [12:04:27]1040 (4) - 103386 [12:04:27]1012 (4) - 18.06.2024 05:42 [12:04:27]1206 (1) - 0 [12:04:27]OFD Sender: Remove packet 103386 [12:04:27]ProducePacketName [12:04:27]name=ofd_packets/00103386 [12:04:27]NVStorageDeleteData [12:04:27]Write to MH i2c: 01 00 00 CC 4D 19 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 07 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: 01 07 00 CC 4D 00 00 00 00 00 DE 0C 0A [12:04:27]RasterBufferAndPrint [12:04:27]line [12:04:27]line [12:04:27]line [12:04:27]line [12:04:27]line [12:04:27]written 0, free lines is 3300 [12:04:27]MH_Cut [12:04:27]Write to MH i2c: D1 01 00 D3 4D 01 F2 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: D1 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: D1 01 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: D1 01 00 D3 4D 00 F1 [12:04:27]Write to MH i2c: 01 00 00 D4 4D 21 [12:04:27]Write i2c OK [12:04:27]MH_I2C_Read... [12:04:27]OFD Sender: No OFD packet to send [12:04:27]*** Cut start [12:04:27]*** Partial cut [12:04:27]*** CUTSNS_PIN = 1 [12:04:28]*** CUTSNS_PIN = 0 [12:04:28]*** Brake cut motor [12:04:28]Read from MH i2c: 01 [12:04:28]MH_I2C_Read... [12:04:28]*** Stop cut motor [12:04:28]*** Cut end [12:04:28]Read from MH i2c: 01 07 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 07 00 D4 4D 00 00 00 00 00 FF 0F 36 [12:04:28]process_action close_receipt done [12:04:28]requested_data is exist [12:04:28]produce_requested_data [12:04:28]requested_item fm.sn is exist - process it [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 11 00 00 [12:04:28]Write to MH i2c: E2 08 00 D5 4D 80 11 00 00 00 00 00 00 9C [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 17 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 17 00 D5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [12:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:04:28]wFMCommunicate OK [12:04:28]requested_item fd.num is exist - process it [12:04:28]SAM_PROTO_GetFieldsCounters [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 13 00 00 [12:04:28]Write to MH i2c: E2 08 00 D6 4D 80 13 00 00 00 00 00 00 9F [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 62 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 62 00 D6 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:28]wFMCommunicate OK [12:04:28]SAM_PROTO_GetFieldsCounters done [12:04:28]requested_item shift.num is exist - process it [12:04:28]requested_item shift.opened is exist - process it [12:04:28]req_shift_opened [12:04:28]FM_GetShiftState [12:04:28]SAM_PROTO_GetShiftState [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 13 01 00 [12:04:28]Write to MH i2c: E2 08 00 D7 4D 80 13 01 00 00 00 00 00 A1 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0E 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0E 00 D7 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [12:04:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:04:28]wFMCommunicate OK [12:04:28]SAM_PROTO_GetShiftState done [12:04:28]FM_GetShiftState done [12:04:28]req_shift_opened done [12:04:28]requested_item shift.open_date is exist - process it [12:04:28]req_shift_open_date [12:04:28]req_shift_open_date done [12:04:28]produce_requested_data done [12:04:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103386,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:04:28]process_action_free close_receipt [12:04:28]json_value_free [12:04:28]json_value_free done [12:04:28]process_json_proto returns [12:04:28]Send response to host [12:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103386,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:04:28]free response buf [12:04:28]execute_script done [12:04:28]execute_script returns [12:04:28]free content buf [12:04:28]Sock 7.Close socket [12:04:28]Sock 7.Thread stoped [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:40]accept exits with 9 [12:05:40]New connection [12:05:40]New thread 3067084132 created [12:05:40]Thread 3067227492 joined [12:05:40]Waiting for new connection... [12:05:40] Sock 9.Parse request [12:05:40]Sock 9.Check first char [12:05:40]Sock 9.First char is OK [12:05:40]request: POST /json_proto HTTP/1.0 [12:05:40]Method: POST [12:05:40]URL: /json_proto [12:05:40]Method is POST - this is cgi request [12:05:40]url: /json_proto [12:05:40]query_string will be loaded in cgi processing [12:05:40]execute_cgi json_proto POST (null) [12:05:40]execute_cgi path=json_proto method=POST [12:05:40]POST find Content-Length [12:05:40]Host: 172.17.38.133:8080 [12:05:40]Content-Length: 682 [12:05:40]Content-Type: application/json [12:05:40] [12:05:40]POST finish read [12:05:40]Found Content-Length = 682 [12:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:40]execute_script... [12:05:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:40]POST & json_proto [12:05:40]process_json_proto [12:05:40]json parsed OK: [12:05:40]protocol is kg_v1.0 [12:05:40]action value=close_receipt [12:05:40]process_action close_receipt [12:05:40]cmd_close_receipt [12:05:40]MH_GetDate [12:05:40]Write to MH i2c: F0 00 00 D8 4D 14 [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: F0 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: F0 09 00 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: F0 09 00 D8 4D 00 1A 78 71 66 BD 8F 7C 64 B2 [12:05:40]GetLastDocTimeStamp 1718712271 [12:05:40]current date 1718712346 [12:05:40]FM_GetShiftState [12:05:40]SAM_PROTO_GetShiftState [12:05:40]wFMCommunicate request_size=4 [12:05:40]MH_SAM_APDU [12:05:40]CAPDU: 80 13 01 00 [12:05:40]Write to MH i2c: E2 08 00 D9 4D 80 13 01 00 00 00 00 00 A3 [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:40]Read from MH i2c: E2 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: E2 0E 00 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: E2 0E 00 D9 4D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 24 [12:05:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:05:40]wFMCommunicate OK [12:05:40]SAM_PROTO_GetShiftState done [12:05:40]FM_GetShiftState done [12:05:40]opened in 1718670284 [12:05:40]opened+sec_in_day 1718756684 [12:05:40]quantity*price = 50009 [12:05:40]sum+1 = 50010 [12:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 18.06.2024 12:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103387 ФПД: 27201002815702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120547&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103387&fm=27201002815702&tin=02508201610067®Number=0000000000092785&sum=50000 [12:05:41]StoreToDocumentArchive [12:05:41]shift 352 fd 103387 [12:05:41]save to /storage/0352/doc_00103387 [12:05:41]save last doc name /storage/0352/doc_00103387 to /storage/kkm_last_doc_name [12:05:41]save OK [12:05:41]Clear old archive folders... [12:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:05:41]tlvbuf is 0145E2E0 [12:05:41]SAM_PROTO_ClearQueue [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 09 00 00 [12:05:41]Write to MH i2c: E2 08 00 E6 4D 80 09 00 00 00 00 00 00 A5 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:41]Read from MH i2c: E2 03 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 E6 4D 00 90 00 A7 [12:05:41]RAPDU: 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_ClearQueue done [12:05:41]KKMCreateOFDPacket [12:05:41]OFDProtocolAddRootSTLVToBuf [12:05:41]FM_MakeSignedData [12:05:41]FM_MakeSignedData [12:05:41]SAM_PROTO_SignData [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 0D 01 02 [12:05:41]Write to MH i2c: E2 08 00 E7 4D 80 0D 01 02 00 00 00 00 AD [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 E7 4D 00 90 00 A8 [12:05:41]RAPDU: 90 00 [12:05:41]wFMCommunicate OK [12:05:41]wFMCommunicate request_size=255 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 93 01 00 35 04 06 00 [12:05:41]Write to MH i2c: E2 02 01 E8 4D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 93 01 00 35 04 06 00 00 00 C6 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 E8 4D 00 90 00 A9 [12:05:41]RAPDU: 90 00 [12:05:41]wFMCommunicate OK [12:05:41]wFMCommunicate request_size=11 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 0D 02 02 06 18 BD 3A 1C 40 D6 [12:05:41]Write to MH i2c: E2 0E 00 E9 4D 80 0D 02 02 06 00 18 BD 3A 1C 40 D6 00 00 FD [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 03 00 E9 4D 00 90 00 AA [12:05:41]RAPDU: 90 00 [12:05:41]wFMCommunicate OK [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 0D 03 02 [12:05:41]Write to MH i2c: E2 08 00 EA 4D 80 0D 03 02 00 00 00 00 B2 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0B 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0B 00 EA 4D 00 90 EB 93 F8 D9 7D D5 FC 90 00 E0 [12:05:41]RAPDU: 90 EB 93 F8 D9 7D D5 FC 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_SignData done [12:05:41]FM_MakeSignedData done [12:05:41]CreateOFDProtocolMessage [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 11 00 00 [12:05:41]Write to MH i2c: E2 08 00 EB 4D 80 11 00 00 00 00 00 00 B2 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 EB 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [12:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:42]wFMCommunicate OK [12:05:42]CreateOFDProtocolMessage done [12:05:42]OFDSenderStorePacket 103387 [12:05:42]StoreOFDPacket docnum=103387 [12:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F0 2F 08 01 23 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 93 01 00 35 04 06 00 18 BD 3A 1C 40 D6 90 EB 93 F8 D9 7D D5 FC [12:05:42]CheckFolder [12:05:42]dirname=/storage/ofd_packets [12:05:42]CheckFolder done [12:05:42]ProducePacketName [12:05:42]name=ofd_packets/00103387 [12:05:42]NVStorageSaveData ofd_packets/00103387 [12:05:42]File name is /storage/ofd_packets/00103387 [12:05:42]Write 302 bytes [12:05:42]NVStorageSaveData done [12:05:42]OFDSenderStorePacket done [12:05:42]KKMCreateOFDPacket done [12:05:42]NVStorageSaveData kkm_last_timestamp [12:05:42]File name is /storage/kkm_last_timestamp [12:05:42]Write 4 bytes [12:05:42]NVStorageSaveData done [12:05:42]ExternCall_PrintAddStr [12:05:42]wPrintStart [12:05:42]Write to MH i2c: 01 00 00 EC 4D 39 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 EC 4D 00 00 00 00 00 FF 0F 4E [12:05:42]RasterBufferAndPrint [12:05:42]line Счет N : (1)672549 [12:05:42]line ИНН: 02508201610067 [12:05:42]line Контрольно-Кассовый Чек [12:05:42]line ПРОДАЖА [12:05:42]line ТРК (МРК, ГНК) : 21 [12:05:42]line Товар: 2710194210 [12:05:42]line ДТ(л)-К-5 [12:05:42]line 6.860 * 72.90 [12:05:42]line = 500.09 [12:05:42]line НДС 12% НСП 1% [12:05:42]line > о реализуемом товаре [12:05:42]line ОКРУГЛЕНИЕ: -0.09 [12:05:42]line ИТОГО: 500.00 [12:05:42]line Внесено: 500.00 [12:05:42]line СДАЧА: 0.00 [12:05:42]line НСП 1% : 4.43 [12:05:42]line НДС 12% : 53.11 [12:05:42]line Наличными: 500.00 [12:05:42]line Безнал.: 0.00 [12:05:42]line Место: АЗС № 120 "Партнер Нефть" [12:05:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:05:42]line СНО: Общий режим [12:05:42]line Чек 71 18.06.2024 12:05 [12:05:42]line Смена: 352 ФФД: 1.0 [12:05:42]line ЗНМ: 0300000164 [12:05:42]line РНМ: 0000000000092785 [12:05:42]line Версия ККМ: 001 [12:05:42]line ФМ: 0000000000875093 [12:05:42]line ФД: 103387 [12:05:42]line ФПД: 27201002815702 [12:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120547&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103387&fm=27201002815702&tin=02508201610067®Number=0000000000092785&sum=50000 [12:05:42]OFD Sender: Processing packet 103387 [packets to send 17, broken 16] [12:05:42]ProducePacketName [12:05:42]name=ofd_packets/00103387 [12:05:42]OFD Sender: To server: pG, [12:05:42]CommunicateWithHost lk.salyk.kg:30040 [12:05:42]ConnectInit lk.salyk.kg [12:05:42]written 0, free lines is 4095 [12:05:42]Connected sock=7 [12:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F0 2F 08 01 23 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 1B 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 93 01 00 35 04 06 00 18 BD 3A 1C 40 D6 90 EB 93 F8 D9 7D D5 FC [12:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 29 54 47 00 D0 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 93 01 00 F4 03 04 00 A7 1E 71 66 B6 04 01 00 00 B8 36 AB BC D6 E7 97 49 [12:05:42]CommunicateWithHost err = 0 [12:05:42]CheckOFDResponse [12:05:42]1017 (14) - 77093643461234 [12:05:42]1041 (16) - 0000000000875093 [12:05:42]1040 (4) - 103387 [12:05:42]1012 (4) - 18.06.2024 05:44 [12:05:42]1206 (1) - 0 [12:05:42]OFD Sender: Remove packet 103387 [12:05:42]ProducePacketName [12:05:42]name=ofd_packets/00103387 [12:05:42]NVStorageDeleteData [12:05:42]Write to MH i2c: 01 00 00 17 4E 65 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: 01 07 00 17 4E 00 00 00 00 00 E9 0C 61 [12:05:42]RasterBufferAndPrint [12:05:42]line [12:05:42]line [12:05:42]line [12:05:42]line [12:05:42]line [12:05:42]written 0, free lines is 3312 [12:05:42]MH_Cut [12:05:42]Write to MH i2c: D1 01 00 1E 4E 01 3E [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: D1 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: D1 01 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: D1 01 00 1E 4E 00 3D [12:05:42]Write to MH i2c: 01 00 00 1F 4E 6D [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:43]OFD Sender: No OFD packet to send [12:05:43]*** Cut start [12:05:43]*** Partial cut [12:05:43]*** CUTSNS_PIN = 1 [12:05:43]*** CUTSNS_PIN = 0 [12:05:43]*** Brake cut motor [12:05:44]Read from MH i2c: 01 [12:05:44]MH_I2C_Read... [12:05:44]*** Stop cut motor [12:05:44]*** Cut end [12:05:44]Read from MH i2c: 01 07 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: 01 07 00 1F 4E 00 00 00 00 00 FF 0F 82 [12:05:44]process_action close_receipt done [12:05:44]requested_data is exist [12:05:44]produce_requested_data [12:05:44]requested_item fm.sn is exist - process it [12:05:44]wFMCommunicate request_size=4 [12:05:44]MH_SAM_APDU [12:05:44]CAPDU: 80 11 00 00 [12:05:44]Write to MH i2c: E2 08 00 20 4E 80 11 00 00 00 00 00 00 E8 [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:44]Read from MH i2c: E2 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 17 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 17 00 20 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [12:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:44]wFMCommunicate OK [12:05:44]requested_item fd.num is exist - process it [12:05:44]SAM_PROTO_GetFieldsCounters [12:05:44]wFMCommunicate request_size=4 [12:05:44]MH_SAM_APDU [12:05:44]CAPDU: 80 13 00 00 [12:05:44]Write to MH i2c: E2 08 00 21 4E 80 13 00 00 00 00 00 00 EB [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:44]Read from MH i2c: E2 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 62 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 62 00 21 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12:05:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:44]wFMCommunicate OK [12:05:44]SAM_PROTO_GetFieldsCounters done [12:05:44]requested_item shift.num is exist - process it [12:05:44]requested_item shift.opened is exist - process it [12:05:44]req_shift_opened [12:05:44]FM_GetShiftState [12:05:44]SAM_PROTO_GetShiftState [12:05:44]wFMCommunicate request_size=4 [12:05:44]MH_SAM_APDU [12:05:44]CAPDU: 80 13 01 00 [12:05:44]Write to MH i2c: E2 08 00 22 4E 80 13 01 00 00 00 00 00 ED [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:44]Read from MH i2c: E2 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 0E 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: E2 0E 00 22 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [12:05:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:05:44]wFMCommunicate OK [12:05:44]SAM_PROTO_GetShiftState done [12:05:44]FM_GetShiftState done [12:05:44]req_shift_opened done [12:05:44]requested_item shift.open_date is exist - process it [12:05:44]req_shift_open_date [12:05:44]req_shift_open_date done [12:05:44]produce_requested_data done [12:05:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103387,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:05:44]process_action_free close_receipt [12:05:44]json_value_free [12:05:44]json_value_free done [12:05:44]process_json_proto returns [12:05:44]Send response to host [12:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103387,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:05:44]free response buf [12:05:44]execute_script done [12:05:44]execute_script returns [12:05:44]free content buf [12:05:44]Sock 9.Close socket [12:05:44]Sock 9.Thread stoped [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:05]accept exits with 10 [12:07:05]New connection [12:07:05]New thread 3067227492 created [12:07:05]Thread 3067084132 joined [12:07:05]Waiting for new connection... [12:07:05] Sock 10.Parse request [12:07:05]Sock 10.Check first char [12:07:05]Sock 10.First char is OK [12:07:05]request: POST /json_proto HTTP/1.0 [12:07:05]Method: POST [12:07:05]URL: /json_proto [12:07:05]Method is POST - this is cgi request [12:07:05]url: /json_proto [12:07:05]query_string will be loaded in cgi processing [12:07:05]execute_cgi json_proto POST (null) [12:07:05]execute_cgi path=json_proto method=POST [12:07:05]POST find Content-Length [12:07:05]Host: 172.17.38.133:8080 [12:07:05]Content-Length: 682 [12:07:05]Content-Type: application/json [12:07:05] [12:07:05]POST finish read [12:07:05]Found Content-Length = 682 [12:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.760, "sum" : 2273.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2273.00, "payments": [ { "type": 0, "sum" : 2273.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:05]execute_script... [12:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.760, "sum" : 2273.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2273.00, "payments": [ { "type": 0, "sum" : 2273.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:05]POST & json_proto [12:07:05]process_json_proto [12:07:05]json parsed OK: [12:07:05]protocol is kg_v1.0 [12:07:05]action value=close_receipt [12:07:05]process_action close_receipt [12:07:05]cmd_close_receipt [12:07:05]MH_GetDate [12:07:05]Write to MH i2c: F0 00 00 23 4E 60 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: F0 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: F0 09 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: F0 09 00 23 4E 00 70 78 71 66 BD 8F 7C 64 54 [12:07:05]GetLastDocTimeStamp 1718712347 [12:07:05]current date 1718712432 [12:07:05]FM_GetShiftState [12:07:05]SAM_PROTO_GetShiftState [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 13 01 00 [12:07:05]Write to MH i2c: E2 08 00 24 4E 80 13 01 00 00 00 00 00 EF [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 0E 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 0E 00 24 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 70 [12:07:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:07:05]wFMCommunicate OK [12:07:05]SAM_PROTO_GetShiftState done [12:07:05]FM_GetShiftState done [12:07:05]opened in 1718670284 [12:07:05]opened+sec_in_day 1718756684 [12:07:05]quantity*price = 227316 [12:07:05]sum+1 = 227317 [12:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2273.00 Внесено: 2500.00 СДАЧА: 227.00 НСП 1% : 20.12 НДС 12% : 241.40 Наличными: 2273.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 72 18.06.2024 12:07 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103388 ФПД: 163539914374745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103388&fm=163539914374745&tin=02508201610067®Number=0000000000092785&sum=227300 [12:07:06]StoreToDocumentArchive [12:07:06]shift 352 fd 103388 [12:07:06]save to /storage/0352/doc_00103388 [12:07:06]save last doc name /storage/0352/doc_00103388 to /storage/kkm_last_doc_name [12:07:06]save OK [12:07:06]Clear old archive folders... [12:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:06]tlvbuf is 013EBDA0 [12:07:06]SAM_PROTO_ClearQueue [12:07:06]wFMCommunicate request_size=4 [12:07:06]MH_SAM_APDU [12:07:06]CAPDU: 80 09 00 00 [12:07:06]Write to MH i2c: E2 08 00 31 4E 80 09 00 00 00 00 00 00 F1 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:06]Read from MH i2c: E2 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 03 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 03 00 31 4E 00 90 00 F3 [12:07:06]RAPDU: 90 00 [12:07:06]wFMCommunicate OK [12:07:06]SAM_PROTO_ClearQueue done [12:07:06]KKMCreateOFDPacket [12:07:06]OFDProtocolAddRootSTLVToBuf [12:07:06]FM_MakeSignedData [12:07:06]FM_MakeSignedData [12:07:06]SAM_PROTO_SignData [12:07:06]wFMCommunicate request_size=4 [12:07:06]MH_SAM_APDU [12:07:06]CAPDU: 80 0D 01 02 [12:07:06]Write to MH i2c: E2 08 00 32 4E 80 0D 01 02 00 00 00 00 F9 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:06]Read from MH i2c: E2 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 03 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 03 00 32 4E 00 90 00 F4 [12:07:06]RAPDU: 90 00 [12:07:06]wFMCommunicate OK [12:07:06]wFMCommunicate request_size=255 [12:07:06]MH_SAM_APDU [12:07:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 78 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 F4 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 5E 00 00 00 00 07 04 06 00 E4 77 03 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 70 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 93 01 00 35 04 06 00 94 [12:07:06]Write to MH i2c: E2 02 01 33 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 78 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 F4 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 5E 00 00 00 00 07 04 06 00 E4 77 03 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 70 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 93 01 00 35 04 06 00 94 00 00 CA [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 03 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [12:07:07]RAPDU: 90 00 [12:07:07]wFMCommunicate OK [12:07:07]wFMCommunicate request_size=10 [12:07:07]MH_SAM_APDU [12:07:07]CAPDU: 80 0D 02 02 05 BD 1A 80 BE 59 [12:07:07]Write to MH i2c: E2 0D 00 34 4E 80 0D 02 02 05 00 BD 1A 80 BE 59 00 00 74 [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 03 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 03 00 34 4E 00 90 00 F6 [12:07:07]RAPDU: 90 00 [12:07:07]wFMCommunicate OK [12:07:07]wFMCommunicate request_size=4 [12:07:07]MH_SAM_APDU [12:07:07]CAPDU: 80 0D 03 02 [12:07:07]Write to MH i2c: E2 08 00 35 4E 80 0D 03 02 00 00 00 00 FE [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 0B 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 0B 00 35 4E 00 97 CE 8E 71 1A 68 FE 68 90 00 4B [12:07:07]RAPDU: 97 CE 8E 71 1A 68 FE 68 90 00 [12:07:07]wFMCommunicate OK [12:07:07]SAM_PROTO_SignData done [12:07:07]FM_MakeSignedData done [12:07:07]CreateOFDProtocolMessage [12:07:07]wFMCommunicate request_size=4 [12:07:07]MH_SAM_APDU [12:07:07]CAPDU: 80 11 00 00 [12:07:07]Write to MH i2c: E2 08 00 36 4E 80 11 00 00 00 00 00 00 FE [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:07]Read from MH i2c: E2 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 17 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: E2 17 00 36 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [12:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:07:07]wFMCommunicate OK [12:07:07]CreateOFDProtocolMessage done [12:07:07]OFDSenderStorePacket 103388 [12:07:07]StoreOFDPacket docnum=103388 [12:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BA B3 07 01 CB 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 78 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 F4 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 5E 00 00 00 00 07 04 06 00 E4 77 03 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 70 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 93 01 00 35 04 06 00 94 BD 1A 80 BE 59 97 CE 8E 71 1A 68 FE 68 [12:07:07]CheckFolder [12:07:07]dirname=/storage/ofd_packets [12:07:07]CheckFolder done [12:07:07]ProducePacketName [12:07:07]name=ofd_packets/00103388 [12:07:07]NVStorageSaveData ofd_packets/00103388 [12:07:07]File name is /storage/ofd_packets/00103388 [12:07:07]Write 301 bytes [12:07:07]NVStorageSaveData done [12:07:07]OFDSenderStorePacket done [12:07:07]KKMCreateOFDPacket done [12:07:07]NVStorageSaveData kkm_last_timestamp [12:07:07]File name is /storage/kkm_last_timestamp [12:07:07]Write 4 bytes [12:07:07]NVStorageSaveData done [12:07:07]ExternCall_PrintAddStr [12:07:07]wPrintStart [12:07:07]Write to MH i2c: 01 00 00 37 4E 85 [12:07:07]Write i2c OK [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: 01 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: 01 07 00 [12:07:07]MH_I2C_Read... [12:07:07]Read from MH i2c: 01 07 00 37 4E 00 00 00 00 00 FF 0F 9A [12:07:07]RasterBufferAndPrint [12:07:07]line Счет N : (1)672548 [12:07:07]line ИНН: 02508201610067 [12:07:07]line Контрольно-Кассовый Чек [12:07:07]line ПРОДАЖА [12:07:07]line ТРК (МРК, ГНК) : 41 [12:07:07]line Товар: 2710124500 [12:07:07]line Аи-95-К-5 [12:07:07]line 30.760 * 73.90 [12:07:07]line = 2273.16 [12:07:07]line НДС 12% НСП 1% [12:07:07]line > о реализуемом товаре [12:07:07]line ОКРУГЛЕНИЕ: -0.16 [12:07:07]line ИТОГО: 2273.00 [12:07:07]line Внесено: 2500.00 [12:07:07]line СДАЧА: 227.00 [12:07:07]line НСП 1% : 20.12 [12:07:07]line НДС 12% : 241.40 [12:07:07]line Наличными: 2273.00 [12:07:07]line Безнал.: 0.00 [12:07:07]line Место: АЗС № 120 "Партнер Нефть" [12:07:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:07:07]line СНО: Общий режим [12:07:07]line Чек 72 18.06.2024 12:07 [12:07:07]line Смена: 352 ФФД: 1.0 [12:07:07]line ЗНМ: 0300000164 [12:07:07]line РНМ: 0000000000092785 [12:07:07]line Версия ККМ: 001 [12:07:07]line ФМ: 0000000000875093 [12:07:07]line ФД: 103388 [12:07:07]line ФПД: 163539914374745 [12:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103388&fm=163539914374745&tin=02508201610067®Number=0000000000092785&sum=227300 [12:07:07]OFD Sender: Processing packet 103388 [packets to send 17, broken 16] [12:07:07]ProducePacketName [12:07:07]name=ofd_packets/00103388 [12:07:07]OFD Sender: To server: pG, [12:07:07]CommunicateWithHost lk.salyk.kg:30040 [12:07:07]ConnectInit lk.salyk.kg [12:07:07]written 0, free lines is 4095 [12:07:07]Connected sock=9 [12:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BA B3 07 01 CB 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 78 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 F4 77 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 77 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 5E 00 00 00 00 07 04 06 00 E4 77 03 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 70 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 93 01 00 35 04 06 00 94 BD 1A 80 BE 59 97 CE 8E 71 1A 68 FE 68 [12:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CB F7 47 00 59 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 93 01 00 F4 03 04 00 FC 1E 71 66 B6 04 01 00 00 94 98 7D 39 11 F8 88 AC [12:07:07]CommunicateWithHost err = 0 [12:07:07]CheckOFDResponse [12:07:07]1017 (14) - 77093643461234 [12:07:07]1041 (16) - 0000000000875093 [12:07:07]1040 (4) - 103388 [12:07:07]1012 (4) - 18.06.2024 05:45 [12:07:07]1206 (1) - 0 [12:07:07]OFD Sender: Remove packet 103388 [12:07:07]ProducePacketName [12:07:07]name=ofd_packets/00103388 [12:07:07]NVStorageDeleteData [12:07:08]Write to MH i2c: 01 00 00 62 4E B0 [12:07:08]Write i2c OK [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: 01 [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: 01 07 00 [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: 01 07 00 62 4E 00 00 00 00 00 FB 0C BE [12:07:08]RasterBufferAndPrint [12:07:08]line [12:07:08]line [12:07:08]line [12:07:08]line [12:07:08]line [12:07:08]written 0, free lines is 3332 [12:07:08]MH_Cut [12:07:08]Write to MH i2c: D1 01 00 69 4E 01 89 [12:07:08]Write i2c OK [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: D1 [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: D1 01 00 [12:07:08]MH_I2C_Read... [12:07:08]Read from MH i2c: D1 01 00 69 4E 00 88 [12:07:08]Write to MH i2c: 01 00 00 6A 4E B8 [12:07:08]Write i2c OK [12:07:08]MH_I2C_Read... [12:07:08]OFD Sender: No OFD packet to send [12:07:08]*** Cut start [12:07:08]*** Partial cut [12:07:08]*** CUTSNS_PIN = 1 [12:07:08]*** CUTSNS_PIN = 0 [12:07:09]*** Brake cut motor [12:07:09]Read from MH i2c: 01 [12:07:09]MH_I2C_Read... [12:07:09]*** Stop cut motor [12:07:09]*** Cut end [12:07:09]Read from MH i2c: 01 07 00 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: 01 07 00 6A 4E 00 00 00 00 00 FF 0F CD [12:07:09]process_action close_receipt done [12:07:09]requested_data is exist [12:07:09]produce_requested_data [12:07:09]requested_item fm.sn is exist - process it [12:07:09]wFMCommunicate request_size=4 [12:07:09]MH_SAM_APDU [12:07:09]CAPDU: 80 11 00 00 [12:07:09]Write to MH i2c: E2 08 00 6B 4E 80 11 00 00 00 00 00 00 33 [12:07:09]Write i2c OK [12:07:09]MH_I2C_Read... [12:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:09]Read from MH i2c: E2 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 17 00 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 17 00 6B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [12:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:07:09]wFMCommunicate OK [12:07:09]requested_item fd.num is exist - process it [12:07:09]SAM_PROTO_GetFieldsCounters [12:07:09]wFMCommunicate request_size=4 [12:07:09]MH_SAM_APDU [12:07:09]CAPDU: 80 13 00 00 [12:07:09]Write to MH i2c: E2 08 00 6C 4E 80 13 00 00 00 00 00 00 36 [12:07:09]Write i2c OK [12:07:09]MH_I2C_Read... [12:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:09]Read from MH i2c: E2 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 62 00 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 62 00 6C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [12:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:09]wFMCommunicate OK [12:07:09]SAM_PROTO_GetFieldsCounters done [12:07:09]requested_item shift.num is exist - process it [12:07:09]requested_item shift.opened is exist - process it [12:07:09]req_shift_opened [12:07:09]FM_GetShiftState [12:07:09]SAM_PROTO_GetShiftState [12:07:09]wFMCommunicate request_size=4 [12:07:09]MH_SAM_APDU [12:07:09]CAPDU: 80 13 01 00 [12:07:09]Write to MH i2c: E2 08 00 6D 4E 80 13 01 00 00 00 00 00 38 [12:07:09]Write i2c OK [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 [12:07:09]MH_I2C_Read... [12:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:09]Read from MH i2c: E2 0E 00 [12:07:09]MH_I2C_Read... [12:07:09]Read from MH i2c: E2 0E 00 6D 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [12:07:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:07:09]wFMCommunicate OK [12:07:09]SAM_PROTO_GetShiftState done [12:07:09]FM_GetShiftState done [12:07:09]req_shift_opened done [12:07:09]requested_item shift.open_date is exist - process it [12:07:09]req_shift_open_date [12:07:09]req_shift_open_date done [12:07:09]produce_requested_data done [12:07:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103388,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:07:09]process_action_free close_receipt [12:07:09]json_value_free [12:07:09]json_value_free done [12:07:09]process_json_proto returns [12:07:09]Send response to host [12:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103388,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:07:09]free response buf [12:07:09]execute_script done [12:07:09]execute_script returns [12:07:09]free content buf [12:07:09]Sock 10.Close socket [12:07:09]Sock 10.Thread stoped [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:17]accept exits with 7 [12:08:17]New connection [12:08:17]New thread 3067084132 created [12:08:17]Thread 3067227492 joined [12:08:17]Waiting for new connection... [12:08:17] Sock 7.Parse request [12:08:17]Sock 7.Check first char [12:08:17]Sock 7.First char is OK [12:08:17]request: POST /json_proto HTTP/1.0 [12:08:17]Method: POST [12:08:17]URL: /json_proto [12:08:17]Method is POST - this is cgi request [12:08:17]url: /json_proto [12:08:17]query_string will be loaded in cgi processing [12:08:17]execute_cgi json_proto POST (null) [12:08:17]execute_cgi path=json_proto method=POST [12:08:17]POST find Content-Length [12:08:17]Host: 172.17.38.133:8080 [12:08:17]Content-Length: 819 [12:08:17]Content-Type: application/json [12:08:17] [12:08:17]POST finish read [12:08:17]Found Content-Length = 819 [12:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:17]execute_script... [12:08:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:17]POST & json_proto [12:08:17]process_json_proto [12:08:17]json parsed OK: [12:08:17]protocol is kg_v1.0 [12:08:17]action value=close_receipt [12:08:17]process_action close_receipt [12:08:17]cmd_close_receipt [12:08:17]MH_GetDate [12:08:17]Write to MH i2c: F0 00 00 6E 4E AB [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 09 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 09 00 6E 4E 00 B8 78 71 66 BD 8F 7C 64 E7 [12:08:17]GetLastDocTimeStamp 1718712432 [12:08:17]current date 1718712504 [12:08:17]FM_GetShiftState [12:08:17]SAM_PROTO_GetShiftState [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 13 01 00 [12:08:17]Write to MH i2c: E2 08 00 6F 4E 80 13 01 00 00 00 00 00 3A [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 6F 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [12:08:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetShiftState done [12:08:17]FM_GetShiftState done [12:08:17]opened in 1718670284 [12:08:17]opened+sec_in_day 1718756684 [12:08:17]quantity*price = 200063 [12:08:17]sum+1 = 200064 [12:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 73 18.06.2024 12:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103389 ФПД: 185980349758728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103389&fm=185980349758728&tin=02508201610067®Number=0000000000092785&sum=200063 [12:08:18]StoreToDocumentArchive [12:08:18]shift 352 fd 103389 [12:08:18]save to /storage/0352/doc_00103389 [12:08:18]save last doc name /storage/0352/doc_00103389 to /storage/kkm_last_doc_name [12:08:18]save OK [12:08:18]Clear old archive folders... [12:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:18]tlvbuf is 013F61F0 [12:08:18]SAM_PROTO_ClearQueue [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 09 00 00 [12:08:18]Write to MH i2c: E2 08 00 7C 4E 80 09 00 00 00 00 00 00 3C [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 7C 4E 00 90 00 3E [12:08:18]RAPDU: 90 00 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_ClearQueue done [12:08:18]KKMCreateOFDPacket [12:08:18]OFDProtocolAddRootSTLVToBuf [12:08:18]FM_MakeSignedData [12:08:18]FM_MakeSignedData [12:08:18]SAM_PROTO_SignData [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 0D 01 02 [12:08:18]Write to MH i2c: E2 08 00 7D 4E 80 0D 01 02 00 00 00 00 44 [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 7D 4E 00 90 00 3F [12:08:18]RAPDU: 90 00 [12:08:18]wFMCommunicate OK [12:08:18]wFMCommunicate request_size=255 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B8 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 93 01 00 35 04 06 00 A9 [12:08:18]Write to MH i2c: E2 02 01 7E 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B8 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 93 01 00 35 04 06 00 A9 00 00 3C [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 7E 4E 00 90 00 40 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=10 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 02 02 05 25 EC AE BD 08 [12:08:19]Write to MH i2c: E2 0D 00 7F 4E 80 0D 02 02 05 00 25 EC AE BD 08 00 00 D5 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 7F 4E 00 90 00 41 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 03 02 [12:08:19]Write to MH i2c: E2 08 00 80 4E 80 0D 03 02 00 00 00 00 49 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0B 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0B 00 80 4E 00 C3 86 87 07 88 80 07 00 90 00 30 [12:08:19]RAPDU: C3 86 87 07 88 80 07 00 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_SignData done [12:08:19]FM_MakeSignedData done [12:08:19]CreateOFDProtocolMessage [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 11 00 00 [12:08:19]Write to MH i2c: E2 08 00 81 4E 80 11 00 00 00 00 00 00 49 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 81 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [12:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:08:19]wFMCommunicate OK [12:08:19]CreateOFDProtocolMessage done [12:08:19]OFDSenderStorePacket 103389 [12:08:19]StoreOFDPacket docnum=103389 [12:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 59 07 01 7D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B8 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 93 01 00 35 04 06 00 A9 25 EC AE BD 08 C3 86 87 07 88 80 07 00 [12:08:19]CheckFolder [12:08:19]dirname=/storage/ofd_packets [12:08:19]CheckFolder done [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00103389 [12:08:19]NVStorageSaveData ofd_packets/00103389 [12:08:19]File name is /storage/ofd_packets/00103389 [12:08:19]Write 301 bytes [12:08:19]NVStorageSaveData done [12:08:19]OFDSenderStorePacket done [12:08:19]KKMCreateOFDPacket done [12:08:19]NVStorageSaveData kkm_last_timestamp [12:08:19]File name is /storage/kkm_last_timestamp [12:08:19]Write 4 bytes [12:08:19]NVStorageSaveData done [12:08:19]ExternCall_PrintAddStr [12:08:19]wPrintStart [12:08:19]Write to MH i2c: 01 00 00 82 4E D0 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 07 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 07 00 82 4E 00 00 00 00 00 FF 0F E5 [12:08:19]RasterBufferAndPrint [12:08:19]line Счет N : (1)672550 [12:08:19]line ИНН: 02508201610067 [12:08:19]line Контрольно-Кассовый Чек [12:08:19]line ПРОДАЖА [12:08:19]line ТРК (МРК, ГНК) : 32 [12:08:19]line Товар: 2710124130 [12:08:19]line Аи-92-К-5 [12:08:19]line 30.130 * 66.40 [12:08:19]line = 2000.63 [12:08:19]line НДС 12% НСП 1% [12:08:19]line > о реализуемом товаре [12:08:19]line ИТОГО: 2000.63 [12:08:19]line НСП 1% : 17.70 [12:08:19]line НДС 12% : 212.46 [12:08:19]line Наличными: 0.00 [12:08:19]line Безнал.: 2000.63 [12:08:19]line Место: АЗС № 120 "Партнер Нефть" [12:08:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:08:19]line СНО: Общий режим [12:08:19]line Чек 73 18.06.2024 12:08 [12:08:19]line Смена: 352 ФФД: 1.0 [12:08:19]line ЗНМ: 0300000164 [12:08:19]line РНМ: 0000000000092785 [12:08:19]line Версия ККМ: 001 [12:08:19]line Платежная система: Бакай Банк [12:08:19]line ФМ: 0000000000875093 [12:08:19]line ФД: 103389 [12:08:19]line ФПД: 185980349758728 [12:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103389&fm=185980349758728&tin=02508201610067®Number=0000000000092785&sum=200063 [12:08:19]OFD Sender: Processing packet 103389 [packets to send 17, broken 16] [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00103389 [12:08:19]OFD Sender: To server: pG, [12:08:19]CommunicateWithHost lk.salyk.kg:30040 [12:08:19]ConnectInit lk.salyk.kg [12:08:19]written 0, free lines is 4095 [12:08:19]Connected sock=10 [12:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 59 07 01 7D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B8 78 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 93 01 00 35 04 06 00 A9 25 EC AE BD 08 C3 86 87 07 88 80 07 00 [12:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A1 E5 47 00 F8 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 93 01 00 F4 03 04 00 44 1F 71 66 B6 04 01 00 00 7C 12 1A 67 CE 26 2D 2A [12:08:20]CommunicateWithHost err = 0 [12:08:20]CheckOFDResponse [12:08:20]1017 (14) - 77093643461234 [12:08:20]1041 (16) - 0000000000875093 [12:08:20]1040 (4) - 103389 [12:08:20]1012 (4) - 18.06.2024 05:46 [12:08:20]1206 (1) - 0 [12:08:20]OFD Sender: Remove packet 103389 [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00103389 [12:08:20]NVStorageDeleteData [12:08:20]Write to MH i2c: 01 00 00 AC 4E FA [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 AC 4E 00 00 00 00 00 02 0D 10 [12:08:20]RasterBufferAndPrint [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]written 0, free lines is 3339 [12:08:20]MH_Cut [12:08:20]Write to MH i2c: D1 01 00 B3 4E 01 D3 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 B3 4E 00 D2 [12:08:20]Write to MH i2c: 01 00 00 B4 4E 02 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]OFD Sender: No OFD packet to send [12:08:20]*** Cut start [12:08:20]*** Partial cut [12:08:20]*** CUTSNS_PIN = 1 [12:08:20]*** CUTSNS_PIN = 0 [12:08:21]*** Brake cut motor [12:08:21]Read from MH i2c: 01 [12:08:21]MH_I2C_Read... [12:08:21]*** Stop cut motor [12:08:21]*** Cut end [12:08:21]Read from MH i2c: 01 07 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: 01 07 00 B4 4E 00 00 00 00 00 FF 0F 17 [12:08:21]process_action close_receipt done [12:08:21]requested_data is exist [12:08:21]produce_requested_data [12:08:21]requested_item fm.sn is exist - process it [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 11 00 00 [12:08:21]Write to MH i2c: E2 08 00 B5 4E 80 11 00 00 00 00 00 00 7D [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 17 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 17 00 B5 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [12:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:08:21]wFMCommunicate OK [12:08:21]requested_item fd.num is exist - process it [12:08:21]SAM_PROTO_GetFieldsCounters [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 13 00 00 [12:08:21]Write to MH i2c: E2 08 00 B6 4E 80 13 00 00 00 00 00 00 80 [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 62 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 62 00 B6 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [12:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:21]wFMCommunicate OK [12:08:21]SAM_PROTO_GetFieldsCounters done [12:08:21]requested_item shift.num is exist - process it [12:08:21]requested_item shift.opened is exist - process it [12:08:21]req_shift_opened [12:08:21]FM_GetShiftState [12:08:21]SAM_PROTO_GetShiftState [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 13 01 00 [12:08:21]Write to MH i2c: E2 08 00 B7 4E 80 13 01 00 00 00 00 00 82 [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 0E 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 0E 00 B7 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [12:08:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:08:21]wFMCommunicate OK [12:08:21]SAM_PROTO_GetShiftState done [12:08:21]FM_GetShiftState done [12:08:21]req_shift_opened done [12:08:21]requested_item shift.open_date is exist - process it [12:08:21]req_shift_open_date [12:08:21]req_shift_open_date done [12:08:21]produce_requested_data done [12:08:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103389,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:08:21]process_action_free close_receipt [12:08:21]json_value_free [12:08:21]json_value_free done [12:08:21]process_json_proto returns [12:08:21]Send response to host [12:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103389,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:08:21]free response buf [12:08:21]execute_script done [12:08:21]execute_script returns [12:08:21]free content buf [12:08:21]Sock 7.Close socket [12:08:21]Sock 7.Thread stoped [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:42]accept exits with 9 [12:09:42]New connection [12:09:42]New thread 3067227492 created [12:09:42]Thread 3067084132 joined [12:09:42]Waiting for new connection... [12:09:42] Sock 9.Parse request [12:09:42]Sock 9.Check first char [12:09:42]Sock 9.First char is OK [12:09:42]request: POST /json_proto HTTP/1.0 [12:09:42]Method: POST [12:09:42]URL: /json_proto [12:09:42]Method is POST - this is cgi request [12:09:42]url: /json_proto [12:09:42]query_string will be loaded in cgi processing [12:09:42]execute_cgi json_proto POST (null) [12:09:42]execute_cgi path=json_proto method=POST [12:09:42]POST find Content-Length [12:09:42]Host: 172.17.38.133:8080 [12:09:42]Content-Length: 678 [12:09:42]Content-Type: application/json [12:09:42] [12:09:42]POST finish read [12:09:42]Found Content-Length = 678 [12:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:42]execute_script... [12:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:42]POST & json_proto [12:09:42]process_json_proto [12:09:42]json parsed OK: [12:09:42]protocol is kg_v1.0 [12:09:42]action value=close_receipt [12:09:42]process_action close_receipt [12:09:42]cmd_close_receipt [12:09:42]MH_GetDate [12:09:42]Write to MH i2c: F0 00 00 B8 4E F5 [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 B8 4E 00 0D 79 71 66 BD 8F 7C 64 87 [12:09:42]GetLastDocTimeStamp 1718712504 [12:09:42]current date 1718712589 [12:09:42]FM_GetShiftState [12:09:42]SAM_PROTO_GetShiftState [12:09:42]wFMCommunicate request_size=4 [12:09:42]MH_SAM_APDU [12:09:42]CAPDU: 80 13 01 00 [12:09:42]Write to MH i2c: E2 08 00 B9 4E 80 13 01 00 00 00 00 00 84 [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 B9 4E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [12:09:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:09:42]wFMCommunicate OK [12:09:42]SAM_PROTO_GetShiftState done [12:09:42]FM_GetShiftState done [12:09:42]opened in 1718670284 [12:09:42]opened+sec_in_day 1718756684 [12:09:42]quantity*price = 70052 [12:09:42]sum+1 = 70053 [12:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 18.06.2024 12:09 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103390 ФПД: 280046907015592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103390&fm=280046907015592&tin=02508201610067®Number=0000000000092785&sum=70000 [12:09:43]StoreToDocumentArchive [12:09:43]shift 352 fd 103390 [12:09:43]save to /storage/0352/doc_00103390 [12:09:43]save last doc name /storage/0352/doc_00103390 to /storage/kkm_last_doc_name [12:09:43]save OK [12:09:43]Clear old archive folders... [12:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:43]tlvbuf is B6F9B4C0 [12:09:43]SAM_PROTO_ClearQueue [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 09 00 00 [12:09:43]Write to MH i2c: E2 08 00 C6 4E 80 09 00 00 00 00 00 00 86 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 C6 4E 00 90 00 88 [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]SAM_PROTO_ClearQueue done [12:09:43]KKMCreateOFDPacket [12:09:43]OFDProtocolAddRootSTLVToBuf [12:09:43]FM_MakeSignedData [12:09:43]FM_MakeSignedData [12:09:43]SAM_PROTO_SignData [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 01 02 [12:09:43]Write to MH i2c: E2 08 00 C7 4E 80 0D 01 02 00 00 00 00 8E [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 C7 4E 00 90 00 89 [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]wFMCommunicate request_size=255 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 93 01 00 35 04 06 00 FE [12:09:43]Write to MH i2c: E2 02 01 C8 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 93 01 00 35 04 06 00 FE 00 00 D2 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 C8 4E 00 90 00 8A [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]wFMCommunicate request_size=10 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 02 02 05 B3 80 69 C1 A8 [12:09:43]Write to MH i2c: E2 0D 00 C9 4E 80 0D 02 02 05 00 B3 80 69 C1 A8 00 00 A0 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [12:09:44]RAPDU: 90 00 [12:09:44]wFMCommunicate OK [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 0D 03 02 [12:09:44]Write to MH i2c: E2 08 00 CA 4E 80 0D 03 02 00 00 00 00 93 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0B 00 CA 4E 00 4E 36 6C EA A7 F5 F1 5E 90 00 59 [12:09:44]RAPDU: 4E 36 6C EA A7 F5 F1 5E 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_SignData done [12:09:44]FM_MakeSignedData done [12:09:44]CreateOFDProtocolMessage [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 11 00 00 [12:09:44]Write to MH i2c: E2 08 00 CB 4E 80 11 00 00 00 00 00 00 93 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 CB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [12:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:09:44]wFMCommunicate OK [12:09:44]CreateOFDProtocolMessage done [12:09:44]OFDSenderStorePacket 103390 [12:09:44]StoreOFDPacket docnum=103390 [12:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C8 AD 07 01 82 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 93 01 00 35 04 06 00 FE B3 80 69 C1 A8 4E 36 6C EA A7 F5 F1 5E [12:09:44]CheckFolder [12:09:44]dirname=/storage/ofd_packets [12:09:44]CheckFolder done [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00103390 [12:09:44]NVStorageSaveData ofd_packets/00103390 [12:09:44]File name is /storage/ofd_packets/00103390 [12:09:44]Write 301 bytes [12:09:44]NVStorageSaveData done [12:09:44]OFDSenderStorePacket done [12:09:44]KKMCreateOFDPacket done [12:09:44]NVStorageSaveData kkm_last_timestamp [12:09:44]File name is /storage/kkm_last_timestamp [12:09:44]Write 4 bytes [12:09:44]NVStorageSaveData done [12:09:44]ExternCall_PrintAddStr [12:09:44]wPrintStart [12:09:44]Write to MH i2c: 01 00 00 CC 4E 1A [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 CC 4E 00 00 00 00 00 FF 0F 2F [12:09:44]RasterBufferAndPrint [12:09:44]line Счет N : (1)672551 [12:09:44]line ИНН: 02508201610067 [12:09:44]line Контрольно-Кассовый Чек [12:09:44]line ПРОДАЖА [12:09:44]line ТРК (МРК, ГНК) : 42 [12:09:44]line Товар: 2710124130 [12:09:44]line Аи-92-К-5 [12:09:44]line 10.550 * 66.40 [12:09:44]line = 700.52 [12:09:44]line НДС 12% НСП 1% [12:09:44]line > о реализуемом товаре [12:09:44]line ОКРУГЛЕНИЕ: -0.52 [12:09:44]line ИТОГО: 700.00 [12:09:44]line Внесено: 700.00 [12:09:44]line СДАЧА: 0.00 [12:09:44]line НСП 1% : 6.20 [12:09:44]line НДС 12% : 74.39 [12:09:44]line Наличными: 700.00 [12:09:44]line Безнал.: 0.00 [12:09:44]line Место: АЗС № 120 "Партнер Нефть" [12:09:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:09:44]line СНО: Общий режим [12:09:44]line Чек 74 18.06.2024 12:09 [12:09:44]line Смена: 352 ФФД: 1.0 [12:09:44]line ЗНМ: 0300000164 [12:09:44]line РНМ: 0000000000092785 [12:09:44]line Версия ККМ: 001 [12:09:44]line ФМ: 0000000000875093 [12:09:44]line ФД: 103390 [12:09:44]line ФПД: 280046907015592 [12:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103390&fm=280046907015592&tin=02508201610067®Number=0000000000092785&sum=70000 [12:09:44]OFD Sender: Processing packet 103390 [packets to send 17, broken 16] [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00103390 [12:09:44]OFD Sender: To server: pG, [12:09:44]CommunicateWithHost lk.salyk.kg:30040 [12:09:44]ConnectInit lk.salyk.kg [12:09:44]written 0, free lines is 4095 [12:09:44]Connected sock=10 [12:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C8 AD 07 01 82 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 93 01 00 35 04 06 00 FE B3 80 69 C1 A8 4E 36 6C EA A7 F5 F1 5E [12:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8F 73 47 00 C8 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 35 30 39 33 10 04 04 00 DE 93 01 00 F4 03 04 00 99 1F 71 66 B6 04 01 00 00 08 4F 45 EC 9E 93 05 0C [12:09:44]CommunicateWithHost err = 0 [12:09:44]CheckOFDResponse [12:09:44]1017 (14) - 77093643461234 [12:09:44]1041 (16) - 0000000000875093 [12:09:44]1040 (4) - 103390 [12:09:44]1012 (4) - 18.06.2024 05:48 [12:09:44]1206 (1) - 0 [12:09:44]OFD Sender: Remove packet 103390 [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00103390 [12:09:44]NVStorageDeleteData [12:09:44]Write to MH i2c: 01 00 00 F7 4E 45 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 F7 4E 00 00 00 00 00 EB 0C 43 [12:09:44]RasterBufferAndPrint [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]written 0, free lines is 3313 [12:09:44]MH_Cut [12:09:44]Write to MH i2c: D1 01 00 FE 4E 01 1E [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 01 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 01 00 FE 4E 00 1D [12:09:44]Write to MH i2c: 01 00 00 FF 4E 4D [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:45]OFD Sender: No OFD packet to send [12:09:45]*** Cut start [12:09:45]*** Partial cut [12:09:45]*** CUTSNS_PIN = 1 [12:09:45]*** CUTSNS_PIN = 0 [12:09:45]*** Brake cut motor [12:09:46]Read from MH i2c: 01 [12:09:46]MH_I2C_Read... [12:09:46]*** Stop cut motor [12:09:46]*** Cut end [12:09:46]Read from MH i2c: 01 07 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 FF 4E 00 00 00 00 00 FF 0F 62 [12:09:46]process_action close_receipt done [12:09:46]requested_data is exist [12:09:46]produce_requested_data [12:09:46]requested_item fm.sn is exist - process it [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 11 00 00 [12:09:46]Write to MH i2c: E2 08 00 00 4F 80 11 00 00 00 00 00 00 C9 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 00 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [12:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:09:46]wFMCommunicate OK [12:09:46]requested_item fd.num is exist - process it [12:09:46]SAM_PROTO_GetFieldsCounters [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 00 00 [12:09:46]Write to MH i2c: E2 08 00 01 4F 80 13 00 00 00 00 00 00 CC [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 01 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [12:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetFieldsCounters done [12:09:46]requested_item shift.num is exist - process it [12:09:46]requested_item shift.opened is exist - process it [12:09:46]req_shift_opened [12:09:46]FM_GetShiftState [12:09:46]SAM_PROTO_GetShiftState [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 01 00 [12:09:46]Write to MH i2c: E2 08 00 02 4F 80 13 01 00 00 00 00 00 CE [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 02 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [12:09:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetShiftState done [12:09:46]FM_GetShiftState done [12:09:46]req_shift_opened done [12:09:46]requested_item shift.open_date is exist - process it [12:09:46]req_shift_open_date [12:09:46]req_shift_open_date done [12:09:46]produce_requested_data done [12:09:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103390,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:09:46]process_action_free close_receipt [12:09:46]json_value_free [12:09:46]json_value_free done [12:09:46]process_json_proto returns [12:09:46]Send response to host [12:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103390,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:09:46]free response buf [12:09:46]execute_script done [12:09:46]execute_script returns [12:09:46]free content buf [12:09:46]Sock 9.Close socket [12:09:46]Sock 9.Thread stoped [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:20]accept exits with 7 [12:10:20]New connection [12:10:20]New thread 3067084132 created [12:10:20]Thread 3067227492 joined [12:10:20]Waiting for new connection... [12:10:20] Sock 7.Parse request [12:10:20]Sock 7.Check first char [12:10:20]Sock 7.First char is OK [12:10:20]request: POST /json_proto HTTP/1.0 [12:10:20]Method: POST [12:10:20]URL: /json_proto [12:10:20]Method is POST - this is cgi request [12:10:20]url: /json_proto [12:10:20]query_string will be loaded in cgi processing [12:10:20]execute_cgi json_proto POST (null) [12:10:20]execute_cgi path=json_proto method=POST [12:10:20]POST find Content-Length [12:10:20]Host: 172.17.38.133:8080 [12:10:20]Content-Length: 678 [12:10:20]Content-Type: application/json [12:10:20] [12:10:20]POST finish read [12:10:20]Found Content-Length = 678 [12:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:20]execute_script... [12:10:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:20]POST & json_proto [12:10:20]process_json_proto [12:10:20]json parsed OK: [12:10:20]protocol is kg_v1.0 [12:10:20]action value=close_receipt [12:10:20]process_action close_receipt [12:10:20]cmd_close_receipt [12:10:20]MH_GetDate [12:10:20]Write to MH i2c: F0 00 00 03 4F 41 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 03 4F 00 33 79 71 66 BD 8F 7C 64 F9 [12:10:20]GetLastDocTimeStamp 1718712589 [12:10:20]current date 1718712627 [12:10:20]FM_GetShiftState [12:10:20]SAM_PROTO_GetShiftState [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 13 01 00 [12:10:20]Write to MH i2c: E2 08 00 04 4F 80 13 01 00 00 00 00 00 D0 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 04 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 51 [12:10:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_GetShiftState done [12:10:20]FM_GetShiftState done [12:10:20]opened in 1718670284 [12:10:20]opened+sec_in_day 1718756684 [12:10:20]quantity*price = 70052 [12:10:20]sum+1 = 70053 [12:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 18.06.2024 12:10 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103391 ФПД: 253048603837613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121027&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103391&fm=253048603837613&tin=02508201610067®Number=0000000000092785&sum=70000 [12:10:21]StoreToDocumentArchive [12:10:21]shift 352 fd 103391 [12:10:21]save to /storage/0352/doc_00103391 [12:10:21]save last doc name /storage/0352/doc_00103391 to /storage/kkm_last_doc_name [12:10:21]save OK [12:10:21]Clear old archive folders... [12:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:21]tlvbuf is 01390CD0 [12:10:21]SAM_PROTO_ClearQueue [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 09 00 00 [12:10:21]Write to MH i2c: E2 08 00 11 4F 80 09 00 00 00 00 00 00 D2 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 11 4F 00 90 00 D4 [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_ClearQueue done [12:10:21]KKMCreateOFDPacket [12:10:21]OFDProtocolAddRootSTLVToBuf [12:10:21]FM_MakeSignedData [12:10:21]FM_MakeSignedData [12:10:21]SAM_PROTO_SignData [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 01 02 [12:10:21]Write to MH i2c: E2 08 00 12 4F 80 0D 01 02 00 00 00 00 DA [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 12 4F 00 90 00 D5 [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]wFMCommunicate request_size=255 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 93 01 00 35 04 06 00 E6 [12:10:21]Write to MH i2c: E2 02 01 13 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 93 01 00 35 04 06 00 E6 00 00 2E [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 13 4F 00 90 00 D6 [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]wFMCommunicate request_size=10 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 02 02 05 25 78 24 84 AD [12:10:21]Write to MH i2c: E2 0D 00 14 4F 80 0D 02 02 05 00 25 78 24 84 AD 00 00 D9 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 14 4F 00 90 00 D7 [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 03 02 [12:10:22]Write to MH i2c: E2 08 00 15 4F 80 0D 03 02 00 00 00 00 DF [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 15 4F 00 F6 78 CE 6F 9C C0 C7 0A 90 00 B8 [12:10:22]RAPDU: F6 78 CE 6F 9C C0 C7 0A 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_SignData done [12:10:22]FM_MakeSignedData done [12:10:22]CreateOFDProtocolMessage [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 11 00 00 [12:10:22]Write to MH i2c: E2 08 00 16 4F 80 11 00 00 00 00 00 00 DF [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 16 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [12:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:10:22]wFMCommunicate OK [12:10:22]CreateOFDProtocolMessage done [12:10:22]OFDSenderStorePacket 103391 [12:10:22]StoreOFDPacket docnum=103391 [12:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 57 07 01 C5 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 93 01 00 35 04 06 00 E6 25 78 24 84 AD F6 78 CE 6F 9C C0 C7 0A [12:10:22]CheckFolder [12:10:22]dirname=/storage/ofd_packets [12:10:22]CheckFolder done [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00103391 [12:10:22]NVStorageSaveData ofd_packets/00103391 [12:10:22]File name is /storage/ofd_packets/00103391 [12:10:22]Write 301 bytes [12:10:22]NVStorageSaveData done [12:10:22]OFDSenderStorePacket done [12:10:22]KKMCreateOFDPacket done [12:10:22]NVStorageSaveData kkm_last_timestamp [12:10:22]File name is /storage/kkm_last_timestamp [12:10:22]Write 4 bytes [12:10:22]NVStorageSaveData done [12:10:22]OFD Sender: Processing packet 103391 [packets to send 17, broken 16] [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00103391 [12:10:22]OFD Sender: To server: pG, [12:10:22]CommunicateWithHost lk.salyk.kg:30040 [12:10:22]ConnectInit lk.salyk.kg [12:10:22]ExternCall_PrintAddStr [12:10:22]wPrintStart [12:10:22]Write to MH i2c: 01 00 00 17 4F 66 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 17 4F 00 00 00 00 00 FF 0F 7B [12:10:22]RasterBufferAndPrint [12:10:22]line Счет N : (1)672552 [12:10:22]line ИНН: 02508201610067 [12:10:22]line Контрольно-Кассовый Чек [12:10:22]line ПРОДАЖА [12:10:22]line ТРК (МРК, ГНК) : 32 [12:10:22]line Товар: 2710124130 [12:10:22]line Аи-92-К-5 [12:10:22]line 10.550 * 66.40 [12:10:22]line = 700.52 [12:10:22]line НДС 12% НСП 1% [12:10:22]line > о реализуемом товаре [12:10:22]line ОКРУГЛЕНИЕ: -0.52 [12:10:22]line ИТОГО: 700.00 [12:10:22]line Внесено: 700.00 [12:10:22]line СДАЧА: 0.00 [12:10:22]line НСП 1% : 6.20 [12:10:22]line НДС 12% : 74.39 [12:10:22]line Наличными: 700.00 [12:10:22]line Безнал.: 0.00 [12:10:22]line Место: АЗС № 120 "Партнер Нефть" [12:10:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:10:22]line СНО: Общий режим [12:10:22]line Чек 75 18.06.2024 12:10 [12:10:22]line Смена: 352 ФФД: 1.0 [12:10:22]line ЗНМ: 0300000164 [12:10:22]line РНМ: 0000000000092785 [12:10:22]line Версия ККМ: 001 [12:10:22]line ФМ: 0000000000875093 [12:10:22]line ФД: 103391 [12:10:22]line ФПД: 253048603837613 [12:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121027&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103391&fm=253048603837613&tin=02508201610067®Number=0000000000092785&sum=70000 [12:10:22]Connected sock=11 [12:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 57 07 01 C5 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 93 01 00 35 04 06 00 E6 25 78 24 84 AD F6 78 CE 6F 9C C0 C7 0A [12:10:22]written 0, free lines is 4095 [12:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0B E3 47 00 49 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 93 01 00 F4 03 04 00 BF 1F 71 66 B6 04 01 00 00 33 61 99 32 7B 19 C3 01 [12:10:22]CommunicateWithHost err = 0 [12:10:22]CheckOFDResponse [12:10:22]1017 (14) - 77093643461234 [12:10:22]1041 (16) - 0000000000875093 [12:10:22]1040 (4) - 103391 [12:10:22]1012 (4) - 18.06.2024 05:48 [12:10:22]1206 (1) - 0 [12:10:22]OFD Sender: Remove packet 103391 [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00103391 [12:10:22]NVStorageDeleteData [12:10:22]Write to MH i2c: 01 00 00 42 4F 91 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 42 4F 00 00 00 00 00 E9 0C 8D [12:10:22]RasterBufferAndPrint [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]written 0, free lines is 3312 [12:10:22]MH_Cut [12:10:22]Write to MH i2c: D1 01 00 49 4F 01 6A [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 49 4F 00 69 [12:10:22]Write to MH i2c: 01 00 00 4A 4F 99 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:23]OFD Sender: No OFD packet to send [12:10:23]*** Cut start [12:10:23]*** Partial cut [12:10:23]*** CUTSNS_PIN = 1 [12:10:23]*** CUTSNS_PIN = 0 [12:10:23]*** Brake cut motor [12:10:24]Read from MH i2c: 01 [12:10:24]MH_I2C_Read... [12:10:24]*** Stop cut motor [12:10:24]*** Cut end [12:10:24]Read from MH i2c: 01 07 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 4A 4F 00 00 00 00 00 FF 0F AE [12:10:24]process_action close_receipt done [12:10:24]requested_data is exist [12:10:24]produce_requested_data [12:10:24]requested_item fm.sn is exist - process it [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 11 00 00 [12:10:24]Write to MH i2c: E2 08 00 4B 4F 80 11 00 00 00 00 00 00 14 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 4B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [12:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:10:24]wFMCommunicate OK [12:10:24]requested_item fd.num is exist - process it [12:10:24]SAM_PROTO_GetFieldsCounters [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 00 00 [12:10:24]Write to MH i2c: E2 08 00 4C 4F 80 13 00 00 00 00 00 00 17 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 4C 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:10:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetFieldsCounters done [12:10:24]requested_item shift.num is exist - process it [12:10:24]requested_item shift.opened is exist - process it [12:10:24]req_shift_opened [12:10:24]FM_GetShiftState [12:10:24]SAM_PROTO_GetShiftState [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 01 00 [12:10:24]Write to MH i2c: E2 08 00 4D 4F 80 13 01 00 00 00 00 00 19 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 4D 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [12:10:24]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetShiftState done [12:10:24]FM_GetShiftState done [12:10:24]req_shift_opened done [12:10:24]requested_item shift.open_date is exist - process it [12:10:24]req_shift_open_date [12:10:24]req_shift_open_date done [12:10:24]produce_requested_data done [12:10:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103391,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:10:24]process_action_free close_receipt [12:10:24]json_value_free [12:10:24]json_value_free done [12:10:24]process_json_proto returns [12:10:24]Send response to host [12:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103391,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:10:24]free response buf [12:10:24]execute_script done [12:10:24]execute_script returns [12:10:24]free content buf [12:10:24]Sock 7.Close socket [12:10:24]Sock 7.Thread stoped [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:49]accept exits with 9 [12:11:49]New connection [12:11:49]New thread 3067227492 created [12:11:49]Thread 3067084132 joined [12:11:49]Waiting for new connection... [12:11:49] Sock 9.Parse request [12:11:49]Sock 9.Check first char [12:11:49]Sock 9.First char is OK [12:11:49]request: POST /json_proto HTTP/1.0 [12:11:49]Method: POST [12:11:49]URL: /json_proto [12:11:49]Method is POST - this is cgi request [12:11:49]url: /json_proto [12:11:49]query_string will be loaded in cgi processing [12:11:49]execute_cgi json_proto POST (null) [12:11:49]execute_cgi path=json_proto method=POST [12:11:49]POST find Content-Length [12:11:49]Host: 172.17.38.133:8080 [12:11:49]Content-Length: 677 [12:11:49]Content-Type: application/json [12:11:49] [12:11:49]POST finish read [12:11:49]Found Content-Length = 677 [12:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:49]execute_script... [12:11:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:49]POST & json_proto [12:11:49]process_json_proto [12:11:49]json parsed OK: [12:11:49]protocol is kg_v1.0 [12:11:49]action value=close_receipt [12:11:49]process_action close_receipt [12:11:49]cmd_close_receipt [12:11:49]MH_GetDate [12:11:49]Write to MH i2c: F0 00 00 4E 4F 8C [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 09 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: F0 09 00 4E 4F 00 8C 79 71 66 BD 8F 7C 64 9D [12:11:49]GetLastDocTimeStamp 1718712627 [12:11:49]current date 1718712716 [12:11:49]FM_GetShiftState [12:11:49]SAM_PROTO_GetShiftState [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 13 01 00 [12:11:49]Write to MH i2c: E2 08 00 4F 4F 80 13 01 00 00 00 00 00 1B [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 4F 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [12:11:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:11:49]wFMCommunicate OK [12:11:49]SAM_PROTO_GetShiftState done [12:11:49]FM_GetShiftState done [12:11:49]opened in 1718670284 [12:11:49]opened+sec_in_day 1718756684 [12:11:49]quantity*price = 40039 [12:11:49]sum+1 = 40040 [12:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 76 18.06.2024 12:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103392 ФПД: 90051791776418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103392&fm=90051791776418&tin=02508201610067®Number=0000000000092785&sum=40000 [12:11:50]StoreToDocumentArchive [12:11:50]shift 352 fd 103392 [12:11:50]save to /storage/0352/doc_00103392 [12:11:50]save last doc name /storage/0352/doc_00103392 to /storage/kkm_last_doc_name [12:11:50]save OK [12:11:50]Clear old archive folders... [12:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:50]tlvbuf is 0147BD40 [12:11:50]SAM_PROTO_ClearQueue [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 09 00 00 [12:11:50]Write to MH i2c: E2 08 00 5C 4F 80 09 00 00 00 00 00 00 1D [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 5C 4F 00 90 00 1F [12:11:50]RAPDU: 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_ClearQueue done [12:11:50]KKMCreateOFDPacket [12:11:50]OFDProtocolAddRootSTLVToBuf [12:11:50]FM_MakeSignedData [12:11:50]FM_MakeSignedData [12:11:50]SAM_PROTO_SignData [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 0D 01 02 [12:11:50]Write to MH i2c: E2 08 00 5D 4F 80 0D 01 02 00 00 00 00 25 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 03 00 5D 4F 00 90 00 20 [12:11:50]RAPDU: 90 00 [12:11:50]wFMCommunicate OK [12:11:50]wFMCommunicate request_size=255 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 8C 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 93 01 00 35 04 06 00 51 [12:11:50]Write to MH i2c: E2 02 01 5E 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 8C 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 93 01 00 35 04 06 00 51 00 00 FB [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 5E 4F 00 90 00 21 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=10 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 02 02 05 E6 D1 0F 6A A2 [12:11:51]Write to MH i2c: E2 0D 00 5F 4F 80 0D 02 02 05 00 E6 D1 0F 6A A2 00 00 04 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 03 00 5F 4F 00 90 00 22 [12:11:51]RAPDU: 90 00 [12:11:51]wFMCommunicate OK [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 0D 03 02 [12:11:51]Write to MH i2c: E2 08 00 60 4F 80 0D 03 02 00 00 00 00 2A [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0B 00 60 4F 00 B1 77 8E 07 E7 2B 1E 80 90 00 98 [12:11:51]RAPDU: B1 77 8E 07 E7 2B 1E 80 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_SignData done [12:11:51]FM_MakeSignedData done [12:11:51]CreateOFDProtocolMessage [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 11 00 00 [12:11:51]Write to MH i2c: E2 08 00 61 4F 80 11 00 00 00 00 00 00 2A [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 61 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [12:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:11:51]wFMCommunicate OK [12:11:51]CreateOFDProtocolMessage done [12:11:51]OFDSenderStorePacket 103392 [12:11:51]StoreOFDPacket docnum=103392 [12:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 54 07 01 0B 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 8C 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 93 01 00 35 04 06 00 51 E6 D1 0F 6A A2 B1 77 8E 07 E7 2B 1E 80 [12:11:51]CheckFolder [12:11:51]dirname=/storage/ofd_packets [12:11:51]CheckFolder done [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00103392 [12:11:51]NVStorageSaveData ofd_packets/00103392 [12:11:51]File name is /storage/ofd_packets/00103392 [12:11:51]Write 301 bytes [12:11:51]NVStorageSaveData done [12:11:51]OFDSenderStorePacket done [12:11:51]KKMCreateOFDPacket done [12:11:51]NVStorageSaveData kkm_last_timestamp [12:11:51]File name is /storage/kkm_last_timestamp [12:11:51]Write 4 bytes [12:11:51]NVStorageSaveData done [12:11:51]ExternCall_PrintAddStr [12:11:51]wPrintStart [12:11:51]Write to MH i2c: 01 00 00 62 4F B1 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 62 4F 00 00 00 00 00 FF 0F C6 [12:11:51]RasterBufferAndPrint [12:11:51]line Счет N : (1)672553 [12:11:51]line ИНН: 02508201610067 [12:11:51]line Контрольно-Кассовый Чек [12:11:51]line ПРОДАЖА [12:11:51]line ТРК (МРК, ГНК) : 42 [12:11:51]line Товар: 2710124130 [12:11:51]line Аи-92-К-5 [12:11:51]line 6.030 * 66.40 [12:11:51]line = 400.39 [12:11:51]line НДС 12% НСП 1% [12:11:51]line > о реализуемом товаре [12:11:51]line ОКРУГЛЕНИЕ: -0.39 [12:11:51]line ИТОГО: 400.00 [12:11:51]line Внесено: 400.00 [12:11:51]line СДАЧА: 0.00 [12:11:51]line НСП 1% : 3.54 [12:11:51]line НДС 12% : 42.52 [12:11:51]line Наличными: 400.00 [12:11:51]line Безнал.: 0.00 [12:11:51]line Место: АЗС № 120 "Партнер Нефть" [12:11:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:11:51]line СНО: Общий режим [12:11:51]line Чек 76 18.06.2024 12:11 [12:11:51]line Смена: 352 ФФД: 1.0 [12:11:51]line ЗНМ: 0300000164 [12:11:51]line РНМ: 0000000000092785 [12:11:51]line Версия ККМ: 001 [12:11:51]line ФМ: 0000000000875093 [12:11:51]line ФД: 103392 [12:11:51]line ФПД: 90051791776418 [12:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103392&fm=90051791776418&tin=02508201610067®Number=0000000000092785&sum=40000 [12:11:51]written 0, free lines is 4095 [12:11:51]OFD Sender: Processing packet 103392 [packets to send 17, broken 16] [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00103392 [12:11:51]OFD Sender: To server: pG, [12:11:51]CommunicateWithHost lk.salyk.kg:30040 [12:11:51]ConnectInit lk.salyk.kg [12:11:51]Connected sock=7 [12:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 54 07 01 0B 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 8C 79 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 93 01 00 35 04 06 00 51 E6 D1 0F 6A A2 B1 77 8E 07 E7 2B 1E 80 [12:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B6 DF 47 00 98 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 93 01 00 F4 03 04 00 18 20 71 66 B6 04 01 00 00 3D 57 2D E3 9E 36 5E 5E [12:11:51]CommunicateWithHost err = 0 [12:11:51]CheckOFDResponse [12:11:51]1017 (14) - 77093643461234 [12:11:51]1041 (16) - 0000000000875093 [12:11:51]1040 (4) - 103392 [12:11:51]1012 (4) - 18.06.2024 05:50 [12:11:51]1206 (1) - 0 [12:11:51]OFD Sender: Remove packet 103392 [12:11:51]ProducePacketName [12:11:51]name=ofd_packets/00103392 [12:11:51]NVStorageDeleteData [12:11:51]Write to MH i2c: 01 00 00 8D 4F DC [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 8D 4F 00 00 00 00 00 E6 0C D5 [12:11:51]RasterBufferAndPrint [12:11:51]line [12:11:51]line [12:11:51]line [12:11:51]line [12:11:51]line [12:11:51]written 0, free lines is 3311 [12:11:51]MH_Cut [12:11:51]Write to MH i2c: D1 01 00 94 4F 01 B5 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 [12:11:52]MH_I2C_Read... [12:11:52]Read from MH i2c: D1 01 00 94 4F 00 B4 [12:11:52]Write to MH i2c: 01 00 00 95 4F E4 [12:11:52]Write i2c OK [12:11:52]MH_I2C_Read... [12:11:52]OFD Sender: No OFD packet to send [12:11:52]*** Cut start [12:11:52]*** Partial cut [12:11:52]*** CUTSNS_PIN = 1 [12:11:52]*** CUTSNS_PIN = 0 [12:11:52]*** Brake cut motor [12:11:53]Read from MH i2c: 01 [12:11:53]MH_I2C_Read... [12:11:53]*** Stop cut motor [12:11:53]*** Cut end [12:11:53]Read from MH i2c: 01 07 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: 01 07 00 95 4F 00 00 00 00 00 FF 0F F9 [12:11:53]process_action close_receipt done [12:11:53]requested_data is exist [12:11:53]produce_requested_data [12:11:53]requested_item fm.sn is exist - process it [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 11 00 00 [12:11:53]Write to MH i2c: E2 08 00 96 4F 80 11 00 00 00 00 00 00 5F [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 17 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 17 00 96 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [12:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:11:53]wFMCommunicate OK [12:11:53]requested_item fd.num is exist - process it [12:11:53]SAM_PROTO_GetFieldsCounters [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 13 00 00 [12:11:53]Write to MH i2c: E2 08 00 97 4F 80 13 00 00 00 00 00 00 62 [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 62 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 62 00 97 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:53]wFMCommunicate OK [12:11:53]SAM_PROTO_GetFieldsCounters done [12:11:53]requested_item shift.num is exist - process it [12:11:53]requested_item shift.opened is exist - process it [12:11:53]req_shift_opened [12:11:53]FM_GetShiftState [12:11:53]SAM_PROTO_GetShiftState [12:11:53]wFMCommunicate request_size=4 [12:11:53]MH_SAM_APDU [12:11:53]CAPDU: 80 13 01 00 [12:11:53]Write to MH i2c: E2 08 00 98 4F 80 13 01 00 00 00 00 00 64 [12:11:53]Write i2c OK [12:11:53]MH_I2C_Read... [12:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:53]Read from MH i2c: E2 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 0E 00 [12:11:53]MH_I2C_Read... [12:11:53]Read from MH i2c: E2 0E 00 98 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [12:11:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:11:53]wFMCommunicate OK [12:11:53]SAM_PROTO_GetShiftState done [12:11:53]FM_GetShiftState done [12:11:53]req_shift_opened done [12:11:53]requested_item shift.open_date is exist - process it [12:11:53]req_shift_open_date [12:11:53]req_shift_open_date done [12:11:53]produce_requested_data done [12:11:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103392,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:11:53]process_action_free close_receipt [12:11:53]json_value_free [12:11:53]json_value_free done [12:11:53]process_json_proto returns [12:11:53]Send response to host [12:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103392,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:11:53]free response buf [12:11:53]execute_script done [12:11:53]execute_script returns [12:11:53]free content buf [12:11:53]Sock 9.Close socket [12:11:53]Sock 9.Thread stoped [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:19]accept exits with 10 [12:13:19]New connection [12:13:19]New thread 3067084132 created [12:13:19]Thread 3067227492 joined [12:13:19]Waiting for new connection... [12:13:19] Sock 10.Parse request [12:13:19]Sock 10.Check first char [12:13:19]Sock 10.First char is OK [12:13:19]request: POST /json_proto HTTP/1.0 [12:13:19]Method: POST [12:13:19]URL: /json_proto [12:13:19]Method is POST - this is cgi request [12:13:19]url: /json_proto [12:13:19]query_string will be loaded in cgi processing [12:13:19]execute_cgi json_proto POST (null) [12:13:19]execute_cgi path=json_proto method=POST [12:13:19]POST find Content-Length [12:13:19]Host: 172.17.38.133:8080 [12:13:19]Content-Length: 1185 [12:13:19]Content-Type: application/json [12:13:19] [12:13:19]POST finish read [12:13:19]Found Content-Length = 1185 [12:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672554\u000A18.06.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3592858\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:19]execute_script... [12:13:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672554\u000A18.06.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3592858\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:19]POST & json_proto [12:13:19]process_json_proto [12:13:19]json parsed OK: [12:13:19]protocol is kg_v1.0 [12:13:19]action value=print_text [12:13:19]process_action print_text [12:13:19]cmd_print_text [12:13:19]ExternCall_PrintAddStr [12:13:19]wPrintStart [12:13:19]Write to MH i2c: 01 00 00 99 4F E8 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 99 4F 00 00 00 00 00 FF 0F FD [12:13:19]RasterBufferAndPrint [12:13:19]line *****ТОВАРНЫЙ ЧЕК***** [12:13:19]line АЗС 120 [12:13:19]line Партнер нефть [12:13:19]line 02508201610067 [12:13:19]line Кассир : Асанбаев Н. [12:13:19]line Счет N : (1)672554 [12:13:19]line 18.06.2024 11:50 [12:13:19]line ПРОДАЖА [12:13:19]line ТРК (МРК, ГНК): 32 [12:13:19]line Вид ГСМ : 2710124130 [12:13:19]line Аи-92-К-5 [12:13:19]line 20.000 x 66.40 [12:13:19]line ИТОГ: 1328.00 [12:13:19]line Тип оплаты: Талоны: Партнер нефть [12:13:19]line 3592858 [12:13:19]line ______________________ [12:13:19]line (подпись) [12:13:19]written 0, free lines is 4095 [12:13:19]Write to MH i2c: 01 00 00 AD 4F FC [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: 01 07 00 AD 4F 00 00 00 00 00 11 0E 22 [12:13:19]RasterBufferAndPrint [12:13:19]line [12:13:19]line [12:13:19]line [12:13:19]line [12:13:19]line [12:13:19]written 0, free lines is 3603 [12:13:19]MH_Cut [12:13:19]Write to MH i2c: D1 01 00 B4 4F 01 D5 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: D1 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: D1 01 00 [12:13:19]MH_I2C_Read... [12:13:19]Read from MH i2c: D1 01 00 B4 4F 00 D4 [12:13:19]Write to MH i2c: 01 00 00 B5 4F 04 [12:13:19]Write i2c OK [12:13:19]MH_I2C_Read... [12:13:19]*** Cut start [12:13:19]*** Partial cut [12:13:19]*** CUTSNS_PIN = 1 [12:13:19]*** CUTSNS_PIN = 0 [12:13:20]*** Brake cut motor [12:13:20]Read from MH i2c: 01 [12:13:20]MH_I2C_Read... [12:13:20]*** Stop cut motor [12:13:20]*** Cut end [12:13:20]Read from MH i2c: 01 07 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: 01 07 00 B5 4F 00 00 00 00 00 FF 0F 19 [12:13:20]process_action print_text done [12:13:20]requested_data is exist [12:13:20]produce_requested_data [12:13:20]requested_item fm.sn is exist - process it [12:13:20]wFMCommunicate request_size=4 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 11 00 00 [12:13:20]Write to MH i2c: E2 08 00 B6 4F 80 11 00 00 00 00 00 00 7F [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 17 00 B6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [12:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:13:20]wFMCommunicate OK [12:13:20]requested_item fd.num is exist - process it [12:13:20]SAM_PROTO_GetFieldsCounters [12:13:20]wFMCommunicate request_size=4 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 13 00 00 [12:13:20]Write to MH i2c: E2 08 00 B7 4F 80 13 00 00 00 00 00 00 82 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 62 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 62 00 B7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:20]wFMCommunicate OK [12:13:20]SAM_PROTO_GetFieldsCounters done [12:13:20]requested_item shift.num is exist - process it [12:13:20]requested_item shift.opened is exist - process it [12:13:20]req_shift_opened [12:13:20]FM_GetShiftState [12:13:20]SAM_PROTO_GetShiftState [12:13:20]wFMCommunicate request_size=4 [12:13:20]MH_SAM_APDU [12:13:20]CAPDU: 80 13 01 00 [12:13:20]Write to MH i2c: E2 08 00 B8 4F 80 13 01 00 00 00 00 00 84 [12:13:20]Write i2c OK [12:13:20]MH_I2C_Read... [12:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:20]Read from MH i2c: E2 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 0E 00 [12:13:20]MH_I2C_Read... [12:13:20]Read from MH i2c: E2 0E 00 B8 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [12:13:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:13:20]wFMCommunicate OK [12:13:20]SAM_PROTO_GetShiftState done [12:13:20]FM_GetShiftState done [12:13:20]req_shift_opened done [12:13:20]requested_item shift.open_date is exist - process it [12:13:20]req_shift_open_date [12:13:20]req_shift_open_date done [12:13:20]produce_requested_data done [12:13:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103392,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:13:20]process_action_free print_text [12:13:20]json_value_free [12:13:20]json_value_free done [12:13:20]process_json_proto returns [12:13:20]Send response to host [12:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103392,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:13:20]free response buf [12:13:20]execute_script done [12:13:20]execute_script returns [12:13:20]free content buf [12:13:20]Sock 10.Close socket [12:13:20]Sock 10.Thread stoped [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:43]accept exits with 7 [12:16:43]New connection [12:16:43]New thread 3067227492 created [12:16:43]Thread 3067084132 joined [12:16:43]Waiting for new connection... [12:16:43] Sock 7.Parse request [12:16:43]Sock 7.Check first char [12:16:43]Sock 7.First char is OK [12:16:43]request: POST /json_proto HTTP/1.0 [12:16:43]Method: POST [12:16:43]URL: /json_proto [12:16:43]Method is POST - this is cgi request [12:16:43]url: /json_proto [12:16:43]query_string will be loaded in cgi processing [12:16:43]execute_cgi json_proto POST (null) [12:16:43]execute_cgi path=json_proto method=POST [12:16:43]POST find Content-Length [12:16:43]Host: 172.17.38.133:8080 [12:16:43]Content-Length: 808 [12:16:43]Content-Type: application/json [12:16:43] [12:16:43]POST finish read [12:16:43]Found Content-Length = 808 [12:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 28.020, "sum" : 2042.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2042.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:43]execute_script... [12:16:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 28.020, "sum" : 2042.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2042.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:43]POST & json_proto [12:16:43]process_json_proto [12:16:43]json parsed OK: [12:16:43]protocol is kg_v1.0 [12:16:43]action value=close_receipt [12:16:43]process_action close_receipt [12:16:43]cmd_close_receipt [12:16:43]MH_GetDate [12:16:43]Write to MH i2c: F0 00 00 B9 4F F7 [12:16:43]Write i2c OK [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: F0 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: F0 09 00 [12:16:43]MH_I2C_Read... [12:16:43]Read from MH i2c: F0 09 00 B9 4F 00 B2 7A 71 66 BD 8F 7C 64 2F [12:16:43]GetLastDocTimeStamp 1718712716 [12:16:43]current date 1718713010 [12:16:43]FM_GetShiftState [12:16:43]SAM_PROTO_GetShiftState [12:16:43]wFMCommunicate request_size=4 [12:16:43]MH_SAM_APDU [12:16:43]CAPDU: 80 13 01 00 [12:16:43]Write to MH i2c: E2 08 00 BA 4F 80 13 01 00 00 00 00 00 86 [12:16:43]Write i2c OK [12:16:43]MH_I2C_Read... [12:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:44]Read from MH i2c: E2 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 BA 4F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 07 [12:16:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:16:44]wFMCommunicate OK [12:16:44]SAM_PROTO_GetShiftState done [12:16:44]FM_GetShiftState done [12:16:44]opened in 1718670284 [12:16:44]opened+sec_in_day 1718756684 [12:16:44]quantity*price = 204265 [12:16:44]sum+1 = 204267 [12:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2042.66 НСП 1% : 18.08 НДС 12% : 216.92 Наличными: 0.00 Безнал.: 2042.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 18.06.2024 12:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103393 ФПД: 98164293856738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103393&fm=98164293856738&tin=02508201610067®Number=0000000000092785&sum=204266 [12:16:45]StoreToDocumentArchive [12:16:45]shift 352 fd 103393 [12:16:45]save to /storage/0352/doc_00103393 [12:16:45]save last doc name /storage/0352/doc_00103393 to /storage/kkm_last_doc_name [12:16:45]save OK [12:16:45]Clear old archive folders... [12:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:16:45]tlvbuf is 0147BD90 [12:16:45]SAM_PROTO_ClearQueue [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 09 00 00 [12:16:45]Write to MH i2c: E2 08 00 C7 4F 80 09 00 00 00 00 00 00 88 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 C7 4F 00 90 00 8A [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]SAM_PROTO_ClearQueue done [12:16:45]KKMCreateOFDPacket [12:16:45]OFDProtocolAddRootSTLVToBuf [12:16:45]FM_MakeSignedData [12:16:45]FM_MakeSignedData [12:16:45]SAM_PROTO_SignData [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 0D 01 02 [12:16:45]Write to MH i2c: E2 08 00 C8 4F 80 0D 01 02 00 00 00 00 90 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 C8 4F 00 90 00 8B [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]wFMCommunicate request_size=255 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 6D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EA 1D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 1D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 54 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 1D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B2 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 93 01 00 35 04 06 00 [12:16:45]Write to MH i2c: E2 02 01 C9 4F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 6D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EA 1D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 1D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 54 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 1D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B2 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 93 01 00 35 04 06 00 00 00 BD [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 C9 4F 00 90 00 8C [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]wFMCommunicate request_size=11 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 0D 02 02 06 59 47 A7 DD 6D E2 [12:16:45]Write to MH i2c: E2 0E 00 CA 4F 80 0D 02 02 06 00 59 47 A7 DD 6D E2 00 00 12 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 CA 4F 00 90 00 8D [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 0D 03 02 [12:16:45]Write to MH i2c: E2 08 00 CB 4F 80 0D 03 02 00 00 00 00 95 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 0B 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 0B 00 CB 4F 00 B4 D8 EE ED B5 CA F2 AC 90 00 1A [12:16:45]RAPDU: B4 D8 EE ED B5 CA F2 AC 90 00 [12:16:45]wFMCommunicate OK [12:16:45]SAM_PROTO_SignData done [12:16:45]FM_MakeSignedData done [12:16:45]CreateOFDProtocolMessage [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 11 00 00 [12:16:45]Write to MH i2c: E2 08 00 CC 4F 80 11 00 00 00 00 00 00 95 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 17 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 17 00 CC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [12:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:16:45]wFMCommunicate OK [12:16:45]CreateOFDProtocolMessage done [12:16:45]OFDSenderStorePacket 103393 [12:16:45]StoreOFDPacket docnum=103393 [12:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 97 BB 08 01 04 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 6D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EA 1D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 1D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 54 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 1D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B2 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 93 01 00 35 04 06 00 59 47 A7 DD 6D E2 B4 D8 EE ED B5 CA F2 AC [12:16:45]CheckFolder [12:16:45]dirname=/storage/ofd_packets [12:16:45]CheckFolder done [12:16:45]ProducePacketName [12:16:45]name=ofd_packets/00103393 [12:16:45]NVStorageSaveData ofd_packets/00103393 [12:16:45]File name is /storage/ofd_packets/00103393 [12:16:45]Write 302 bytes [12:16:45]NVStorageSaveData done [12:16:45]OFDSenderStorePacket done [12:16:45]KKMCreateOFDPacket done [12:16:45]NVStorageSaveData kkm_last_timestamp [12:16:45]File name is /storage/kkm_last_timestamp [12:16:45]Write 4 bytes [12:16:45]NVStorageSaveData done [12:16:45]ExternCall_PrintAddStr [12:16:45]wPrintStart [12:16:45]Write to MH i2c: 01 00 00 CD 4F 1C [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: 01 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: 01 07 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: 01 07 00 CD 4F 00 00 00 00 00 FF 0F 31 [12:16:45]RasterBufferAndPrint [12:16:45]line Счет N : (1)672555 [12:16:45]line ИНН: 02508201610067 [12:16:45]line Контрольно-Кассовый Чек [12:16:45]line ПРОДАЖА [12:16:45]line ТРК (МРК, ГНК) : 11 [12:16:45]line Товар: 2710194210 [12:16:45]line ДТ(л)-К-5 [12:16:45]line 28.020 * 72.90 [12:16:45]line = 2042.66 [12:16:45]line НДС 12% НСП 1% [12:16:45]line > о реализуемом товаре [12:16:45]line ИТОГО: 2042.66 [12:16:45]line НСП 1% : 18.08 [12:16:45]line НДС 12% : 216.92 [12:16:45]line Наличными: 0.00 [12:16:45]line Безнал.: 2042.66 [12:16:45]line Место: АЗС № 120 "Партнер Нефть" [12:16:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:16:45]line СНО: Общий режим [12:16:45]line Чек 77 18.06.2024 12:16 [12:16:45]line Смена: 352 ФФД: 1.0 [12:16:45]line ЗНМ: 0300000164 [12:16:45]line РНМ: 0000000000092785 [12:16:45]line Версия ККМ: 001 [12:16:45]line Платежная система: O! деньги [12:16:45]line ФМ: 0000000000875093 [12:16:45]line ФД: 103393 [12:16:45]line ФПД: 98164293856738 [12:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103393&fm=98164293856738&tin=02508201610067®Number=0000000000092785&sum=204266 [12:16:46]written 0, free lines is 4095 [12:16:46]OFD Sender: Processing packet 103393 [packets to send 17, broken 16] [12:16:46]ProducePacketName [12:16:46]name=ofd_packets/00103393 [12:16:46]OFD Sender: To server: pG, [12:16:46]CommunicateWithHost lk.salyk.kg:30040 [12:16:46]ConnectInit lk.salyk.kg [12:16:46]Connected sock=10 [12:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 97 BB 08 01 04 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 6D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 EA 1D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 1D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 54 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 1D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B2 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 93 01 00 35 04 06 00 59 47 A7 DD 6D E2 B4 D8 EE ED B5 CA F2 AC [12:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AE 5E 47 00 21 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 35 30 39 33 10 04 04 00 E1 93 01 00 F4 03 04 00 3E 21 71 66 B6 04 01 00 00 F9 9C E7 13 F3 53 73 29 [12:16:46]CommunicateWithHost err = 0 [12:16:46]CheckOFDResponse [12:16:46]1017 (14) - 77093643461234 [12:16:46]1041 (16) - 0000000000875093 [12:16:46]1040 (4) - 103393 [12:16:46]1012 (4) - 18.06.2024 05:55 [12:16:46]1206 (1) - 0 [12:16:46]OFD Sender: Remove packet 103393 [12:16:46]ProducePacketName [12:16:46]name=ofd_packets/00103393 [12:16:46]NVStorageDeleteData [12:16:46]Write to MH i2c: 01 00 00 F7 4F 46 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 F7 4F 00 00 00 00 00 ED 0C 46 [12:16:46]RasterBufferAndPrint [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]written 0, free lines is 3315 [12:16:46]MH_Cut [12:16:46]Write to MH i2c: D1 01 00 FE 4F 01 1F [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 01 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 01 00 FE 4F 00 1E [12:16:46]Write to MH i2c: 01 00 00 FF 4F 4E [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]OFD Sender: No OFD packet to send [12:16:47]*** Cut start [12:16:47]*** Partial cut [12:16:47]*** CUTSNS_PIN = 1 [12:16:47]*** CUTSNS_PIN = 0 [12:16:47]*** Brake cut motor [12:16:47]Read from MH i2c: 01 [12:16:47]MH_I2C_Read... [12:16:47]*** Stop cut motor [12:16:47]*** Cut end [12:16:47]Read from MH i2c: 01 07 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: 01 07 00 FF 4F 00 00 00 00 00 FF 0F 63 [12:16:47]process_action close_receipt done [12:16:47]requested_data is exist [12:16:47]produce_requested_data [12:16:47]requested_item fm.sn is exist - process it [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 11 00 00 [12:16:47]Write to MH i2c: E2 08 00 00 50 80 11 00 00 00 00 00 00 CA [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 17 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 17 00 00 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [12:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:16:47]wFMCommunicate OK [12:16:47]requested_item fd.num is exist - process it [12:16:47]SAM_PROTO_GetFieldsCounters [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 13 00 00 [12:16:47]Write to MH i2c: E2 08 00 01 50 80 13 00 00 00 00 00 00 CD [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 62 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 62 00 01 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:16: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:48]wFMCommunicate OK [12:16:48]SAM_PROTO_GetFieldsCounters done [12:16:48]requested_item shift.num is exist - process it [12:16:48]requested_item shift.opened is exist - process it [12:16:48]req_shift_opened [12:16:48]FM_GetShiftState [12:16:48]SAM_PROTO_GetShiftState [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 13 01 00 [12:16:48]Write to MH i2c: E2 08 00 02 50 80 13 01 00 00 00 00 00 CF [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 0E 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 0E 00 02 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 50 [12:16:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:16:48]wFMCommunicate OK [12:16:48]SAM_PROTO_GetShiftState done [12:16:48]FM_GetShiftState done [12:16:48]req_shift_opened done [12:16:48]requested_item shift.open_date is exist - process it [12:16:48]req_shift_open_date [12:16:48]req_shift_open_date done [12:16:48]produce_requested_data done [12:16:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103393,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:16:48]process_action_free close_receipt [12:16:48]json_value_free [12:16:48]json_value_free done [12:16:48]process_json_proto returns [12:16:48]Send response to host [12:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103393,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:16:48]free response buf [12:16:48]execute_script done [12:16:48]execute_script returns [12:16:48]free content buf [12:16:48]Sock 7.Close socket [12:16:48]Sock 7.Thread stoped [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:33]accept exits with 9 [12:17:33]New connection [12:17:33]New thread 3067084132 created [12:17:33]Thread 3067227492 joined [12:17:33]Waiting for new connection... [12:17:33] Sock 9.Parse request [12:17:33]Sock 9.Check first char [12:17:33]Sock 9.First char is OK [12:17:33]request: POST /json_proto HTTP/1.0 [12:17:33]Method: POST [12:17:33]URL: /json_proto [12:17:33]Method is POST - this is cgi request [12:17:33]url: /json_proto [12:17:33]query_string will be loaded in cgi processing [12:17:33]execute_cgi json_proto POST (null) [12:17:33]execute_cgi path=json_proto method=POST [12:17:33]POST find Content-Length [12:17:33]Host: 172.17.38.133:8080 [12:17:33]Content-Length: 682 [12:17:33]Content-Type: application/json [12:17:33] [12:17:33]POST finish read [12:17:33]Found Content-Length = 682 [12:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:33]execute_script... [12:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.580, "sum" : 1300.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:33]POST & json_proto [12:17:33]process_json_proto [12:17:33]json parsed OK: [12:17:33]protocol is kg_v1.0 [12:17:33]action value=close_receipt [12:17:33]process_action close_receipt [12:17:33]cmd_close_receipt [12:17:33]MH_GetDate [12:17:33]Write to MH i2c: F0 00 00 03 50 42 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: F0 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: F0 09 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: F0 09 00 03 50 00 E4 7A 71 66 BD 8F 7C 64 AC [12:17:33]GetLastDocTimeStamp 1718713010 [12:17:33]current date 1718713060 [12:17:33]FM_GetShiftState [12:17:33]SAM_PROTO_GetShiftState [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 13 01 00 [12:17:33]Write to MH i2c: E2 08 00 04 50 80 13 01 00 00 00 00 00 D1 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 0E 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 0E 00 04 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 52 [12:17:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:17:33]wFMCommunicate OK [12:17:33]SAM_PROTO_GetShiftState done [12:17:33]FM_GetShiftState done [12:17:33]opened in 1718670284 [12:17:33]opened+sec_in_day 1718756684 [12:17:33]quantity*price = 130011 [12:17:33]sum+1 = 130012 [12:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1300.00 Внесено: 5000.00 СДАЧА: 3700.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 78 18.06.2024 12:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103394 ФПД: 62853011786649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121740&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103394&fm=62853011786649&tin=02508201610067®Number=0000000000092785&sum=130000 [12:17:34]StoreToDocumentArchive [12:17:34]shift 352 fd 103394 [12:17:34]save to /storage/0352/doc_00103394 [12:17:34]save last doc name /storage/0352/doc_00103394 to /storage/kkm_last_doc_name [12:17:34]save OK [12:17:34]Clear old archive folders... [12:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:34]tlvbuf is 014B26C0 [12:17:34]SAM_PROTO_ClearQueue [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 09 00 00 [12:17:34]Write to MH i2c: E2 08 00 11 50 80 09 00 00 00 00 00 00 D3 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:34]Read from MH i2c: E2 03 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 11 50 00 90 00 D5 [12:17:34]RAPDU: 90 00 [12:17:34]wFMCommunicate OK [12:17:34]SAM_PROTO_ClearQueue done [12:17:34]KKMCreateOFDPacket [12:17:34]OFDProtocolAddRootSTLVToBuf [12:17:34]FM_MakeSignedData [12:17:34]FM_MakeSignedData [12:17:34]SAM_PROTO_SignData [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 0D 01 02 [12:17:34]Write to MH i2c: E2 08 00 12 50 80 0D 01 02 00 00 00 00 DB [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 03 00 12 50 00 90 00 D6 [12:17:34]RAPDU: 90 00 [12:17:34]wFMCommunicate OK [12:17:34]wFMCommunicate request_size=255 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 93 01 00 35 04 06 00 39 [12:17:34]Write to MH i2c: E2 02 01 13 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 93 01 00 35 04 06 00 39 00 00 63 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 13 50 00 90 00 D7 [12:17:35]RAPDU: 90 00 [12:17:35]wFMCommunicate OK [12:17:35]wFMCommunicate request_size=10 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 0D 02 02 05 2A 1B 70 CB 99 [12:17:35]Write to MH i2c: E2 0D 00 14 50 80 0D 02 02 05 00 2A 1B 70 CB 99 00 00 01 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 03 00 14 50 00 90 00 D8 [12:17:35]RAPDU: 90 00 [12:17:35]wFMCommunicate OK [12:17:35]wFMCommunicate request_size=4 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 0D 03 02 [12:17:35]Write to MH i2c: E2 08 00 15 50 80 0D 03 02 00 00 00 00 E0 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 0B 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 0B 00 15 50 00 22 31 DA 30 43 80 24 45 90 00 6A [12:17:35]RAPDU: 22 31 DA 30 43 80 24 45 90 00 [12:17:35]wFMCommunicate OK [12:17:35]SAM_PROTO_SignData done [12:17:35]FM_MakeSignedData done [12:17:35]CreateOFDProtocolMessage [12:17:35]wFMCommunicate request_size=4 [12:17:35]MH_SAM_APDU [12:17:35]CAPDU: 80 11 00 00 [12:17:35]Write to MH i2c: E2 08 00 16 50 80 11 00 00 00 00 00 00 E0 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:35]Read from MH i2c: E2 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 17 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: E2 17 00 16 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [12:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:17:35]wFMCommunicate OK [12:17:35]CreateOFDProtocolMessage done [12:17:35]OFDSenderStorePacket 103394 [12:17:35]StoreOFDPacket docnum=103394 [12:17:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 FC 07 01 A5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 93 01 00 35 04 06 00 39 2A 1B 70 CB 99 22 31 DA 30 43 80 24 45 [12:17:35]CheckFolder [12:17:35]dirname=/storage/ofd_packets [12:17:35]CheckFolder done [12:17:35]ProducePacketName [12:17:35]name=ofd_packets/00103394 [12:17:35]NVStorageSaveData ofd_packets/00103394 [12:17:35]File name is /storage/ofd_packets/00103394 [12:17:35]Write 301 bytes [12:17:35]NVStorageSaveData done [12:17:35]OFDSenderStorePacket done [12:17:35]KKMCreateOFDPacket done [12:17:35]NVStorageSaveData kkm_last_timestamp [12:17:35]File name is /storage/kkm_last_timestamp [12:17:35]Write 4 bytes [12:17:35]NVStorageSaveData done [12:17:35]ExternCall_PrintAddStr [12:17:35]wPrintStart [12:17:35]Write to MH i2c: 01 00 00 17 50 67 [12:17:35]Write i2c OK [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: 01 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: 01 07 00 [12:17:35]MH_I2C_Read... [12:17:35]Read from MH i2c: 01 07 00 17 50 00 00 00 00 00 FF 0F 7C [12:17:35]RasterBufferAndPrint [12:17:35]line Счет N : (1)672556 [12:17:35]line ИНН: 02508201610067 [12:17:35]line Контрольно-Кассовый Чек [12:17:35]line ПРОДАЖА [12:17:35]line ТРК (МРК, ГНК) : 32 [12:17:35]line Товар: 2710124130 [12:17:35]line Аи-92-К-5 [12:17:35]line 19.580 * 66.40 [12:17:35]line = 1300.11 [12:17:35]line НДС 12% НСП 1% [12:17:35]line > о реализуемом товаре [12:17:35]line ОКРУГЛЕНИЕ: -0.11 [12:17:35]line ИТОГО: 1300.00 [12:17:35]line Внесено: 5000.00 [12:17:35]line СДАЧА: 3700.00 [12:17:35]line НСП 1% : 11.50 [12:17:35]line НДС 12% : 138.06 [12:17:35]line Наличными: 1300.00 [12:17:35]line Безнал.: 0.00 [12:17:35]line Место: АЗС № 120 "Партнер Нефть" [12:17:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:17:35]line СНО: Общий режим [12:17:35]line Чек 78 18.06.2024 12:17 [12:17:35]line Смена: 352 ФФД: 1.0 [12:17:35]line ЗНМ: 0300000164 [12:17:35]line РНМ: 0000000000092785 [12:17:35]line Версия ККМ: 001 [12:17:35]line ФМ: 0000000000875093 [12:17:35]line ФД: 103394 [12:17:35]line ФПД: 62853011786649 [12:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121740&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103394&fm=62853011786649&tin=02508201610067®Number=0000000000092785&sum=130000 [12:17:35]OFD Sender: Processing packet 103394 [packets to send 17, broken 16] [12:17:35]ProducePacketName [12:17:35]name=ofd_packets/00103394 [12:17:35]OFD Sender: To server: pG, [12:17:35]CommunicateWithHost lk.salyk.kg:30040 [12:17:35]ConnectInit lk.salyk.kg [12:17:35]written 0, free lines is 4095 [12:17:35]Connected sock=10 [12:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 FC 07 01 A5 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 7A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 93 01 00 35 04 06 00 39 2A 1B 70 CB 99 22 31 DA 30 43 80 24 45 [12:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E7 27 47 00 B3 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 93 01 00 F4 03 04 00 70 21 71 66 B6 04 01 00 00 72 35 D3 3B B4 35 80 6A [12:17:36]CommunicateWithHost err = 0 [12:17:36]CheckOFDResponse [12:17:36]1017 (14) - 77093643461234 [12:17:36]1041 (16) - 0000000000875093 [12:17:36]1040 (4) - 103394 [12:17:36]1012 (4) - 18.06.2024 05:56 [12:17:36]1206 (1) - 0 [12:17:36]OFD Sender: Remove packet 103394 [12:17:36]ProducePacketName [12:17:36]name=ofd_packets/00103394 [12:17:36]NVStorageDeleteData [12:17:36]Write to MH i2c: 01 00 00 42 50 92 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 07 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: 01 07 00 42 50 00 00 00 00 00 F1 0C 96 [12:17:36]RasterBufferAndPrint [12:17:36]line [12:17:36]line [12:17:36]line [12:17:36]line [12:17:36]line [12:17:36]written 0, free lines is 3319 [12:17:36]MH_Cut [12:17:36]Write to MH i2c: D1 01 00 49 50 01 6B [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: D1 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: D1 01 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: D1 01 00 49 50 00 6A [12:17:36]Write to MH i2c: 01 00 00 4A 50 9A [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]OFD Sender: No OFD packet to send [12:17:36]*** Cut start [12:17:36]*** Partial cut [12:17:36]*** CUTSNS_PIN = 1 [12:17:36]*** CUTSNS_PIN = 0 [12:17:37]*** Brake cut motor [12:17:37]Read from MH i2c: 01 [12:17:37]MH_I2C_Read... [12:17:37]*** Stop cut motor [12:17:37]*** Cut end [12:17:37]Read from MH i2c: 01 07 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: 01 07 00 4A 50 00 00 00 00 00 FF 0F AF [12:17:37]process_action close_receipt done [12:17:37]requested_data is exist [12:17:37]produce_requested_data [12:17:37]requested_item fm.sn is exist - process it [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 11 00 00 [12:17:37]Write to MH i2c: E2 08 00 4B 50 80 11 00 00 00 00 00 00 15 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 17 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 17 00 4B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [12:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:17:37]wFMCommunicate OK [12:17:37]requested_item fd.num is exist - process it [12:17:37]SAM_PROTO_GetFieldsCounters [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 13 00 00 [12:17:37]Write to MH i2c: E2 08 00 4C 50 80 13 00 00 00 00 00 00 18 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 62 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 62 00 4C 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:37]wFMCommunicate OK [12:17:37]SAM_PROTO_GetFieldsCounters done [12:17:37]requested_item shift.num is exist - process it [12:17:37]requested_item shift.opened is exist - process it [12:17:37]req_shift_opened [12:17:37]FM_GetShiftState [12:17:37]SAM_PROTO_GetShiftState [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 13 01 00 [12:17:37]Write to MH i2c: E2 08 00 4D 50 80 13 01 00 00 00 00 00 1A [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 0E 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 0E 00 4D 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9B [12:17:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:17:37]wFMCommunicate OK [12:17:37]SAM_PROTO_GetShiftState done [12:17:37]FM_GetShiftState done [12:17:37]req_shift_opened done [12:17:37]requested_item shift.open_date is exist - process it [12:17:37]req_shift_open_date [12:17:37]req_shift_open_date done [12:17:37]produce_requested_data done [12:17:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103394,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:17:37]process_action_free close_receipt [12:17:37]json_value_free [12:17:37]json_value_free done [12:17:37]process_json_proto returns [12:17:37]Send response to host [12:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103394,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:17:37]free response buf [12:17:37]execute_script done [12:17:37]execute_script returns [12:17:37]free content buf [12:17:37]Sock 9.Close socket [12:17:37]Sock 9.Thread stoped [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]accept exits with 7 [12:20:26]New connection [12:20:26]New thread 3067227492 created [12:20:26]Thread 3067084132 joined [12:20:26]Waiting for new connection... [12:20:26] Sock 7.Parse request [12:20:26]Sock 7.Check first char [12:20:26]Sock 7.First char is OK [12:20:26]request: POST /json_proto HTTP/1.0 [12:20:26]Method: POST [12:20:26]URL: /json_proto [12:20:26]Method is POST - this is cgi request [12:20:26]url: /json_proto [12:20:26]query_string will be loaded in cgi processing [12:20:26]execute_cgi json_proto POST (null) [12:20:26]execute_cgi path=json_proto method=POST [12:20:26]POST find Content-Length [12:20:26]Host: 172.17.38.133:8080 [12:20:26]Content-Length: 808 [12:20:26]Content-Type: application/json [12:20:26] [12:20:26]POST finish read [12:20:26]Found Content-Length = 808 [12:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 26.430, "sum" : 1926.75, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1926.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:26]execute_script... [12: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 : (1)672557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 26.430, "sum" : 1926.75, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1926.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:26]POST & json_proto [12:20:26]process_json_proto [12:20:26]json parsed OK: [12:20:26]protocol is kg_v1.0 [12:20:26]action value=close_receipt [12:20:26]process_action close_receipt [12:20:26]cmd_close_receipt [12:20:26]MH_GetDate [12:20:26]Write to MH i2c: F0 00 00 4E 50 8D [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: F0 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: F0 09 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: F0 09 00 4E 50 00 91 7B 71 66 BD 8F 7C 64 A5 [12:20:26]GetLastDocTimeStamp 1718713060 [12:20:26]current date 1718713233 [12:20:26]FM_GetShiftState [12:20:26]SAM_PROTO_GetShiftState [12:20:26]wFMCommunicate request_size=4 [12:20:26]MH_SAM_APDU [12:20:26]CAPDU: 80 13 01 00 [12:20:26]Write to MH i2c: E2 08 00 4F 50 80 13 01 00 00 00 00 00 1C [12:20:26]Write i2c OK [12:20:26]MH_I2C_Read... [12:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:26]Read from MH i2c: E2 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 0E 00 [12:20:26]MH_I2C_Read... [12:20:26]Read from MH i2c: E2 0E 00 4F 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9D [12:20:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:20:26]wFMCommunicate OK [12:20:26]SAM_PROTO_GetShiftState done [12:20:26]FM_GetShiftState done [12:20:26]opened in 1718670284 [12:20:26]opened+sec_in_day 1718756684 [12:20:26]quantity*price = 192674 [12:20:26]sum+1 = 192676 [12:20:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1926.75 НСП 1% : 17.05 НДС 12% : 204.61 Наличными: 0.00 Безнал.: 1926.75 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 79 18.06.2024 12:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103395 ФПД: 228651313904347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122033&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103395&fm=228651313904347&tin=02508201610067®Number=0000000000092785&sum=192675 [12:20:27]StoreToDocumentArchive [12:20:27]shift 352 fd 103395 [12:20:27]save to /storage/0352/doc_00103395 [12:20:27]save last doc name /storage/0352/doc_00103395 to /storage/kkm_last_doc_name [12:20:27]save OK [12:20:27]Clear old archive folders... [12:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:20:27]tlvbuf is 0145E110 [12:20:27]SAM_PROTO_ClearQueue [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 09 00 00 [12:20:27]Write to MH i2c: E2 08 00 5C 50 80 09 00 00 00 00 00 00 1E [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 03 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 03 00 5C 50 00 90 00 20 [12:20:27]RAPDU: 90 00 [12:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_ClearQueue done [12:20:27]KKMCreateOFDPacket [12:20:27]OFDProtocolAddRootSTLVToBuf [12:20:27]FM_MakeSignedData [12:20:27]FM_MakeSignedData [12:20:27]SAM_PROTO_SignData [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 0D 01 02 [12:20:27]Write to MH i2c: E2 08 00 5D 50 80 0D 01 02 00 00 00 00 26 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 03 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 03 00 5D 50 00 90 00 21 [12:20:27]RAPDU: 90 00 [12:20:27]wFMCommunicate OK [12:20:27]wFMCommunicate request_size=255 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 F0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 7B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 93 01 00 35 04 06 00 [12:20:27]Write to MH i2c: E2 02 01 5E 50 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 F0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 7B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 93 01 00 35 04 06 00 00 00 60 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 5E 50 00 90 00 22 [12:20:28]RAPDU: 90 00 [12:20:28]wFMCommunicate OK [12:20:28]wFMCommunicate request_size=11 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 0D 02 02 06 CF F5 08 57 BA DB [12:20:28]Write to MH i2c: E2 0E 00 5F 50 80 0D 02 02 06 00 CF F5 08 57 BA DB 00 00 ED [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 5F 50 00 90 00 23 [12:20:28]RAPDU: 90 00 [12:20:28]wFMCommunicate OK [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 0D 03 02 [12:20:28]Write to MH i2c: E2 08 00 60 50 80 0D 03 02 00 00 00 00 2B [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 0B 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 0B 00 60 50 00 70 A2 5A 4E 32 F4 79 6C 90 00 F1 [12:20:28]RAPDU: 70 A2 5A 4E 32 F4 79 6C 90 00 [12:20:28]wFMCommunicate OK [12:20:28]SAM_PROTO_SignData done [12:20:28]FM_MakeSignedData done [12:20:28]CreateOFDProtocolMessage [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 11 00 00 [12:20:28]Write to MH i2c: E2 08 00 61 50 80 11 00 00 00 00 00 00 2B [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 17 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 17 00 61 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [12:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:28]wFMCommunicate OK [12:20:28]CreateOFDProtocolMessage done [12:20:28]OFDSenderStorePacket 103395 [12:20:28]StoreOFDPacket docnum=103395 [12:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 98 36 08 01 ED 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 F0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 7B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 93 01 00 35 04 06 00 CF F5 08 57 BA DB 70 A2 5A 4E 32 F4 79 6C [12:20:28]CheckFolder [12:20:28]dirname=/storage/ofd_packets [12:20:28]CheckFolder done [12:20:28]ProducePacketName [12:20:28]name=ofd_packets/00103395 [12:20:28]NVStorageSaveData ofd_packets/00103395 [12:20:28]File name is /storage/ofd_packets/00103395 [12:20:28]Write 302 bytes [12:20:28]NVStorageSaveData done [12:20:28]OFDSenderStorePacket done [12:20:28]KKMCreateOFDPacket done [12:20:28]NVStorageSaveData kkm_last_timestamp [12:20:28]File name is /storage/kkm_last_timestamp [12:20:28]Write 4 bytes [12:20:28]NVStorageSaveData done [12:20:28]ExternCall_PrintAddStr [12:20:28]wPrintStart [12:20:28]Write to MH i2c: 01 00 00 62 50 B2 [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: 01 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: 01 07 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: 01 07 00 62 50 00 00 00 00 00 FF 0F C7 [12:20:28]RasterBufferAndPrint [12:20:28]line Счет N : (1)672557 [12:20:28]line ИНН: 02508201610067 [12:20:28]line Контрольно-Кассовый Чек [12:20:28]line ПРОДАЖА [12:20:28]line ТРК (МРК, ГНК) : 21 [12:20:28]line Товар: 2710194210 [12:20:28]line ДТ(л)-К-5 [12:20:28]line 26.430 * 72.90 [12:20:28]line = 1926.75 [12:20:28]line НДС 12% НСП 1% [12:20:28]line > о реализуемом товаре [12:20:28]line ИТОГО: 1926.75 [12:20:28]line НСП 1% : 17.05 [12:20:28]line НДС 12% : 204.61 [12:20:28]line Наличными: 0.00 [12:20:28]line Безнал.: 1926.75 [12:20:28]line Место: АЗС № 120 "Партнер Нефть" [12:20:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:20:28]line СНО: Общий режим [12:20:28]line Чек 79 18.06.2024 12:20 [12:20:28]line Смена: 352 ФФД: 1.0 [12:20:28]line ЗНМ: 0300000164 [12:20:28]line РНМ: 0000000000092785 [12:20:28]line Версия ККМ: 001 [12:20:28]line Платежная система: O! деньги [12:20:28]line ФМ: 0000000000875093 [12:20:28]line ФД: 103395 [12:20:28]line ФПД: 228651313904347 [12:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122033&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103395&fm=228651313904347&tin=02508201610067®Number=0000000000092785&sum=192675 [12:20:28]OFD Sender: Processing packet 103395 [packets to send 17, broken 16] [12:20:28]ProducePacketName [12:20:28]name=ofd_packets/00103395 [12:20:28]OFD Sender: To server: pG, [12:20:28]CommunicateWithHost lk.salyk.kg:30040 [12:20:28]ConnectInit lk.salyk.kg [12:20:28]written 0, free lines is 4095 [12:20:28]Connected sock=11 [12: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 35 30 39 33 10 01 00 00 98 36 08 01 ED 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 F0 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 7B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 93 01 00 35 04 06 00 CF F5 08 57 BA DB 70 A2 5A 4E 32 F4 79 6C [12:20:29]Write to MH i2c: 01 00 00 8C 50 DC [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 07 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 07 00 8C 50 00 00 00 00 00 03 0D F3 [12:20:29]RasterBufferAndPrint [12:20:29]line [12:20:29]line [12:20:29]line [12:20:29]line [12:20:29]line [12:20:29]written 0, free lines is 3337 [12:20:29]MH_Cut [12:20:29]Write to MH i2c: D1 01 00 93 50 01 B5 [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: D1 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: D1 01 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: D1 01 00 93 50 00 B4 [12:20:29]Write to MH i2c: 01 00 00 94 50 E4 [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 82 DD 47 00 8B 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 35 30 39 33 10 04 04 00 E3 93 01 00 F4 03 04 00 1D 22 71 66 B6 04 01 00 00 9E CD 56 5E 1A 42 9B D0 [12:20:29]CommunicateWithHost err = 0 [12:20:29]CheckOFDResponse [12:20:29]1017 (14) - 77093643461234 [12:20:29]1041 (16) - 0000000000875093 [12:20:29]1040 (4) - 103395 [12:20:29]1012 (4) - 18.06.2024 05:58 [12:20:29]1206 (1) - 0 [12:20:29]OFD Sender: Remove packet 103395 [12:20:29]ProducePacketName [12:20:29]name=ofd_packets/00103395 [12:20:29]NVStorageDeleteData [12:20:29]OFD Sender: No OFD packet to send [12:20:29]*** Cut start [12:20:29]*** Partial cut [12:20:29]*** CUTSNS_PIN = 1 [12:20:29]*** CUTSNS_PIN = 0 [12:20:30]*** Brake cut motor [12:20:30]Read from MH i2c: 01 [12:20:30]MH_I2C_Read... [12:20:30]*** Stop cut motor [12:20:30]*** Cut end [12:20:30]Read from MH i2c: 01 07 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: 01 07 00 94 50 00 00 00 00 00 FF 0F F9 [12:20:30]process_action close_receipt done [12:20:30]requested_data is exist [12:20:30]produce_requested_data [12:20:30]requested_item fm.sn is exist - process it [12:20:30]wFMCommunicate request_size=4 [12:20:30]MH_SAM_APDU [12:20:30]CAPDU: 80 11 00 00 [12:20:30]Write to MH i2c: E2 08 00 95 50 80 11 00 00 00 00 00 00 5F [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:30]Read from MH i2c: E2 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 17 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 17 00 95 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [12:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:30]wFMCommunicate OK [12:20:30]requested_item fd.num is exist - process it [12:20:30]SAM_PROTO_GetFieldsCounters [12:20:30]wFMCommunicate request_size=4 [12:20:30]MH_SAM_APDU [12:20:30]CAPDU: 80 13 00 00 [12:20:30]Write to MH i2c: E2 08 00 96 50 80 13 00 00 00 00 00 00 62 [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:30]Read from MH i2c: E2 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 62 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 62 00 96 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:30]wFMCommunicate OK [12:20:30]SAM_PROTO_GetFieldsCounters done [12:20:30]requested_item shift.num is exist - process it [12:20:30]requested_item shift.opened is exist - process it [12:20:30]req_shift_opened [12:20:30]FM_GetShiftState [12:20:30]SAM_PROTO_GetShiftState [12:20:30]wFMCommunicate request_size=4 [12:20:30]MH_SAM_APDU [12:20:30]CAPDU: 80 13 01 00 [12:20:30]Write to MH i2c: E2 08 00 97 50 80 13 01 00 00 00 00 00 64 [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:30]Read from MH i2c: E2 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 0E 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: E2 0E 00 97 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [12:20:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:20:30]wFMCommunicate OK [12:20:30]SAM_PROTO_GetShiftState done [12:20:30]FM_GetShiftState done [12:20:30]req_shift_opened done [12:20:30]requested_item shift.open_date is exist - process it [12:20:30]req_shift_open_date [12:20:30]req_shift_open_date done [12:20:30]produce_requested_data done [12:20:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103395,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:20:30]process_action_free close_receipt [12:20:30]json_value_free [12:20:30]json_value_free done [12:20:30]process_json_proto returns [12:20:30]Send response to host [12:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103395,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:20:30]free response buf [12:20:30]execute_script done [12:20:30]execute_script returns [12:20:30]free content buf [12:20:30]Sock 7.Close socket [12:20:30]Sock 7.Thread stoped [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23: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:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:07]accept exits with 9 [12:28:07]New connection [12:28:07]New thread 3067084132 created [12:28:07]Thread 3067227492 joined [12:28:07]Waiting for new connection... [12:28:07] Sock 9.Parse request [12:28:07]Sock 9.Check first char [12:28:07]Sock 9.First char is OK [12:28:07]request: POST /json_proto HTTP/1.0 [12:28:07]Method: POST [12:28:07]URL: /json_proto [12:28:07]Method is POST - this is cgi request [12:28:07]url: /json_proto [12:28:07]query_string will be loaded in cgi processing [12:28:07]execute_cgi json_proto POST (null) [12:28:07]execute_cgi path=json_proto method=POST [12:28:07]POST find Content-Length [12:28:07]Host: 172.17.38.133:8080 [12:28:07]Content-Length: 819 [12:28:07]Content-Type: application/json [12:28:07] [12:28:07]POST finish read [12:28:07]Found Content-Length = 819 [12:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 34.600, "sum" : 2297.44, "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" : 2297.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:07]execute_script... [12:28:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 34.600, "sum" : 2297.44, "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" : 2297.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:07]POST & json_proto [12:28:07]process_json_proto [12:28:07]json parsed OK: [12:28:07]protocol is kg_v1.0 [12:28:07]action value=close_receipt [12:28:07]process_action close_receipt [12:28:07]cmd_close_receipt [12:28:07]MH_GetDate [12:28:07]Write to MH i2c: F0 00 00 98 50 D7 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: F0 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: F0 09 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: F0 09 00 98 50 00 5E 7D 71 66 BD 8F 7C 64 BE [12:28:07]GetLastDocTimeStamp 1718713233 [12:28:07]current date 1718713694 [12:28:07]FM_GetShiftState [12:28:07]SAM_PROTO_GetShiftState [12:28:07]wFMCommunicate request_size=4 [12:28:07]MH_SAM_APDU [12:28:07]CAPDU: 80 13 01 00 [12:28:07]Write to MH i2c: E2 08 00 99 50 80 13 01 00 00 00 00 00 66 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:07]Read from MH i2c: E2 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 0E 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: E2 0E 00 99 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [12:28:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:28:07]wFMCommunicate OK [12:28:07]SAM_PROTO_GetShiftState done [12:28:07]FM_GetShiftState done [12:28:07]opened in 1718670284 [12:28:07]opened+sec_in_day 1718756684 [12:28:07]quantity*price = 229744 [12:28:07]sum+1 = 229745 [12:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2297.44 НСП 1% : 20.33 НДС 12% : 243.98 Наличными: 0.00 Безнал.: 2297.44 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 18.06.2024 12:28 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103396 ФПД: 67434050359891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122814&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103396&fm=67434050359891&tin=02508201610067®Number=0000000000092785&sum=229744 [12:28:08]StoreToDocumentArchive [12:28:08]shift 352 fd 103396 [12:28:08]save to /storage/0352/doc_00103396 [12:28:08]save last doc name /storage/0352/doc_00103396 to /storage/kkm_last_doc_name [12:28:08]save OK [12:28:08]Clear old archive folders... [12:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:08]tlvbuf is B6F9B930 [12:28:08]SAM_PROTO_ClearQueue [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 09 00 00 [12:28:08]Write to MH i2c: E2 08 00 A6 50 80 09 00 00 00 00 00 00 68 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 A6 50 00 90 00 6A [12:28:08]RAPDU: 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_ClearQueue done [12:28:08]KKMCreateOFDPacket [12:28:08]OFDProtocolAddRootSTLVToBuf [12:28:08]FM_MakeSignedData [12:28:08]FM_MakeSignedData [12:28:08]SAM_PROTO_SignData [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 0D 01 02 [12:28:08]Write to MH i2c: E2 08 00 A7 50 80 0D 01 02 00 00 00 00 70 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 03 00 A7 50 00 90 00 6B [12:28:08]RAPDU: 90 00 [12:28:08]wFMCommunicate OK [12:28:08]wFMCommunicate request_size=255 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 81 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 81 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 81 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 93 01 00 35 04 06 00 3D [12:28:08]Write to MH i2c: E2 02 01 A8 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 81 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 81 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 81 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 93 01 00 35 04 06 00 3D 00 00 D1 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 03 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 03 00 A8 50 00 90 00 6C [12:28:09]RAPDU: 90 00 [12:28:09]wFMCommunicate OK [12:28:09]wFMCommunicate request_size=10 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 0D 02 02 05 54 B6 9E 12 53 [12:28:09]Write to MH i2c: E2 0D 00 A9 50 80 0D 02 02 05 00 54 B6 9E 12 53 00 00 8A [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 03 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 03 00 A9 50 00 90 00 6D [12:28:09]RAPDU: 90 00 [12:28:09]wFMCommunicate OK [12:28:09]wFMCommunicate request_size=4 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 0D 03 02 [12:28:09]Write to MH i2c: E2 08 00 AA 50 80 0D 03 02 00 00 00 00 75 [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 0B 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 0B 00 AA 50 00 FE C2 5C EB 5A 87 12 88 90 00 F8 [12:28:09]RAPDU: FE C2 5C EB 5A 87 12 88 90 00 [12:28:09]wFMCommunicate OK [12:28:09]SAM_PROTO_SignData done [12:28:09]FM_MakeSignedData done [12:28:09]CreateOFDProtocolMessage [12:28:09]wFMCommunicate request_size=4 [12:28:09]MH_SAM_APDU [12:28:09]CAPDU: 80 11 00 00 [12:28:09]Write to MH i2c: E2 08 00 AB 50 80 11 00 00 00 00 00 00 75 [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:09]Read from MH i2c: E2 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 17 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: E2 17 00 AB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [12:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:28:09]wFMCommunicate OK [12:28:09]CreateOFDProtocolMessage done [12:28:09]OFDSenderStorePacket 103396 [12:28:09]StoreOFDPacket docnum=103396 [12:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CA 7B 07 01 13 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 81 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 81 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 81 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 93 01 00 35 04 06 00 3D 54 B6 9E 12 53 FE C2 5C EB 5A 87 12 88 [12:28:09]CheckFolder [12:28:09]dirname=/storage/ofd_packets [12:28:09]CheckFolder done [12:28:09]ProducePacketName [12:28:09]name=ofd_packets/00103396 [12:28:09]NVStorageSaveData ofd_packets/00103396 [12:28:09]File name is /storage/ofd_packets/00103396 [12:28:09]Write 301 bytes [12:28:09]NVStorageSaveData done [12:28:09]OFDSenderStorePacket done [12:28:09]KKMCreateOFDPacket done [12:28:09]NVStorageSaveData kkm_last_timestamp [12:28:09]File name is /storage/kkm_last_timestamp [12:28:09]Write 4 bytes [12:28:09]NVStorageSaveData done [12:28:09]ExternCall_PrintAddStr [12:28:09]wPrintStart [12:28:09]Write to MH i2c: 01 00 00 AC 50 FC [12:28:09]Write i2c OK [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: 01 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: 01 07 00 [12:28:09]MH_I2C_Read... [12:28:09]Read from MH i2c: 01 07 00 AC 50 00 00 00 00 00 FF 0F 11 [12:28:09]RasterBufferAndPrint [12:28:09]line Счет N : (1)672559 [12:28:09]line ИНН: 02508201610067 [12:28:09]line Контрольно-Кассовый Чек [12:28:09]line ПРОДАЖА [12:28:09]line ТРК (МРК, ГНК) : 32 [12:28:09]line Товар: 2710124130 [12:28:09]line Аи-92-К-5 [12:28:09]line 34.600 * 66.40 [12:28:09]line = 2297.44 [12:28:09]line НДС 12% НСП 1% [12:28:09]line > о реализуемом товаре [12:28:09]line ИТОГО: 2297.44 [12:28:09]line НСП 1% : 20.33 [12:28:09]line НДС 12% : 243.98 [12:28:09]line Наличными: 0.00 [12:28:09]line Безнал.: 2297.44 [12:28:09]line Место: АЗС № 120 "Партнер Нефть" [12:28:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:28:09]line СНО: Общий режим [12:28:09]line Чек 80 18.06.2024 12:28 [12:28:09]line Смена: 352 ФФД: 1.0 [12:28:09]line ЗНМ: 0300000164 [12:28:09]line РНМ: 0000000000092785 [12:28:09]line Версия ККМ: 001 [12:28:09]line Платежная система: Бакай Банк [12:28:09]line ФМ: 0000000000875093 [12:28:09]line ФД: 103396 [12:28:09]line ФПД: 67434050359891 [12:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122814&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103396&fm=67434050359891&tin=02508201610067®Number=0000000000092785&sum=229744 [12:28:09]written 0, free lines is 4095 [12:28:09]OFD Sender: Processing packet 103396 [packets to send 17, broken 16] [12:28:09]ProducePacketName [12:28:09]name=ofd_packets/00103396 [12:28:09]OFD Sender: To server: pG, [12:28:09]CommunicateWithHost lk.salyk.kg:30040 [12:28:09]ConnectInit lk.salyk.kg [12:28:09]Connected sock=10 [12:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CA 7B 07 01 13 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 81 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 81 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 81 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 93 01 00 35 04 06 00 3D 54 B6 9E 12 53 FE C2 5C EB 5A 87 12 88 [12:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7A 0B 47 00 CC 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 93 01 00 F4 03 04 00 EA 23 71 66 B6 04 01 00 00 24 BC 91 D2 B8 D7 6D A3 [12:28:10]CommunicateWithHost err = 0 [12:28:10]CheckOFDResponse [12:28:10]1017 (14) - 77093643461234 [12:28:10]1041 (16) - 0000000000875093 [12:28:10]1040 (4) - 103396 [12:28:10]1012 (4) - 18.06.2024 06:06 [12:28:10]1206 (1) - 0 [12:28:10]OFD Sender: Remove packet 103396 [12:28:10]ProducePacketName [12:28:10]name=ofd_packets/00103396 [12:28:10]NVStorageDeleteData [12:28:10]Write to MH i2c: 01 00 00 D6 50 26 [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: 01 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: 01 07 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: 01 07 00 D6 50 00 00 00 00 00 03 0D 3D [12:28:10]RasterBufferAndPrint [12:28:10]line [12:28:10]line [12:28:10]line [12:28:10]line [12:28:10]line [12:28:10]written 0, free lines is 3337 [12:28:10]MH_Cut [12:28:10]Write to MH i2c: D1 01 00 DD 50 01 FF [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: D1 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: D1 01 00 [12:28:10]MH_I2C_Read... [12:28:10]Read from MH i2c: D1 01 00 DD 50 00 FE [12:28:10]Write to MH i2c: 01 00 00 DE 50 2E [12:28:10]Write i2c OK [12:28:10]MH_I2C_Read... [12:28:10]OFD Sender: No OFD packet to send [12:28:10]*** Cut start [12:28:10]*** Partial cut [12:28:10]*** CUTSNS_PIN = 1 [12:28:10]*** CUTSNS_PIN = 0 [12:28:11]*** Brake cut motor [12:28:11]Read from MH i2c: 01 [12:28:11]MH_I2C_Read... [12:28:11]*** Stop cut motor [12:28:11]Read from MH i2c: 01 07 00 [12:28:11]MH_I2C_Read... [12:28:11]*** Cut end [12:28:11]Read from MH i2c: 01 07 00 DE 50 00 00 00 00 00 FF 0F 43 [12:28:11]process_action close_receipt done [12:28:11]requested_data is exist [12:28:11]produce_requested_data [12:28:11]requested_item fm.sn is exist - process it [12:28:11]wFMCommunicate request_size=4 [12:28:11]MH_SAM_APDU [12:28:11]CAPDU: 80 11 00 00 [12:28:11]Write to MH i2c: E2 08 00 DF 50 80 11 00 00 00 00 00 00 A9 [12:28:11]Write i2c OK [12:28:11]MH_I2C_Read... [12:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:11]Read from MH i2c: E2 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 17 00 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 17 00 DF 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [12:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:28:11]wFMCommunicate OK [12:28:11]requested_item fd.num is exist - process it [12:28:11]SAM_PROTO_GetFieldsCounters [12:28:11]wFMCommunicate request_size=4 [12:28:11]MH_SAM_APDU [12:28:11]CAPDU: 80 13 00 00 [12:28:11]Write to MH i2c: E2 08 00 E0 50 80 13 00 00 00 00 00 00 AC [12:28:11]Write i2c OK [12:28:11]MH_I2C_Read... [12:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:11]Read from MH i2c: E2 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 62 00 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 62 00 E0 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:11]wFMCommunicate OK [12:28:11]SAM_PROTO_GetFieldsCounters done [12:28:11]requested_item shift.num is exist - process it [12:28:11]requested_item shift.opened is exist - process it [12:28:11]req_shift_opened [12:28:11]FM_GetShiftState [12:28:11]SAM_PROTO_GetShiftState [12:28:11]wFMCommunicate request_size=4 [12:28:11]MH_SAM_APDU [12:28:11]CAPDU: 80 13 01 00 [12:28:11]Write to MH i2c: E2 08 00 E1 50 80 13 01 00 00 00 00 00 AE [12:28:11]Write i2c OK [12:28:11]MH_I2C_Read... [12:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:11]Read from MH i2c: E2 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 0E 00 [12:28:11]MH_I2C_Read... [12:28:11]Read from MH i2c: E2 0E 00 E1 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2F [12:28:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:28:11]wFMCommunicate OK [12:28:11]SAM_PROTO_GetShiftState done [12:28:11]FM_GetShiftState done [12:28:11]req_shift_opened done [12:28:11]requested_item shift.open_date is exist - process it [12:28:11]req_shift_open_date [12:28:11]req_shift_open_date done [12:28:11]produce_requested_data done [12:28:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103396,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:28:11]process_action_free close_receipt [12:28:11]json_value_free [12:28:11]json_value_free done [12:28:11]process_json_proto returns [12:28:11]Send response to host [12:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103396,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:28:11]free response buf [12:28:11]execute_script done [12:28:11]execute_script returns [12:28:11]free content buf [12:28:11]Sock 9.Close socket [12:28:11]Sock 9.Thread stoped [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:29:56]accept exits with 7 [12:29:56]New connection [12:29:56]New thread 3067227492 created [12:29:56]Thread 3067084132 joined [12:29:56]Waiting for new connection... [12:29:56] Sock 7.Parse request [12:29:56]Sock 7.Check first char [12:29:56]Sock 7.First char is OK [12:29:56]request: POST /json_proto HTTP/1.0 [12:29:56]Method: POST [12:29:56]URL: /json_proto [12:29:56]Method is POST - this is cgi request [12:29:56]url: /json_proto [12:29:56]query_string will be loaded in cgi processing [12:29:56]execute_cgi json_proto POST (null) [12:29:56]execute_cgi path=json_proto method=POST [12:29:56]POST find Content-Length [12:29:56]Host: 172.17.38.133:8080 [12:29:56]Content-Length: 819 [12:29:56]Content-Type: application/json [12:29:56] [12:29:56]POST finish read [12:29:56]Found Content-Length = 819 [12:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 47.450, "sum" : 3150.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3150.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:56]execute_script... [12:29:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 47.450, "sum" : 3150.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3150.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:56]POST & json_proto [12:29:56]process_json_proto [12:29:56]json parsed OK: [12:29:56]protocol is kg_v1.0 [12:29:56]action value=close_receipt [12:29:56]process_action close_receipt [12:29:56]cmd_close_receipt [12:29:56]MH_GetDate [12:29:56]Write to MH i2c: F0 00 00 E2 50 21 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: F0 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: F0 09 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: F0 09 00 E2 50 00 CB 7D 71 66 BD 8F 7C 64 75 [12:29:56]GetLastDocTimeStamp 1718713694 [12:29:56]current date 1718713803 [12:29:56]FM_GetShiftState [12:29:56]SAM_PROTO_GetShiftState [12:29:56]wFMCommunicate request_size=4 [12:29:56]MH_SAM_APDU [12:29:56]CAPDU: 80 13 01 00 [12:29:56]Write to MH i2c: E2 08 00 E3 50 80 13 01 00 00 00 00 00 B0 [12:29:56]Write i2c OK [12:29:56]MH_I2C_Read... [12:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:56]Read from MH i2c: E2 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0E 00 [12:29:56]MH_I2C_Read... [12:29:56]Read from MH i2c: E2 0E 00 E3 50 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 31 [12:29:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:29:56]wFMCommunicate OK [12:29:56]SAM_PROTO_GetShiftState done [12:29:56]FM_GetShiftState done [12:29:56]opened in 1718670284 [12:29:56]opened+sec_in_day 1718756684 [12:29:56]quantity*price = 315068 [12:29:56]sum+1 = 315069 [12:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3150.68 НСП 1% : 27.88 НДС 12% : 334.58 Наличными: 0.00 Безнал.: 3150.68 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 18.06.2024 12:30 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103397 ФПД: 109509612457138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123003&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103397&fm=109509612457138&tin=02508201610067®Number=0000000000092785&sum=315068 [12:29:57]StoreToDocumentArchive [12:29:57]shift 352 fd 103397 [12:29:57]save to /storage/0352/doc_00103397 [12:29:57]save last doc name /storage/0352/doc_00103397 to /storage/kkm_last_doc_name [12:29:57]save OK [12:29:57]Clear old archive folders... [12:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:57]tlvbuf is 01374580 [12:29:57]SAM_PROTO_ClearQueue [12:29:57]wFMCommunicate request_size=4 [12:29:57]MH_SAM_APDU [12:29:57]CAPDU: 80 09 00 00 [12:29:57]Write to MH i2c: E2 08 00 F0 50 80 09 00 00 00 00 00 00 B2 [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:57]Read from MH i2c: E2 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 F0 50 00 90 00 B4 [12:29:57]RAPDU: 90 00 [12:29:57]wFMCommunicate OK [12:29:57]SAM_PROTO_ClearQueue done [12:29:57]KKMCreateOFDPacket [12:29:57]OFDProtocolAddRootSTLVToBuf [12:29:57]FM_MakeSignedData [12:29:57]FM_MakeSignedData [12:29:57]SAM_PROTO_SignData [12:29:57]wFMCommunicate request_size=4 [12:29:57]MH_SAM_APDU [12:29:57]CAPDU: 80 0D 01 02 [12:29:57]Write to MH i2c: E2 08 00 F1 50 80 0D 01 02 00 00 00 00 BA [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:57]Read from MH i2c: E2 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 F1 50 00 90 00 B5 [12:29:57]RAPDU: 90 00 [12:29:57]wFMCommunicate OK [12:29:57]wFMCommunicate request_size=255 [12:29:57]MH_SAM_APDU [12:29:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A B9 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC CE 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CB 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 93 01 00 35 04 06 00 63 [12:29:57]Write to MH i2c: E2 02 01 F2 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A B9 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC CE 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CB 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 93 01 00 35 04 06 00 63 00 00 5F [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:57]Read from MH i2c: E2 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 [12:29:57]MH_I2C_Read... [12:29:57]Read from MH i2c: E2 03 00 F2 50 00 90 00 B6 [12:29:57]RAPDU: 90 00 [12:29:57]wFMCommunicate OK [12:29:57]wFMCommunicate request_size=10 [12:29:57]MH_SAM_APDU [12:29:57]CAPDU: 80 0D 02 02 05 99 31 8C CC B2 [12:29:57]Write to MH i2c: E2 0D 00 F3 50 80 0D 02 02 05 00 99 31 8C CC B2 00 00 9B [12:29:57]Write i2c OK [12:29:57]MH_I2C_Read... [12:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:58]Read from MH i2c: E2 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 03 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 03 00 F3 50 00 90 00 B7 [12:29:58]RAPDU: 90 00 [12:29:58]wFMCommunicate OK [12:29:58]wFMCommunicate request_size=4 [12:29:58]MH_SAM_APDU [12:29:58]CAPDU: 80 0D 03 02 [12:29:58]Write to MH i2c: E2 08 00 F4 50 80 0D 03 02 00 00 00 00 BF [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:58]Read from MH i2c: E2 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0B 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0B 00 F4 50 00 5D 71 9D 35 8C 61 A3 19 90 00 09 [12:29:58]RAPDU: 5D 71 9D 35 8C 61 A3 19 90 00 [12:29:58]wFMCommunicate OK [12:29:58]SAM_PROTO_SignData done [12:29:58]FM_MakeSignedData done [12:29:58]CreateOFDProtocolMessage [12:29:58]wFMCommunicate request_size=4 [12:29:58]MH_SAM_APDU [12:29:58]CAPDU: 80 11 00 00 [12:29:58]Write to MH i2c: E2 08 00 F5 50 80 11 00 00 00 00 00 00 BF [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:58]Read from MH i2c: E2 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 17 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 17 00 F5 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [12:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:29:58]wFMCommunicate OK [12:29:58]CreateOFDProtocolMessage done [12:29:58]OFDSenderStorePacket 103397 [12:29:58]StoreOFDPacket docnum=103397 [12:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C6 B7 07 01 0B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A B9 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC CE 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CB 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 93 01 00 35 04 06 00 63 99 31 8C CC B2 5D 71 9D 35 8C 61 A3 19 [12:29:58]CheckFolder [12:29:58]dirname=/storage/ofd_packets [12:29:58]CheckFolder done [12:29:58]ProducePacketName [12:29:58]name=ofd_packets/00103397 [12:29:58]NVStorageSaveData ofd_packets/00103397 [12:29:58]File name is /storage/ofd_packets/00103397 [12:29:58]Write 301 bytes [12:29:58]NVStorageSaveData done [12:29:58]OFDSenderStorePacket done [12:29:58]KKMCreateOFDPacket done [12:29:58]NVStorageSaveData kkm_last_timestamp [12:29:58]File name is /storage/kkm_last_timestamp [12:29:58]Write 4 bytes [12:29:58]NVStorageSaveData done [12:29:58]ExternCall_PrintAddStr [12:29:58]wPrintStart [12:29:58]Write to MH i2c: 01 00 00 F6 50 46 [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 07 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 07 00 F6 50 00 00 00 00 00 FF 0F 5B [12:29:58]RasterBufferAndPrint [12:29:58]line Счет N : (1)672558 [12:29:58]line ИНН: 02508201610067 [12:29:58]line Контрольно-Кассовый Чек [12:29:58]line ПРОДАЖА [12:29:58]line ТРК (МРК, ГНК) : 42 [12:29:58]line Товар: 2710124130 [12:29:58]line Аи-92-К-5 [12:29:58]line 47.450 * 66.40 [12:29:58]line = 3150.68 [12:29:58]line НДС 12% НСП 1% [12:29:58]line > о реализуемом товаре [12:29:58]line ИТОГО: 3150.68 [12:29:58]line НСП 1% : 27.88 [12:29:58]line НДС 12% : 334.58 [12:29:58]line Наличными: 0.00 [12:29:58]line Безнал.: 3150.68 [12:29:58]line Место: АЗС № 120 "Партнер Нефть" [12:29:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:29:58]line СНО: Общий режим [12:29:58]line Чек 81 18.06.2024 12:30 [12:29:58]line Смена: 352 ФФД: 1.0 [12:29:58]line ЗНМ: 0300000164 [12:29:58]line РНМ: 0000000000092785 [12:29:58]line Версия ККМ: 001 [12:29:58]line Платежная система: Бакай Банк [12:29:58]line ФМ: 0000000000875093 [12:29:58]line ФД: 103397 [12:29:58]line ФПД: 109509612457138 [12:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123003&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103397&fm=109509612457138&tin=02508201610067®Number=0000000000092785&sum=315068 [12:29:58]written 0, free lines is 4095 [12:29:58]OFD Sender: Processing packet 103397 [packets to send 17, broken 16] [12:29:58]ProducePacketName [12:29:58]name=ofd_packets/00103397 [12:29:58]OFD Sender: To server: pG, [12:29:58]CommunicateWithHost lk.salyk.kg:30040 [12:29:58]ConnectInit lk.salyk.kg [12:29:58]Connected sock=10 [12:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C6 B7 07 01 0B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A B9 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC CE 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CB 7D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 93 01 00 35 04 06 00 63 99 31 8C CC B2 5D 71 9D 35 8C 61 A3 19 [12:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 50 14 47 00 12 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 93 01 00 F4 03 04 00 57 24 71 66 B6 04 01 00 00 AA 0B B5 D3 D4 4E C8 53 [12:29:58]CommunicateWithHost err = 0 [12:29:58]CheckOFDResponse [12:29:58]1017 (14) - 77093643461234 [12:29:58]1041 (16) - 0000000000875093 [12:29:58]1040 (4) - 103397 [12:29:58]1012 (4) - 18.06.2024 06:08 [12:29:58]1206 (1) - 0 [12:29:58]OFD Sender: Remove packet 103397 [12:29:58]ProducePacketName [12:29:58]name=ofd_packets/00103397 [12:29:58]NVStorageDeleteData [12:29:58]Write to MH i2c: 01 00 00 20 51 71 [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 07 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: 01 07 00 20 51 00 00 00 00 00 02 0D 87 [12:29:58]RasterBufferAndPrint [12:29:58]line [12:29:58]line [12:29:58]line [12:29:58]line [12:29:58]line [12:29:58]written 0, free lines is 3336 [12:29:58]MH_Cut [12:29:58]Write to MH i2c: D1 01 00 27 51 01 4A [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: D1 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: D1 01 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: D1 01 00 27 51 00 49 [12:29:58]Write to MH i2c: 01 00 00 28 51 79 [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:59]OFD Sender: No OFD packet to send [12:29:59]*** Cut start [12:29:59]*** Partial cut [12:29:59]*** CUTSNS_PIN = 1 [12:29:59]*** CUTSNS_PIN = 0 [12:29:59]*** Brake cut motor [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]*** Stop cut motor [12:30:00]*** Cut end [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 28 51 00 00 00 00 00 FF 0F 8E [12:30:00]process_action close_receipt done [12:30:00]requested_data is exist [12:30:00]produce_requested_data [12:30:00]requested_item fm.sn is exist - process it [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 11 00 00 [12:30:00]Write to MH i2c: E2 08 00 29 51 80 11 00 00 00 00 00 00 F4 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 29 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [12:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:30:00]wFMCommunicate OK [12:30:00]requested_item fd.num is exist - process it [12:30:00]SAM_PROTO_GetFieldsCounters [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 13 00 00 [12:30:00]Write to MH i2c: E2 08 00 2A 51 80 13 00 00 00 00 00 00 F7 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 62 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 62 00 2A 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_GetFieldsCounters done [12:30:00]requested_item shift.num is exist - process it [12:30:00]requested_item shift.opened is exist - process it [12:30:00]req_shift_opened [12:30:00]FM_GetShiftState [12:30:00]SAM_PROTO_GetShiftState [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 13 01 00 [12:30:00]Write to MH i2c: E2 08 00 2B 51 80 13 01 00 00 00 00 00 F9 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0E 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0E 00 2B 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7A [12:30:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_GetShiftState done [12:30:00]FM_GetShiftState done [12:30:00]req_shift_opened done [12:30:00]requested_item shift.open_date is exist - process it [12:30:00]req_shift_open_date [12:30:00]req_shift_open_date done [12:30:00]produce_requested_data done [12:30:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103397,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:30:00]process_action_free close_receipt [12:30:00]json_value_free [12:30:00]json_value_free done [12:30:00]process_json_proto returns [12:30:00]Send response to host [12:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103397,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:30:00]free response buf [12:30:00]execute_script done [12:30:00]execute_script returns [12:30:00]free content buf [12:30:00]Sock 7.Close socket [12:30:00]Sock 7.Thread stoped [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:25]accept exits with 9 [12:32:25]New connection [12:32:25]New thread 3067084132 created [12:32:25]Thread 3067227492 joined [12:32:25]Waiting for new connection... [12:32:25] Sock 9.Parse request [12:32:25]Sock 9.Check first char [12:32:25]Sock 9.First char is OK [12:32:25]request: POST /json_proto HTTP/1.0 [12:32:25]Method: POST [12:32:25]URL: /json_proto [12:32:25]Method is POST - this is cgi request [12:32:25]url: /json_proto [12:32:25]query_string will be loaded in cgi processing [12:32:25]execute_cgi json_proto POST (null) [12:32:25]execute_cgi path=json_proto method=POST [12:32:25]POST find Content-Length [12:32:25]Host: 172.17.38.133:8080 [12:32:25]Content-Length: 663 [12:32:25]Content-Type: application/json [12:32:25] [12:32:25]POST finish read [12:32:25]Found Content-Length = 663 [12:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:25]execute_script... [12:32: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)672561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:25]POST & json_proto [12:32:25]process_json_proto [12:32:25]json parsed OK: [12:32:25]protocol is kg_v1.0 [12:32:25]action value=close_receipt [12:32:25]process_action close_receipt [12:32:25]cmd_close_receipt [12:32:25]MH_GetDate [12:32:25]Write to MH i2c: F0 00 00 2C 51 6C [12:32:25]Write i2c OK [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: F0 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: F0 09 00 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: F0 09 00 2C 51 00 5F 7E 71 66 BD 8F 7C 64 55 [12:32:25]GetLastDocTimeStamp 1718713803 [12:32:25]current date 1718713951 [12:32:25]FM_GetShiftState [12:32:25]SAM_PROTO_GetShiftState [12:32:25]wFMCommunicate request_size=4 [12:32:25]MH_SAM_APDU [12:32:25]CAPDU: 80 13 01 00 [12:32:25]Write to MH i2c: E2 08 00 2D 51 80 13 01 00 00 00 00 00 FB [12:32:25]Write i2c OK [12:32:25]MH_I2C_Read... [12:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:25]Read from MH i2c: E2 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: E2 0E 00 [12:32:25]MH_I2C_Read... [12:32:25]Read from MH i2c: E2 0E 00 2D 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7C [12:32:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:32:25]wFMCommunicate OK [12:32:25]SAM_PROTO_GetShiftState done [12:32:25]FM_GetShiftState done [12:32:25]opened in 1718670284 [12:32:25]opened+sec_in_day 1718756684 [12:32:25]quantity*price = 132800 [12:32:25]sum+1 = 132801 [12:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 Внесено: 2000.00 СДАЧА: 672.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 18.06.2024 12:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103398 ФПД: 253031451227744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103398&fm=253031451227744&tin=02508201610067®Number=0000000000092785&sum=132800 [12:32:26]StoreToDocumentArchive [12:32:26]shift 352 fd 103398 [12:32:26]save to /storage/0352/doc_00103398 [12:32:26]save last doc name /storage/0352/doc_00103398 to /storage/kkm_last_doc_name [12:32:26]save OK [12:32:26]Clear old archive folders... [12:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:26]tlvbuf is 014622B0 [12:32:26]SAM_PROTO_ClearQueue [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 09 00 00 [12:32:26]Write to MH i2c: E2 08 00 3A 51 80 09 00 00 00 00 00 00 FD [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 3A 51 00 90 00 FF [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]SAM_PROTO_ClearQueue done [12:32:26]KKMCreateOFDPacket [12:32:26]OFDProtocolAddRootSTLVToBuf [12:32:26]FM_MakeSignedData [12:32:26]FM_MakeSignedData [12:32:26]SAM_PROTO_SignData [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 01 02 [12:32:26]Write to MH i2c: E2 08 00 3B 51 80 0D 01 02 00 00 00 00 05 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 3B 51 00 90 00 00 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=255 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 5F 7E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 93 01 00 35 04 06 00 E6 [12:32:26]Write to MH i2c: E2 02 01 3C 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 5F 7E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 93 01 00 35 04 06 00 E6 00 00 94 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 3C 51 00 90 00 01 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=10 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 02 02 05 21 79 C4 76 60 [12:32:26]Write to MH i2c: E2 0D 00 3D 51 80 0D 02 02 05 00 21 79 C4 76 60 00 00 46 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 03 00 3D 51 00 90 00 02 [12:32:26]RAPDU: 90 00 [12:32:26]wFMCommunicate OK [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 0D 03 02 [12:32:26]Write to MH i2c: E2 08 00 3E 51 80 0D 03 02 00 00 00 00 0A [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 0B 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 0B 00 3E 51 00 EE 18 38 BF F2 03 F4 85 90 00 76 [12:32:26]RAPDU: EE 18 38 BF F2 03 F4 85 90 00 [12:32:26]wFMCommunicate OK [12:32:26]SAM_PROTO_SignData done [12:32:26]FM_MakeSignedData done [12:32:26]CreateOFDProtocolMessage [12:32:26]wFMCommunicate request_size=4 [12:32:26]MH_SAM_APDU [12:32:26]CAPDU: 80 11 00 00 [12:32:26]Write to MH i2c: E2 08 00 3F 51 80 11 00 00 00 00 00 00 0A [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:26]Read from MH i2c: E2 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 17 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: E2 17 00 3F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [12:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:32:26]wFMCommunicate OK [12:32:26]CreateOFDProtocolMessage done [12:32:26]OFDSenderStorePacket 103398 [12:32:26]StoreOFDPacket docnum=103398 [12:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 33 07 01 B1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 5F 7E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 93 01 00 35 04 06 00 E6 21 79 C4 76 60 EE 18 38 BF F2 03 F4 85 [12:32:26]CheckFolder [12:32:26]dirname=/storage/ofd_packets [12:32:26]CheckFolder done [12:32:26]ProducePacketName [12:32:26]name=ofd_packets/00103398 [12:32:26]NVStorageSaveData ofd_packets/00103398 [12:32:26]File name is /storage/ofd_packets/00103398 [12:32:26]Write 301 bytes [12:32:26]NVStorageSaveData done [12:32:26]OFDSenderStorePacket done [12:32:26]KKMCreateOFDPacket done [12:32:26]NVStorageSaveData kkm_last_timestamp [12:32:26]File name is /storage/kkm_last_timestamp [12:32:26]Write 4 bytes [12:32:26]NVStorageSaveData done [12:32:26]ExternCall_PrintAddStr [12:32:26]wPrintStart [12:32:26]Write to MH i2c: 01 00 00 40 51 91 [12:32:26]Write i2c OK [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 07 00 [12:32:26]MH_I2C_Read... [12:32:26]Read from MH i2c: 01 07 00 40 51 00 00 00 00 00 FF 0F A6 [12:32:26]RasterBufferAndPrint [12:32:26]line Счет N : (1)672561 [12:32:26]line ИНН: 02508201610067 [12:32:26]line Контрольно-Кассовый Чек [12:32:26]line ПРОДАЖА [12:32:26]line ТРК (МРК, ГНК) : 42 [12:32:26]line Товар: 2710124130 [12:32:26]line Аи-92-К-5 [12:32:26]line 20.000 * 66.40 [12:32:26]line = 1328.00 [12:32:26]line НДС 12% НСП 1% [12:32:26]line > о реализуемом товаре [12:32:26]line ИТОГО: 1328.00 [12:32:26]line Внесено: 2000.00 [12:32:26]line СДАЧА: 672.00 [12:32:26]line НСП 1% : 11.75 [12:32:26]line НДС 12% : 141.03 [12:32:26]line Наличными: 1328.00 [12:32:26]line Безнал.: 0.00 [12:32:26]line Место: АЗС № 120 "Партнер Нефть" [12:32:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:32:26]line СНО: Общий режим [12:32:26]line Чек 82 18.06.2024 12:32 [12:32:26]line Смена: 352 ФФД: 1.0 [12:32:26]line ЗНМ: 0300000164 [12:32:26]line РНМ: 0000000000092785 [12:32:26]line Версия ККМ: 001 [12:32:26]line ФМ: 0000000000875093 [12:32:26]line ФД: 103398 [12:32:26]line ФПД: 253031451227744 [12:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103398&fm=253031451227744&tin=02508201610067®Number=0000000000092785&sum=132800 [12:32:27]OFD Sender: Processing packet 103398 [packets to send 17, broken 16] [12:32:27]ProducePacketName [12:32:27]name=ofd_packets/00103398 [12:32:27]OFD Sender: To server: pG, [12:32:27]CommunicateWithHost lk.salyk.kg:30040 [12:32:27]ConnectInit lk.salyk.kg [12:32:27]written 0, free lines is 4095 [12:32:27]Connected sock=10 [12:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 33 07 01 B1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 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 5F 7E 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 93 01 00 35 04 06 00 E6 21 79 C4 76 60 EE 18 38 BF F2 03 F4 85 [12:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E9 89 47 00 77 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 35 30 39 33 10 04 04 00 E6 93 01 00 F4 03 04 00 EB 24 71 66 B6 04 01 00 00 4E 28 99 D6 DA 6E 78 98 [12:32:27]CommunicateWithHost err = 0 [12:32:27]CheckOFDResponse [12:32:27]1017 (14) - 77093643461234 [12:32:27]1041 (16) - 0000000000875093 [12:32:27]1040 (4) - 103398 [12:32:27]1012 (4) - 18.06.2024 06:10 [12:32:27]1206 (1) - 0 [12:32:27]OFD Sender: Remove packet 103398 [12:32:27]ProducePacketName [12:32:27]name=ofd_packets/00103398 [12:32:27]NVStorageDeleteData [12:32:27]Write to MH i2c: 01 00 00 6A 51 BB [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 07 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: 01 07 00 6A 51 00 00 00 00 00 02 0D D1 [12:32:27]RasterBufferAndPrint [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]line [12:32:27]written 0, free lines is 3337 [12:32:27]MH_Cut [12:32:27]Write to MH i2c: D1 01 00 71 51 01 94 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 01 00 [12:32:27]MH_I2C_Read... [12:32:27]Read from MH i2c: D1 01 00 71 51 00 93 [12:32:27]Write to MH i2c: 01 00 00 72 51 C3 [12:32:27]Write i2c OK [12:32:27]MH_I2C_Read... [12:32:28]OFD Sender: No OFD packet to send [12:32:28]*** Cut start [12:32:28]*** Partial cut [12:32:28]*** CUTSNS_PIN = 1 [12:32:28]*** CUTSNS_PIN = 0 [12:32:28]*** Brake cut motor [12:32:28]Read from MH i2c: 01 [12:32:28]MH_I2C_Read... [12:32:28]*** Stop cut motor [12:32:28]*** Cut end [12:32:28]Read from MH i2c: 01 07 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: 01 07 00 72 51 00 00 00 00 00 FF 0F D8 [12:32:28]process_action close_receipt done [12:32:28]requested_data is exist [12:32:28]produce_requested_data [12:32:28]requested_item fm.sn is exist - process it [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 11 00 00 [12:32:28]Write to MH i2c: E2 08 00 73 51 80 11 00 00 00 00 00 00 3E [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:28]Read from MH i2c: E2 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 [12:32:28]MH_I2C_Read... [12:32:28]Read from MH i2c: E2 17 00 73 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [12:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:32:28]wFMCommunicate OK [12:32:28]requested_item fd.num is exist - process it [12:32:28]SAM_PROTO_GetFieldsCounters [12:32:28]wFMCommunicate request_size=4 [12:32:28]MH_SAM_APDU [12:32:28]CAPDU: 80 13 00 00 [12:32:28]Write to MH i2c: E2 08 00 74 51 80 13 00 00 00 00 00 00 41 [12:32:28]Write i2c OK [12:32:28]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 62 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 62 00 74 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:29]wFMCommunicate OK [12:32:29]SAM_PROTO_GetFieldsCounters done [12:32:29]requested_item shift.num is exist - process it [12:32:29]requested_item shift.opened is exist - process it [12:32:29]req_shift_opened [12:32:29]FM_GetShiftState [12:32:29]SAM_PROTO_GetShiftState [12:32:29]wFMCommunicate request_size=4 [12:32:29]MH_SAM_APDU [12:32:29]CAPDU: 80 13 01 00 [12:32:29]Write to MH i2c: E2 08 00 75 51 80 13 01 00 00 00 00 00 43 [12:32:29]Write i2c OK [12:32:29]MH_I2C_Read... [12:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:29]Read from MH i2c: E2 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 0E 00 [12:32:29]MH_I2C_Read... [12:32:29]Read from MH i2c: E2 0E 00 75 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C4 [12:32:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:32:29]wFMCommunicate OK [12:32:29]SAM_PROTO_GetShiftState done [12:32:29]FM_GetShiftState done [12:32:29]req_shift_opened done [12:32:29]requested_item shift.open_date is exist - process it [12:32:29]req_shift_open_date [12:32:29]req_shift_open_date done [12:32:29]produce_requested_data done [12:32:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103398,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:32:29]process_action_free close_receipt [12:32:29]json_value_free [12:32:29]json_value_free done [12:32:29]process_json_proto returns [12:32:29]Send response to host [12:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103398,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:32:29]free response buf [12:32:29]execute_script done [12:32:29]execute_script returns [12:32:29]free content buf [12:32:29]Sock 9.Close socket [12:32:29]Sock 9.Thread stoped [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:43]accept exits with 7 [12:34:43]New connection [12:34:43]New thread 3067227492 created [12:34:43]Thread 3067084132 joined [12:34:43]Waiting for new connection... [12:34:43] Sock 7.Parse request [12:34:43]Sock 7.Check first char [12:34:43]Sock 7.First char is OK [12:34:43]request: POST /json_proto HTTP/1.0 [12:34:43]Method: POST [12:34:43]URL: /json_proto [12:34:43]Method is POST - this is cgi request [12:34:43]url: /json_proto [12:34:43]query_string will be loaded in cgi processing [12:34:43]execute_cgi json_proto POST (null) [12:34:43]execute_cgi path=json_proto method=POST [12:34:43]POST find Content-Length [12:34:43]Host: 172.17.38.133:8080 [12:34:43]Content-Length: 1157 [12:34:43]Content-Type: application/json [12:34:43] [12:34:43]POST finish read [12:34:43]Found Content-Length = 1157 [12:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672562\u000A18.06.2024 12:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073581\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:43]execute_script... [12:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672562\u000A18.06.2024 12:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073581\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:43]POST & json_proto [12:34:43]process_json_proto [12:34:43]json parsed OK: [12:34:43]protocol is kg_v1.0 [12:34:43]action value=print_text [12:34:43]process_action print_text [12:34:43]cmd_print_text [12:34:43]ExternCall_PrintAddStr [12:34:43]wPrintStart [12:34:43]Write to MH i2c: 01 00 00 76 51 C7 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 76 51 00 00 00 00 00 FF 0F DC [12:34:43]RasterBufferAndPrint [12:34:43]line *****ТОВАРНЫЙ ЧЕК***** [12:34:43]line АЗС 120 [12:34:43]line Партнер нефть [12:34:43]line 02508201610067 [12:34:43]line Кассир : Асанбаев Н. [12:34:43]line Счет N : (1)672562 [12:34:43]line 18.06.2024 12:12 [12:34:43]line ПРОДАЖА [12:34:43]line ТРК (МРК, ГНК): 32 [12:34:43]line Вид ГСМ : 2710124130 [12:34:43]line Аи-92-К-5 [12:34:43]line 20.000 x 66.40 [12:34:43]line ИТОГ: 1328.00 [12:34:43]line Тип оплаты: Талоны: ТК ГПНА Online [12:34:43]line 30073581 [12:34:43]line ______________________ [12:34:43]line (подпись) [12:34:43]written 0, free lines is 4095 [12:34:43]Write to MH i2c: 01 00 00 8A 51 DB [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 8A 51 00 00 00 00 00 11 0E 01 [12:34:43]RasterBufferAndPrint [12:34:43]line [12:34:43]line [12:34:43]line [12:34:43]line [12:34:43]line [12:34:43]written 0, free lines is 3603 [12:34:43]MH_Cut [12:34:43]Write to MH i2c: D1 01 00 91 51 01 B4 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: D1 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: D1 01 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: D1 01 00 91 51 00 B3 [12:34:43]Write to MH i2c: 01 00 00 92 51 E3 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:44]*** Cut start [12:34:44]*** Partial cut [12:34:44]*** CUTSNS_PIN = 1 [12:34:44]*** CUTSNS_PIN = 0 [12:34:44]*** Brake cut motor [12:34:45]Read from MH i2c: 01 [12:34:45]MH_I2C_Read... [12:34:45]*** Stop cut motor [12:34:45]*** Cut end [12:34:45]Read from MH i2c: 01 07 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: 01 07 00 92 51 00 00 00 00 00 FF 0F F8 [12:34:45]process_action print_text done [12:34:45]requested_data is exist [12:34:45]produce_requested_data [12:34:45]requested_item fm.sn is exist - process it [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 11 00 00 [12:34:45]Write to MH i2c: E2 08 00 93 51 80 11 00 00 00 00 00 00 5E [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 17 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 17 00 93 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B1 [12:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:34:45]wFMCommunicate OK [12:34:45]requested_item fd.num is exist - process it [12:34:45]SAM_PROTO_GetFieldsCounters [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 13 00 00 [12:34:45]Write to MH i2c: E2 08 00 94 51 80 13 00 00 00 00 00 00 61 [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 62 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 62 00 94 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [12:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:45]wFMCommunicate OK [12:34:45]SAM_PROTO_GetFieldsCounters done [12:34:45]requested_item shift.num is exist - process it [12:34:45]requested_item shift.opened is exist - process it [12:34:45]req_shift_opened [12:34:45]FM_GetShiftState [12:34:45]SAM_PROTO_GetShiftState [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 13 01 00 [12:34:45]Write to MH i2c: E2 08 00 95 51 80 13 01 00 00 00 00 00 63 [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 95 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E4 [12:34:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:34:45]wFMCommunicate OK [12:34:45]SAM_PROTO_GetShiftState done [12:34:45]FM_GetShiftState done [12:34:45]req_shift_opened done [12:34:45]requested_item shift.open_date is exist - process it [12:34:45]req_shift_open_date [12:34:45]req_shift_open_date done [12:34:45]produce_requested_data done [12:34:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103398,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:34:45]process_action_free print_text [12:34:45]json_value_free [12:34:45]json_value_free done [12:34:45]process_json_proto returns [12:34:45]Send response to host [12:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103398,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:34:45]free response buf [12:34:45]execute_script done [12:34:45]execute_script returns [12:34:45]free content buf [12:34:45]Sock 7.Close socket [12:34:45]Sock 7.Thread stoped [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:42]accept exits with 9 [12:36:42]New connection [12:36:42]New thread 3067084132 created [12:36:42]Thread 3067227492 joined [12:36:42]Waiting for new connection... [12:36:42] Sock 9.Parse request [12:36:42]Sock 9.Check first char [12:36:42]Sock 9.First char is OK [12:36:42]request: POST /json_proto HTTP/1.0 [12:36:42]Method: POST [12:36:42]URL: /json_proto [12:36:42]Method is POST - this is cgi request [12:36:42]url: /json_proto [12:36:42]query_string will be loaded in cgi processing [12:36:42]execute_cgi json_proto POST (null) [12:36:42]execute_cgi path=json_proto method=POST [12:36:42]POST find Content-Length [12:36:42]Host: 172.17.38.133:8080 [12:36:42]Content-Length: 678 [12:36:42]Content-Type: application/json [12:36:42] [12:36:42]POST finish read [12:36:42]Found Content-Length = 678 [12:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]execute_script... [12: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 : (1)672563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]POST & json_proto [12:36:42]process_json_proto [12:36:42]json parsed OK: [12:36:42]protocol is kg_v1.0 [12:36:42]action value=close_receipt [12:36:42]process_action close_receipt [12:36:42]cmd_close_receipt [12:36:42]MH_GetDate [12:36:42]Write to MH i2c: F0 00 00 96 51 D6 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 96 51 00 61 7F 71 66 BD 8F 7C 64 C2 [12:36:42]GetLastDocTimeStamp 1718713951 [12:36:42]current date 1718714209 [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 97 51 80 13 01 00 00 00 00 00 65 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 97 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E6 [12:36:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]opened in 1718670284 [12:36:42]opened+sec_in_day 1718756684 [12:36:42]quantity*price = 70052 [12:36:42]sum+1 = 70053 [12:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 83 18.06.2024 12:36 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103399 ФПД: 71905436885716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103399&fm=71905436885716&tin=02508201610067®Number=0000000000092785&sum=70000 [12:36:44]StoreToDocumentArchive [12:36:44]shift 352 fd 103399 [12:36:44]save to /storage/0352/doc_00103399 [12:36:44]save last doc name /storage/0352/doc_00103399 to /storage/kkm_last_doc_name [12:36:44]save OK [12:36:44]Clear old archive folders... [12:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:44]tlvbuf is B6DEB4F0 [12:36:44]SAM_PROTO_ClearQueue [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 09 00 00 [12:36:44]Write to MH i2c: E2 08 00 A4 51 80 09 00 00 00 00 00 00 67 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_ClearQueue done [12:36:44]KKMCreateOFDPacket [12:36:44]OFDProtocolAddRootSTLVToBuf [12:36:44]FM_MakeSignedData [12:36:44]FM_MakeSignedData [12:36:44]SAM_PROTO_SignData [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 01 02 [12:36:44]Write to MH i2c: E2 08 00 A5 51 80 0D 01 02 00 00 00 00 6F [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A5 51 00 90 00 6A [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=255 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 7F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 93 01 00 35 04 06 00 41 [12:36:44]Write to MH i2c: E2 02 01 A6 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 7F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 93 01 00 35 04 06 00 41 00 00 62 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A6 51 00 90 00 6B [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=10 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 05 65 CA 05 E2 D4 [12:36:44]Write to MH i2c: E2 0D 00 A7 51 80 0D 02 02 05 00 65 CA 05 E2 D4 00 00 66 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A7 51 00 90 00 6C [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 03 02 [12:36:44]Write to MH i2c: E2 08 00 A8 51 80 0D 03 02 00 00 00 00 74 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 A8 51 00 20 59 0F 1F 51 BA 28 FB 90 00 4A [12:36:44]RAPDU: 20 59 0F 1F 51 BA 28 FB 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_SignData done [12:36:44]FM_MakeSignedData done [12:36:44]CreateOFDProtocolMessage [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 A9 51 80 11 00 00 00 00 00 00 74 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 A9 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:36:44]wFMCommunicate OK [12:36:44]CreateOFDProtocolMessage done [12:36:44]OFDSenderStorePacket 103399 [12:36:44]StoreOFDPacket docnum=103399 [12:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D9 AD 07 01 0A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 7F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 93 01 00 35 04 06 00 41 65 CA 05 E2 D4 20 59 0F 1F 51 BA 28 FB [12:36:44]CheckFolder [12:36:44]dirname=/storage/ofd_packets [12:36:44]CheckFolder done [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00103399 [12:36:44]NVStorageSaveData ofd_packets/00103399 [12:36:44]File name is /storage/ofd_packets/00103399 [12:36:44]Write 301 bytes [12:36:44]NVStorageSaveData done [12:36:44]OFDSenderStorePacket done [12:36:44]KKMCreateOFDPacket done [12:36:44]NVStorageSaveData kkm_last_timestamp [12:36:44]File name is /storage/kkm_last_timestamp [12:36:44]Write 4 bytes [12:36:44]NVStorageSaveData done [12:36:44]ExternCall_PrintAddStr [12:36:44]wPrintStart [12:36:44]Write to MH i2c: 01 00 00 AA 51 FB [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 AA 51 00 00 00 00 00 FF 0F 10 [12:36:44]RasterBufferAndPrint [12:36:44]line Счет N : (1)672563 [12:36:44]line ИНН: 02508201610067 [12:36:44]line Контрольно-Кассовый Чек [12:36:44]line ПРОДАЖА [12:36:44]line ТРК (МРК, ГНК) : 32 [12:36:44]line Товар: 2710124130 [12:36:44]line Аи-92-К-5 [12:36:44]line 10.550 * 66.40 [12:36:44]line = 700.52 [12:36:44]line НДС 12% НСП 1% [12:36:44]line > о реализуемом товаре [12:36:44]line ОКРУГЛЕНИЕ: -0.52 [12:36:44]line ИТОГО: 700.00 [12:36:44]line Внесено: 700.00 [12:36:44]line СДАЧА: 0.00 [12:36:44]line НСП 1% : 6.20 [12:36:44]line НДС 12% : 74.39 [12:36:44]line Наличными: 700.00 [12:36:44]line Безнал.: 0.00 [12:36:44]line Место: АЗС № 120 "Партнер Нефть" [12:36:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:36:44]line СНО: Общий режим [12:36:44]line Чек 83 18.06.2024 12:36 [12:36:44]line Смена: 352 ФФД: 1.0 [12:36:44]line ЗНМ: 0300000164 [12:36:44]line РНМ: 0000000000092785 [12:36:44]line Версия ККМ: 001 [12:36:44]line ФМ: 0000000000875093 [12:36:44]line ФД: 103399 [12:36:44]line ФПД: 71905436885716 [12:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103399&fm=71905436885716&tin=02508201610067®Number=0000000000092785&sum=70000 [12:36:44]OFD Sender: Processing packet 103399 [packets to send 17, broken 16] [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00103399 [12:36:44]OFD Sender: To server: pG, [12:36:44]CommunicateWithHost lk.salyk.kg:30040 [12:36:44]ConnectInit lk.salyk.kg [12:36:44]written 0, free lines is 4095 [12:36:45]Connected sock=10 [12:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D9 AD 07 01 0A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 61 7F 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 93 01 00 35 04 06 00 41 65 CA 05 E2 D4 20 59 0F 1F 51 BA 28 FB [12:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4A F4 47 00 82 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 35 30 39 33 10 04 04 00 E7 93 01 00 F4 03 04 00 ED 25 71 66 B6 04 01 00 00 0C 33 9B 57 05 37 85 D9 [12:36:45]CommunicateWithHost err = 0 [12:36:45]CheckOFDResponse [12:36:45]1017 (14) - 77093643461234 [12:36:45]1041 (16) - 0000000000875093 [12:36:45]1040 (4) - 103399 [12:36:45]1012 (4) - 18.06.2024 06:15 [12:36:45]1206 (1) - 0 [12:36:45]OFD Sender: Remove packet 103399 [12:36:45]ProducePacketName [12:36:45]name=ofd_packets/00103399 [12:36:45]NVStorageDeleteData [12:36:45]Write to MH i2c: 01 00 00 D5 51 26 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 D5 51 00 00 00 00 00 D6 0C 0F [12:36:45]RasterBufferAndPrint [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]written 0, free lines is 3289 [12:36:45]MH_Cut [12:36:45]Write to MH i2c: D1 01 00 DC 51 01 FF [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 DC 51 00 FE [12:36:45]Write to MH i2c: 01 00 00 DD 51 2E [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]OFD Sender: No OFD packet to send [12:36:46]*** Cut start [12:36:46]*** Partial cut [12:36:46]*** CUTSNS_PIN = 1 [12:36:46]*** CUTSNS_PIN = 0 [12:36:46]*** Brake cut motor [12:36:46]Read from MH i2c: 01 [12:36:46]MH_I2C_Read... [12:36:46]*** Stop cut motor [12:36:46]*** Cut end [12:36:46]Read from MH i2c: 01 07 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: 01 07 00 DD 51 00 00 00 00 00 FF 0F 43 [12:36:46]process_action close_receipt done [12:36:46]requested_data is exist [12:36:46]produce_requested_data [12:36:46]requested_item fm.sn is exist - process it [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 11 00 00 [12:36:46]Write to MH i2c: E2 08 00 DE 51 80 11 00 00 00 00 00 00 A9 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 DE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [12:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:36:46]wFMCommunicate OK [12:36:46]requested_item fd.num is exist - process it [12:36:46]SAM_PROTO_GetFieldsCounters [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 00 00 [12:36:46]Write to MH i2c: E2 08 00 DF 51 80 13 00 00 00 00 00 00 AC [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 DF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 93 01 00 0E 04 04 00 60 01 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 A8 [12: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetFieldsCounters done [12:36:46]requested_item shift.num is exist - process it [12:36:46]requested_item shift.opened is exist - process it [12:36:46]req_shift_opened [12:36:46]FM_GetShiftState [12:36:46]SAM_PROTO_GetShiftState [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 01 00 [12:36:46]Write to MH i2c: E2 08 00 E0 51 80 13 01 00 00 00 00 00 AE [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:47]Read from MH i2c: E2 [12:36:47]MH_I2C_Read... [12:36:47]Read from MH i2c: E2 0E 00 [12:36:47]MH_I2C_Read... [12:36:47]Read from MH i2c: E2 0E 00 E0 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2F [12:36:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:36:47]wFMCommunicate OK [12:36:47]SAM_PROTO_GetShiftState done [12:36:47]FM_GetShiftState done [12:36:47]req_shift_opened done [12:36:47]requested_item shift.open_date is exist - process it [12:36:47]req_shift_open_date [12:36:47]req_shift_open_date done [12:36:47]produce_requested_data done [12:36:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103399,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:36:47]process_action_free close_receipt [12:36:47]json_value_free [12:36:47]json_value_free done [12:36:47]process_json_proto returns [12:36:47]Send response to host [12:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103399,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:36:47]free response buf [12:36:47]execute_script done [12:36:47]execute_script returns [12:36:47]free content buf [12:36:47]Sock 9.Close socket [12:36:47]Sock 9.Thread stoped [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:03]accept exits with 7 [12:41:03]New connection [12:41:03]New thread 3067227492 created [12:41:03]Thread 3067084132 joined [12:41:03]Waiting for new connection... [12:41:03] Sock 7.Parse request [12:41:03]Sock 7.Check first char [12:41:03]Sock 7.First char is OK [12:41:03]request: POST /json_proto HTTP/1.0 [12:41:03]Method: POST [12:41:03]URL: /json_proto [12:41:03]Method is POST - this is cgi request [12:41:03]url: /json_proto [12:41:03]query_string will be loaded in cgi processing [12:41:03]execute_cgi json_proto POST (null) [12:41:03]execute_cgi path=json_proto method=POST [12:41:03]POST find Content-Length [12:41:03]Host: 172.17.38.133:8080 [12:41:03]Content-Length: 682 [12:41:03]Content-Type: application/json [12:41:03] [12:41:03]POST finish read [12:41:03]Found Content-Length = 682 [12:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:03]execute_script... [12:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:03]POST & json_proto [12:41:03]process_json_proto [12:41:03]json parsed OK: [12:41:03]protocol is kg_v1.0 [12:41:03]action value=close_receipt [12:41:03]process_action close_receipt [12:41:03]cmd_close_receipt [12:41:03]MH_GetDate [12:41:03]Write to MH i2c: F0 00 00 E1 51 21 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: F0 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: F0 09 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: F0 09 00 E1 51 00 66 80 71 66 BD 8F 7C 64 13 [12:41:03]GetLastDocTimeStamp 1718714209 [12:41:03]current date 1718714470 [12:41:03]FM_GetShiftState [12:41:03]SAM_PROTO_GetShiftState [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 01 00 [12:41:03]Write to MH i2c: E2 08 00 E2 51 80 13 01 00 00 00 00 00 B0 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 E2 51 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 31 [12:41:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetShiftState done [12:41:03]FM_GetShiftState done [12:41:03]opened in 1718670284 [12:41:03]opened+sec_in_day 1718756684 [12:41:03]quantity*price = 250003 [12:41:03]sum+1 = 250005 [12:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 18.06.2024 12:41 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103400 ФПД: 50075168601684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103400&fm=50075168601684&tin=02508201610067®Number=0000000000092785&sum=250000 [12:41:04]StoreToDocumentArchive [12:41:04]shift 352 fd 103400 [12:41:04]save to /storage/0352/doc_00103400 [12:41:04]save last doc name /storage/0352/doc_00103400 to /storage/kkm_last_doc_name [12:41:04]save OK [12:41:04]Clear old archive folders... [12:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:04]tlvbuf is 01337D00 [12:41:04]SAM_PROTO_ClearQueue [12:41:04]wFMCommunicate request_size=4 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 09 00 00 [12:41:04]Write to MH i2c: E2 08 00 EF 51 80 09 00 00 00 00 00 00 B2 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 EF 51 00 90 00 B4 [12:41:04]RAPDU: 90 00 [12:41:04]wFMCommunicate OK [12:41:04]SAM_PROTO_ClearQueue done [12:41:04]KKMCreateOFDPacket [12:41:04]OFDProtocolAddRootSTLVToBuf [12:41:04]FM_MakeSignedData [12:41:04]FM_MakeSignedData [12:41:04]SAM_PROTO_SignData [12:41:04]wFMCommunicate request_size=4 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 0D 01 02 [12:41:04]Write to MH i2c: E2 08 00 F0 51 80 0D 01 02 00 00 00 00 BA [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 F0 51 00 90 00 B5 [12:41:04]RAPDU: 90 00 [12:41:04]wFMCommunicate OK [12:41:04]wFMCommunicate request_size=255 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 66 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 93 01 00 35 04 06 00 2D [12:41:04]Write to MH i2c: E2 02 01 F1 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 66 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 93 01 00 35 04 06 00 2D 00 00 82 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 03 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 03 00 F1 51 00 90 00 B6 [12:41:05]RAPDU: 90 00 [12:41:05]wFMCommunicate OK [12:41:05]wFMCommunicate request_size=10 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 0D 02 02 05 8B 08 A2 F6 54 [12:41:05]Write to MH i2c: E2 0D 00 F2 51 80 0D 02 02 05 00 8B 08 A2 F6 54 00 00 46 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 03 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 03 00 F2 51 00 90 00 B7 [12:41:05]RAPDU: 90 00 [12:41:05]wFMCommunicate OK [12:41:05]wFMCommunicate request_size=4 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 0D 03 02 [12:41:05]Write to MH i2c: E2 08 00 F3 51 80 0D 03 02 00 00 00 00 BF [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 0B 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 0B 00 F3 51 00 73 8E F0 D9 17 7B A5 23 90 00 E4 [12:41:05]RAPDU: 73 8E F0 D9 17 7B A5 23 90 00 [12:41:05]wFMCommunicate OK [12:41:05]SAM_PROTO_SignData done [12:41:05]FM_MakeSignedData done [12:41:05]CreateOFDProtocolMessage [12:41:05]wFMCommunicate request_size=4 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 11 00 00 [12:41:05]Write to MH i2c: E2 08 00 F4 51 80 11 00 00 00 00 00 00 BF [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 17 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 17 00 F4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [12:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:05]wFMCommunicate OK [12:41:05]CreateOFDProtocolMessage done [12:41:05]OFDSenderStorePacket 103400 [12:41:05]StoreOFDPacket docnum=103400 [12:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 59 6C 07 01 B7 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 66 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 93 01 00 35 04 06 00 2D 8B 08 A2 F6 54 73 8E F0 D9 17 7B A5 23 [12:41:05]CheckFolder [12:41:05]dirname=/storage/ofd_packets [12:41:05]CheckFolder done [12:41:05]ProducePacketName [12:41:05]name=ofd_packets/00103400 [12:41:05]NVStorageSaveData ofd_packets/00103400 [12:41:05]File name is /storage/ofd_packets/00103400 [12:41:05]Write 301 bytes [12:41:05]NVStorageSaveData done [12:41:05]OFDSenderStorePacket done [12:41:05]KKMCreateOFDPacket done [12:41:05]NVStorageSaveData kkm_last_timestamp [12:41:05]File name is /storage/kkm_last_timestamp [12:41:05]Write 4 bytes [12:41:05]NVStorageSaveData done [12:41:05]ExternCall_PrintAddStr [12:41:05]wPrintStart [12:41:05]Write to MH i2c: 01 00 00 F5 51 46 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 07 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 07 00 F5 51 00 00 00 00 00 FF 0F 5B [12:41:05]RasterBufferAndPrint [12:41:05]line Счет N : (1)672564 [12:41:05]line ИНН: 02508201610067 [12:41:05]line Контрольно-Кассовый Чек [12:41:05]line ПРОДАЖА [12:41:05]line ТРК (МРК, ГНК) : 41 [12:41:05]line Товар: 2710124500 [12:41:05]line Аи-95-К-5 [12:41:05]line 33.830 * 73.90 [12:41:05]line = 2500.04 [12:41:05]line НДС 12% НСП 1% [12:41:05]line > о реализуемом товаре [12:41:05]line ОКРУГЛЕНИЕ: -0.04 [12:41:05]line ИТОГО: 2500.00 [12:41:05]line Внесено: 2500.00 [12:41:05]line СДАЧА: 0.00 [12:41:05]line НСП 1% : 22.12 [12:41:05]line НДС 12% : 265.49 [12:41:05]line Наличными: 2500.00 [12:41:05]line Безнал.: 0.00 [12:41:05]line Место: АЗС № 120 "Партнер Нефть" [12:41:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:41:05]line СНО: Общий режим [12:41:05]line Чек 84 18.06.2024 12:41 [12:41:05]line Смена: 352 ФФД: 1.0 [12:41:05]line ЗНМ: 0300000164 [12:41:05]line РНМ: 0000000000092785 [12:41:05]line Версия ККМ: 001 [12:41:05]line ФМ: 0000000000875093 [12:41:05]line ФД: 103400 [12:41:05]line ФПД: 50075168601684 [12:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124110&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103400&fm=50075168601684&tin=02508201610067®Number=0000000000092785&sum=250000 [12:41:05]OFD Sender: Processing packet 103400 [packets to send 17, broken 16] [12:41:05]ProducePacketName [12:41:05]name=ofd_packets/00103400 [12:41:05]OFD Sender: To server: pG, [12:41:05]CommunicateWithHost lk.salyk.kg:30040 [12:41:05]ConnectInit lk.salyk.kg [12:41:05]written 0, free lines is 4095 [12:41:05]Connected sock=10 [12:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 59 6C 07 01 B7 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 66 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 93 01 00 35 04 06 00 2D 8B 08 A2 F6 54 73 8E F0 D9 17 7B A5 23 [12:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AF 33 47 00 D2 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 93 01 00 F4 03 04 00 F2 26 71 66 B6 04 01 00 00 18 E1 83 E7 78 5A 62 5C [12:41:05]CommunicateWithHost err = 0 [12:41:05]CheckOFDResponse [12:41:05]1017 (14) - 77093643461234 [12:41:05]1041 (16) - 0000000000875093 [12:41:05]1040 (4) - 103400 [12:41:05]1012 (4) - 18.06.2024 06:19 [12:41:05]1206 (1) - 0 [12:41:05]OFD Sender: Remove packet 103400 [12:41:05]ProducePacketName [12:41:05]name=ofd_packets/00103400 [12:41:05]NVStorageDeleteData [12:41:06]Write to MH i2c: 01 00 00 20 52 72 [12:41:06]Write i2c OK [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: 01 [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: 01 07 00 [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: 01 07 00 20 52 00 00 00 00 00 E2 0C 67 [12:41:06]RasterBufferAndPrint [12:41:06]line [12:41:06]line [12:41:06]line [12:41:06]line [12:41:06]line [12:41:06]written 0, free lines is 3304 [12:41:06]MH_Cut [12:41:06]Write to MH i2c: D1 01 00 27 52 01 4B [12:41:06]Write i2c OK [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: D1 [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: D1 01 00 [12:41:06]MH_I2C_Read... [12:41:06]Read from MH i2c: D1 01 00 27 52 00 4A [12:41:06]Write to MH i2c: 01 00 00 28 52 7A [12:41:06]Write i2c OK [12:41:06]MH_I2C_Read... [12:41:06]OFD Sender: No OFD packet to send [12:41:06]*** Cut start [12:41:06]*** Partial cut [12:41:06]*** CUTSNS_PIN = 1 [12:41:06]*** CUTSNS_PIN = 0 [12:41:07]*** Brake cut motor [12:41:07]Read from MH i2c: 01 [12:41:07]MH_I2C_Read... [12:41:07]*** Stop cut motor [12:41:07]*** Cut end [12:41:07]Read from MH i2c: 01 07 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: 01 07 00 28 52 00 00 00 00 00 FF 0F 8F [12:41:07]process_action close_receipt done [12:41:07]requested_data is exist [12:41:07]produce_requested_data [12:41:07]requested_item fm.sn is exist - process it [12:41:07]wFMCommunicate request_size=4 [12:41:07]MH_SAM_APDU [12:41:07]CAPDU: 80 11 00 00 [12:41:07]Write to MH i2c: E2 08 00 29 52 80 11 00 00 00 00 00 00 F5 [12:41:07]Write i2c OK [12:41:07]MH_I2C_Read... [12:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:07]Read from MH i2c: E2 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 17 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 17 00 29 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [12:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:07]wFMCommunicate OK [12:41:07]requested_item fd.num is exist - process it [12:41:07]SAM_PROTO_GetFieldsCounters [12:41:07]wFMCommunicate request_size=4 [12:41:07]MH_SAM_APDU [12:41:07]CAPDU: 80 13 00 00 [12:41:07]Write to MH i2c: E2 08 00 2A 52 80 13 00 00 00 00 00 00 F8 [12:41:07]Write i2c OK [12:41:07]MH_I2C_Read... [12:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:07]Read from MH i2c: E2 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 62 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 62 00 2A 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [12:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:07]wFMCommunicate OK [12:41:07]SAM_PROTO_GetFieldsCounters done [12:41:07]requested_item shift.num is exist - process it [12:41:07]requested_item shift.opened is exist - process it [12:41:07]req_shift_opened [12:41:07]FM_GetShiftState [12:41:07]SAM_PROTO_GetShiftState [12:41:07]wFMCommunicate request_size=4 [12:41:07]MH_SAM_APDU [12:41:07]CAPDU: 80 13 01 00 [12:41:07]Write to MH i2c: E2 08 00 2B 52 80 13 01 00 00 00 00 00 FA [12:41:07]Write i2c OK [12:41:07]MH_I2C_Read... [12:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:07]Read from MH i2c: E2 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 0E 00 [12:41:07]MH_I2C_Read... [12:41:07]Read from MH i2c: E2 0E 00 2B 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7B [12:41:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:41:07]wFMCommunicate OK [12:41:07]SAM_PROTO_GetShiftState done [12:41:07]FM_GetShiftState done [12:41:07]req_shift_opened done [12:41:07]requested_item shift.open_date is exist - process it [12:41:07]req_shift_open_date [12:41:07]req_shift_open_date done [12:41:07]produce_requested_data done [12:41:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103400,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:41:07]process_action_free close_receipt [12:41:07]json_value_free [12:41:07]json_value_free done [12:41:07]process_json_proto returns [12:41:07]Send response to host [12:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103400,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:41:07]free response buf [12:41:07]execute_script done [12:41:07]execute_script returns [12:41:07]free content buf [12:41:07]Sock 7.Close socket [12:41:07]Sock 7.Thread stoped [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]accept exits with 9 [12:42:56]New connection [12:42:56]New thread 3067084132 created [12:42:56]Thread 3067227492 joined [12:42:56]Waiting for new connection... [12:42:56] Sock 9.Parse request [12:42:56]Sock 9.Check first char [12:42:56]Sock 9.First char is OK [12:42:56]request: POST /json_proto HTTP/1.0 [12:42:56]Method: POST [12:42:56]URL: /json_proto [12:42:56]Method is POST - this is cgi request [12:42:56]url: /json_proto [12:42:56]query_string will be loaded in cgi processing [12:42:56]execute_cgi json_proto POST (null) [12:42:56]execute_cgi path=json_proto method=POST [12:42:56]POST find Content-Length [12:42:56]Host: 172.17.38.133:8080 [12:42:56]Content-Length: 808 [12:42:56]Content-Type: application/json [12:42:56] [12:42:56]POST finish read [12:42:56]Found Content-Length = 808 [12:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 38.350, "sum" : 2795.72, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2795.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:56]execute_script... [12:42:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 38.350, "sum" : 2795.72, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2795.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:56]POST & json_proto [12:42:56]process_json_proto [12:42:56]json parsed OK: [12:42:56]protocol is kg_v1.0 [12:42:56]action value=close_receipt [12:42:56]process_action close_receipt [12:42:56]cmd_close_receipt [12:42:56]MH_GetDate [12:42:56]Write to MH i2c: F0 00 00 2C 52 6D [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 09 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: F0 09 00 2C 52 00 D7 80 71 66 BD 8F 7C 64 D0 [12:42:56]GetLastDocTimeStamp 1718714470 [12:42:56]current date 1718714583 [12:42:56]FM_GetShiftState [12:42:56]SAM_PROTO_GetShiftState [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 13 01 00 [12:42:56]Write to MH i2c: E2 08 00 2D 52 80 13 01 00 00 00 00 00 FC [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0E 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0E 00 2D 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7D [12:42:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:42:56]wFMCommunicate OK [12:42:56]SAM_PROTO_GetShiftState done [12:42:56]FM_GetShiftState done [12:42:56]opened in 1718670284 [12:42:56]opened+sec_in_day 1718756684 [12:42:56]quantity*price = 279571 [12:42:56]sum+1 = 279573 [12:42:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2795.72 НСП 1% : 24.74 НДС 12% : 296.89 Наличными: 0.00 Безнал.: 2795.72 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 18.06.2024 12:43 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103401 ФПД: 256104177130550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124303&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103401&fm=256104177130550&tin=02508201610067®Number=0000000000092785&sum=279572 [12:42:57]StoreToDocumentArchive [12:42:57]shift 352 fd 103401 [12:42:57]save to /storage/0352/doc_00103401 [12:42:57]save last doc name /storage/0352/doc_00103401 to /storage/kkm_last_doc_name [12:42:57]save OK [12:42:57]Clear old archive folders... [12:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:42:57]tlvbuf is 01416CD0 [12:42:57]SAM_PROTO_ClearQueue [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 09 00 00 [12:42:57]Write to MH i2c: E2 08 00 3A 52 80 09 00 00 00 00 00 00 FE [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 3A 52 00 90 00 00 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_ClearQueue done [12:42:57]KKMCreateOFDPacket [12:42:57]OFDProtocolAddRootSTLVToBuf [12:42:57]FM_MakeSignedData [12:42:57]FM_MakeSignedData [12:42:57]SAM_PROTO_SignData [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 01 02 [12:42:57]Write to MH i2c: E2 08 00 3B 52 80 0D 01 02 00 00 00 00 06 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 3B 52 00 90 00 01 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=255 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 95 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 44 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 44 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 44 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D7 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 93 01 00 35 04 06 00 [12:42:57]Write to MH i2c: E2 02 01 3C 52 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 95 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 44 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 44 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 44 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D7 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 93 01 00 35 04 06 00 00 00 DE [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 3C 52 00 90 00 02 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=11 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 02 02 06 E8 EC E6 80 DC 36 [12:42:57]Write to MH i2c: E2 0E 00 3D 52 80 0D 02 02 06 00 E8 EC E6 80 DC 36 00 00 61 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 03 00 3D 52 00 90 00 03 [12:42:57]RAPDU: 90 00 [12:42:57]wFMCommunicate OK [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 0D 03 02 [12:42:57]Write to MH i2c: E2 08 00 3E 52 80 0D 03 02 00 00 00 00 0B [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0B 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 0B 00 3E 52 00 FD 24 BA 54 A5 BD 46 4A 90 00 2D [12:42:57]RAPDU: FD 24 BA 54 A5 BD 46 4A 90 00 [12:42:57]wFMCommunicate OK [12:42:57]SAM_PROTO_SignData done [12:42:57]FM_MakeSignedData done [12:42:57]CreateOFDProtocolMessage [12:42:57]wFMCommunicate request_size=4 [12:42:57]MH_SAM_APDU [12:42:57]CAPDU: 80 11 00 00 [12:42:57]Write to MH i2c: E2 08 00 3F 52 80 11 00 00 00 00 00 00 0B [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:57]Read from MH i2c: E2 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 17 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: E2 17 00 3F 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [12:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:42:57]wFMCommunicate OK [12:42:57]CreateOFDProtocolMessage done [12:42:57]OFDSenderStorePacket 103401 [12:42:57]StoreOFDPacket docnum=103401 [12:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A3 70 08 01 D4 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 95 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 44 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 44 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 44 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D7 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 93 01 00 35 04 06 00 E8 EC E6 80 DC 36 FD 24 BA 54 A5 BD 46 4A [12:42:57]CheckFolder [12:42:57]dirname=/storage/ofd_packets [12:42:57]CheckFolder done [12:42:57]ProducePacketName [12:42:57]name=ofd_packets/00103401 [12:42:57]NVStorageSaveData ofd_packets/00103401 [12:42:57]File name is /storage/ofd_packets/00103401 [12:42:57]Write 302 bytes [12:42:57]NVStorageSaveData done [12:42:57]OFDSenderStorePacket done [12:42:57]KKMCreateOFDPacket done [12:42:57]NVStorageSaveData kkm_last_timestamp [12:42:57]File name is /storage/kkm_last_timestamp [12:42:57]Write 4 bytes [12:42:57]NVStorageSaveData done [12:42:58]ExternCall_PrintAddStr [12:42:58]wPrintStart [12:42:58]Write to MH i2c: 01 00 00 40 52 92 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 40 52 00 00 00 00 00 FF 0F A7 [12:42:58]RasterBufferAndPrint [12:42:58]line Счет N : (1)672565 [12:42:58]line ИНН: 02508201610067 [12:42:58]line Контрольно-Кассовый Чек [12:42:58]line ПРОДАЖА [12:42:58]line ТРК (МРК, ГНК) : 11 [12:42:58]line Товар: 2710194210 [12:42:58]line ДТ(л)-К-5 [12:42:58]line 38.350 * 72.90 [12:42:58]line = 2795.72 [12:42:58]line НДС 12% НСП 1% [12:42:58]line > о реализуемом товаре [12:42:58]line ИТОГО: 2795.72 [12:42:58]line НСП 1% : 24.74 [12:42:58]line НДС 12% : 296.89 [12:42:58]line Наличными: 0.00 [12:42:58]line Безнал.: 2795.72 [12:42:58]line Место: АЗС № 120 "Партнер Нефть" [12:42:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:42:58]line СНО: Общий режим [12:42:58]line Чек 85 18.06.2024 12:43 [12:42:58]line Смена: 352 ФФД: 1.0 [12:42:58]line ЗНМ: 0300000164 [12:42:58]line РНМ: 0000000000092785 [12:42:58]line Версия ККМ: 001 [12:42:58]line Платежная система: O! деньги [12:42:58]line ФМ: 0000000000875093 [12:42:58]line ФД: 103401 [12:42:58]line ФПД: 256104177130550 [12:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124303&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103401&fm=256104177130550&tin=02508201610067®Number=0000000000092785&sum=279572 [12:42:58]written 0, free lines is 4095 [12:42:58]OFD Sender: Processing packet 103401 [packets to send 17, broken 16] [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00103401 [12:42:58]OFD Sender: To server: pG, [12:42:58]CommunicateWithHost lk.salyk.kg:30040 [12:42:58]ConnectInit lk.salyk.kg [12:42:58]Connected sock=10 [12:42:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A3 70 08 01 D4 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 95 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 44 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 44 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 44 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D7 80 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 93 01 00 35 04 06 00 E8 EC E6 80 DC 36 FD 24 BA 54 A5 BD 46 4A [12:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 33 C0 47 00 F3 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 93 01 00 F4 03 04 00 63 27 71 66 B6 04 01 00 00 DD 6E 57 01 F7 D4 D9 7D [12:42:58]CommunicateWithHost err = 0 [12:42:58]CheckOFDResponse [12:42:58]1017 (14) - 77093643461234 [12:42:58]1041 (16) - 0000000000875093 [12:42:58]1040 (4) - 103401 [12:42:58]1012 (4) - 18.06.2024 06:21 [12:42:58]1206 (1) - 0 [12:42:58]OFD Sender: Remove packet 103401 [12:42:58]ProducePacketName [12:42:58]name=ofd_packets/00103401 [12:42:58]NVStorageDeleteData [12:42:58]Write to MH i2c: 01 00 00 6A 52 BC [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: 01 07 00 6A 52 00 00 00 00 00 F2 0C C1 [12:42:58]RasterBufferAndPrint [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]line [12:42:58]written 0, free lines is 3320 [12:42:58]MH_Cut [12:42:58]Write to MH i2c: D1 01 00 71 52 01 95 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 01 00 [12:42:58]MH_I2C_Read... [12:42:58]Read from MH i2c: D1 01 00 71 52 00 94 [12:42:58]Write to MH i2c: 01 00 00 72 52 C4 [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:59]OFD Sender: No OFD packet to send [12:42:59]*** Cut start [12:42:59]*** Partial cut [12:42:59]*** CUTSNS_PIN = 1 [12:42:59]*** CUTSNS_PIN = 0 [12:42:59]*** Brake cut motor [12:43:00]Read from MH i2c: 01 [12:43:00]MH_I2C_Read... [12:43:00]*** Stop cut motor [12:43:00]*** Cut end [12:43:00]Read from MH i2c: 01 07 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: 01 07 00 72 52 00 00 00 00 00 FF 0F D9 [12:43:00]process_action close_receipt done [12:43:00]requested_data is exist [12:43:00]produce_requested_data [12:43:00]requested_item fm.sn is exist - process it [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 11 00 00 [12:43:00]Write to MH i2c: E2 08 00 73 52 80 11 00 00 00 00 00 00 3F [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 17 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 17 00 73 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [12:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:43:00]wFMCommunicate OK [12:43:00]requested_item fd.num is exist - process it [12:43:00]SAM_PROTO_GetFieldsCounters [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 00 00 [12:43:00]Write to MH i2c: E2 08 00 74 52 80 13 00 00 00 00 00 00 42 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 62 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 62 00 74 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [12:43:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetFieldsCounters done [12:43:00]requested_item shift.num is exist - process it [12:43:00]requested_item shift.opened is exist - process it [12:43:00]req_shift_opened [12:43:00]FM_GetShiftState [12:43:00]SAM_PROTO_GetShiftState [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 01 00 [12:43:00]Write to MH i2c: E2 08 00 75 52 80 13 01 00 00 00 00 00 44 [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 75 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C5 [12:43:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetShiftState done [12:43:00]FM_GetShiftState done [12:43:00]req_shift_opened done [12:43:00]requested_item shift.open_date is exist - process it [12:43:00]req_shift_open_date [12:43:00]req_shift_open_date done [12:43:00]produce_requested_data done [12:43:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103401,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:43:00]process_action_free close_receipt [12:43:00]json_value_free [12:43:00]json_value_free done [12:43:00]process_json_proto returns [12:43:00]Send response to host [12:43:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103401,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:43:00]free response buf [12:43:00]execute_script done [12:43:00]execute_script returns [12:43:00]free content buf [12:43:00]Sock 9.Close socket [12:43:00]Sock 9.Thread stoped [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:49]accept exits with 7 [12:44:49]New connection [12:44:49]New thread 3067227492 created [12:44:49]Thread 3067084132 joined [12:44:49]Waiting for new connection... [12:44:49] Sock 7.Parse request [12:44:49]Sock 7.Check first char [12:44:49]Sock 7.First char is OK [12:44:49]request: POST /json_proto HTTP/1.0 [12:44:49]Method: POST [12:44:49]URL: /json_proto [12:44:49]Method is POST - this is cgi request [12:44:49]url: /json_proto [12:44:49]query_string will be loaded in cgi processing [12:44:49]execute_cgi json_proto POST (null) [12:44:49]execute_cgi path=json_proto method=POST [12:44:49]POST find Content-Length [12:44:49]Host: 172.17.38.133:8080 [12:44:49]Content-Length: 640 [12:44:49]Content-Type: application/json [12:44:49] [12:44:49]POST finish read [12:44:49]Found Content-Length = 640 [12:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:49]execute_script... [12: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 : (1)672566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:49]POST & json_proto [12:44:49]process_json_proto [12:44:49]json parsed OK: [12:44:49]protocol is kg_v1.0 [12:44:49]action value=close_receipt [12:44:49]process_action close_receipt [12:44:49]cmd_close_receipt [12:44:49]MH_GetDate [12:44:49]Write to MH i2c: F0 00 00 76 52 B7 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: F0 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: F0 09 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: F0 09 00 76 52 00 48 81 71 66 BD 8F 7C 64 8C [12:44:49]GetLastDocTimeStamp 1718714583 [12:44:49]current date 1718714696 [12:44:49]FM_GetShiftState [12:44:49]SAM_PROTO_GetShiftState [12:44:49]wFMCommunicate request_size=4 [12:44:49]MH_SAM_APDU [12:44:49]CAPDU: 80 13 01 00 [12:44:49]Write to MH i2c: E2 08 00 77 52 80 13 01 00 00 00 00 00 46 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 77 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C7 [12:44:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:44:49]wFMCommunicate OK [12:44:49]SAM_PROTO_GetShiftState done [12:44:49]FM_GetShiftState done [12:44:49]opened in 1718670284 [12:44:49]opened+sec_in_day 1718756684 [12:44:49]quantity*price = 66400 [12:44:49]sum+1 = 66401 [12:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 86 18.06.2024 12:44 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103402 ФПД: 32981151200542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103402&fm=32981151200542&tin=02508201610067®Number=0000000000092785&sum=66400 [12:44:50]StoreToDocumentArchive [12:44:50]shift 352 fd 103402 [12:44:50]save to /storage/0352/doc_00103402 [12:44:50]save last doc name /storage/0352/doc_00103402 to /storage/kkm_last_doc_name [12:44:50]save OK [12:44:50]Clear old archive folders... [12:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:50]tlvbuf is B6F9BB50 [12:44:50]SAM_PROTO_ClearQueue [12:44:50]wFMCommunicate request_size=4 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 09 00 00 [12:44:50]Write to MH i2c: E2 08 00 84 52 80 09 00 00 00 00 00 00 48 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:50]Read from MH i2c: E2 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 03 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 03 00 84 52 00 90 00 4A [12:44:50]RAPDU: 90 00 [12:44:50]wFMCommunicate OK [12:44:50]SAM_PROTO_ClearQueue done [12:44:50]KKMCreateOFDPacket [12:44:50]OFDProtocolAddRootSTLVToBuf [12:44:50]FM_MakeSignedData [12:44:50]FM_MakeSignedData [12:44:50]SAM_PROTO_SignData [12:44:50]wFMCommunicate request_size=4 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 0D 01 02 [12:44:50]Write to MH i2c: E2 08 00 85 52 80 0D 01 02 00 00 00 00 50 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:50]Read from MH i2c: E2 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 03 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: E2 03 00 85 52 00 90 00 4B [12:44:50]RAPDU: 90 00 [12:44:50]wFMCommunicate OK [12:44:50]wFMCommunicate request_size=255 [12:44:50]MH_SAM_APDU [12:44:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 48 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 93 01 00 35 04 06 00 1D [12:44:50]Write to MH i2c: E2 02 01 86 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 48 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 93 01 00 35 04 06 00 1D 00 00 B2 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:51]Read from MH i2c: E2 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 03 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 03 00 86 52 00 90 00 4C [12:44:51]RAPDU: 90 00 [12:44:51]wFMCommunicate OK [12:44:51]wFMCommunicate request_size=10 [12:44:51]MH_SAM_APDU [12:44:51]CAPDU: 80 0D 02 02 05 FF 05 CD 35 1E [12:44:51]Write to MH i2c: E2 0D 00 87 52 80 0D 02 02 05 00 FF 05 CD 35 1E 00 00 81 [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:51]Read from MH i2c: E2 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 03 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 03 00 87 52 00 90 00 4D [12:44:51]RAPDU: 90 00 [12:44:51]wFMCommunicate OK [12:44:51]wFMCommunicate request_size=4 [12:44:51]MH_SAM_APDU [12:44:51]CAPDU: 80 0D 03 02 [12:44:51]Write to MH i2c: E2 08 00 88 52 80 0D 03 02 00 00 00 00 55 [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:51]Read from MH i2c: E2 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 0B 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 0B 00 88 52 00 F7 50 1A B7 60 85 CA 2B 90 00 48 [12:44:51]RAPDU: F7 50 1A B7 60 85 CA 2B 90 00 [12:44:51]wFMCommunicate OK [12:44:51]SAM_PROTO_SignData done [12:44:51]FM_MakeSignedData done [12:44:51]CreateOFDProtocolMessage [12:44:51]wFMCommunicate request_size=4 [12:44:51]MH_SAM_APDU [12:44:51]CAPDU: 80 11 00 00 [12:44:51]Write to MH i2c: E2 08 00 89 52 80 11 00 00 00 00 00 00 55 [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:51]Read from MH i2c: E2 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 17 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: E2 17 00 89 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A8 [12:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:44:51]wFMCommunicate OK [12:44:51]CreateOFDProtocolMessage done [12:44:51]OFDSenderStorePacket 103402 [12:44:51]StoreOFDPacket docnum=103402 [12:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 22 4D 07 01 BC 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 48 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 93 01 00 35 04 06 00 1D FF 05 CD 35 1E F7 50 1A B7 60 85 CA 2B [12:44:51]CheckFolder [12:44:51]dirname=/storage/ofd_packets [12:44:51]CheckFolder done [12:44:51]ProducePacketName [12:44:51]name=ofd_packets/00103402 [12:44:51]NVStorageSaveData ofd_packets/00103402 [12:44:51]File name is /storage/ofd_packets/00103402 [12:44:51]Write 301 bytes [12:44:51]NVStorageSaveData done [12:44:51]OFDSenderStorePacket done [12:44:51]KKMCreateOFDPacket done [12:44:51]NVStorageSaveData kkm_last_timestamp [12:44:51]File name is /storage/kkm_last_timestamp [12:44:51]Write 4 bytes [12:44:51]NVStorageSaveData done [12:44:51]ExternCall_PrintAddStr [12:44:51]wPrintStart [12:44:51]Write to MH i2c: 01 00 00 8A 52 DC [12:44:51]OFD Sender: Processing packet 103402 [packets to send 17, broken 16] [12:44:51]ProducePacketName [12:44:51]name=ofd_packets/00103402 [12:44:51]OFD Sender: To server: pG, [12:44:51]CommunicateWithHost lk.salyk.kg:30040 [12:44:51]ConnectInit lk.salyk.kg [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 07 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 07 00 8A 52 00 00 00 00 00 FF 0F F1 [12:44:51]RasterBufferAndPrint [12:44:51]line Счет N : (1)672566 [12:44:51]line ИНН: 02508201610067 [12:44:51]line Контрольно-Кассовый Чек [12:44:51]line ПРОДАЖА [12:44:51]line ТРК (МРК, ГНК) : 42 [12:44:51]line Товар: 2710124130 [12:44:51]line Аи-92-К-5 [12:44:51]line 10.000 * 66.40 [12:44:51]line = 664.00 [12:44:51]line НДС 12% НСП 1% [12:44:51]line > о реализуемом товаре [12:44:51]line ИТОГО: 664.00 [12:44:51]line НСП 1% : 5.88 [12:44:51]line НДС 12% : 70.51 [12:44:51]line Наличными: 664.00 [12:44:51]line Безнал.: 0.00 [12:44:51]line Место: АЗС № 120 "Партнер Нефть" [12:44:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:44:51]line СНО: Общий режим [12:44:51]line Чек 86 18.06.2024 12:44 [12:44:51]line Смена: 352 ФФД: 1.0 [12:44:51]line ЗНМ: 0300000164 [12:44:51]line РНМ: 0000000000092785 [12:44:51]line Версия ККМ: 001 [12:44:51]line ФМ: 0000000000875093 [12:44:51]line ФД: 103402 [12:44:51]line ФПД: 32981151200542 [12:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103402&fm=32981151200542&tin=02508201610067®Number=0000000000092785&sum=66400 [12:44:51]Connected sock=10 [12: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 35 30 39 33 0F 01 00 00 22 4D 07 01 BC written 0, free lines is 4095 [12:44:51]84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 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 48 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 93 01 00 35 04 06 00 1D FF 05 CD 35 1E F7 50 1A B7 60 85 CA 2B [12:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 69 9F 47 00 D4 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 93 01 00 F4 03 04 00 D4 27 71 66 B6 04 01 00 00 52 32 F0 88 77 CC 41 60 [12:44:51]CommunicateWithHost err = 0 [12:44:51]CheckOFDResponse [12:44:51]1017 (14) - 77093643461234 [12:44:51]1041 (16) - 0000000000875093 [12:44:51]1040 (4) - 103402 [12:44:51]1012 (4) - 18.06.2024 06:23 [12:44:51]1206 (1) - 0 [12:44:51]OFD Sender: Remove packet 103402 [12:44:51]ProducePacketName [12:44:51]name=ofd_packets/00103402 [12:44:51]NVStorageDeleteData [12:44:51]Write to MH i2c: 01 00 00 B2 52 04 [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 07 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: 01 07 00 B2 52 00 00 00 00 00 04 0D 1C [12:44:51]RasterBufferAndPrint [12:44:51]line [12:44:51]line [12:44:51]line [12:44:51]line [12:44:51]line [12:44:51]written 0, free lines is 3338 [12:44:51]MH_Cut [12:44:51]Write to MH i2c: D1 01 00 B9 52 01 DD [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: D1 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: D1 01 00 [12:44:51]MH_I2C_Read... [12:44:51]Read from MH i2c: D1 01 00 B9 52 00 DC [12:44:51]Write to MH i2c: 01 00 00 BA 52 0C [12:44:51]Write i2c OK [12:44:51]MH_I2C_Read... [12:44:52]OFD Sender: No OFD packet to send [12:44:52]*** Cut start [12:44:52]*** Partial cut [12:44:52]*** CUTSNS_PIN = 1 [12:44:52]*** CUTSNS_PIN = 0 [12:44:52]*** Brake cut motor [12:44:53]Read from MH i2c: 01 [12:44:53]MH_I2C_Read... [12:44:53]*** Stop cut motor [12:44:53]*** Cut end [12:44:53]Read from MH i2c: 01 07 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 07 00 BA 52 00 00 00 00 00 FF 0F 21 [12:44:53]process_action close_receipt done [12:44:53]requested_data is exist [12:44:53]produce_requested_data [12:44:53]requested_item fm.sn is exist - process it [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 11 00 00 [12:44:53]Write to MH i2c: E2 08 00 BB 52 80 11 00 00 00 00 00 00 87 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 BB 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [12:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:44:53]wFMCommunicate OK [12:44:53]requested_item fd.num is exist - process it [12:44:53]SAM_PROTO_GetFieldsCounters [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 13 00 00 [12:44:53]Write to MH i2c: E2 08 00 BC 52 80 13 00 00 00 00 00 00 8A [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 62 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 62 00 BC 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_GetFieldsCounters done [12:44:53]requested_item shift.num is exist - process it [12:44:53]requested_item shift.opened is exist - process it [12:44:53]req_shift_opened [12:44:53]FM_GetShiftState [12:44:53]SAM_PROTO_GetShiftState [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 13 01 00 [12:44:53]Write to MH i2c: E2 08 00 BD 52 80 13 01 00 00 00 00 00 8C [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0E 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0E 00 BD 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0D [12:44:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_GetShiftState done [12:44:53]FM_GetShiftState done [12:44:53]req_shift_opened done [12:44:53]requested_item shift.open_date is exist - process it [12:44:53]req_shift_open_date [12:44:53]req_shift_open_date done [12:44:53]produce_requested_data done [12:44:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103402,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:44:53]process_action_free close_receipt [12:44:53]json_value_free [12:44:53]json_value_free done [12:44:53]process_json_proto returns [12:44:53]Send response to host [12:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103402,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:44:53]free response buf [12:44:53]execute_script done [12:44:53]execute_script returns [12:44:53]free content buf [12:44:53]Sock 7.Close socket [12:44:53]Sock 7.Thread stoped [12:44:57]OFD Sender: No OFD packet to send [12:44:59]accept exits with 9 [12:44:59]New connection [12:44:59]New thread 3067084132 created [12:44:59]Thread 3067227492 joined [12:44:59]Waiting for new connection... [12:44:59] Sock 9.Parse request [12:44:59]Sock 9.Check first char [12:44:59]Sock 9.First char is OK [12:44:59]request: POST /json_proto HTTP/1.0 [12:44:59]Method: POST [12:44:59]URL: /json_proto [12:44:59]Method is POST - this is cgi request [12:44:59]url: /json_proto [12:44:59]query_string will be loaded in cgi processing [12:44:59]execute_cgi json_proto POST (null) [12:44:59]execute_cgi path=json_proto method=POST [12:44:59]POST find Content-Length [12:44:59]Host: 172.17.38.133:8080 [12:44:59]Content-Length: 677 [12:44:59]Content-Type: application/json [12:44:59] [12:44:59]POST finish read [12:44:59]Found Content-Length = 677 [12:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:59]execute_script... [12:44:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:59]POST & json_proto [12:44:59]process_json_proto [12:44:59]json parsed OK: [12:44:59]protocol is kg_v1.0 [12:44:59]action value=close_receipt [12:44:59]process_action close_receipt [12:44:59]cmd_close_receipt [12:44:59]MH_GetDate [12:44:59]Write to MH i2c: F0 00 00 BE 52 FF [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: F0 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: F0 09 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: F0 09 00 BE 52 00 51 81 71 66 BD 8F 7C 64 DD [12:44:59]GetLastDocTimeStamp 1718714696 [12:44:59]current date 1718714705 [12:44:59]FM_GetShiftState [12:44:59]SAM_PROTO_GetShiftState [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 13 01 00 [12:44:59]Write to MH i2c: E2 08 00 BF 52 80 13 01 00 00 00 00 00 8E [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 0E 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 0E 00 BF 52 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0F [12:44:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:44:59]wFMCommunicate OK [12:44:59]SAM_PROTO_GetShiftState done [12:44:59]FM_GetShiftState done [12:44:59]opened in 1718670284 [12:44:59]opened+sec_in_day 1718756684 [12:44:59]quantity*price = 40039 [12:44:59]sum+1 = 40040 [12:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 18.06.2024 12:45 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103403 ФПД: 244998870093726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103403&fm=244998870093726&tin=02508201610067®Number=0000000000092785&sum=40000 [12:45:00]StoreToDocumentArchive [12:45:00]shift 352 fd 103403 [12:45:00]save to /storage/0352/doc_00103403 [12:45:00]save last doc name /storage/0352/doc_00103403 to /storage/kkm_last_doc_name [12:45:00]save OK [12:45:00]Clear old archive folders... [12:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:00]tlvbuf is 013EBD20 [12:45:00]SAM_PROTO_ClearQueue [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 09 00 00 [12:45:00]Write to MH i2c: E2 08 00 CC 52 80 09 00 00 00 00 00 00 90 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 CC 52 00 90 00 92 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]SAM_PROTO_ClearQueue done [12:45:00]KKMCreateOFDPacket [12:45:00]OFDProtocolAddRootSTLVToBuf [12:45:00]FM_MakeSignedData [12:45:00]FM_MakeSignedData [12:45:00]SAM_PROTO_SignData [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 01 02 [12:45:00]Write to MH i2c: E2 08 00 CD 52 80 0D 01 02 00 00 00 00 98 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 CD 52 00 90 00 93 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=255 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 51 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 93 01 00 35 04 06 00 DE [12:45:00]Write to MH i2c: E2 02 01 CE 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 51 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 93 01 00 35 04 06 00 DE 00 00 DE [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=10 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 02 02 05 D3 3E 9F 4F 9E [12:45:00]Write to MH i2c: E2 0D 00 CF 52 80 0D 02 02 05 00 D3 3E 9F 4F 9E 00 00 42 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 03 02 [12:45:00]Write to MH i2c: E2 08 00 D0 52 80 0D 03 02 00 00 00 00 9D [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 D0 52 00 6F 4E 25 93 50 B6 77 84 90 00 14 [12:45:00]RAPDU: 6F 4E 25 93 50 B6 77 84 90 00 [12:45:00]wFMCommunicate OK [12:45:00]SAM_PROTO_SignData done [12:45:00]FM_MakeSignedData done [12:45:00]CreateOFDProtocolMessage [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 11 00 00 [12:45:00]Write to MH i2c: E2 08 00 D1 52 80 11 00 00 00 00 00 00 9D [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 D1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [12:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:45:00]wFMCommunicate OK [12:45:00]CreateOFDProtocolMessage done [12:45:00]OFDSenderStorePacket 103403 [12:45:00]StoreOFDPacket docnum=103403 [12:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2A F4 07 01 A9 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 51 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 93 01 00 35 04 06 00 DE D3 3E 9F 4F 9E 6F 4E 25 93 50 B6 77 84 [12:45:00]CheckFolder [12:45:00]dirname=/storage/ofd_packets [12:45:00]CheckFolder done [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00103403 [12:45:00]NVStorageSaveData ofd_packets/00103403 [12:45:00]File name is /storage/ofd_packets/00103403 [12:45:00]Write 301 bytes [12:45:00]NVStorageSaveData done [12:45:00]OFDSenderStorePacket done [12:45:00]KKMCreateOFDPacket done [12:45:00]NVStorageSaveData kkm_last_timestamp [12:45:00]File name is /storage/kkm_last_timestamp [12:45:00]Write 4 bytes [12:45:00]NVStorageSaveData done [12:45:00]ExternCall_PrintAddStr [12:45:00]wPrintStart [12:45:00]Write to MH i2c: 01 00 00 D2 52 24 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 D2 52 00 00 00 00 00 FF 0F 39 [12:45:00]RasterBufferAndPrint [12:45:00]line Счет N : (1)672567 [12:45:00]line ИНН: 02508201610067 [12:45:00]line Контрольно-Кассовый Чек [12:45:00]line ПРОДАЖА [12:45:00]line ТРК (МРК, ГНК) : 32 [12:45:00]line Товар: 2710124130 [12:45:00]line Аи-92-К-5 [12:45:00]line 6.030 * 66.40 [12:45:00]line = 400.39 [12:45:00]line НДС 12% НСП 1% [12:45:00]line > о реализуемом товаре [12:45:00]line ОКРУГЛЕНИЕ: -0.39 [12:45:00]line ИТОГО: 400.00 [12:45:00]line Внесено: 400.00 [12:45:00]line СДАЧА: 0.00 [12:45:00]line НСП 1% : 3.54 [12:45:00]line НДС 12% : 42.52 [12:45:00]line Наличными: 400.00 [12:45:00]line Безнал.: 0.00 [12:45:00]line Место: АЗС № 120 "Партнер Нефть" [12:45:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:45:00]line СНО: Общий режим [12:45:00]line Чек 87 18.06.2024 12:45 [12:45:00]line Смена: 352 ФФД: 1.0 [12:45:00]line ЗНМ: 0300000164 [12:45:00]line РНМ: 0000000000092785 [12:45:00]line Версия ККМ: 001 [12:45:00]line ФМ: 0000000000875093 [12:45:00]line ФД: 103403 [12:45:00]line ФПД: 244998870093726 [12:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103403&fm=244998870093726&tin=02508201610067®Number=0000000000092785&sum=40000 [12:45:00]written 0, free lines is 4095 [12:45:00]OFD Sender: Processing packet 103403 [packets to send 17, broken 16] [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00103403 [12:45:00]OFD Sender: To server: pG, [12:45:00]CommunicateWithHost lk.salyk.kg:30040 [12:45:00]ConnectInit lk.salyk.kg [12:45:00]Connected sock=10 [12:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2A F4 07 01 A9 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 51 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 93 01 00 35 04 06 00 DE D3 3E 9F 4F 9E 6F 4E 25 93 50 B6 77 84 [12:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AF 18 47 00 19 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 93 01 00 F4 03 04 00 DD 27 71 66 B6 04 01 00 00 20 D7 9C 22 32 3D C3 DE [12:45:01]CommunicateWithHost err = 0 [12:45:01]CheckOFDResponse [12:45:01]1017 (14) - 77093643461234 [12:45:01]1041 (16) - 0000000000875093 [12:45:01]1040 (4) - 103403 [12:45:01]1012 (4) - 18.06.2024 06:23 [12:45:01]1206 (1) - 0 [12:45:01]OFD Sender: Remove packet 103403 [12:45:01]ProducePacketName [12:45:01]name=ofd_packets/00103403 [12:45:01]NVStorageDeleteData [12:45:01]Write to MH i2c: 01 00 00 FD 52 4F [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 07 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: 01 07 00 FD 52 00 00 00 00 00 E1 0C 43 [12:45:01]RasterBufferAndPrint [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]line [12:45:01]written 0, free lines is 3309 [12:45:01]MH_Cut [12:45:01]Write to MH i2c: D1 01 00 04 53 01 29 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 01 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: D1 01 00 04 53 00 28 [12:45:01]Write to MH i2c: 01 00 00 05 53 58 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]OFD Sender: No OFD packet to send [12:45:02]*** Cut start [12:45:02]*** Partial cut [12:45:02]*** CUTSNS_PIN = 1 [12:45:02]*** CUTSNS_PIN = 0 [12:45:02]*** Brake cut motor [12:45:02]Read from MH i2c: 01 [12:45:02]MH_I2C_Read... [12:45:02]*** Stop cut motor [12:45:02]*** Cut end [12:45:02]Read from MH i2c: 01 07 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: 01 07 00 05 53 00 00 00 00 00 FF 0F 6D [12:45:02]process_action close_receipt done [12:45:02]requested_data is exist [12:45:02]produce_requested_data [12:45:02]requested_item fm.sn is exist - process it [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 11 00 00 [12:45:02]Write to MH i2c: E2 08 00 06 53 80 11 00 00 00 00 00 00 D3 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 06 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [12:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:45:02]wFMCommunicate OK [12:45:02]requested_item fd.num is exist - process it [12:45:02]SAM_PROTO_GetFieldsCounters [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 00 00 [12:45:02]Write to MH i2c: E2 08 00 07 53 80 13 00 00 00 00 00 00 D6 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 07 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetFieldsCounters done [12:45:02]requested_item shift.num is exist - process it [12:45:02]requested_item shift.opened is exist - process it [12:45:02]req_shift_opened [12:45:02]FM_GetShiftState [12:45:02]SAM_PROTO_GetShiftState [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 01 00 [12:45:02]Write to MH i2c: E2 08 00 08 53 80 13 01 00 00 00 00 00 D8 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 08 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 59 [12:45:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]req_shift_opened done [12:45:02]requested_item shift.open_date is exist - process it [12:45:02]req_shift_open_date [12:45:02]req_shift_open_date done [12:45:02]produce_requested_data done [12:45:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103403,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:45:02]process_action_free close_receipt [12:45:02]json_value_free [12:45:02]json_value_free done [12:45:02]process_json_proto returns [12:45:02]Send response to host [12:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103403,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:45:02]free response buf [12:45:02]execute_script done [12:45:02]execute_script returns [12:45:02]free content buf [12:45:02]Sock 9.Close socket [12:45:02]Sock 9.Thread stoped [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:33]accept exits with 7 [12:46:33]New connection [12:46:33]New thread 3067227492 created [12:46:33]Thread 3067084132 joined [12:46:33]Waiting for new connection... [12:46:33] Sock 7.Parse request [12:46:33]Sock 7.Check first char [12:46:33]Sock 7.First char is OK [12:46:33]request: POST /json_proto HTTP/1.0 [12:46:33]Method: POST [12:46:33]URL: /json_proto [12:46:33]Method is POST - this is cgi request [12:46:33]url: /json_proto [12:46:33]query_string will be loaded in cgi processing [12:46:33]execute_cgi json_proto POST (null) [12:46:33]execute_cgi path=json_proto method=POST [12:46:33]POST find Content-Length [12:46:33]Host: 172.17.38.133:8080 [12:46:33]Content-Length: 677 [12:46:33]Content-Type: application/json [12:46:33] [12:46:33]POST finish read [12:46:33]Found Content-Length = 677 [12:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:33]execute_script... [12:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:33]POST & json_proto [12:46:33]process_json_proto [12:46:33]json parsed OK: [12:46:33]protocol is kg_v1.0 [12:46:33]action value=close_receipt [12:46:33]process_action close_receipt [12:46:33]cmd_close_receipt [12:46:33]MH_GetDate [12:46:33]Write to MH i2c: F0 00 00 09 53 4B [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 09 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 09 00 09 53 00 B0 81 71 66 BD 8F 7C 64 88 [12:46:33]GetLastDocTimeStamp 1718714705 [12:46:33]current date 1718714800 [12:46:33]FM_GetShiftState [12:46:33]SAM_PROTO_GetShiftState [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 13 01 00 [12:46:33]Write to MH i2c: E2 08 00 0A 53 80 13 01 00 00 00 00 00 DA [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 0A 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 5B [12:46:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:46:33]wFMCommunicate OK [12:46:33]SAM_PROTO_GetShiftState done [12:46:33]FM_GetShiftState done [12:46:33]opened in 1718670284 [12:46:33]opened+sec_in_day 1718756684 [12:46:33]quantity*price = 50065 [12:46:33]sum+1 = 50067 [12:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 88 18.06.2024 12:46 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103404 ФПД: 181160994160674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103404&fm=181160994160674&tin=02508201610067®Number=0000000000092785&sum=50000 [12:46:34]StoreToDocumentArchive [12:46:34]shift 352 fd 103404 [12:46:34]save to /storage/0352/doc_00103404 [12:46:34]save last doc name /storage/0352/doc_00103404 to /storage/kkm_last_doc_name [12:46:34]save OK [12:46:34]Clear old archive folders... [12:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:34]tlvbuf is 0145DE20 [12:46:34]SAM_PROTO_ClearQueue [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 09 00 00 [12:46:34]Write to MH i2c: E2 08 00 17 53 80 09 00 00 00 00 00 00 DC [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 17 53 00 90 00 DE [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_ClearQueue done [12:46:35]KKMCreateOFDPacket [12:46:35]OFDProtocolAddRootSTLVToBuf [12:46:35]FM_MakeSignedData [12:46:35]FM_MakeSignedData [12:46:35]SAM_PROTO_SignData [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 01 02 [12:46:35]Write to MH i2c: E2 08 00 18 53 80 0D 01 02 00 00 00 00 E4 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 18 53 00 90 00 DF [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=255 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B0 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 93 01 00 35 04 06 00 A4 [12:46:35]Write to MH i2c: E2 02 01 19 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B0 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 93 01 00 35 04 06 00 A4 00 00 83 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 19 53 00 90 00 E0 [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=10 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 02 02 05 C3 D4 B4 40 22 [12:46:35]Write to MH i2c: E2 0D 00 1A 53 80 0D 02 02 05 00 C3 D4 B4 40 22 00 00 9E [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 1A 53 00 90 00 E1 [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 03 02 [12:46:35]Write to MH i2c: E2 08 00 1B 53 80 0D 03 02 00 00 00 00 E9 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 1B 53 00 2B C3 4A 67 F8 07 A3 21 90 00 4C [12:46:35]RAPDU: 2B C3 4A 67 F8 07 A3 21 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_SignData done [12:46:35]FM_MakeSignedData done [12:46:35]CreateOFDProtocolMessage [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 11 00 00 [12:46:35]Write to MH i2c: E2 08 00 1C 53 80 11 00 00 00 00 00 00 E9 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 1C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [12:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:46:35]wFMCommunicate OK [12:46:35]CreateOFDProtocolMessage done [12:46:35]OFDSenderStorePacket 103404 [12:46:35]StoreOFDPacket docnum=103404 [12:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 0F 07 01 CF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B0 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 93 01 00 35 04 06 00 A4 C3 D4 B4 40 22 2B C3 4A 67 F8 07 A3 21 [12:46:35]CheckFolder [12:46:35]dirname=/storage/ofd_packets [12:46:35]CheckFolder done [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00103404 [12:46:35]NVStorageSaveData ofd_packets/00103404 [12:46:35]File name is /storage/ofd_packets/00103404 [12:46:35]Write 301 bytes [12:46:35]NVStorageSaveData done [12:46:35]OFDSenderStorePacket done [12:46:35]KKMCreateOFDPacket done [12:46:35]NVStorageSaveData kkm_last_timestamp [12:46:35]File name is /storage/kkm_last_timestamp [12:46:35]Write 4 bytes [12:46:35]NVStorageSaveData done [12:46:35]ExternCall_PrintAddStr [12:46:35]wPrintStart [12:46:35]Write to MH i2c: 01 00 00 1D 53 70 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 1D 53 00 00 00 00 00 FF 0F 85 [12:46:35]RasterBufferAndPrint [12:46:35]line Счет N : (1)672568 [12:46:35]line ИНН: 02508201610067 [12:46:35]line Контрольно-Кассовый Чек [12:46:35]line ПРОДАЖА [12:46:35]line ТРК (МРК, ГНК) : 32 [12:46:35]line Товар: 2710124130 [12:46:35]line Аи-92-К-5 [12:46:35]line 7.540 * 66.40 [12:46:35]line = 500.66 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line ОКРУГЛЕНИЕ: -0.66 [12:46:35]line ИТОГО: 500.00 [12:46:35]line Внесено: 500.00 [12:46:35]line СДАЧА: 0.00 [12:46:35]line НСП 1% : 4.43 [12:46:35]line НДС 12% : 53.17 [12:46:35]line Наличными: 500.00 [12:46:35]line Безнал.: 0.00 [12:46:35]line Место: АЗС № 120 "Партнер Нефть" [12:46:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:46:35]line СНО: Общий режим [12:46:35]line Чек 88 18.06.2024 12:46 [12:46:35]line Смена: 352 ФФД: 1.0 [12:46:35]line ЗНМ: 0300000164 [12:46:35]line РНМ: 0000000000092785 [12:46:35]line Версия ККМ: 001 [12:46:35]line ФМ: 0000000000875093 [12:46:35]line ФД: 103404 [12:46:35]line ФПД: 181160994160674 [12:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124640&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103404&fm=181160994160674&tin=02508201610067®Number=0000000000092785&sum=50000 [12:46:35]OFD Sender: Processing packet 103404 [packets to send 17, broken 16] [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00103404 [12:46:35]OFD Sender: To server: pG, [12:46:35]CommunicateWithHost lk.salyk.kg:30040 [12:46:35]ConnectInit lk.salyk.kg [12:46:35]written 0, free lines is 4095 [12:46:35]Connected sock=10 [12:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 0F 07 01 CF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B0 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 93 01 00 35 04 06 00 A4 C3 D4 B4 40 22 2B C3 4A 67 F8 07 A3 21 [12:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 97 E6 47 00 5C 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 35 30 39 33 10 04 04 00 EC 93 01 00 F4 03 04 00 3C 28 71 66 B6 04 01 00 00 89 34 24 9A 4F F9 3C 28 [12:46:36]CommunicateWithHost err = 0 [12:46:36]CheckOFDResponse [12:46:36]1017 (14) - 77093643461234 [12:46:36]1041 (16) - 0000000000875093 [12:46:36]1040 (4) - 103404 [12:46:36]1012 (4) - 18.06.2024 06:25 [12:46:36]1206 (1) - 0 [12:46:36]OFD Sender: Remove packet 103404 [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00103404 [12:46:36]NVStorageDeleteData [12:46:36]Write to MH i2c: 01 00 00 48 53 9B [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 48 53 00 00 00 00 00 F2 0C A0 [12:46:36]RasterBufferAndPrint [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]written 0, free lines is 3320 [12:46:36]MH_Cut [12:46:36]Write to MH i2c: D1 01 00 4F 53 01 74 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 4F 53 00 73 [12:46:36]Write to MH i2c: 01 00 00 50 53 A3 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]OFD Sender: No OFD packet to send [12:46:37]*** Cut start [12:46:37]*** Partial cut [12:46:37]*** CUTSNS_PIN = 1 [12:46:37]*** CUTSNS_PIN = 0 [12:46:37]*** Brake cut motor [12:46:37]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]*** Stop cut motor [12:46:37]*** Cut end [12:46:37]Read from MH i2c: 01 07 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: 01 07 00 50 53 00 00 00 00 00 FF 0F B8 [12:46:37]process_action close_receipt done [12:46:37]requested_data is exist [12:46:37]produce_requested_data [12:46:37]requested_item fm.sn is exist - process it [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 11 00 00 [12:46:37]Write to MH i2c: E2 08 00 51 53 80 11 00 00 00 00 00 00 1E [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 17 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 17 00 51 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [12:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:46:37]wFMCommunicate OK [12:46:37]requested_item fd.num is exist - process it [12:46:37]SAM_PROTO_GetFieldsCounters [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 13 00 00 [12:46:37]Write to MH i2c: E2 08 00 52 53 80 13 00 00 00 00 00 00 21 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 62 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 62 00 52 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [12:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:37]wFMCommunicate OK [12:46:37]SAM_PROTO_GetFieldsCounters done [12:46:37]requested_item shift.num is exist - process it [12:46:37]requested_item shift.opened is exist - process it [12:46:37]req_shift_opened [12:46:37]FM_GetShiftState [12:46:37]SAM_PROTO_GetShiftState [12:46:37]wFMCommunicate request_size=4 [12:46:37]MH_SAM_APDU [12:46:37]CAPDU: 80 13 01 00 [12:46:37]Write to MH i2c: E2 08 00 53 53 80 13 01 00 00 00 00 00 23 [12:46:37]Write i2c OK [12:46:37]MH_I2C_Read... [12:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:37]Read from MH i2c: E2 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 [12:46:37]MH_I2C_Read... [12:46:37]Read from MH i2c: E2 0E 00 53 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A4 [12:46:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:46:37]wFMCommunicate OK [12:46:37]SAM_PROTO_GetShiftState done [12:46:37]FM_GetShiftState done [12:46:37]req_shift_opened done [12:46:37]requested_item shift.open_date is exist - process it [12:46:37]req_shift_open_date [12:46:37]req_shift_open_date done [12:46:37]produce_requested_data done [12:46:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103404,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:46:37]process_action_free close_receipt [12:46:37]json_value_free [12:46:37]json_value_free done [12:46:37]process_json_proto returns [12:46:37]Send response to host [12:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103404,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:46:37]free response buf [12:46:37]execute_script done [12:46:37]execute_script returns [12:46:37]free content buf [12:46:37]Sock 7.Close socket [12:46:37]Sock 7.Thread stoped [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:43]accept exits with 9 [12:47:43]New connection [12:47:43]New thread 3067084132 created [12:47:43]Thread 3067227492 joined [12:47:43]Waiting for new connection... [12:47:43] Sock 9.Parse request [12:47:43]Sock 9.Check first char [12:47:43]Sock 9.First char is OK [12:47:43]request: POST /json_proto HTTP/1.0 [12:47:43]Method: POST [12:47:43]URL: /json_proto [12:47:43]Method is POST - this is cgi request [12:47:43]url: /json_proto [12:47:43]query_string will be loaded in cgi processing [12:47:43]execute_cgi json_proto POST (null) [12:47:43]execute_cgi path=json_proto method=POST [12:47:43]POST find Content-Length [12:47:43]Host: 172.17.38.133:8080 [12:47:43]Content-Length: 678 [12:47:43]Content-Type: application/json [12:47:43] [12:47:43]POST finish read [12:47:43]Found Content-Length = 678 [12:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:43]execute_script... [12:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:43]POST & json_proto [12:47:43]process_json_proto [12:47:43]json parsed OK: [12:47:43]protocol is kg_v1.0 [12:47:43]action value=close_receipt [12:47:43]process_action close_receipt [12:47:43]cmd_close_receipt [12:47:43]MH_GetDate [12:47:43]Write to MH i2c: F0 00 00 54 53 96 [12:47:43]Write i2c OK [12:47:43]MH_I2C_Read... [12:47:43]Read from MH i2c: F0 [12:47:43]MH_I2C_Read... [12:47:43]Read from MH i2c: F0 09 00 [12:47:43]MH_I2C_Read... [12:47:43]Read from MH i2c: F0 09 00 54 53 00 F6 81 71 66 BD 8F 7C 64 19 [12:47:43]GetLastDocTimeStamp 1718714800 [12:47:43]current date 1718714870 [12:47:43]FM_GetShiftState [12:47:43]SAM_PROTO_GetShiftState [12:47:43]wFMCommunicate request_size=4 [12:47:43]MH_SAM_APDU [12:47:43]CAPDU: 80 13 01 00 [12:47:43]Write to MH i2c: E2 08 00 55 53 80 13 01 00 00 00 00 00 25 [12:47:43]Write i2c OK [12:47:43]MH_I2C_Read... [12:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:43]Read from MH i2c: E2 [12:47:43]MH_I2C_Read... [12:47:43]Read from MH i2c: E2 0E 00 [12:47:43]MH_I2C_Read... [12:47:43]Read from MH i2c: E2 0E 00 55 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A6 [12:47:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:47:43]wFMCommunicate OK [12:47:43]SAM_PROTO_GetShiftState done [12:47:43]FM_GetShiftState done [12:47:43]opened in 1718670284 [12:47:43]opened+sec_in_day 1718756684 [12:47:43]quantity*price = 70052 [12:47:43]sum+1 = 70053 [12:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 89 18.06.2024 12:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103405 ФПД: 62515989097519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124750&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103405&fm=62515989097519&tin=02508201610067®Number=0000000000092785&sum=70000 [12:47:44]StoreToDocumentArchive [12:47:44]shift 352 fd 103405 [12:47:44]save to /storage/0352/doc_00103405 [12:47:44]save last doc name /storage/0352/doc_00103405 to /storage/kkm_last_doc_name [12:47:44]save OK [12:47:44]Clear old archive folders... [12:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:44]tlvbuf is 014ABD90 [12:47:44]SAM_PROTO_ClearQueue [12:47:44]wFMCommunicate request_size=4 [12:47:44]MH_SAM_APDU [12:47:44]CAPDU: 80 09 00 00 [12:47:44]Write to MH i2c: E2 08 00 62 53 80 09 00 00 00 00 00 00 27 [12:47:44]Write i2c OK [12:47:44]MH_I2C_Read... [12:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:44]Read from MH i2c: E2 [12:47:44]MH_I2C_Read... [12:47:44]Read from MH i2c: E2 03 00 [12:47:44]MH_I2C_Read... [12:47:44]Read from MH i2c: E2 03 00 62 53 00 90 00 29 [12:47:44]RAPDU: 90 00 [12:47:44]wFMCommunicate OK [12:47:44]SAM_PROTO_ClearQueue done [12:47:44]KKMCreateOFDPacket [12:47:44]OFDProtocolAddRootSTLVToBuf [12:47:44]FM_MakeSignedData [12:47:44]FM_MakeSignedData [12:47:44]SAM_PROTO_SignData [12:47:44]wFMCommunicate request_size=4 [12:47:44]MH_SAM_APDU [12:47:44]CAPDU: 80 0D 01 02 [12:47:44]Write to MH i2c: E2 08 00 63 53 80 0D 01 02 00 00 00 00 2F [12:47:44]Write i2c OK [12:47:44]MH_I2C_Read... [12:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:44]Read from MH i2c: E2 [12:47:44]MH_I2C_Read... [12:47:44]Read from MH i2c: E2 03 00 [12:47:44]MH_I2C_Read... [12:47:44]Read from MH i2c: E2 03 00 63 53 00 90 00 2A [12:47:44]RAPDU: 90 00 [12:47:44]wFMCommunicate OK [12:47:44]wFMCommunicate request_size=255 [12:47:44]MH_SAM_APDU [12:47:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F6 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 93 01 00 35 04 06 00 38 [12:47:44]Write to MH i2c: E2 02 01 64 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F6 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 93 01 00 35 04 06 00 38 00 00 BC [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:45]Read from MH i2c: E2 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 03 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 03 00 64 53 00 90 00 2B [12:47:45]RAPDU: 90 00 [12:47:45]wFMCommunicate OK [12:47:45]wFMCommunicate request_size=10 [12:47:45]MH_SAM_APDU [12:47:45]CAPDU: 80 0D 02 02 05 DB A3 52 AC 2F [12:47:45]Write to MH i2c: E2 0D 00 65 53 80 0D 02 02 05 00 DB A3 52 AC 2F 00 00 E7 [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:45]Read from MH i2c: E2 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 03 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 03 00 65 53 00 90 00 2C [12:47:45]RAPDU: 90 00 [12:47:45]wFMCommunicate OK [12:47:45]wFMCommunicate request_size=4 [12:47:45]MH_SAM_APDU [12:47:45]CAPDU: 80 0D 03 02 [12:47:45]Write to MH i2c: E2 08 00 66 53 80 0D 03 02 00 00 00 00 34 [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:45]Read from MH i2c: E2 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 0B 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 0B 00 66 53 00 7F 1A 81 FD 8B 6C 12 2D 90 00 82 [12:47:45]RAPDU: 7F 1A 81 FD 8B 6C 12 2D 90 00 [12:47:45]wFMCommunicate OK [12:47:45]SAM_PROTO_SignData done [12:47:45]FM_MakeSignedData done [12:47:45]CreateOFDProtocolMessage [12:47:45]wFMCommunicate request_size=4 [12:47:45]MH_SAM_APDU [12:47:45]CAPDU: 80 11 00 00 [12:47:45]Write to MH i2c: E2 08 00 67 53 80 11 00 00 00 00 00 00 34 [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:45]Read from MH i2c: E2 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 17 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 17 00 67 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [12:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:45]wFMCommunicate OK [12:47:45]CreateOFDProtocolMessage done [12:47:45]OFDSenderStorePacket 103405 [12:47:45]StoreOFDPacket docnum=103405 [12:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0A 12 07 01 78 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F6 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 93 01 00 35 04 06 00 38 DB A3 52 AC 2F 7F 1A 81 FD 8B 6C 12 2D [12:47:45]CheckFolder [12:47:45]dirname=/storage/ofd_packets [12:47:45]CheckFolder done [12:47:45]ProducePacketName [12:47:45]name=ofd_packets/00103405 [12:47:45]NVStorageSaveData ofd_packets/00103405 [12:47:45]File name is /storage/ofd_packets/00103405 [12:47:45]Write 301 bytes [12:47:45]NVStorageSaveData done [12:47:45]OFDSenderStorePacket done [12:47:45]KKMCreateOFDPacket done [12:47:45]NVStorageSaveData kkm_last_timestamp [12:47:45]File name is /storage/kkm_last_timestamp [12:47:45]Write 4 bytes [12:47:45]NVStorageSaveData done [12:47:45]ExternCall_PrintAddStr [12:47:45]wPrintStart [12:47:45]Write to MH i2c: 01 00 00 68 53 BB [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: 01 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: 01 07 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: 01 07 00 68 53 00 00 00 00 00 FF 0F D0 [12:47:45]RasterBufferAndPrint [12:47:45]line Счет N : (1)672570 [12:47:45]line ИНН: 02508201610067 [12:47:45]line Контрольно-Кассовый Чек [12:47:45]line ПРОДАЖА [12:47:45]line ТРК (МРК, ГНК) : 32 [12:47:45]line Товар: 2710124130 [12:47:45]line Аи-92-К-5 [12:47:45]line 10.550 * 66.40 [12:47:45]line = 700.52 [12:47:45]line НДС 12% НСП 1% [12:47:45]line > о реализуемом товаре [12:47:45]line ОКРУГЛЕНИЕ: -0.52 [12:47:45]line ИТОГО: 700.00 [12:47:45]line Внесено: 700.00 [12:47:45]line СДАЧА: 0.00 [12:47:45]line НСП 1% : 6.20 [12:47:45]line НДС 12% : 74.39 [12:47:45]line Наличными: 700.00 [12:47:45]line Безнал.: 0.00 [12:47:45]line Место: АЗС № 120 "Партнер Нефть" [12:47:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:47:45]line СНО: Общий режим [12:47:45]line Чек 89 18.06.2024 12:47 [12:47:45]line Смена: 352 ФФД: 1.0 [12:47:45]line ЗНМ: 0300000164 [12:47:45]line РНМ: 0000000000092785 [12:47:45]line Версия ККМ: 001 [12:47:45]line ФМ: 0000000000875093 [12:47:45]line ФД: 103405 [12:47:45]line ФПД: 62515989097519 [12:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124750&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103405&fm=62515989097519&tin=02508201610067®Number=0000000000092785&sum=70000 [12:47:45]OFD Sender: Processing packet 103405 [packets to send 17, broken 16] [12:47:45]ProducePacketName [12:47:45]name=ofd_packets/00103405 [12:47:45]OFD Sender: To server: pG, [12:47:45]CommunicateWithHost lk.salyk.kg:30040 [12:47:45]ConnectInit lk.salyk.kg [12:47:45]written 0, free lines is 4095 [12:47:45]Connected sock=10 [12:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0A 12 07 01 78 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 F6 81 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 93 01 00 35 04 06 00 38 DB A3 52 AC 2F 7F 1A 81 FD 8B 6C 12 2D [12:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7E 5C 47 00 4C 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 93 01 00 F4 03 04 00 82 28 71 66 B6 04 01 00 00 6C 3D 00 F7 99 BB 95 E2 [12:47:46]CommunicateWithHost err = 0 [12:47:46]CheckOFDResponse [12:47:46]1017 (14) - 77093643461234 [12:47:46]1041 (16) - 0000000000875093 [12:47:46]1040 (4) - 103405 [12:47:46]1012 (4) - 18.06.2024 06:26 [12:47:46]1206 (1) - 0 [12:47:46]OFD Sender: Remove packet 103405 [12:47:46]ProducePacketName [12:47:46]name=ofd_packets/00103405 [12:47:46]NVStorageDeleteData [12:47:46]Write to MH i2c: 01 00 00 93 53 E6 [12:47:46]Write i2c OK [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: 01 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: 01 07 00 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: 01 07 00 93 53 00 00 00 00 00 F2 0C EB [12:47:46]RasterBufferAndPrint [12:47:46]line [12:47:46]line [12:47:46]line [12:47:46]line [12:47:46]line [12:47:46]written 0, free lines is 3320 [12:47:46]MH_Cut [12:47:46]Write to MH i2c: D1 01 00 9A 53 01 BF [12:47:46]Write i2c OK [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: D1 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: D1 01 00 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: D1 01 00 9A 53 00 BE [12:47:46]Write to MH i2c: 01 00 00 9B 53 EE [12:47:46]Write i2c OK [12:47:46]MH_I2C_Read... [12:47:46]OFD Sender: No OFD packet to send [12:47:46]*** Cut start [12:47:46]*** Partial cut [12:47:46]*** CUTSNS_PIN = 1 [12:47:47]*** CUTSNS_PIN = 0 [12:47:47]*** Brake cut motor [12:47:47]Read from MH i2c: 01 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: 01 07 00 [12:47:47]MH_I2C_Read... [12:47:47]*** Stop cut motor [12:47:47]*** Cut end [12:47:47]Read from MH i2c: 01 07 00 9B 53 00 00 00 00 00 FF 0F 03 [12:47:47]process_action close_receipt done [12:47:47]requested_data is exist [12:47:47]produce_requested_data [12:47:47]requested_item fm.sn is exist - process it [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 11 00 00 [12:47:47]Write to MH i2c: E2 08 00 9C 53 80 11 00 00 00 00 00 00 69 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 17 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 17 00 9C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [12:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:47]wFMCommunicate OK [12:47:47]requested_item fd.num is exist - process it [12:47:47]SAM_PROTO_GetFieldsCounters [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 13 00 00 [12:47:47]Write to MH i2c: E2 08 00 9D 53 80 13 00 00 00 00 00 00 6C [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 62 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 62 00 9D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:47: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_GetFieldsCounters done [12:47:47]requested_item shift.num is exist - process it [12:47:47]requested_item shift.opened is exist - process it [12:47:47]req_shift_opened [12:47:47]FM_GetShiftState [12:47:47]SAM_PROTO_GetShiftState [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 13 01 00 [12:47:47]Write to MH i2c: E2 08 00 9E 53 80 13 01 00 00 00 00 00 6E [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0E 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0E 00 9E 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 EF [12:47:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_GetShiftState done [12:47:47]FM_GetShiftState done [12:47:47]req_shift_opened done [12:47:47]requested_item shift.open_date is exist - process it [12:47:47]req_shift_open_date [12:47:47]req_shift_open_date done [12:47:47]produce_requested_data done [12:47:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103405,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:47:47]process_action_free close_receipt [12:47:47]json_value_free [12:47:47]json_value_free done [12:47:47]process_json_proto returns [12:47:47]Send response to host [12:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103405,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:47:47]free response buf [12:47:47]execute_script done [12:47:47]execute_script returns [12:47:47]free content buf [12:47:47]Sock 9.Close socket [12:47:47]Sock 9.Thread stoped [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:08]accept exits with 7 [12:48:08]New connection [12:48:08]New thread 3067227492 created [12:48:08]Thread 3067084132 joined [12:48:08]Waiting for new connection... [12:48:08] Sock 7.Parse request [12:48:08]Sock 7.Check first char [12:48:08]Sock 7.First char is OK [12:48:08]request: POST /json_proto HTTP/1.0 [12:48:08]Method: POST [12:48:08]URL: /json_proto [12:48:08]Method is POST - this is cgi request [12:48:08]url: /json_proto [12:48:08]query_string will be loaded in cgi processing [12:48:08]execute_cgi json_proto POST (null) [12:48:08]execute_cgi path=json_proto method=POST [12:48:08]POST find Content-Length [12:48:08]Host: 172.17.38.133:8080 [12:48:08]Content-Length: 682 [12:48:08]Content-Type: application/json [12:48:08] [12:48:08]POST finish read [12:48:08]Found Content-Length = 682 [12:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:08]execute_script... [12:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:08]POST & json_proto [12:48:08]process_json_proto [12:48:08]json parsed OK: [12:48:08]protocol is kg_v1.0 [12:48:08]action value=close_receipt [12:48:08]process_action close_receipt [12:48:08]cmd_close_receipt [12:48:08]MH_GetDate [12:48:08]Write to MH i2c: F0 00 00 9F 53 E1 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: F0 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: F0 09 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: F0 09 00 9F 53 00 0F 82 71 66 BD 8F 7C 64 7E [12:48:08]GetLastDocTimeStamp 1718714870 [12:48:08]current date 1718714895 [12:48:08]FM_GetShiftState [12:48:08]SAM_PROTO_GetShiftState [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 13 01 00 [12:48:08]Write to MH i2c: E2 08 00 A0 53 80 13 01 00 00 00 00 00 70 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0E 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0E 00 A0 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F1 [12:48:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:48:08]wFMCommunicate OK [12:48:08]SAM_PROTO_GetShiftState done [12:48:08]FM_GetShiftState done [12:48:08]opened in 1718670284 [12:48:08]opened+sec_in_day 1718756684 [12:48:08]quantity*price = 100060 [12:48:08]sum+1 = 100062 [12:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 90 18.06.2024 12:48 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103406 ФПД: 98941300797241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124815&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103406&fm=98941300797241&tin=02508201610067®Number=0000000000092785&sum=100000 [12:48:09]StoreToDocumentArchive [12:48:09]shift 352 fd 103406 [12:48:09]save to /storage/0352/doc_00103406 [12:48:09]save last doc name /storage/0352/doc_00103406 to /storage/kkm_last_doc_name [12:48:09]save OK [12:48:09]Clear old archive folders... [12:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:09]tlvbuf is 01383E50 [12:48:09]SAM_PROTO_ClearQueue [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 09 00 00 [12:48:09]Write to MH i2c: E2 08 00 AD 53 80 09 00 00 00 00 00 00 72 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 AD 53 00 90 00 74 [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_ClearQueue done [12:48:09]KKMCreateOFDPacket [12:48:09]OFDProtocolAddRootSTLVToBuf [12:48:09]FM_MakeSignedData [12:48:09]FM_MakeSignedData [12:48:09]SAM_PROTO_SignData [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 01 02 [12:48:09]Write to MH i2c: E2 08 00 AE 53 80 0D 01 02 00 00 00 00 7A [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 AE 53 00 90 00 75 [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]wFMCommunicate request_size=255 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0F 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 93 01 00 35 04 06 00 59 [12:48:09]Write to MH i2c: E2 02 01 AF 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0F 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 93 01 00 35 04 06 00 59 00 00 73 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 AF 53 00 90 00 76 [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]wFMCommunicate request_size=10 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 02 02 05 FC 91 16 6F 39 [12:48:09]Write to MH i2c: E2 0D 00 B0 53 80 0D 02 02 05 00 FC 91 16 6F 39 00 00 D2 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 03 02 [12:48:09]Write to MH i2c: E2 08 00 B1 53 80 0D 03 02 00 00 00 00 7F [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0B 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0B 00 B1 53 00 7A B9 E5 D4 CA 17 29 6C 90 00 E2 [12:48:09]RAPDU: 7A B9 E5 D4 CA 17 29 6C 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_SignData done [12:48:09]FM_MakeSignedData done [12:48:09]CreateOFDProtocolMessage [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 11 00 00 [12:48:09]Write to MH i2c: E2 08 00 B2 53 80 11 00 00 00 00 00 00 7F [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 17 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 17 00 B2 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [12:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:10]wFMCommunicate OK [12:48:10]CreateOFDProtocolMessage done [12:48:10]OFDSenderStorePacket 103406 [12:48:10]StoreOFDPacket docnum=103406 [12:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 55 07 01 24 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0F 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 93 01 00 35 04 06 00 59 FC 91 16 6F 39 7A B9 E5 D4 CA 17 29 6C [12:48:10]CheckFolder [12:48:10]dirname=/storage/ofd_packets [12:48:10]CheckFolder done [12:48:10]ProducePacketName [12:48:10]name=ofd_packets/00103406 [12:48:10]NVStorageSaveData ofd_packets/00103406 [12:48:10]File name is /storage/ofd_packets/00103406 [12:48:10]Write 301 bytes [12:48:10]NVStorageSaveData done [12:48:10]OFDSenderStorePacket done [12:48:10]KKMCreateOFDPacket done [12:48:10]NVStorageSaveData kkm_last_timestamp [12:48:10]File name is /storage/kkm_last_timestamp [12:48:10]Write 4 bytes [12:48:10]NVStorageSaveData done [12:48:10]ExternCall_PrintAddStr [12:48:10]wPrintStart [12:48:10]Write to MH i2c: 01 00 00 B3 53 06 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [12:48:10]RasterBufferAndPrint [12:48:10]line Счет N : (1)672569 [12:48:10]line ИНН: 02508201610067 [12:48:10]line Контрольно-Кассовый Чек [12:48:10]line ПРОДАЖА [12:48:10]line ТРК (МРК, ГНК) : 41 [12:48:10]line Товар: 2710124500 [12:48:10]line Аи-95-К-5 [12:48:10]line 13.540 * 73.90 [12:48:10]line = 1000.61 [12:48:10]line НДС 12% НСП 1% [12:48:10]line > о реализуемом товаре [12:48:10]line ОКРУГЛЕНИЕ: -0.61 [12:48:10]line ИТОГО: 1000.00 [12:48:10]line Внесено: 1000.00 [12:48:10]line СДАЧА: 0.00 [12:48:10]line НСП 1% : 8.85 [12:48:10]line НДС 12% : 106.26 [12:48:10]line Наличными: 1000.00 [12:48:10]line Безнал.: 0.00 [12:48:10]line Место: АЗС № 120 "Партнер Нефть" [12:48:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:48:10]line СНО: Общий режим [12:48:10]line Чек 90 18.06.2024 12:48 [12:48:10]line Смена: 352 ФФД: 1.0 [12:48:10]line ЗНМ: 0300000164 [12:48:10]line РНМ: 0000000000092785 [12:48:10]line Версия ККМ: 001 [12:48:10]line ФМ: 0000000000875093 [12:48:10]line ФД: 103406 [12:48:10]line ФПД: 98941300797241 [12:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124815&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103406&fm=98941300797241&tin=02508201610067®Number=0000000000092785&sum=100000 [12:48:10]OFD Sender: Processing packet 103406 [packets to send 17, broken 16] [12:48:10]ProducePacketName [12:48:10]name=ofd_packets/00103406 [12:48:10]OFD Sender: To server: pG, [12:48:10]CommunicateWithHost lk.salyk.kg:30040 [12:48:10]ConnectInit lk.salyk.kg [12:48:10]written 0, free lines is 4095 [12:48:10]Connected sock=10 [12:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 55 07 01 24 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0F 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 93 01 00 35 04 06 00 59 FC 91 16 6F 39 7A B9 E5 D4 CA 17 29 6C [12:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E9 BA 47 00 CC 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 93 01 00 F4 03 04 00 9B 28 71 66 B6 04 01 00 00 8D 08 DC 63 85 33 5C 39 [12:48:10]CommunicateWithHost err = 0 [12:48:10]CheckOFDResponse [12:48:10]1017 (14) - 77093643461234 [12:48:10]1041 (16) - 0000000000875093 [12:48:10]1040 (4) - 103406 [12:48:10]1012 (4) - 18.06.2024 06:26 [12:48:10]1206 (1) - 0 [12:48:10]OFD Sender: Remove packet 103406 [12:48:10]ProducePacketName [12:48:10]name=ofd_packets/00103406 [12:48:10]NVStorageDeleteData [12:48:10]Write to MH i2c: 01 00 00 DE 53 31 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 DE 53 00 00 00 00 00 F0 0C 34 [12:48:10]RasterBufferAndPrint [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]written 0, free lines is 3318 [12:48:10]MH_Cut [12:48:10]Write to MH i2c: D1 01 00 E5 53 01 0A [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 01 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 01 00 E5 53 00 09 [12:48:10]Write to MH i2c: 01 00 00 E6 53 39 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:11]OFD Sender: No OFD packet to send [12:48:11]*** Cut start [12:48:11]*** Partial cut [12:48:11]*** CUTSNS_PIN = 1 [12:48:11]*** CUTSNS_PIN = 0 [12:48:11]*** Brake cut motor [12:48:12]Read from MH i2c: 01 [12:48:12]MH_I2C_Read... [12:48:12]*** Stop cut motor [12:48:12]*** Cut end [12:48:12]Read from MH i2c: 01 07 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: 01 07 00 E6 53 00 00 00 00 00 FF 0F 4E [12:48:12]process_action close_receipt done [12:48:12]requested_data is exist [12:48:12]produce_requested_data [12:48:12]requested_item fm.sn is exist - process it [12:48:12]wFMCommunicate request_size=4 [12:48:12]MH_SAM_APDU [12:48:12]CAPDU: 80 11 00 00 [12:48:12]Write to MH i2c: E2 08 00 E7 53 80 11 00 00 00 00 00 00 B4 [12:48:12]Write i2c OK [12:48:12]MH_I2C_Read... [12:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:12]Read from MH i2c: E2 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 17 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 17 00 E7 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [12:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:12]wFMCommunicate OK [12:48:12]requested_item fd.num is exist - process it [12:48:12]SAM_PROTO_GetFieldsCounters [12:48:12]wFMCommunicate request_size=4 [12:48:12]MH_SAM_APDU [12:48:12]CAPDU: 80 13 00 00 [12:48:12]Write to MH i2c: E2 08 00 E8 53 80 13 00 00 00 00 00 00 B7 [12:48:12]Write i2c OK [12:48:12]MH_I2C_Read... [12:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:12]Read from MH i2c: E2 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 62 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 62 00 E8 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:12]wFMCommunicate OK [12:48:12]SAM_PROTO_GetFieldsCounters done [12:48:12]requested_item shift.num is exist - process it [12:48:12]requested_item shift.opened is exist - process it [12:48:12]req_shift_opened [12:48:12]FM_GetShiftState [12:48:12]SAM_PROTO_GetShiftState [12:48:12]wFMCommunicate request_size=4 [12:48:12]MH_SAM_APDU [12:48:12]CAPDU: 80 13 01 00 [12:48:12]Write to MH i2c: E2 08 00 E9 53 80 13 01 00 00 00 00 00 B9 [12:48:12]Write i2c OK [12:48:12]MH_I2C_Read... [12:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:12]Read from MH i2c: E2 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 0E 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 0E 00 E9 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3A [12:48:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:48:12]wFMCommunicate OK [12:48:12]SAM_PROTO_GetShiftState done [12:48:12]FM_GetShiftState done [12:48:12]req_shift_opened done [12:48:12]requested_item shift.open_date is exist - process it [12:48:12]req_shift_open_date [12:48:12]req_shift_open_date done [12:48:12]produce_requested_data done [12:48:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103406,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:48:12]process_action_free close_receipt [12:48:12]json_value_free [12:48:12]json_value_free done [12:48:12]process_json_proto returns [12:48:12]Send response to host [12:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103406,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:48:12]free response buf [12:48:12]execute_script done [12:48:12]execute_script returns [12:48:12]free content buf [12:48:12]Sock 7.Close socket [12:48:12]Sock 7.Thread stoped [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:34]accept exits with 9 [12:48:34]New connection [12:48:34]New thread 3067084132 created [12:48:34]Thread 3067227492 joined [12:48:34]Waiting for new connection... [12:48:34] Sock 9.Parse request [12:48:34]Sock 9.Check first char [12:48:34]Sock 9.First char is OK [12:48:34]request: POST /json_proto HTTP/1.0 [12:48:34]Method: POST [12:48:34]URL: /json_proto [12:48:34]Method is POST - this is cgi request [12:48:34]url: /json_proto [12:48:34]query_string will be loaded in cgi processing [12:48:34]execute_cgi json_proto POST (null) [12:48:34]execute_cgi path=json_proto method=POST [12:48:34]POST find Content-Length [12:48:34]Host: 172.17.38.133:8080 [12:48:34]Content-Length: 683 [12:48:34]Content-Type: application/json [12:48:34] [12:48:34]POST finish read [12:48:34]Found Content-Length = 683 [12:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 11.940, "sum" : 870.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:34]execute_script... [12:48:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 11.940, "sum" : 870.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:34]POST & json_proto [12:48:34]process_json_proto [12:48:34]json parsed OK: [12:48:34]protocol is kg_v1.0 [12:48:34]action value=close_receipt [12:48:34]process_action close_receipt [12:48:34]cmd_close_receipt [12:48:34]MH_GetDate [12:48:34]Write to MH i2c: F0 00 00 EA 53 2C [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 EA 53 00 29 82 71 66 BD 8F 7C 64 E3 [12:48:34]GetLastDocTimeStamp 1718714895 [12:48:34]current date 1718714921 [12:48:34]FM_GetShiftState [12:48:34]SAM_PROTO_GetShiftState [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 13 01 00 [12:48:34]Write to MH i2c: E2 08 00 EB 53 80 13 01 00 00 00 00 00 BB [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 EB 53 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3C [12:48:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_GetShiftState done [12:48:34]FM_GetShiftState done [12:48:34]opened in 1718670284 [12:48:34]opened+sec_in_day 1718756684 [12:48:34]quantity*price = 87042 [12:48:34]sum+1 = 87044 [12:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.43 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 91 18.06.2024 12:48 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103407 ФПД: 248915207258410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103407&fm=248915207258410&tin=02508201610067®Number=0000000000092785&sum=87000 [12:48:35]StoreToDocumentArchive [12:48:35]shift 352 fd 103407 [12:48:35]save to /storage/0352/doc_00103407 [12:48:35]save last doc name /storage/0352/doc_00103407 to /storage/kkm_last_doc_name [12:48:35]save OK [12:48:35]Clear old archive folders... [12:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:48:35]tlvbuf is 0137F370 [12:48:35]SAM_PROTO_ClearQueue [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 09 00 00 [12:48:35]Write to MH i2c: E2 08 00 F8 53 80 09 00 00 00 00 00 00 BD [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_ClearQueue done [12:48:35]KKMCreateOFDPacket [12:48:35]OFDProtocolAddRootSTLVToBuf [12:48:35]FM_MakeSignedData [12:48:35]FM_MakeSignedData [12:48:35]SAM_PROTO_SignData [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 01 02 [12:48:35]Write to MH i2c: E2 08 00 F9 53 80 0D 01 02 00 00 00 00 C5 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 F9 53 00 90 00 C0 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=255 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 29 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 93 01 00 35 04 06 00 [12:48:35]Write to MH i2c: E2 02 01 FA 53 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 29 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 93 01 00 35 04 06 00 00 00 2D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=11 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 06 E2 63 16 82 01 2A [12:48:35]Write to MH i2c: E2 0E 00 FB 53 80 0D 02 02 06 00 E2 63 16 82 01 2A 00 00 DC [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 03 02 [12:48:35]Write to MH i2c: E2 08 00 FC 53 80 0D 03 02 00 00 00 00 CA [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 0B 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 0B 00 FC 53 00 D6 F8 BC B9 A8 E9 D7 F4 90 00 6A [12:48:36]RAPDU: D6 F8 BC B9 A8 E9 D7 F4 90 00 [12:48:36]wFMCommunicate OK [12:48:36]SAM_PROTO_SignData done [12:48:36]FM_MakeSignedData done [12:48:36]CreateOFDProtocolMessage [12:48:36]wFMCommunicate request_size=4 [12:48:36]MH_SAM_APDU [12:48:36]CAPDU: 80 11 00 00 [12:48:36]Write to MH i2c: E2 08 00 FD 53 80 11 00 00 00 00 00 00 CA [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 17 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 17 00 FD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [12:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:36]wFMCommunicate OK [12:48:36]CreateOFDProtocolMessage done [12:48:36]OFDSenderStorePacket 103407 [12:48:36]StoreOFDPacket docnum=103407 [12:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D7 32 08 01 E0 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 29 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 93 01 00 35 04 06 00 E2 63 16 82 01 2A D6 F8 BC B9 A8 E9 D7 F4 [12:48:36]CheckFolder [12:48:36]dirname=/storage/ofd_packets [12:48:36]CheckFolder done [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00103407 [12:48:36]NVStorageSaveData ofd_packets/00103407 [12:48:36]File name is /storage/ofd_packets/00103407 [12:48:36]Write 302 bytes [12:48:36]NVStorageSaveData done [12:48:36]OFDSenderStorePacket done [12:48:36]KKMCreateOFDPacket done [12:48:36]NVStorageSaveData kkm_last_timestamp [12:48:36]File name is /storage/kkm_last_timestamp [12:48:36]Write 4 bytes [12:48:36]NVStorageSaveData done [12:48:36]ExternCall_PrintAddStr [12:48:36]wPrintStart [12:48:36]Write to MH i2c: 01 00 00 FE 53 51 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 FF 0F 66 [12:48:36]RasterBufferAndPrint [12:48:36]line Счет N : (1)672571 [12:48:36]line ИНН: 02508201610067 [12:48:36]line Контрольно-Кассовый Чек [12:48:36]line ПРОДАЖА [12:48:36]line ТРК (МРК, ГНК) : 21 [12:48:36]line Товар: 2710194210 [12:48:36]line ДТ(л)-К-5 [12:48:36]line 11.940 * 72.90 [12:48:36]line = 870.43 [12:48:36]line НДС 12% НСП 1% [12:48:36]line > о реализуемом товаре [12:48:36]line ОКРУГЛЕНИЕ: -0.43 [12:48:36]line ИТОГО: 870.00 [12:48:36]line Внесено: 870.00 [12:48:36]line СДАЧА: 0.00 [12:48:36]line НСП 1% : 7.70 [12:48:36]line НДС 12% : 92.43 [12:48:36]line Наличными: 870.00 [12:48:36]line Безнал.: 0.00 [12:48:36]line Место: АЗС № 120 "Партнер Нефть" [12:48:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:48:36]line СНО: Общий режим [12:48:36]line Чек 91 18.06.2024 12:48 [12:48:36]line Смена: 352 ФФД: 1.0 [12:48:36]line ЗНМ: 0300000164 [12:48:36]line РНМ: 0000000000092785 [12:48:36]line Версия ККМ: 001 [12:48:36]line ФМ: 0000000000875093 [12:48:36]line ФД: 103407 [12:48:36]line ФПД: 248915207258410 [12:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T124841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103407&fm=248915207258410&tin=02508201610067®Number=0000000000092785&sum=87000 [12:48:36]OFD Sender: Processing packet 103407 [packets to send 17, broken 16] [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00103407 [12:48:36]OFD Sender: To server: pG, [12:48:36]CommunicateWithHost lk.salyk.kg:30040 [12:48:36]ConnectInit lk.salyk.kg [12:48:36]written 0, free lines is 4095 [12:48:36]Connected sock=10 [12:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D7 32 08 01 E0 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 2E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 24 00 00 00 00 07 04 06 00 D8 53 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 29 82 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 93 01 00 35 04 06 00 E2 63 16 82 01 2A D6 F8 BC B9 A8 E9 D7 F4 [12:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D5 92 47 00 59 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 93 01 00 F4 03 04 00 B5 28 71 66 B6 04 01 00 00 87 55 CF 45 71 63 8B 12 [12:48:36]CommunicateWithHost err = 0 [12:48:36]CheckOFDResponse [12:48:36]1017 (14) - 77093643461234 [12:48:36]1041 (16) - 0000000000875093 [12:48:36]1040 (4) - 103407 [12:48:36]1012 (4) - 18.06.2024 06:27 [12:48:36]1206 (1) - 0 [12:48:36]OFD Sender: Remove packet 103407 [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00103407 [12:48:36]NVStorageDeleteData [12:48:36]Write to MH i2c: 01 00 00 29 54 7D [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 29 54 00 00 00 00 00 E1 0C 71 [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3306 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 30 54 01 56 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 30 54 00 55 [12:48:36]Write to MH i2c: 01 00 00 31 54 85 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:37]OFD Sender: No OFD packet to send [12:48:37]*** Cut start [12:48:37]*** Partial cut [12:48:37]*** CUTSNS_PIN = 1 [12:48:37]*** CUTSNS_PIN = 0 [12:48:37]*** Brake cut motor [12:48:38]Read from MH i2c: 01 [12:48:38]MH_I2C_Read... [12:48:38]*** Stop cut motor [12:48:38]*** Cut end [12:48:38]Read from MH i2c: 01 07 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: 01 07 00 31 54 00 00 00 00 00 FF 0F 9A [12:48:38]process_action close_receipt done [12:48:38]requested_data is exist [12:48:38]produce_requested_data [12:48:38]requested_item fm.sn is exist - process it [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 11 00 00 [12:48:38]Write to MH i2c: E2 08 00 32 54 80 11 00 00 00 00 00 00 00 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 32 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [12:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:38]wFMCommunicate OK [12:48:38]requested_item fd.num is exist - process it [12:48:38]SAM_PROTO_GetFieldsCounters [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 00 00 [12:48:38]Write to MH i2c: E2 08 00 33 54 80 13 00 00 00 00 00 00 03 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 33 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:48: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetFieldsCounters done [12:48:38]requested_item shift.num is exist - process it [12:48:38]requested_item shift.opened is exist - process it [12:48:38]req_shift_opened [12:48:38]FM_GetShiftState [12:48:38]SAM_PROTO_GetShiftState [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 01 00 [12:48:38]Write to MH i2c: E2 08 00 34 54 80 13 01 00 00 00 00 00 05 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 34 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 86 [12:48:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetShiftState done [12:48:38]FM_GetShiftState done [12:48:38]req_shift_opened done [12:48:38]requested_item shift.open_date is exist - process it [12:48:38]req_shift_open_date [12:48:38]req_shift_open_date done [12:48:38]produce_requested_data done [12:48:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103407,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:48:38]process_action_free close_receipt [12:48:38]json_value_free [12:48:38]json_value_free done [12:48:38]process_json_proto returns [12:48:38]Send response to host [12:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103407,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:48:38]free response buf [12:48:38]execute_script done [12:48:38]execute_script returns [12:48:38]free content buf [12:48:38]Sock 9.Close socket [12:48:38]Sock 9.Thread stoped [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [12:55:54]New connection [12:55:54]New thread 3067227492 created [12:55:54]Thread 3067084132 joined [12:55:54]Waiting for new connection... [12:55:54] Sock 7.Parse request [12:55:54]Sock 7.Check first char [12:55:54]Sock 7.First char is OK [12:55:54]request: POST /json_proto HTTP/1.0 [12:55:54]Method: POST [12:55:54]URL: /json_proto [12:55:54]Method is POST - this is cgi request [12:55:54]url: /json_proto [12:55:54]query_string will be loaded in cgi processing [12:55:54]execute_cgi json_proto POST (null) [12:55:54]execute_cgi path=json_proto method=POST [12:55:54]POST find Content-Length [12:55:54]Host: 172.17.38.133:8080 [12:55:54]Content-Length: 682 [12:55:54]Content-Type: application/json [12:55:54] [12:55:54]POST finish read [12:55:54]Found Content-Length = 682 [12:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:54]execute_script... [12:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:54]POST & json_proto [12:55:54]process_json_proto [12:55:54]json parsed OK: [12:55:54]protocol is kg_v1.0 [12:55:54]action value=close_receipt [12:55:54]process_action close_receipt [12:55:54]cmd_close_receipt [12:55:54]MH_GetDate [12:55:54]Write to MH i2c: F0 00 00 35 54 78 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: F0 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: F0 09 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: F0 09 00 35 54 00 E1 83 71 66 BD 8F 7C 64 E8 [12:55:54]GetLastDocTimeStamp 1718714921 [12:55:54]current date 1718715361 [12:55:54]FM_GetShiftState [12:55:54]SAM_PROTO_GetShiftState [12:55:54]wFMCommunicate request_size=4 [12:55:54]MH_SAM_APDU [12:55:54]CAPDU: 80 13 01 00 [12:55:54]Write to MH i2c: E2 08 00 36 54 80 13 01 00 00 00 00 00 07 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:54]Read from MH i2c: E2 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 0E 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 0E 00 36 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 88 [12:55:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:55:54]wFMCommunicate OK [12:55:54]SAM_PROTO_GetShiftState done [12:55:54]FM_GetShiftState done [12:55:54]opened in 1718670284 [12:55:54]opened+sec_in_day 1718756684 [12:55:54]quantity*price = 100064 [12:55:54]sum+1 = 100066 [12:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 92 18.06.2024 12:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103408 ФПД: 141539120254865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T125601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103408&fm=141539120254865&tin=02508201610067®Number=0000000000092785&sum=100000 [12:55:55]StoreToDocumentArchive [12:55:55]shift 352 fd 103408 [12:55:55]save to /storage/0352/doc_00103408 [12:55:55]save last doc name /storage/0352/doc_00103408 to /storage/kkm_last_doc_name [12:55:55]save OK [12:55:55]Clear old archive folders... [12:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:55]tlvbuf is 014696F0 [12:55:55]SAM_PROTO_ClearQueue [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 09 00 00 [12:55:55]Write to MH i2c: E2 08 00 43 54 80 09 00 00 00 00 00 00 09 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [12:55:55]RAPDU: 90 00 [12:55:55]wFMCommunicate OK [12:55:55]SAM_PROTO_ClearQueue done [12:55:55]KKMCreateOFDPacket [12:55:55]OFDProtocolAddRootSTLVToBuf [12:55:55]FM_MakeSignedData [12:55:55]FM_MakeSignedData [12:55:55]SAM_PROTO_SignData [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 0D 01 02 [12:55:55]Write to MH i2c: E2 08 00 44 54 80 0D 01 02 00 00 00 00 11 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [12:55:55]RAPDU: 90 00 [12:55:55]wFMCommunicate OK [12:55:55]wFMCommunicate request_size=255 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 83 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 93 01 00 35 04 06 00 80 [12:55:55]Write to MH i2c: E2 02 01 45 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 83 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 93 01 00 35 04 06 00 80 00 00 17 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 45 54 00 90 00 0D [12:55:55]RAPDU: 90 00 [12:55:55]wFMCommunicate OK [12:55:55]wFMCommunicate request_size=10 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 0D 02 02 05 BA A4 FC 0F 91 [12:55:55]Write to MH i2c: E2 0D 00 46 54 80 0D 02 02 05 00 BA A4 FC 0F 91 00 00 18 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:56]Read from MH i2c: E2 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 03 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 03 00 46 54 00 90 00 0E [12:55:56]RAPDU: 90 00 [12:55:56]wFMCommunicate OK [12:55:56]wFMCommunicate request_size=4 [12:55:56]MH_SAM_APDU [12:55:56]CAPDU: 80 0D 03 02 [12:55:56]Write to MH i2c: E2 08 00 47 54 80 0D 03 02 00 00 00 00 16 [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:56]Read from MH i2c: E2 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 0B 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 0B 00 47 54 00 07 CA 17 83 10 52 E9 E5 90 00 B2 [12:55:56]RAPDU: 07 CA 17 83 10 52 E9 E5 90 00 [12:55:56]wFMCommunicate OK [12:55:56]SAM_PROTO_SignData done [12:55:56]FM_MakeSignedData done [12:55:56]CreateOFDProtocolMessage [12:55:56]wFMCommunicate request_size=4 [12:55:56]MH_SAM_APDU [12:55:56]CAPDU: 80 11 00 00 [12:55:56]Write to MH i2c: E2 08 00 48 54 80 11 00 00 00 00 00 00 16 [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:56]Read from MH i2c: E2 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 17 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: E2 17 00 48 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [12:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:55:56]wFMCommunicate OK [12:55:56]CreateOFDProtocolMessage done [12:55:56]OFDSenderStorePacket 103408 [12:55:56]StoreOFDPacket docnum=103408 [12:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD FE 07 01 A2 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 83 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 93 01 00 35 04 06 00 80 BA A4 FC 0F 91 07 CA 17 83 10 52 E9 E5 [12:55:56]CheckFolder [12:55:56]dirname=/storage/ofd_packets [12:55:56]CheckFolder done [12:55:56]ProducePacketName [12:55:56]name=ofd_packets/00103408 [12:55:56]NVStorageSaveData ofd_packets/00103408 [12:55:56]File name is /storage/ofd_packets/00103408 [12:55:56]Write 301 bytes [12:55:56]NVStorageSaveData done [12:55:56]OFDSenderStorePacket done [12:55:56]KKMCreateOFDPacket done [12:55:56]NVStorageSaveData kkm_last_timestamp [12:55:56]File name is /storage/kkm_last_timestamp [12:55:56]Write 4 bytes [12:55:56]NVStorageSaveData done [12:55:56]ExternCall_PrintAddStr [12:55:56]wPrintStart [12:55:56]Write to MH i2c: 01 00 00 49 54 9D [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 49 54 00 00 00 00 00 FF 0F B2 [12:55:56]RasterBufferAndPrint [12:55:56]line Счет N : (1)672572 [12:55:56]line ИНН: 02508201610067 [12:55:56]line Контрольно-Кассовый Чек [12:55:56]line ПРОДАЖА [12:55:56]line ТРК (МРК, ГНК) : 32 [12:55:56]line Товар: 2710124130 [12:55:56]line Аи-92-К-5 [12:55:56]line 15.070 * 66.40 [12:55:56]line = 1000.65 [12:55:56]line НДС 12% НСП 1% [12:55:56]line > о реализуемом товаре [12:55:56]line ОКРУГЛЕНИЕ: -0.65 [12:55:56]line ИТОГО: 1000.00 [12:55:56]line Внесено: 1000.00 [12:55:56]line СДАЧА: 0.00 [12:55:56]line НСП 1% : 8.85 [12:55:56]line НДС 12% : 106.26 [12:55:56]line Наличными: 1000.00 [12:55:56]line Безнал.: 0.00 [12:55:56]line Место: АЗС № 120 "Партнер Нефть" [12:55:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:55:56]line СНО: Общий режим [12:55:56]line Чек 92 18.06.2024 12:56 [12:55:56]line Смена: 352 ФФД: 1.0 [12:55:56]line ЗНМ: 0300000164 [12:55:56]line РНМ: 0000000000092785 [12:55:56]line Версия ККМ: 001 [12:55:56]line ФМ: 0000000000875093 [12:55:56]line ФД: 103408 [12:55:56]line ФПД: 141539120254865 [12:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T125601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103408&fm=141539120254865&tin=02508201610067®Number=0000000000092785&sum=100000 [12:55:56]OFD Sender: Processing packet 103408 [packets to send 17, broken 16] [12:55:56]ProducePacketName [12:55:56]name=ofd_packets/00103408 [12:55:56]OFD Sender: To server: pG, [12:55:56]CommunicateWithHost lk.salyk.kg:30040 [12:55:56]ConnectInit lk.salyk.kg [12:55:56]written 0, free lines is 4095 [12:55:56]Connected sock=10 [12:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD FE 07 01 A2 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 83 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 93 01 00 35 04 06 00 80 BA A4 FC 0F 91 07 CA 17 83 10 52 E9 E5 [12:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4A 9B 47 00 96 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 35 30 39 33 10 04 04 00 F0 93 01 00 F4 03 04 00 6D 2A 71 66 B6 04 01 00 00 00 DE CC 56 D9 8D F5 DA [12:55:56]CommunicateWithHost err = 0 [12:55:56]CheckOFDResponse [12:55:56]1017 (14) - 77093643461234 [12:55:56]1041 (16) - 0000000000875093 [12:55:56]1040 (4) - 103408 [12:55:56]1012 (4) - 18.06.2024 06:34 [12:55:56]1206 (1) - 0 [12:55:56]OFD Sender: Remove packet 103408 [12:55:56]ProducePacketName [12:55:56]name=ofd_packets/00103408 [12:55:56]NVStorageDeleteData [12:55:56]Write to MH i2c: 01 00 00 74 54 C8 [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 74 54 00 00 00 00 00 E6 0C C1 [12:55:56]RasterBufferAndPrint [12:55:56]line [12:55:56]line [12:55:56]line [12:55:56]line [12:55:56]line [12:55:56]written 0, free lines is 3308 [12:55:56]MH_Cut [12:55:56]Write to MH i2c: D1 01 00 7B 54 01 A1 [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: D1 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: D1 01 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: D1 01 00 7B 54 00 A0 [12:55:56]Write to MH i2c: 01 00 00 7C 54 D0 [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:57]OFD Sender: No OFD packet to send [12:55:57]*** Cut start [12:55:57]*** Partial cut [12:55:57]*** CUTSNS_PIN = 1 [12:55:57]*** CUTSNS_PIN = 0 [12:55:57]*** Brake cut motor [12:55:58]Read from MH i2c: 01 [12:55:58]MH_I2C_Read... [12:55:58]*** Stop cut motor [12:55:58]*** Cut end [12:55:58]Read from MH i2c: 01 07 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: 01 07 00 7C 54 00 00 00 00 00 FF 0F E5 [12:55:58]process_action close_receipt done [12:55:58]requested_data is exist [12:55:58]produce_requested_data [12:55:58]requested_item fm.sn is exist - process it [12:55:58]wFMCommunicate request_size=4 [12:55:58]MH_SAM_APDU [12:55:58]CAPDU: 80 11 00 00 [12:55:58]Write to MH i2c: E2 08 00 7D 54 80 11 00 00 00 00 00 00 4B [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:58]Read from MH i2c: E2 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 17 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 17 00 7D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [12:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:55:58]wFMCommunicate OK [12:55:58]requested_item fd.num is exist - process it [12:55:58]SAM_PROTO_GetFieldsCounters [12:55:58]wFMCommunicate request_size=4 [12:55:58]MH_SAM_APDU [12:55:58]CAPDU: 80 13 00 00 [12:55:58]Write to MH i2c: E2 08 00 7E 54 80 13 00 00 00 00 00 00 4E [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:58]Read from MH i2c: E2 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 62 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 62 00 7E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 93 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:58]wFMCommunicate OK [12:55:58]SAM_PROTO_GetFieldsCounters done [12:55:58]requested_item shift.num is exist - process it [12:55:58]requested_item shift.opened is exist - process it [12:55:58]req_shift_opened [12:55:58]FM_GetShiftState [12:55:58]SAM_PROTO_GetShiftState [12:55:58]wFMCommunicate request_size=4 [12:55:58]MH_SAM_APDU [12:55:58]CAPDU: 80 13 01 00 [12:55:58]Write to MH i2c: E2 08 00 7F 54 80 13 01 00 00 00 00 00 50 [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:58]Read from MH i2c: E2 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 7F 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D1 [12:55:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:55:58]wFMCommunicate OK [12:55:58]SAM_PROTO_GetShiftState done [12:55:58]FM_GetShiftState done [12:55:58]req_shift_opened done [12:55:58]requested_item shift.open_date is exist - process it [12:55:58]req_shift_open_date [12:55:58]req_shift_open_date done [12:55:58]produce_requested_data done [12:55:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103408,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:55:58]process_action_free close_receipt [12:55:58]json_value_free [12:55:58]json_value_free done [12:55:58]process_json_proto returns [12:55:58]Send response to host [12:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103408,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:55:58]free response buf [12:55:58]execute_script done [12:55:58]execute_script returns [12:55:58]free content buf [12:55:58]Sock 7.Close socket [12:55:58]Sock 7.Thread stoped [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:50]accept exits with 9 [12:59:50]New connection [12:59:50]New thread 3067084132 created [12:59:50]Thread 3067227492 joined [12:59:50]Waiting for new connection... [12:59:50] Sock 9.Parse request [12:59:50]Sock 9.Check first char [12:59:50]Sock 9.First char is OK [12:59:50]request: POST /json_proto HTTP/1.0 [12:59:50]Method: POST [12:59:50]URL: /json_proto [12:59:50]Method is POST - this is cgi request [12:59:50]url: /json_proto [12:59:50]query_string will be loaded in cgi processing [12:59:50]execute_cgi json_proto POST (null) [12:59:50]execute_cgi path=json_proto method=POST [12:59:50]POST find Content-Length [12:59:50]Host: 172.17.38.133:8080 [12:59:50]Content-Length: 682 [12:59:50]Content-Type: application/json [12:59:50] [12:59:50]POST finish read [12:59:50]Found Content-Length = 682 [12:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:50]execute_script... [12: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 : (1)672573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:50]POST & json_proto [12:59:50]process_json_proto [12:59:50]json parsed OK: [12:59:50]protocol is kg_v1.0 [12:59:50]action value=close_receipt [12:59:50]process_action close_receipt [12:59:50]cmd_close_receipt [12:59:50]MH_GetDate [12:59:50]Write to MH i2c: F0 00 00 80 54 C3 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: F0 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: F0 09 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: F0 09 00 80 54 00 CC 84 71 66 BD 8F 7C 64 1F [12:59:50]GetLastDocTimeStamp 1718715361 [12:59:50]current date 1718715596 [12:59:50]FM_GetShiftState [12:59:50]SAM_PROTO_GetShiftState [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 13 01 00 [12:59:50]Write to MH i2c: E2 08 00 81 54 80 13 01 00 00 00 00 00 52 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 81 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D3 [12:59:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:59:50]wFMCommunicate OK [12:59:50]SAM_PROTO_GetShiftState done [12:59:50]FM_GetShiftState done [12:59:50]opened in 1718670284 [12:59:50]opened+sec_in_day 1718756684 [12:59:50]quantity*price = 100064 [12:59:50]sum+1 = 100066 [12:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 93 18.06.2024 12:59 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103409 ФПД: 15582642488201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T125956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103409&fm=15582642488201&tin=02508201610067®Number=0000000000092785&sum=100000 [12:59:51]StoreToDocumentArchive [12:59:51]shift 352 fd 103409 [12:59:51]save to /storage/0352/doc_00103409 [12:59:51]save last doc name /storage/0352/doc_00103409 to /storage/kkm_last_doc_name [12:59:51]save OK [12:59:51]Clear old archive folders... [12:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:51]tlvbuf is 01469280 [12:59:51]SAM_PROTO_ClearQueue [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 09 00 00 [12:59:51]Write to MH i2c: E2 08 00 8E 54 80 09 00 00 00 00 00 00 54 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 8E 54 00 90 00 56 [12:59:51]RAPDU: 90 00 [12:59:51]wFMCommunicate OK [12:59:51]SAM_PROTO_ClearQueue done [12:59:51]KKMCreateOFDPacket [12:59:51]OFDProtocolAddRootSTLVToBuf [12:59:51]FM_MakeSignedData [12:59:51]FM_MakeSignedData [12:59:51]SAM_PROTO_SignData [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 0D 01 02 [12:59:51]Write to MH i2c: E2 08 00 8F 54 80 0D 01 02 00 00 00 00 5C [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 8F 54 00 90 00 57 [12:59:51]RAPDU: 90 00 [12:59:51]wFMCommunicate OK [12:59:51]wFMCommunicate request_size=255 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CC 84 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 93 01 00 35 04 06 00 0E [12:59:51]Write to MH i2c: E2 02 01 90 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CC 84 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 93 01 00 35 04 06 00 0E 00 00 DE [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 90 54 00 90 00 58 [12:59:51]RAPDU: 90 00 [12:59:51]wFMCommunicate OK [12:59:51]wFMCommunicate request_size=10 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 0D 02 02 05 2C 1D DE C3 89 [12:59:51]Write to MH i2c: E2 0D 00 91 54 80 0D 02 02 05 00 2C 1D DE C3 89 00 00 DC [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 03 00 91 54 00 90 00 59 [12:59:51]RAPDU: 90 00 [12:59:51]wFMCommunicate OK [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 0D 03 02 [12:59:51]Write to MH i2c: E2 08 00 92 54 80 0D 03 02 00 00 00 00 61 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 0B 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 0B 00 92 54 00 24 FF 30 2C 2E 92 91 75 90 00 A7 [12:59:51]RAPDU: 24 FF 30 2C 2E 92 91 75 90 00 [12:59:51]wFMCommunicate OK [12:59:51]SAM_PROTO_SignData done [12:59:51]FM_MakeSignedData done [12:59:51]CreateOFDProtocolMessage [12:59:51]wFMCommunicate request_size=4 [12:59:51]MH_SAM_APDU [12:59:51]CAPDU: 80 11 00 00 [12:59:51]Write to MH i2c: E2 08 00 93 54 80 11 00 00 00 00 00 00 61 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:51]Read from MH i2c: E2 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 17 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: E2 17 00 93 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [12:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:59:51]wFMCommunicate OK [12:59:51]CreateOFDProtocolMessage done [12:59:51]OFDSenderStorePacket 103409 [12:59:51]StoreOFDPacket docnum=103409 [12:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6E 32 07 01 C4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CC 84 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 93 01 00 35 04 06 00 0E 2C 1D DE C3 89 24 FF 30 2C 2E 92 91 75 [12:59:51]CheckFolder [12:59:51]dirname=/storage/ofd_packets [12:59:51]CheckFolder done [12:59:51]ProducePacketName [12:59:51]name=ofd_packets/00103409 [12:59:51]NVStorageSaveData ofd_packets/00103409 [12:59:51]File name is /storage/ofd_packets/00103409 [12:59:51]Write 301 bytes [12:59:51]NVStorageSaveData done [12:59:51]OFDSenderStorePacket done [12:59:51]KKMCreateOFDPacket done [12:59:51]NVStorageSaveData kkm_last_timestamp [12:59:51]File name is /storage/kkm_last_timestamp [12:59:51]Write 4 bytes [12:59:51]NVStorageSaveData done [12:59:51]ExternCall_PrintAddStr [12:59:51]wPrintStart [12:59:51]Write to MH i2c: 01 00 00 94 54 E8 [12:59:51]Write i2c OK [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: 01 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: 01 07 00 [12:59:51]MH_I2C_Read... [12:59:51]Read from MH i2c: 01 07 00 94 54 00 00 00 00 00 FF 0F FD [12:59:51]RasterBufferAndPrint [12:59:51]line Счет N : (1)672573 [12:59:51]line ИНН: 02508201610067 [12:59:51]line Контрольно-Кассовый Чек [12:59:51]line ПРОДАЖА [12:59:51]line ТРК (МРК, ГНК) : 32 [12:59:51]line Товар: 2710124130 [12:59:51]line Аи-92-К-5 [12:59:51]line 15.070 * 66.40 [12:59:51]line = 1000.65 [12:59:51]line НДС 12% НСП 1% [12:59:51]line > о реализуемом товаре [12:59:51]line ОКРУГЛЕНИЕ: -0.65 [12:59:51]line ИТОГО: 1000.00 [12:59:51]line Внесено: 1000.00 [12:59:51]line СДАЧА: 0.00 [12:59:51]line НСП 1% : 8.85 [12:59:51]line НДС 12% : 106.26 [12:59:51]line Наличными: 1000.00 [12:59:51]line Безнал.: 0.00 [12:59:51]line Место: АЗС № 120 "Партнер Нефть" [12:59:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:59:51]line СНО: Общий режим [12:59:51]line Чек 93 18.06.2024 12:59 [12:59:51]line Смена: 352 ФФД: 1.0 [12:59:51]line ЗНМ: 0300000164 [12:59:51]line РНМ: 0000000000092785 [12:59:51]line Версия ККМ: 001 [12:59:51]line ФМ: 0000000000875093 [12:59:51]line ФД: 103409 [12:59:51]line ФПД: 15582642488201 [12:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T125956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103409&fm=15582642488201&tin=02508201610067®Number=0000000000092785&sum=100000 [12:59:52]OFD Sender: Processing packet 103409 [packets to send 17, broken 16] [12:59:52]ProducePacketName [12:59:52]name=ofd_packets/00103409 [12:59:52]OFD Sender: To server: pG, [12:59:52]CommunicateWithHost lk.salyk.kg:30040 [12:59:52]ConnectInit lk.salyk.kg [12:59:52]written 0, free lines is 4095 [12:59:52]Connected sock=10 [12:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6E 32 07 01 C4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CC 84 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 93 01 00 35 04 06 00 0E 2C 1D DE C3 89 24 FF 30 2C 2E 92 91 75 [12:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 03 5C 47 00 D7 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 35 30 39 33 10 04 04 00 F1 93 01 00 F4 03 04 00 58 2B 71 66 B6 04 01 00 00 85 DB 9A 48 85 BC FA 75 [12:59:52]CommunicateWithHost err = 0 [12:59:52]CheckOFDResponse [12:59:52]1017 (14) - 77093643461234 [12:59:52]1041 (16) - 0000000000875093 [12:59:52]1040 (4) - 103409 [12:59:52]1012 (4) - 18.06.2024 06:38 [12:59:52]1206 (1) - 0 [12:59:52]OFD Sender: Remove packet 103409 [12:59:52]ProducePacketName [12:59:52]name=ofd_packets/00103409 [12:59:52]NVStorageDeleteData [12:59:52]Write to MH i2c: 01 00 00 BF 54 13 [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: 01 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: 01 07 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: 01 07 00 BF 54 00 00 00 00 00 DD 0C 03 [12:59:52]RasterBufferAndPrint [12:59:52]line [12:59:52]line [12:59:52]line [12:59:52]line [12:59:52]line [12:59:52]written 0, free lines is 3299 [12:59:52]MH_Cut [12:59:52]Write to MH i2c: D1 01 00 C6 54 01 EC [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: D1 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: D1 01 00 [12:59:52]MH_I2C_Read... [12:59:52]Read from MH i2c: D1 01 00 C6 54 00 EB [12:59:52]Write to MH i2c: 01 00 00 C7 54 1B [12:59:52]Write i2c OK [12:59:52]MH_I2C_Read... [12:59:52]OFD Sender: No OFD packet to send [12:59:53]*** Cut start [12:59:53]*** Partial cut [12:59:53]*** CUTSNS_PIN = 1 [12:59:53]*** CUTSNS_PIN = 0 [12:59:53]*** Brake cut motor [12:59:53]Read from MH i2c: 01 [12:59:53]MH_I2C_Read... [12:59:53]*** Stop cut motor [12:59:53]*** Cut end [12:59:53]Read from MH i2c: 01 07 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: 01 07 00 C7 54 00 00 00 00 00 FF 0F 30 [12:59:53]process_action close_receipt done [12:59:53]requested_data is exist [12:59:53]produce_requested_data [12:59:53]requested_item fm.sn is exist - process it [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 11 00 00 [12:59:53]Write to MH i2c: E2 08 00 C8 54 80 11 00 00 00 00 00 00 96 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:53]Read from MH i2c: E2 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 17 00 [12:59:53]MH_I2C_Read... [12:59:53]Read from MH i2c: E2 17 00 C8 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [12:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:59:53]wFMCommunicate OK [12:59:53]requested_item fd.num is exist - process it [12:59:53]SAM_PROTO_GetFieldsCounters [12:59:53]wFMCommunicate request_size=4 [12:59:53]MH_SAM_APDU [12:59:53]CAPDU: 80 13 00 00 [12:59:53]Write to MH i2c: E2 08 00 C9 54 80 13 00 00 00 00 00 00 99 [12:59:53]Write i2c OK [12:59:53]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 62 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 62 00 C9 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 93 01 00 0E 04 04 00 60 01 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 BD [12:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 93 01 00 0E 04 04 00 60 01 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 [12:59:54]wFMCommunicate OK [12:59:54]SAM_PROTO_GetFieldsCounters done [12:59:54]requested_item shift.num is exist - process it [12:59:54]requested_item shift.opened is exist - process it [12:59:54]req_shift_opened [12:59:54]FM_GetShiftState [12:59:54]SAM_PROTO_GetShiftState [12:59:54]wFMCommunicate request_size=4 [12:59:54]MH_SAM_APDU [12:59:54]CAPDU: 80 13 01 00 [12:59:54]Write to MH i2c: E2 08 00 CA 54 80 13 01 00 00 00 00 00 9B [12:59:54]Write i2c OK [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 [12:59:54]MH_I2C_Read... [12:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:54]Read from MH i2c: E2 0E 00 [12:59:54]MH_I2C_Read... [12:59:54]Read from MH i2c: E2 0E 00 CA 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1C [12:59:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [12:59:54]wFMCommunicate OK [12:59:54]SAM_PROTO_GetShiftState done [12:59:54]FM_GetShiftState done [12:59:54]req_shift_opened done [12:59:54]requested_item shift.open_date is exist - process it [12:59:54]req_shift_open_date [12:59:54]req_shift_open_date done [12:59:54]produce_requested_data done [12:59:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103409,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [12:59:54]process_action_free close_receipt [12:59:54]json_value_free [12:59:54]json_value_free done [12:59:54]process_json_proto returns [12:59:54]Send response to host [12:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103409,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [12:59:54]free response buf [12:59:54]execute_script done [12:59:54]execute_script returns [12:59:54]free content buf [12:59:54]Sock 9.Close socket [12:59:54]Sock 9.Thread stoped [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00: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:08]accept exits with 7 [13:01:08]New connection [13:01:08]New thread 3067227492 created [13:01:08]Thread 3067084132 joined [13:01:08]Waiting for new connection... [13:01:08] Sock 7.Parse request [13:01:08]Sock 7.Check first char [13:01:08]Sock 7.First char is OK [13:01:08]request: POST /json_proto HTTP/1.0 [13:01:08]Method: POST [13:01:08]URL: /json_proto [13:01:08]Method is POST - this is cgi request [13:01:08]url: /json_proto [13:01:08]query_string will be loaded in cgi processing [13:01:08]execute_cgi json_proto POST (null) [13:01:08]execute_cgi path=json_proto method=POST [13:01:08]POST find Content-Length [13:01:08]Host: 172.17.38.133:8080 [13:01:08]Content-Length: 821 [13:01:08]Content-Type: application/json [13:01:08] [13:01:08]POST finish read [13:01:08]Found Content-Length = 821 [13:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:08]execute_script... [13:01:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:08]POST & json_proto [13:01:08]process_json_proto [13:01:08]json parsed OK: [13:01:08]protocol is kg_v1.0 [13:01:08]action value=close_receipt [13:01:08]process_action close_receipt [13:01:08]cmd_close_receipt [13:01:08]MH_GetDate [13:01:08]Write to MH i2c: F0 00 00 CB 54 0E [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: F0 09 00 CB 54 00 1B 85 71 66 BD 8F 7C 64 BA [13:01:08]GetLastDocTimeStamp 1718715596 [13:01:08]current date 1718715675 [13:01:08]FM_GetShiftState [13:01:08]SAM_PROTO_GetShiftState [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 13 01 00 [13:01:08]Write to MH i2c: E2 08 00 CC 54 80 13 01 00 00 00 00 00 9D [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 CC 54 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1E [13:01:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:01:08]wFMCommunicate OK [13:01:08]SAM_PROTO_GetShiftState done [13:01:08]FM_GetShiftState done [13:01:08]opened in 1718670284 [13:01:08]opened+sec_in_day 1718756684 [13:01:08]quantity*price = 50009 [13:01:08]sum+1 = 50010 [13:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 94 18.06.2024 13:01 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103410 ФПД: 267717972949494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103410&fm=267717972949494&tin=02508201610067®Number=0000000000092785&sum=50009 [13:01:09]StoreToDocumentArchive [13:01:09]shift 352 fd 103410 [13:01:09]save to /storage/0352/doc_00103410 [13:01:09]save last doc name /storage/0352/doc_00103410 to /storage/kkm_last_doc_name [13:01:09]save OK [13:01:09]Clear old archive folders... [13:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:01:09]tlvbuf is 01489360 [13:01:09]SAM_PROTO_ClearQueue [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 09 00 00 [13:01:09]Write to MH i2c: E2 08 00 D9 54 80 09 00 00 00 00 00 00 9F [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 D9 54 00 90 00 A1 [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]SAM_PROTO_ClearQueue done [13:01:10]KKMCreateOFDPacket [13:01:10]OFDProtocolAddRootSTLVToBuf [13:01:10]FM_MakeSignedData [13:01:10]FM_MakeSignedData [13:01:10]SAM_PROTO_SignData [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 01 02 [13:01:10]Write to MH i2c: E2 08 00 DA 54 80 0D 01 02 00 00 00 00 A7 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 DA 54 00 90 00 A2 [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]wFMCommunicate request_size=255 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1B 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 93 01 00 35 04 06 00 [13:01:10]Write to MH i2c: E2 02 01 DB 54 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1B 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 93 01 00 35 04 06 00 00 00 0D [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 DB 54 00 90 00 A3 [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]wFMCommunicate request_size=11 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 02 02 06 F3 7C F2 AD 79 F6 [13:01:10]Write to MH i2c: E2 0E 00 DC 54 80 0D 02 02 06 00 F3 7C F2 AD 79 F6 00 00 33 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 DC 54 00 90 00 A4 [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 03 02 [13:01:10]Write to MH i2c: E2 08 00 DD 54 80 0D 03 02 00 00 00 00 AC [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0B 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0B 00 DD 54 00 35 01 C0 87 BD 0F B4 16 90 00 C0 [13:01:10]RAPDU: 35 01 C0 87 BD 0F B4 16 90 00 [13:01:10]wFMCommunicate OK [13:01:10]SAM_PROTO_SignData done [13:01:10]FM_MakeSignedData done [13:01:10]CreateOFDProtocolMessage [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 11 00 00 [13:01:10]Write to MH i2c: E2 08 00 DE 54 80 11 00 00 00 00 00 00 AC [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 17 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 17 00 DE 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [13:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:01:10]wFMCommunicate OK [13:01:10]CreateOFDProtocolMessage done [13:01:10]OFDSenderStorePacket 103410 [13:01:10]StoreOFDPacket docnum=103410 [13:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 53 52 08 01 73 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1B 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 93 01 00 35 04 06 00 F3 7C F2 AD 79 F6 35 01 C0 87 BD 0F B4 16 [13:01:10]CheckFolder [13:01:10]dirname=/storage/ofd_packets [13:01:10]CheckFolder done [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00103410 [13:01:10]NVStorageSaveData ofd_packets/00103410 [13:01:10]File name is /storage/ofd_packets/00103410 [13:01:10]Write 302 bytes [13:01:10]NVStorageSaveData done [13:01:10]OFDSenderStorePacket done [13:01:10]KKMCreateOFDPacket done [13:01:10]NVStorageSaveData kkm_last_timestamp [13:01:10]File name is /storage/kkm_last_timestamp [13:01:10]Write 4 bytes [13:01:10]NVStorageSaveData done [13:01:10]ExternCall_PrintAddStr [13:01:10]wPrintStart [13:01:10]Write to MH i2c: 01 00 00 DF 54 33 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 DF 54 00 00 00 00 00 FF 0F 48 [13:01:10]RasterBufferAndPrint [13:01:10]line Счет N : (1)672574 [13:01:10]line ИНН: 02508201610067 [13:01:10]line Контрольно-Кассовый Чек [13:01:10]line ПРОДАЖА [13:01:10]line ТРК (МРК, ГНК) : 21 [13:01:10]line Товар: 2710194210 [13:01:10]line ДТ(л)-К-5 [13:01:10]line 6.860 * 72.90 [13:01:10]line = 500.09 [13:01:10]line НДС 12% НСП 1% [13:01:10]line > о реализуемом товаре [13:01:10]line ИТОГО: 500.09 [13:01:10]line НСП 1% : 4.43 [13:01:10]line НДС 12% : 53.11 [13:01:10]line Наличными: 0.00 [13:01:10]line Безнал.: 500.09 [13:01:10]line Место: АЗС № 120 "Партнер Нефть" [13:01:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:01:10]line СНО: Общий режим [13:01:10]line Чек 94 18.06.2024 13:01 [13:01:10]line Смена: 352 ФФД: 1.0 [13:01:10]line ЗНМ: 0300000164 [13:01:10]line РНМ: 0000000000092785 [13:01:10]line Версия ККМ: 001 [13:01:10]line Платежная система: Бакай Банк [13:01:10]line ФМ: 0000000000875093 [13:01:10]line ФД: 103410 [13:01:10]line ФПД: 267717972949494 [13:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103410&fm=267717972949494&tin=02508201610067®Number=0000000000092785&sum=50009 [13:01:10]written 0, free lines is 4095 [13:01:10]OFD Sender: Processing packet 103410 [packets to send 17, broken 16] [13:01:10]ProducePacketName [13:01:10]name=ofd_packets/00103410 [13:01:10]OFD Sender: To server: pG, [13:01:10]CommunicateWithHost lk.salyk.kg:30040 [13:01:10]ConnectInit lk.salyk.kg [13:01:10]Write to MH i2c: 01 00 00 09 55 5E [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: 01 07 00 09 55 00 00 00 00 00 EE 0C 5F [13:01:10]RasterBufferAndPrint [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]line [13:01:10]written 0, free lines is 3316 [13:01:10]MH_Cut [13:01:10]Write to MH i2c: D1 01 00 10 55 01 37 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: D1 01 00 10 55 00 36 [13:01:10]Write to MH i2c: 01 00 00 11 55 66 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:11]int [13:01:11]*** FLAG_PRN_PAP2 set [13:01:11]*** Cut start [13:01:11]*** Partial cut [13:01:11]*** CUTSNS_PIN = 1 [13:01:11]*** CUTSNS_PIN = 0 [13:01:11]*** Brake cut motor [13:01:11]Read from MH i2c: 01 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 07 *** Stop cut motor [13:01:11]00 [13:01:11]*** Cut end [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 07 00 11 55 00 02 00 00 00 FF 0F 7D [13:01:11]process_action close_receipt done [13:01:11]requested_data is exist [13:01:11]produce_requested_data [13:01:11]requested_item fm.sn is exist - process it [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 11 00 00 [13:01:11]Write to MH i2c: E2 08 00 12 55 80 11 00 00 00 00 00 00 E1 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 12 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [13:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:01:11]wFMCommunicate OK [13:01:11]requested_item fd.num is exist - process it [13:01:11]SAM_PROTO_GetFieldsCounters [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 13 00 00 [13:01:11]Write to MH i2c: E2 08 00 13 55 80 13 00 00 00 00 00 00 E4 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 62 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 62 00 13 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F2 93 01 00 0E 04 04 00 60 01 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 0C [13:01:12]RAPDU: Write to MH i2c: 5D 01 00 B9 04 00 01 00 00 14 01 11 55 04 69 10 [13:01:12]00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 Write i2c OK [13:01:12]30 MH_I2C_Read... [13:01:12]30 30 Read from MH i2c: 01 39 [13:01:12]32 MH_I2C_Read... [13:01:12]37 38 35 Read from MH i2c: 10 01 04 07 00 04 [13:01:12]00 MH_I2C_Read... [13:01:12]F2 93 01 00 0E 04 04 00 60 01 00 Read from MH i2c: 00 01 07 12 00 14 55 04 04 00 02 00 00 5E 00 00 00 00 00 FF 5E 0F 04 80 04 [13:01:12]00 state=0 [13:01:12]5E Cover opened [13:01:12]00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:12]wFMCommunicate OK [13:01:12]SAM_PROTO_GetFieldsCounters done [13:01:12]requested_item shift.num is exist - process it [13:01:12]requested_item shift.opened is exist - process it [13:01:12]req_shift_opened [13:01:12]FM_GetShiftState [13:01:12]SAM_PROTO_GetShiftState [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 13 01 00 [13:01:12]Write to MH i2c: E2 08 00 15 55 80 13 01 00 00 00 00 00 E7 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 0E 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 0E 00 15 55 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 68 [13:01:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:01:12]wFMCommunicate OK [13:01:12]SAM_PROTO_GetShiftState done [13:01:12]FM_GetShiftState done [13:01:12]req_shift_opened done [13:01:12]requested_item shift.open_date is exist - process it [13:01:12]req_shift_open_date [13:01:12]req_shift_open_date done [13:01:12]produce_requested_data done [13:01:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103410,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:01:12]process_action_free close_receipt [13:01:12]json_value_free [13:01:12]json_value_free done [13:01:12]process_json_proto returns [13:01:12]Send response to host [13:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103410,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:01:12]free response buf [13:01:12]execute_script done [13:01:12]execute_script returns [13:01:12]free content buf [13:01:12]Sock 7.Close socket [13:01:12]Sock 7.Thread stoped [13:01:17]Write to MH i2c: 01 00 00 16 55 6B [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 16 55 00 02 00 00 00 FF 0F 82 [13:01:17]state=3 [13:01:17]Cover opened [13:01:22]Write to MH i2c: 01 00 00 17 55 6C [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 17 55 00 02 00 00 00 FF 0F 83 [13:01:22]state=3 [13:01:22]Cover opened [13:01:27]Write to MH i2c: 01 00 00 18 55 6D [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: 01 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: 01 07 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: 01 07 00 18 55 00 02 00 00 00 FF 0F 84 [13:01:27]state=3 [13:01:27]Cover opened [13:01:32]Write to MH i2c: 01 00 00 19 55 6E [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 19 55 00 02 00 00 00 FF 0F 85 [13:01:32]state=3 [13:01:32]Cover opened [13:01:37]Write to MH i2c: 01 00 00 1A 55 6F [13:01:37]Write i2c OK [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 [13:01:37]MH_I2C_Read... [13:01:37]Read from MH i2c: 01 07 00 1A 55 00 02 00 00 00 FF 0F 86 [13:01:37]state=3 [13:01:37]Cover opened [13:01:42]Write to MH i2c: 01 00 00 1B 55 70 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 1B 55 00 02 00 00 00 FF 0F 87 [13:01:42]state=3 [13:01:42]Cover opened [13:01:47]Write to MH i2c: 01 00 00 1C 55 71 [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 07 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 07 00 1C 55 00 02 00 00 00 FF 0F 88 [13:01:47]state=3 [13:01:47]Cover opened [13:01:52]Write to MH i2c: 01 00 00 1D 55 72 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 1D 55 00 02 00 00 00 FF 0F 89 [13:01:52]state=3 [13:01:52]Cover opened [13:01:57]Write to MH i2c: 01 00 00 1E 55 73 [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: 01 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: 01 07 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: 01 07 00 1E 55 00 02 00 00 00 FF 0F 8A [13:01:57]state=3 [13:01:57]Cover opened [13:02:02]Write to MH i2c: 01 00 00 1F 55 74 [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 1F 55 00 02 00 00 00 FF 0F 8B [13:02:02]state=3 [13:02:02]Cover opened [13:02:07]Write to MH i2c: 01 00 00 20 55 75 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 07 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 07 00 20 55 00 02 00 00 00 FF 0F 8C [13:02:07]state=3 [13:02:07]Cover opened [13:02:12]Write to MH i2c: 01 00 00 21 55 76 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 21 55 00 02 00 00 00 FF 0F 8D [13:02:12]state=3 [13:02:12]Cover opened [13:02:17]Write to MH i2c: 01 00 00 22 55 77 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 22 55 00 02 00 00 00 FF 0F 8E [13:02:17]state=3 [13:02:17]Cover opened [13:02:22]Write to MH i2c: 01 00 00 23 55 78 [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 07 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 07 00 23 55 00 02 00 00 00 FF 0F 8F [13:02:22]state=3 [13:02:22]Cover opened [13:02:27]Write to MH i2c: 01 00 00 24 55 79 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 24 55 00 02 00 00 00 FF 0F 90 [13:02:27]state=3 [13:02:27]Cover opened [13:02:32]Write to MH i2c: 01 00 00 25 55 7A [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 07 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 07 00 25 55 00 02 00 00 00 FF 0F 91 [13:02:32]state=3 [13:02:32]Cover opened [13:02:37]Write to MH i2c: 01 00 00 26 55 7B [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 26 55 00 02 00 00 00 FF 0F 92 [13:02:37]state=3 [13:02:37]Cover opened [13:02:42]Write to MH i2c: 01 00 00 27 55 7C [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: 01 07 00 27 55 00 02 00 00 00 FF 0F 93 [13:02:42]state=3 [13:02:42]Cover opened [13:02:47]Write to MH i2c: 01 00 00 28 55 7D [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: 01 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: 01 07 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: 01 07 00 28 55 00 02 00 00 00 FF 0F 94 [13:02:47]state=3 [13:02:47]Cover opened [13:02:52]Write to MH i2c: 01 00 00 29 55 7E [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 29 55 00 02 00 00 00 FF 0F 95 [13:02:52]state=3 [13:02:52]Cover opened [13:02:57]Write to MH i2c: 01 00 00 2A 55 7F [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 2A 55 00 02 00 00 00 FF 0F 96 [13:02:57]state=3 [13:02:57]Cover opened [13:03:02]Write to MH i2c: 01 00 00 2B 55 80 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: 01 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: 01 07 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: 01 07 00 2B 55 00 02 00 00 00 FF 0F 97 [13:03:02]state=3 [13:03:02]Cover opened [13:03:02]accept exits with 9 [13:03:02]New connection [13:03:02]New thread 3067084132 created [13:03:02]Thread 3067227492 joined [13:03:02]Waiting for new connection... [13:03:02] Sock 9.Parse request [13:03:02]Sock 9.Check first char [13:03:02]Sock 9.First char is OK [13:03:02]request: POST /json_proto HTTP/1.0 [13:03:02]Method: POST [13:03:02]URL: /json_proto [13:03:02]Method is POST - this is cgi request [13:03:02]url: /json_proto [13:03:02]query_string will be loaded in cgi processing [13:03:02]execute_cgi json_proto POST (null) [13:03:02]execute_cgi path=json_proto method=POST [13:03:02]POST find Content-Length [13:03:02]Host: 172.17.38.133:8080 [13:03:02]Content-Length: 682 [13:03:02]Content-Type: application/json [13:03:02] [13:03:02]POST finish read [13:03:02]Found Content-Length = 682 [13:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:02]execute_script... [13:03:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:02]POST & json_proto [13:03:02]process_json_proto [13:03:02]json parsed OK: [13:03:02]protocol is kg_v1.0 [13:03:02]action value=close_receipt [13:03:02]process_action close_receipt [13:03:02]cmd_close_receipt [13:03:02]MH_GetDate [13:03:02]Write to MH i2c: F0 00 00 2C 55 70 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 09 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 09 00 2C 55 00 8D 85 71 66 BD 8F 7C 64 8E [13:03:02]GetLastDocTimeStamp 1718715675 [13:03:02]current date 1718715789 [13:03:02]FM_GetShiftState [13:03:02]SAM_PROTO_GetShiftState [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 01 00 [13:03:02]Write to MH i2c: E2 08 00 2D 55 80 13 01 00 00 00 00 00 FF [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 2D 55 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 80 [13:03:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetShiftState done [13:03:02]FM_GetShiftState done [13:03:02]opened in 1718670284 [13:03:02]opened+sec_in_day 1718756684 [13:03:02]quantity*price = 200047 [13:03:02]sum+1 = 200048 [13:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 95 18.06.2024 13:03 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103411 ФПД: 86765528726227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103411&fm=86765528726227&tin=02508201610067®Number=0000000000092785&sum=200000 [13:03:03]StoreToDocumentArchive [13:03:03]shift 352 fd 103411 [13:03:03]save to /storage/0352/doc_00103411 [13:03:03]save last doc name /storage/0352/doc_00103411 to /storage/kkm_last_doc_name [13:03:03]save OK [13:03:03]Clear old archive folders... [13:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:03]tlvbuf is 013E1980 [13:03:03]SAM_PROTO_ClearQueue [13:03:03]wFMCommunicate request_size=4 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 09 00 00 [13:03:03]Write to MH i2c: E2 08 00 3A 55 80 09 00 00 00 00 00 00 01 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 3A 55 00 90 00 03 [13:03:03]RAPDU: 90 00 [13:03:03]wFMCommunicate OK [13:03:03]SAM_PROTO_ClearQueue done [13:03:03]KKMCreateOFDPacket [13:03:03]OFDProtocolAddRootSTLVToBuf [13:03:03]FM_MakeSignedData [13:03:03]FM_MakeSignedData [13:03:03]SAM_PROTO_SignData [13:03:03]wFMCommunicate request_size=4 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 0D 01 02 [13:03:03]Write to MH i2c: E2 08 00 3B 55 80 0D 01 02 00 00 00 00 09 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 3B 55 00 90 00 04 [13:03:03]RAPDU: 90 00 [13:03:03]wFMCommunicate OK [13:03:03]wFMCommunicate request_size=255 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5F 00 00 00 F4 03 04 00 8D 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 93 01 00 35 04 06 00 4E [13:03:03]Write to MH i2c: E2 02 01 3C 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5F 00 00 00 F4 03 04 00 8D 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 93 01 00 35 04 06 00 4E 00 00 19 [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 3C 55 00 90 00 05 [13:03:03]RAPDU: 90 00 [13:03:03]wFMCommunicate OK [13:03:03]wFMCommunicate request_size=10 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 0D 02 02 05 E9 AC 84 BA D3 [13:03:03]Write to MH i2c: E2 0D 00 3D 55 80 0D 02 02 05 00 E9 AC 84 BA D3 00 00 BC [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:03]Read from MH i2c: E2 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 [13:03:03]MH_I2C_Read... [13:03:03]Read from MH i2c: E2 03 00 3D 55 00 90 00 06 [13:03:03]RAPDU: 90 00 [13:03:03]wFMCommunicate OK [13:03:03]wFMCommunicate request_size=4 [13:03:03]MH_SAM_APDU [13:03:03]CAPDU: 80 0D 03 02 [13:03:03]Write to MH i2c: E2 08 00 3E 55 80 0D 03 02 00 00 00 00 0E [13:03:03]Write i2c OK [13:03:03]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0B 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0B 00 3E 55 00 8D 0E 57 4C DF 05 71 B7 90 00 59 [13:03:04]RAPDU: 8D 0E 57 4C DF 05 71 B7 90 00 [13:03:04]wFMCommunicate OK [13:03:04]SAM_PROTO_SignData done [13:03:04]FM_MakeSignedData done [13:03:04]CreateOFDProtocolMessage [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 11 00 00 [13:03:04]Write to MH i2c: E2 08 00 3F 55 80 11 00 00 00 00 00 00 0E [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 17 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 17 00 3F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [13:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:03:04]wFMCommunicate OK [13:03:04]CreateOFDProtocolMessage done [13:03:04]OFDSenderStorePacket 103411 [13:03:04]StoreOFDPacket docnum=103411 [13:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A3 EE 07 01 6A 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5F 00 00 00 F4 03 04 00 8D 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 93 01 00 35 04 06 00 4E E9 AC 84 BA D3 8D 0E 57 4C DF 05 71 B7 [13:03:04]CheckFolder [13:03:04]dirname=/storage/ofd_packets [13:03:04]CheckFolder done [13:03:04]ProducePacketName [13:03:04]name=ofd_packets/00103411 [13:03:04]NVStorageSaveData ofd_packets/00103411 [13:03:04]File name is /storage/ofd_packets/00103411 [13:03:04]Write 301 bytes [13:03:04]NVStorageSaveData done [13:03:04]OFDSenderStorePacket done [13:03:04]KKMCreateOFDPacket done [13:03:04]NVStorageSaveData kkm_last_timestamp [13:03:04]File name is /storage/kkm_last_timestamp [13:03:04]Write 4 bytes [13:03:04]NVStorageSaveData done [13:03:04]ExternCall_PrintAddStr [13:03:04]wPrintStart [13:03:04]Write to MH i2c: 01 00 00 40 55 95 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 07 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 07 00 40 55 00 02 00 00 00 FF 0F AC [13:03:04]RasterBufferAndPrint [13:03:04]line Счет N : (1)672575 [13:03:04]line ИНН: 02508201610067 [13:03:04]line Контрольно-Кассовый Чек [13:03:04]line ПРОДАЖА [13:03:04]line ТРК (МРК, ГНК) : 41 [13:03:04]line Товар: 2710124500 [13:03:04]line Аи-95-К-5 [13:03:04]line 27.070 * 73.90 [13:03:04]line = 2000.47 [13:03:04]line НДС 12% НСП 1% [13:03:04]line > о реализуемом товаре [13:03:04]line ОКРУГЛЕНИЕ: -0.47 [13:03:04]line ИТОГО: 2000.00 [13:03:04]line Внесено: 2000.00 [13:03:04]line СДАЧА: 0.00 [13:03:04]line НСП 1% : 17.70 [13:03:04]line НДС 12% : 212.44 [13:03:04]line Наличными: 2000.00 [13:03:04]line Безнал.: 0.00 [13:03:04]line Место: АЗС № 120 "Партнер Нефть" [13:03:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:03:04]line СНО: Общий режим [13:03:04]line Чек 95 18.06.2024 13:03 [13:03:04]line Смена: 352 ФФД: 1.0 [13:03:04]line ЗНМ: 0300000164 [13:03:04]line РНМ: 0000000000092785 [13:03:04]line Версия ККМ: 001 [13:03:04]line ФМ: 0000000000875093 [13:03:04]line ФД: 103411 [13:03:04]line ФПД: 86765528726227 [13:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103411&fm=86765528726227&tin=02508201610067®Number=0000000000092785&sum=200000 [13:03:04]written 0, free lines is 4095 [13:03:04]Error from MH - 05 [13:03:04]process_action_free close_receipt [13:03:04]json_value_free [13:03:04]json_value_free done [13:03:04]process_json_proto returns [13:03:04]Send response to host [13:03:04]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [13:03:04]free response buf [13:03:04]execute_script done [13:03:04]execute_script returns [13:03:04]free content buf [13:03:04]Sock 9.Close socket [13:03:04]Sock 9.Thread stoped [13:03:07]Write to MH i2c: 01 00 00 43 55 98 [13:03:07]Write i2c OK [13:03:07]MH_I2C_Read... [13:03:07]Read from MH i2c: 01 [13:03:07]MH_I2C_Read... [13:03:07]Read from MH i2c: 01 07 00 [13:03:07]MH_I2C_Read... [13:03:07]Read from MH i2c: 01 07 00 43 55 00 02 00 00 00 FF 0F AF [13:03:07]state=3 [13:03:07]Cover opened [13:03:12]Write to MH i2c: 01 00 00 44 55 99 [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 07 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 07 00 44 55 00 02 00 00 00 FF 0F B0 [13:03:12]state=3 [13:03:12]Cover opened [13:03:17]Write to MH i2c: 01 00 00 45 55 9A [13:03:17]Write i2c OK [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: 01 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: 01 07 00 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: 01 07 00 45 55 00 02 00 00 00 FF 0F B1 [13:03:17]state=3 [13:03:17]Cover opened [13:03:21]ConnectInit Can't connect to host [13:03:21]CommunicateWithHost connect error [13:03:21]CommunicateWithHost err = -1 [13:03:21]OFD Sender: Server communicate error [13:03:21]OFD Sender: Processing packet 103410 [packets to send 18, broken 16] [13:03:21]ProducePacketName [13:03:21]name=ofd_packets/00103410 [13:03:21]OFD Sender: To server: pG, [13:03:21]CommunicateWithHost lk.salyk.kg:30040 [13:03:21]ConnectInit lk.salyk.kg [13:03:22]Connected sock=9 [13:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 53 52 08 01 73 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1B 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 93 01 00 35 04 06 00 F3 7C F2 AD 79 F6 35 01 C0 87 BD 0F B4 16 [13:03:22]Write to MH i2c: 01 00 00 46 55 9B [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: 01 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: 01 07 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: 01 07 00 46 55 00 02 00 00 00 FF 0F B2 [13:03:22]state=3 [13:03:22]Cover opened [13:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A2 34 47 00 9B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 93 01 00 F4 03 04 00 2A 2C 71 66 B6 04 01 00 00 24 06 16 A7 2D 28 5A 26 [13:03:22]CommunicateWithHost err = 0 [13:03:22]CheckOFDResponse [13:03:22]1017 (14) - 77093643461234 [13:03:22]1041 (16) - 0000000000875093 [13:03:22]1040 (4) - 103410 [13:03:22]1012 (4) - 18.06.2024 06:41 [13:03:22]1206 (1) - 0 [13:03:22]OFD Sender: Remove packet 103410 [13:03:22]ProducePacketName [13:03:22]name=ofd_packets/00103410 [13:03:22]NVStorageDeleteData [13:03:22]OFD Sender: Processing packet 103411 [packets to send 17, broken 16] [13:03:22]ProducePacketName [13:03:22]name=ofd_packets/00103411 [13:03:22]OFD Sender: To server: pG, [13:03:22]CommunicateWithHost lk.salyk.kg:30040 [13:03:22]ConnectInit lk.salyk.kg [13:03:22]Connected sock=9 [13:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A3 EE 07 01 6A 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5F 00 00 00 F4 03 04 00 8D 85 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 93 01 00 35 04 06 00 4E E9 AC 84 BA D3 8D 0E 57 4C DF 05 71 B7 [13:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 99 77 47 00 7E 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 35 30 39 33 10 04 04 00 F3 93 01 00 F4 03 04 00 2B 2C 71 66 B6 04 01 00 00 DA C4 10 DB CE 5F 32 95 [13:03:23]CommunicateWithHost err = 0 [13:03:23]CheckOFDResponse [13:03:23]1017 (14) - 77093643461234 [13:03:23]1041 (16) - 0000000000875093 [13:03:23]1040 (4) - 103411 [13:03:23]1012 (4) - 18.06.2024 06:41 [13:03:23]1206 (1) - 0 [13:03:23]OFD Sender: Remove packet 103411 [13:03:23]ProducePacketName [13:03:23]name=ofd_packets/00103411 [13:03:23]NVStorageDeleteData [13:03:23]OFD Sender: No OFD packet to send [13:03:27]Write to MH i2c: 01 00 00 47 55 9C [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 47 55 00 02 00 00 00 FF 0F B3 [13:03:27]state=3 [13:03:27]Cover opened [13:03:28]OFD Sender: No OFD packet to send [13:03:32]Write to MH i2c: 01 00 00 48 55 9D [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 48 55 00 02 00 00 00 FF 0F B4 [13:03:32]state=3 [13:03:32]Cover opened [13:03:33]OFD Sender: No OFD packet to send [13:03:37]Write to MH i2c: 01 00 00 49 55 9E [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 49 55 00 02 00 00 00 FF 0F B5 [13:03:37]state=3 [13:03:37]Cover opened [13:03:38]OFD Sender: No OFD packet to send [13:03:42]Write to MH i2c: 01 00 00 4A 55 9F [13:03:42]Write i2c OK [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 [13:03:42]MH_I2C_Read... [13:03:42]Read from MH i2c: 01 07 00 4A 55 00 02 00 00 00 FF 0F B6 [13:03:42]state=3 [13:03:42]Cover opened [13:03:43]OFD Sender: No OFD packet to send [13:03:47]Write to MH i2c: 01 00 00 4B 55 A0 [13:03:47]Write i2c OK [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: 01 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: 01 07 00 [13:03:47]MH_I2C_Read... [13:03:47]Read from MH i2c: 01 07 00 4B 55 00 02 00 00 00 FF 0F B7 [13:03:47]state=3 [13:03:47]Cover opened [13:03:48]OFD Sender: No OFD packet to send [13:03:52]Write to MH i2c: 01 00 00 4C 55 A1 [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 4C 55 00 02 00 00 00 FF 0F B8 [13:03:52]state=3 [13:03:52]Cover opened [13:03:53]OFD Sender: No OFD packet to send [13:03:57]Write to MH i2c: 01 00 00 4D 55 A2 [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: 01 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: 01 07 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: 01 07 00 4D 55 00 02 00 00 00 FF 0F B9 [13:03:57]state=3 [13:03:57]Cover opened [13:03:58]OFD Sender: No OFD packet to send [13:04:02]Write to MH i2c: 01 00 00 4E 55 A3 [13:04:02]Write i2c OK [13:04:02]MH_I2C_Read... [13:04:02]Read from MH i2c: 01 [13:04:02]MH_I2C_Read... [13:04:02]Read from MH i2c: 01 07 00 [13:04:02]MH_I2C_Read... [13:04:02]Read from MH i2c: 01 07 00 4E 55 00 02 00 00 00 FF 0F BA [13:04:02]state=3 [13:04:02]Cover opened [13:04:03]OFD Sender: No OFD packet to send [13:04:07]Write to MH i2c: 01 00 00 4F 55 A4 [13:04:07]Write i2c OK [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 07 00 [13:04:07]MH_I2C_Read... [13:04:07]Read from MH i2c: 01 07 00 4F 55 00 02 00 00 00 FF 0F BB [13:04:07]state=3 [13:04:07]Cover opened [13:04:08]OFD Sender: No OFD packet to send [13:04:12]Write to MH i2c: 01 00 00 50 55 A5 [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 50 55 00 02 00 00 00 FF 0F BC [13:04:12]state=3 [13:04:12]Cover opened [13:04:13]OFD Sender: No OFD packet to send [13:04:17]Write to MH i2c: 01 00 00 51 55 A6 [13:04:17]Write i2c OK [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: 01 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: 01 07 00 [13:04:17]MH_I2C_Read... [13:04:17]Read from MH i2c: 01 07 00 51 55 00 02 00 00 00 FF 0F BD [13:04:17]state=3 [13:04:17]Cover opened [13:04:18]OFD Sender: No OFD packet to send [13:04:22]Write to MH i2c: 01 00 00 52 55 A7 [13:04:22]Write i2c OK [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 07 00 [13:04:22]MH_I2C_Read... [13:04:22]Read from MH i2c: 01 07 00 52 55 00 02 00 00 00 FF 0F BE [13:04:22]state=3 [13:04:22]Cover opened [13:04:23]OFD Sender: No OFD packet to send [13:04:27]Write to MH i2c: 01 00 00 53 55 A8 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 07 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: 01 07 00 53 55 00 02 00 00 00 FF 0F BF [13:04:27]state=3 [13:04:27]Cover opened [13:04:28]OFD Sender: No OFD packet to send [13:04:32]Write to MH i2c: 01 00 00 54 55 A9 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 54 55 00 02 00 00 00 FF 0F C0 [13:04:32]state=3 [13:04:32]Cover opened [13:04:33]OFD Sender: No OFD packet to send [13:04:37]Write to MH i2c: 01 00 00 55 55 AA [13:04:37]Write i2c OK [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: 01 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: 01 07 00 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: 01 07 00 55 55 00 02 00 00 00 FF 0F C1 [13:04:37]state=3 [13:04:37]Cover opened [13:04:38]OFD Sender: No OFD packet to send [13:04:42]Write to MH i2c: 01 00 00 56 55 AB [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 07 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 07 00 56 55 00 02 00 00 00 FF 0F C2 [13:04:42]state=3 [13:04:42]Cover opened [13:04:43]OFD Sender: No OFD packet to send [13:04:47]Write to MH i2c: 01 00 00 57 55 AC [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 57 55 00 02 00 00 00 FF 0F C3 [13:04:47]state=3 [13:04:47]Cover opened [13:04:48]OFD Sender: No OFD packet to send [13:04:52]Write to MH i2c: 01 00 00 58 55 AD [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 07 00 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 07 00 58 55 00 02 00 00 00 FF 0F C4 [13:04:52]state=3 [13:04:52]Cover opened [13:04:53]OFD Sender: No OFD packet to send [13:04:57]Write to MH i2c: 01 00 00 59 55 AE [13:04:57]Write i2c OK [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: 01 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: 01 07 00 [13:04:57]MH_I2C_Read... [13:04:57]Read from MH i2c: 01 07 00 59 55 00 02 00 00 00 FF 0F C5 [13:04:57]state=3 [13:04:57]Cover opened [13:04:58]OFD Sender: No OFD packet to send [13:05:02]Write to MH i2c: 01 00 00 5A 55 AF [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 5A 55 00 02 00 00 00 FF 0F C6 [13:05:02]state=3 [13:05:02]Cover opened [13:05:03]OFD Sender: No OFD packet to send [13:05:07]Write to MH i2c: 01 00 00 5B 55 B0 [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: 01 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: 01 07 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: 01 07 00 5B 55 00 02 00 00 00 FF 0F C7 [13:05:07]state=3 [13:05:07]Cover opened [13:05:08]OFD Sender: No OFD packet to send [13:05:12]Write to MH i2c: 01 00 00 5C 55 B1 [13:05:12]Write i2c OK [13:05:12]MH_I2C_Read... [13:05:12]Read from MH i2c: 01 [13:05:12]MH_I2C_Read... [13:05:12]Read from MH i2c: 01 07 00 [13:05:12]MH_I2C_Read... [13:05:12]Read from MH i2c: 01 07 00 5C 55 00 02 00 00 00 FF 0F C8 [13:05:12]state=3 [13:05:12]Cover opened [13:05:13]OFD Sender: No OFD packet to send [13:05:17]Write to MH i2c: 01 00 00 5D 55 B2 [13:05:17]Write i2c OK [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 07 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 07 00 5D 55 00 02 00 00 00 FF 0F C9 [13:05:17]state=3 [13:05:17]Cover opened [13:05:18]OFD Sender: No OFD packet to send [13:05:22]Write to MH i2c: 01 00 00 5E 55 B3 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 5E 55 00 02 00 00 00 FF 0F CA [13:05:22]state=3 [13:05:22]Cover opened [13:05:23]OFD Sender: No OFD packet to send [13:05:27]Write to MH i2c: 01 00 00 5F 55 B4 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 5F 55 00 02 00 00 00 FF 0F CB [13:05:27]state=3 [13:05:27]Cover opened [13:05:28]OFD Sender: No OFD packet to send [13:05:32]Write to MH i2c: 01 00 00 60 55 B5 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 07 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 07 00 60 55 00 02 00 00 00 FF 0F CC [13:05:32]state=3 [13:05:32]Cover opened [13:05:33]OFD Sender: No OFD packet to send [13:05:37]Write to MH i2c: 01 00 00 61 55 B6 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 61 55 00 02 00 00 00 FF 0F CD [13:05:37]state=3 [13:05:37]Cover opened [13:05:38]OFD Sender: No OFD packet to send [13:05:42]Write to MH i2c: 01 00 00 62 55 B7 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 07 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: 01 07 00 62 55 00 02 00 00 00 FF 0F CE [13:05:42]state=3 [13:05:42]Cover opened [13:05:43]OFD Sender: No OFD packet to send [13:05:47]Write to MH i2c: 01 00 00 63 55 B8 [13:05:47]Write i2c OK [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: 01 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: 01 07 00 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: 01 07 00 63 55 00 02 00 00 00 FF 0F CF [13:05:47]state=3 [13:05:47]Cover opened [13:05:48]OFD Sender: No OFD packet to send [13:05:52]Write to MH i2c: 01 00 00 64 55 B9 [13:05:52]Write i2c OK [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 07 00 [13:05:52]MH_I2C_Read... [13:05:52]Read from MH i2c: 01 07 00 64 55 00 02 00 00 00 FF 0F D0 [13:05:52]state=3 [13:05:52]Cover opened [13:05:53]OFD Sender: No OFD packet to send [13:05:57]Write to MH i2c: 01 00 00 65 55 BA [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 65 55 00 02 00 00 00 FF 0F D1 [13:05:57]state=3 [13:05:57]Cover opened [13:05:58]OFD Sender: No OFD packet to send [13:06:02]Write to MH i2c: 01 00 00 66 55 BB [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 66 55 00 02 00 00 00 FF 0F D2 [13:06:02]state=3 [13:06:02]Cover opened [13:06:03]OFD Sender: No OFD packet to send [13:06:07]Write to MH i2c: 01 00 00 67 55 BC [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: 01 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: 01 07 00 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: 01 07 00 67 55 00 02 00 00 00 FF 0F D3 [13:06:07]state=3 [13:06:07]Cover opened [13:06:08]OFD Sender: No OFD packet to send [13:06:12]Write to MH i2c: 01 00 00 68 55 BD [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 68 55 00 02 00 00 00 FF 0F D4 [13:06:12]state=3 [13:06:12]Cover opened [13:06:13]OFD Sender: No OFD packet to send [13:06:17]Write to MH i2c: 01 00 00 69 55 BE [13:06:17]Write i2c OK [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 07 00 [13:06:17]MH_I2C_Read... [13:06:17]Read from MH i2c: 01 07 00 69 55 00 02 00 00 00 FF 0F D5 [13:06:17]state=3 [13:06:17]Cover opened [13:06:18]OFD Sender: No OFD packet to send [13:06:22]Write to MH i2c: 01 00 00 6A 55 BF [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 6A 55 00 02 00 00 00 FF 0F D6 [13:06:22]state=3 [13:06:22]Cover opened [13:06:23]OFD Sender: No OFD packet to send [13:06:27]Write to MH i2c: 01 00 00 6B 55 C0 [13:06:27]Write i2c OK [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: 01 [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: 01 07 00 [13:06:27]MH_I2C_Read... [13:06:27]Read from MH i2c: 01 07 00 6B 55 00 02 00 00 00 FF 0F D7 [13:06:27]state=3 [13:06:27]Cover opened [13:06:28]OFD Sender: No OFD packet to send [13:06:32]Write to MH i2c: 01 00 00 6C 55 C1 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 6C 55 00 02 00 00 00 FF 0F D8 [13:06:32]state=3 [13:06:32]Cover opened [13:06:33]OFD Sender: No OFD packet to send [13:06:37]Write to MH i2c: 01 00 00 6D 55 C2 [13:06:37]Write i2c OK [13:06:37]MH_I2C_Read... [13:06:37]Read from MH i2c: 01 [13:06:37]MH_I2C_Read... [13:06:37]Read from MH i2c: 01 07 00 [13:06:37]MH_I2C_Read... [13:06:37]Read from MH i2c: 01 07 00 6D 55 00 02 00 00 00 FF 0F D9 [13:06:37]state=3 [13:06:37]Cover opened [13:06:38]OFD Sender: No OFD packet to send [13:06:42]Write to MH i2c: 01 00 00 6E 55 C3 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 6E 55 00 02 00 00 00 FF 0F DA [13:06:42]state=3 [13:06:42]Cover opened [13:06:43]OFD Sender: No OFD packet to send [13:06:47]Write to MH i2c: 01 00 00 6F 55 C4 [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: 01 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: 01 07 00 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: 01 07 00 6F 55 00 02 00 00 00 FF 0F DB [13:06:47]state=3 [13:06:47]Cover opened [13:06:48]OFD Sender: No OFD packet to send [13:06:52]Write to MH i2c: 01 00 00 70 55 C5 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 70 55 00 02 00 00 00 FF 0F DC [13:06:52]state=3 [13:06:52]Cover opened [13:06:53]OFD Sender: No OFD packet to send [13:06:57]Write to MH i2c: 01 00 00 71 55 C6 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 71 55 00 02 00 00 00 FF 0F DD [13:06:57]state=3 [13:06:57]Cover opened [13:06:58]OFD Sender: No OFD packet to send [13:07:02]Write to MH i2c: 01 00 00 72 55 C7 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 07 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 07 00 72 55 00 02 00 00 00 FF 0F DE [13:07:02]state=3 [13:07:02]Cover opened [13:07:03]OFD Sender: No OFD packet to send [13:07:07]Write to MH i2c: 01 00 00 73 55 C8 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 73 55 00 02 00 00 00 FF 0F DF [13:07:07]state=3 [13:07:07]Cover opened [13:07:08]OFD Sender: No OFD packet to send [13:07:12]Write to MH i2c: 01 00 00 74 55 C9 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 07 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: 01 07 00 74 55 00 02 00 00 00 FF 0F E0 [13:07:12]state=3 [13:07:12]Cover opened [13:07:13]OFD Sender: No OFD packet to send [13:07:17]Write to MH i2c: 01 00 00 75 55 CA [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 07 00 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 07 00 75 55 00 02 00 00 00 FF 0F E1 [13:07:17]state=3 [13:07:17]Cover opened [13:07:18]OFD Sender: No OFD packet to send [13:07:22]Write to MH i2c: 01 00 00 76 55 CB [13:07:22]Write i2c OK [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 07 00 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 07 00 76 55 00 02 00 00 00 FF 0F E2 [13:07:22]state=3 [13:07:22]Cover opened [13:07:23]OFD Sender: No OFD packet to send [13:07:27]Write to MH i2c: 01 00 00 77 55 CC [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 77 55 00 02 00 00 00 FF 0F E3 [13:07:27]state=3 [13:07:27]Cover opened [13:07:28]OFD Sender: No OFD packet to send [13:07:32]Write to MH i2c: 01 00 00 78 55 CD [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: 01 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: 01 07 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: 01 07 00 78 55 00 02 00 00 00 FF 0F E4 [13:07:32]state=3 [13:07:32]Cover opened [13:07:33]OFD Sender: No OFD packet to send [13:07:37]Write to MH i2c: 01 00 00 79 55 CE [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 79 55 00 02 00 00 00 FF 0F E5 [13:07:37]state=3 [13:07:37]Cover opened [13:07:38]OFD Sender: No OFD packet to send [13:07:42]Write to MH i2c: 01 00 00 7A 55 CF [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: 01 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: 01 07 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: 01 07 00 7A 55 00 02 00 00 00 FF 0F E6 [13:07:42]state=3 [13:07:42]Cover opened [13:07:43]OFD Sender: No OFD packet to send [13:07:47]Write to MH i2c: 01 00 00 7B 55 D0 [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: 01 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: 01 07 00 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: 01 07 00 7B 55 00 02 00 00 00 FF 0F E7 [13:07:47]state=3 [13:07:47]Cover opened [13:07:48]OFD Sender: No OFD packet to send [13:07:52]Write to MH i2c: 01 00 00 7C 55 D1 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 7C 55 00 02 00 00 00 FF 0F E8 [13:07:52]state=3 [13:07:52]Cover opened [13:07:53]OFD Sender: No OFD packet to send [13:07:57]Write to MH i2c: 01 00 00 7D 55 D2 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 7D 55 00 02 00 00 00 FF 0F E9 [13:07:57]state=3 [13:07:57]Cover opened [13:07:58]OFD Sender: No OFD packet to send [13:08:02]Write to MH i2c: 01 00 00 7E 55 D3 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 7E 55 00 02 00 00 00 FF 0F EA [13:08:02]state=3 [13:08:02]Cover opened [13:08:03]OFD Sender: No OFD packet to send [13:08:07]Write to MH i2c: 01 00 00 7F 55 D4 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 7F 55 00 02 00 00 00 FF 0F EB [13:08:07]state=3 [13:08:07]Cover opened [13:08:08]OFD Sender: No OFD packet to send [13:08:12]Write to MH i2c: 01 00 00 80 55 D5 [13:08:12]Write i2c OK [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 [13:08:12]MH_I2C_Read... [13:08:12]Read from MH i2c: 01 07 00 80 55 00 02 00 00 00 FF 0F EC [13:08:12]state=3 [13:08:12]Cover opened [13:08:13]OFD Sender: No OFD packet to send [13:08:17]Write to MH i2c: 01 00 00 81 55 D6 [13:08:17]Write i2c OK [13:08:17]MH_I2C_Read... [13:08:17]Read from MH i2c: 01 [13:08:17]MH_I2C_Read... [13:08:17]Read from MH i2c: 01 07 00 [13:08:17]MH_I2C_Read... [13:08:17]Read from MH i2c: 01 07 00 81 55 00 02 00 00 00 FF 0F ED [13:08:17]state=3 [13:08:17]Cover opened [13:08:18]OFD Sender: No OFD packet to send [13:08:22]Write to MH i2c: 01 00 00 82 55 D7 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 07 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 07 00 82 55 00 02 00 00 00 FF 0F EE [13:08:22]state=3 [13:08:22]Cover opened [13:08:23]OFD Sender: No OFD packet to send [13:08:27]Write to MH i2c: 01 00 00 83 55 D8 [13:08:27]Write i2c OK [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 07 00 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 07 00 83 55 00 02 00 00 00 FF 0F EF [13:08:27]state=3 [13:08:27]Cover opened [13:08:28]OFD Sender: No OFD packet to send [13:08:32]Write to MH i2c: 01 00 00 84 55 D9 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 84 55 00 02 00 00 00 FF 0F F0 [13:08:32]state=3 [13:08:32]Cover opened [13:08:33]OFD Sender: No OFD packet to send [13:08:37]Write to MH i2c: 01 00 00 85 55 DA [13:08:37]Write i2c OK [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: 01 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: 01 07 00 [13:08:37]MH_I2C_Read... [13:08:37]Read from MH i2c: 01 07 00 85 55 00 02 00 00 00 FF 0F F1 [13:08:37]state=3 [13:08:37]Cover opened [13:08:38]OFD Sender: No OFD packet to send [13:08:42]Write to MH i2c: 01 00 00 86 55 DB [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 86 55 00 02 00 00 00 FF 0F F2 [13:08:42]state=3 [13:08:42]Cover opened [13:08:43]OFD Sender: No OFD packet to send [13:08:47]Write to MH i2c: 01 00 00 87 55 DC [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 07 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 07 00 87 55 00 02 00 00 00 FF 0F F3 [13:08:47]state=3 [13:08:47]Cover opened [13:08:48]OFD Sender: No OFD packet to send [13:08:52]Write to MH i2c: 01 00 00 88 55 DD [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: 01 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: 01 07 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: 01 07 00 88 55 00 02 00 00 00 FF 0F F4 [13:08:52]state=3 [13:08:52]Cover opened [13:08:54]OFD Sender: No OFD packet to send [13:08:57]Write to MH i2c: 01 00 00 89 55 DE [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 89 55 00 02 00 00 00 FF 0F F5 [13:08:57]state=3 [13:08:57]Cover opened [13:08:59]OFD Sender: No OFD packet to send [13:09:02]Write to MH i2c: 01 00 00 8A 55 DF [13:09:02]Write i2c OK [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: 01 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: 01 07 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: 01 07 00 8A 55 00 02 00 00 00 FF 0F F6 [13:09:02]state=3 [13:09:02]Cover opened [13:09:04]OFD Sender: No OFD packet to send [13:09:07]Write to MH i2c: 01 00 00 8B 55 E0 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: 01 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: 01 07 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: 01 07 00 8B 55 00 02 00 00 00 FF 0F F7 [13:09:07]state=3 [13:09:07]Cover opened [13:09:09]OFD Sender: No OFD packet to send [13:09:12]Write to MH i2c: 01 00 00 8C 55 E1 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 8C 55 00 02 00 00 00 FF 0F F8 [13:09:12]state=3 [13:09:12]Cover opened [13:09:14]OFD Sender: No OFD packet to send [13:09:17]Write to MH i2c: 01 00 00 8D 55 E2 [13:09:17]Write i2c OK [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 07 00 [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 07 00 8D 55 00 02 00 00 00 FF 0F F9 [13:09:17]state=3 [13:09:17]Cover opened [13:09:17]int [13:09:17]Write to MH i2c: 01 00 00 8E 55 E3 [13:09:17]*** FLAG_PRN_PAP1 set [13:09:17]Write i2c OK [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 07 00 [13:09:17]MH_I2C_Read... [13:09:17]Read from MH i2c: 01 07 00 8E 55 00 03 00 00 00 FF 0F FB [13:09:17]state=3 [13:09:17]No paper [13:09:17]Cover opened [13:09:19]OFD Sender: No OFD packet to send [13:09:22]Write to MH i2c: 01 00 00 8F 55 E4 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 8F 55 00 03 00 00 00 FF 0F FC [13:09:22]state=3 [13:09:22]No paper [13:09:22]Cover opened [13:09:24]OFD Sender: No OFD packet to send [13:09:27]Write to MH i2c: 01 00 00 90 55 E5 [13:09:27]Write i2c OK [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 07 00 [13:09:27]MH_I2C_Read... [13:09:27]Read from MH i2c: 01 07 00 90 55 00 03 00 00 00 FF 0F FD [13:09:27]state=3 [13:09:27]No paper [13:09:27]Cover opened [13:09:29]OFD Sender: No OFD packet to send [13:09:31]int [13:09:31]Write to MH i2c: 01 00 00 91 55 E6 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 [13:09:31]MH_I2C_Read... [13:09:31]*** FLAG_PRN_PAP1 reset [13:09:31]*** FLAG_PRN_PAP2 reset [13:09:31]Read from MH i2c: 01 07 00 91 55 00 00 00 00 00 FF 0F FB [13:09:31]state=3 [13:09:31]Cover closed [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:44]accept exits with 7 [13:09:44]New connection [13:09:44]New thread 3067227492 created [13:09:44]Thread 3067084132 joined [13:09:44]Waiting for new connection... [13:09:44] Sock 7.Parse request [13:09:44]Sock 7.Check first char [13:09:44]Sock 7.First char is OK [13:09:44]request: POST /json_proto HTTP/1.0 [13:09:44]Method: POST [13:09:44]URL: /json_proto [13:09:44]Method is POST - this is cgi request [13:09:44]url: /json_proto [13:09:44]query_string will be loaded in cgi processing [13:09:44]execute_cgi json_proto POST (null) [13:09:44]execute_cgi path=json_proto method=POST [13:09:44]POST find Content-Length [13:09:44]Host: 172.17.38.133:8080 [13:09:44]Content-Length: 215 [13:09:44]Content-Type: application/json [13:09:44] [13:09:44]POST finish read [13:09:44]Found Content-Length = 215 [13:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:44]execute_script... [13:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:44]POST & json_proto [13:09:44]process_json_proto [13:09:44]json parsed OK: [13:09:44]protocol is kg_v1.0 [13:09:44]action value=get_value [13:09:44]process_action get_value [13:09:44]cmd_get_value [13:09:44]process_action get_value done [13:09:44]requested_data is exist [13:09:44]produce_requested_data [13:09:44]requested_item kkm.sn is exist - process it [13:09:44]requested_item kkm.ver is exist - process it [13:09:44]requested_item fm.sn is exist - process it [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 11 00 00 [13:09:44]Write to MH i2c: E2 08 00 92 55 80 11 00 00 00 00 00 00 61 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 17 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 17 00 92 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [13:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:44]wFMCommunicate OK [13:09:44]requested_item fd.num is exist - process it [13:09:44]SAM_PROTO_GetFieldsCounters [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 13 00 00 [13:09:44]Write to MH i2c: E2 08 00 93 55 80 13 00 00 00 00 00 00 64 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:44]Read from MH i2c: E2 62 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 62 00 93 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 93 01 00 0E 04 04 00 60 01 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 90 [13:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 93 01 00 0E 04 04 00 60 01 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 [13:09:44]wFMCommunicate OK [13:09:44]SAM_PROTO_GetFieldsCounters done [13:09:44]requested_item shift.num is exist - process it [13:09:44]requested_item shift.opened is exist - process it [13:09:44]req_shift_opened [13:09:44]FM_GetShiftState [13:09:44]SAM_PROTO_GetShiftState [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 13 01 00 [13:09:44]Write to MH i2c: E2 08 00 94 55 80 13 01 00 00 00 00 00 66 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:44]Read from MH i2c: E2 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 0E 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: E2 0E 00 94 55 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [13:09:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:09:44]wFMCommunicate OK [13:09:44]SAM_PROTO_GetShiftState done [13:09:44]FM_GetShiftState done [13:09:44]req_shift_opened done [13:09:44]requested_item shift.open_date is exist - process it [13:09:44]req_shift_open_date [13:09:44]req_shift_open_date done [13:09:44]produce_requested_data done [13:09:44]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103411,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:09:44]process_action_free get_value [13:09:44]json_value_free [13:09:44]json_value_free done [13:09:44]process_json_proto returns [13:09:44]Send response to host [13:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103411,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:09:44]free response buf [13:09:44]execute_script done [13:09:44]execute_script returns [13:09:44]free content buf [13:09:44]Sock 7.Close socket [13:09:44]Sock 7.Thread stoped [13:09:44]accept exits with 9 [13:09:44]New connection [13:09:44]New thread 3067084132 created [13:09:44]Thread 3067227492 joined [13:09:44]Waiting for new connection... [13:09:44] Sock 9.Parse request [13:09:44]Sock 9.Check first char [13:09:44]Sock 9.First char is OK [13:09:44]request: POST /json_proto HTTP/1.0 [13:09:44]Method: POST [13:09:44]URL: /json_proto [13:09:44]Method is POST - this is cgi request [13:09:44]url: /json_proto [13:09:44]query_string will be loaded in cgi processing [13:09:44]execute_cgi json_proto POST (null) [13:09:44]execute_cgi path=json_proto method=POST [13:09:44]POST find Content-Length [13:09:44]Host: 172.17.38.133:8080 [13:09:44]Content-Length: 331 [13:09:44]Content-Type: application/json [13:09:44] [13:09:44]POST finish read [13:09:44]Found Content-Length = 331 [13:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:09:44]execute_script... [13:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:09:44]POST & json_proto [13:09:44]process_json_proto [13:09:44]json parsed OK: [13:09:44]protocol is kg_v1.0 [13:09:44]action value=get_value [13:09:44]process_action get_value [13:09:44]cmd_get_value [13:09:44]process_action get_value done [13:09:44]requested_data is exist [13:09:44]produce_requested_data [13:09:44]requested_item fm.sale.total is exist - process it [13:09:44]SAM_PROTO_GetFMData [13:09:44]wFMCommunicate request_size=4 [13:09:44]MH_SAM_APDU [13:09:44]CAPDU: 80 13 03 00 [13:09:44]Write to MH i2c: E2 08 00 95 55 80 13 03 00 00 00 00 00 69 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 95 55 00 C5 04 85 04 C1 04 6E 04 04 00 33 91 01 00 69 04 A3 00 6F 04 04 00 E4 8C 01 00 B1 04 05 00 B5 59 EE 38 04 70 04 05 00 18 F9 BC 56 03 72 04 04 00 9D 60 31 E2 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 FC CD 72 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 0F 09 91 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 4F 04 00 00 B1 04 04 00 B0 97 FA 17 70 04 04 00 B0 97 FA 17 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F2 ED 8B 02 EF 03 09 90 00 A0 [13:09:45]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 33 91 01 00 69 04 A3 00 6F 04 04 00 E4 8C 01 00 B1 04 05 00 B5 59 EE 38 04 70 04 05 00 18 F9 BC 56 03 72 04 04 00 9D 60 31 E2 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 FC CD 72 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 0F 09 91 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 4F 04 00 00 B1 04 04 00 B0 97 FA 17 70 04 04 00 B0 97 FA 17 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F2 ED 8B 02 EF 03 09 90 00 [13:09:45]wFMCommunicate OK [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 17 00 00 [13:09:45]Write to MH i2c: E2 08 00 96 55 80 17 00 00 00 00 00 00 6B [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 96 55 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 53 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 2F [13:09:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 53 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [13:09:45]wFMCommunicate OK [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 17 00 00 [13:09:45]Write to MH i2c: E2 08 00 97 55 80 17 00 00 00 00 00 00 6C [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 FD 00 97 55 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7E [13:09:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:09:45]wFMCommunicate OK [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 17 00 00 [13:09:45]Write to MH i2c: E2 08 00 98 55 80 17 00 00 00 00 00 00 6D [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 FD 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 FD 00 98 55 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [13:09:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:09:46]wFMCommunicate OK [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 17 00 00 [13:09:46]Write to MH i2c: E2 08 00 99 55 80 17 00 00 00 00 00 00 6E [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 E2 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 E2 00 99 55 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [13:09:46]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:09:46]wFMCommunicate OK [13:09:46]SAM_PROTO_GetFMData done [13:09:46]requested_item fm.sale_refund.total is exist - process it [13:09:46]requested_item fm.buy.total is exist - process it [13:09:46]requested_item shift.sale.total is exist - process it [13:09:46]SAM_PROTO_GetShiftData [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 13 02 00 [13:09:46]Write to MH i2c: E2 08 00 9A 55 80 13 02 00 00 00 00 00 6D [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 FD 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 FD 00 9A 55 00 AF 04 AA 04 AB 04 6E 04 04 00 5F 00 00 00 69 04 9C 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 65 F4 ED 70 04 03 00 18 A4 AC 72 04 03 00 4D 50 41 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 63 46 19 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 25 1B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8B [13:09:46]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 5F 00 00 00 69 04 9C 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 65 F4 ED 70 04 03 00 18 A4 AC 72 04 03 00 4D 50 41 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 63 46 19 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 25 1B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [13:09:46]wFMCommunicate OK [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 17 00 00 [13:09:46]Write to MH i2c: E2 08 00 9B 55 80 17 00 00 00 00 00 00 70 [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 9B 55 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 89 [13:09:47]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [13:09:47]wFMCommunicate OK [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 17 00 00 [13:09:47]Write to MH i2c: E2 08 00 9C 55 80 17 00 00 00 00 00 00 71 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 9C 55 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 25 [13:09:47]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [13:09:47]wFMCommunicate OK [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 17 00 00 [13:09:47]Write to MH i2c: E2 08 00 9D 55 80 17 00 00 00 00 00 00 72 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 FD 00 9D 55 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 F0 [13:09:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [13:09:47]wFMCommunicate OK [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 17 00 00 [13:09:47]Write to MH i2c: E2 08 00 9E 55 80 17 00 00 00 00 00 00 73 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 CC 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 CC 00 9E 55 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 54 [13:09:48]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_GetShiftData done [13:09:48]requested_item shift.sale.total_cash is exist - process it [13:09:48]requested_item shift.sale_refund.total is exist - process it [13:09:48]requested_item shift.sale_refund.total_cash is exist - process it [13:09:48]requested_item shift.buy.total is exist - process it [13:09:48]requested_item shift.buy.total_cash is exist - process it [13:09:48]produce_requested_data done [13:09:48]produce_requested_data return {"fm.sale.total":181350138.13,"fm.sale_refund.total":4022988.00,"fm.buy.total":0.00,"shift.sale.total":155945.97,"shift.sale.total_cash":113142.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} [13:09:48]process_action_free get_value [13:09:48]json_value_free [13:09:48]json_value_free done [13:09:48]process_json_proto returns [13:09:48]Send response to host [13:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181350138.13,"fm.sale_refund.total":4022988.00,"fm.buy.total":0.00,"shift.sale.total":155945.97,"shift.sale.total_cash":113142.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}}} [13:09:48]free response buf [13:09:48]execute_script done [13:09:48]execute_script returns [13:09:48]free content buf [13:09:48]Sock 9.Close socket [13:09:48]Sock 9.Thread stoped [13:09:48]accept exits with 7 [13:09:48]New connection [13:09:48]New thread 3067227492 created [13:09:48]Thread 3067084132 joined [13:09:48]Waiting for new connection... [13:09:48] Sock 7.Parse request [13:09:48]Sock 7.Check first char [13:09:48]Sock 7.First char is OK [13:09:48]request: POST /json_proto HTTP/1.0 [13:09:48]Method: POST [13:09:48]URL: /json_proto [13:09:48]Method is POST - this is cgi request [13:09:48]url: /json_proto [13:09:48]query_string will be loaded in cgi processing [13:09:48]execute_cgi json_proto POST (null) [13:09:48]execute_cgi path=json_proto method=POST [13:09:48]POST find Content-Length [13:09:48]Host: 172.17.38.133:8080 [13:09:48]Content-Length: 144 [13:09:48]Content-Type: application/json [13:09:48] [13:09:48]POST finish read [13:09:48]Found Content-Length = 144 [13:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:09:48]execute_script... [13:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:09:48]POST & json_proto [13:09:48]process_json_proto [13:09:48]json parsed OK: [13:09:48]protocol is kg_v1.0 [13:09:48]action value=print_doc [13:09:48]process_action print_doc [13:09:48]ExternCall_PrintAddStr [13:09:48]wPrintStart [13:09:48]Write to MH i2c: 01 00 00 9F 55 F4 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 07 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 07 00 9F 55 00 00 00 00 00 FF 0F 09 [13:09:48]RasterBufferAndPrint [13:09:48]line Счет N : (1)672575 [13:09:48]line ИНН: 02508201610067 [13:09:48]line Контрольно-Кассовый Чек [13:09:48]line ПРОДАЖА [13:09:48]line ТРК (МРК, ГНК) : 41 [13:09:48]line Товар: 2710124500 [13:09:48]line Аи-95-К-5 [13:09:48]line 27.070 * 73.90 [13:09:48]line = 2000.47 [13:09:48]line НДС 12% НСП 1% [13:09:48]line > о реализуемом товаре [13:09:48]line ОКРУГЛЕНИЕ: -0.47 [13:09:48]line ИТОГО: 2000.00 [13:09:48]line Внесено: 2000.00 [13:09:48]line СДАЧА: 0.00 [13:09:48]line НСП 1% : 17.70 [13:09:48]line НДС 12% : 212.44 [13:09:48]line Наличными: 2000.00 [13:09:48]line Безнал.: 0.00 [13:09:48]line Место: АЗС № 120 "Партнер Нефть" [13:09:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:09:48]line СНО: Общий режим [13:09:48]line Чек 95 18.06.2024 13:03 [13:09:48]line Смена: 352 ФФД: 1.0 [13:09:48]line ЗНМ: 0300000164 [13:09:48]line РНМ: 0000000000092785 [13:09:48]line Версия ККМ: 001 [13:09:48]line ФМ: 0000000000875093 [13:09:48]line ФД: 103411 [13:09:48]line ФПД: 86765528726227 [13:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103411&fm=86765528726227&tin=02508201610067®Number=0000000000092785&sum=200000 [13:09:48]written 0, free lines is 4095 [13:09:48]Write to MH i2c: 01 00 00 CA 55 1F [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 07 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: 01 07 00 CA 55 00 00 00 00 00 DD 0C 0F [13:09:48]RasterBufferAndPrint [13:09:48]line [13:09:48]line [13:09:48]line [13:09:48]line [13:09:48]line [13:09:48]written 0, free lines is 3308 [13:09:48]MH_Cut [13:09:48]Write to MH i2c: D1 01 00 D1 55 01 F8 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: D1 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: D1 01 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: D1 01 00 D1 55 00 F7 [13:09:48]Write to MH i2c: 01 00 00 D2 55 27 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:49]OFD Sender: No OFD packet to send [13:09:49]*** Cut start [13:09:49]*** Partial cut [13:09:49]*** CUTSNS_PIN = 1 [13:09:49]*** CUTSNS_PIN = 0 [13:09:49]*** Brake cut motor [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]*** Stop cut motor [13:09:50]*** Cut end [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 D2 55 00 00 00 00 00 FF 0F 3C [13:09:50]process_action print_doc done [13:09:50]requested_data is exist [13:09:50]produce_requested_data [13:09:50]produce_requested_data return (null) [13:09:50]process_action_free print_doc [13:09:50]json_value_free [13:09:50]json_value_free done [13:09:50]process_json_proto returns [13:09:50]Send response to host [13:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:09:50]free response buf [13:09:50]execute_script done [13:09:50]execute_script returns [13:09:50]free content buf [13:09:50]Sock 7.Close socket [13:09:50]Sock 7.Thread stoped [13:09:50]accept exits with 9 [13:09:50]New connection [13:09:50]New thread 3067084132 created [13:09:50]Thread 3067227492 joined [13:09:50]Waiting for new connection... [13:09:50] Sock 9.Parse request [13:09:50]Sock 9.Check first char [13:09:50]Sock 9.First char is OK [13:09:50]request: POST /json_proto HTTP/1.0 [13:09:50]Method: POST [13:09:50]URL: /json_proto [13:09:50]Method is POST - this is cgi request [13:09:50]url: /json_proto [13:09:50]query_string will be loaded in cgi processing [13:09:50]execute_cgi json_proto POST (null) [13:09:50]execute_cgi path=json_proto method=POST [13:09:50]POST find Content-Length [13:09:50]Host: 172.17.38.133:8080 [13:09:50]Content-Length: 682 [13:09:50]Content-Type: application/json [13:09:50] [13:09:50]POST finish read [13:09:50]Found Content-Length = 682 [13:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:09:50]execute_script... [13:09:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:09:50]POST & json_proto [13:09:50]process_json_proto [13:09:50]json parsed OK: [13:09:50]protocol is kg_v1.0 [13:09:50]action value=close_receipt [13:09:50]process_action close_receipt [13:09:50]cmd_close_receipt [13:09:50]MH_GetDate [13:09:50]Write to MH i2c: F0 00 00 D3 55 17 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: F0 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: F0 09 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: F0 09 00 D3 55 00 25 87 71 66 BD 8F 7C 64 CF [13:09:50]GetLastDocTimeStamp 1718715789 [13:09:50]current date 1718716197 [13:09:50]FM_GetShiftState [13:09:50]SAM_PROTO_GetShiftState [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 13 01 00 [13:09:50]Write to MH i2c: E2 08 00 D4 55 80 13 01 00 00 00 00 00 A6 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0E 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0E 00 D4 55 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 27 [13:09:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_GetShiftState done [13:09:50]FM_GetShiftState done [13:09:50]opened in 1718670284 [13:09:50]opened+sec_in_day 1718756684 [13:09:50]quantity*price = 100064 [13:09:50]sum+1 = 100066 [13:09:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 96 18.06.2024 13:09 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103412 ФПД: 146528351355071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103412&fm=146528351355071&tin=02508201610067®Number=0000000000092785&sum=100000 [13:09:51]StoreToDocumentArchive [13:09:51]shift 352 fd 103412 [13:09:51]save to /storage/0352/doc_00103412 [13:09:51]save last doc name /storage/0352/doc_00103412 to /storage/kkm_last_doc_name [13:09:51]save OK [13:09:51]Clear old archive folders... [13:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:51]tlvbuf is 01419D40 [13:09:51]SAM_PROTO_ClearQueue [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 09 00 00 [13:09:51]Write to MH i2c: E2 08 00 E1 55 80 09 00 00 00 00 00 00 A8 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 E1 55 00 90 00 AA [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]SAM_PROTO_ClearQueue done [13:09:51]KKMCreateOFDPacket [13:09:51]OFDProtocolAddRootSTLVToBuf [13:09:51]FM_MakeSignedData [13:09:51]FM_MakeSignedData [13:09:51]SAM_PROTO_SignData [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 01 02 [13:09:51]Write to MH i2c: E2 08 00 E2 55 80 0D 01 02 00 00 00 00 B0 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 E2 55 00 90 00 AB [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]wFMCommunicate request_size=255 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 93 01 00 35 04 06 00 85 [13:09:51]Write to MH i2c: E2 02 01 E3 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 93 01 00 35 04 06 00 85 00 00 0B [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 E3 55 00 90 00 AC [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]wFMCommunicate request_size=10 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 02 02 05 44 4A 55 00 BF [13:09:51]Write to MH i2c: E2 0D 00 E4 55 80 0D 02 02 05 00 44 4A 55 00 BF 00 00 5F [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 E4 55 00 90 00 AD [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 03 02 [13:09:51]Write to MH i2c: E2 08 00 E5 55 80 0D 03 02 00 00 00 00 B5 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0B 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0B 00 E5 55 00 57 92 3B 7C A4 28 0B 2C 90 00 59 [13:09:52]RAPDU: 57 92 3B 7C A4 28 0B 2C 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_SignData done [13:09:52]FM_MakeSignedData done [13:09:52]CreateOFDProtocolMessage [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 11 00 00 [13:09:52]Write to MH i2c: E2 08 00 E6 55 80 11 00 00 00 00 00 00 B5 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 17 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 17 00 E6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [13:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:52]wFMCommunicate OK [13:09:52]CreateOFDProtocolMessage done [13:09:52]OFDSenderStorePacket 103412 [13:09:52]StoreOFDPacket docnum=103412 [13:09:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7D 1E 07 01 F2 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 93 01 00 35 04 06 00 85 44 4A 55 00 BF 57 92 3B 7C A4 28 0B 2C [13:09:52]CheckFolder [13:09:52]dirname=/storage/ofd_packets [13:09:52]CheckFolder done [13:09:52]ProducePacketName [13:09:52]name=ofd_packets/00103412 [13:09:52]NVStorageSaveData ofd_packets/00103412 [13:09:52]File name is /storage/ofd_packets/00103412 [13:09:52]Write 301 bytes [13:09:52]NVStorageSaveData done [13:09:52]OFDSenderStorePacket done [13:09:52]KKMCreateOFDPacket done [13:09:52]NVStorageSaveData kkm_last_timestamp [13:09:52]File name is /storage/kkm_last_timestamp [13:09:52]Write 4 bytes [13:09:52]NVStorageSaveData done [13:09:52]ExternCall_PrintAddStr [13:09:52]wPrintStart [13:09:52]Write to MH i2c: 01 00 00 E7 55 3C [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 07 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 07 00 E7 55 00 00 00 00 00 FF 0F 51 [13:09:52]RasterBufferAndPrint [13:09:52]line Счет N : (1)672576 [13:09:52]line ИНН: 02508201610067 [13:09:52]line Контрольно-Кассовый Чек [13:09:52]line ПРОДАЖА [13:09:52]line ТРК (МРК, ГНК) : 32 [13:09:52]line Товар: 2710124130 [13:09:52]line Аи-92-К-5 [13:09:52]line 15.070 * 66.40 [13:09:52]line = 1000.65 [13:09:52]line НДС 12% НСП 1% [13:09:52]line > о реализуемом товаре [13:09:52]line ОКРУГЛЕНИЕ: -0.65 [13:09:52]line ИТОГО: 1000.00 [13:09:52]line Внесено: 1000.00 [13:09:52]line СДАЧА: 0.00 [13:09:52]OFD Sender: Processing packet 103412 [packets to send 17, broken 16] [13:09:52]line НСП 1% : 8.85 [13:09:52]ProducePacketName [13:09:52]line НДС 12% : 106.26 [13:09:52]name=ofd_packets/00103412 [13:09:52]line Наличными: 1000.00 [13:09:52]OFD Sender: To server: pG, [13:09:52]line Безнал.: 0.00 [13:09:52]CommunicateWithHost lk.salyk.kg:30040 [13:09:52]line Место: АЗС № 120 "Партнер Нефть" [13:09:52]ConnectInit lk.salyk.kg [13:09:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:09:52]line СНО: Общий режим [13:09:52]line Чек 96 18.06.2024 13:09 [13:09:52]line Смена: 352 ФФД: 1.0 [13:09:52]line ЗНМ: 0300000164 [13:09:52]line РНМ: 0000000000092785 [13:09:52]line Версия ККМ: 001 [13:09:52]line ФМ: 0000000000875093 [13:09:52]line ФД: 103412 [13:09:52]line ФПД: 146528351355071 [13:09:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103412&fm=146528351355071&tin=02508201610067®Number=0000000000092785&sum=100000 [13:09:52]Connected sock=10 [13:09:52]Data to sent: 87 95 F6 written 0, free lines is 4095 [13:09:52]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7D 1E 07 01 F2 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 93 01 00 35 04 06 00 85 44 4A 55 00 BF 57 92 3B 7C A4 28 0B 2C [13:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D0 3E 47 00 80 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 93 01 00 F4 03 04 00 B1 2D 71 66 B6 04 01 00 00 88 28 1B 17 7A 62 5C 3F [13:09:53]CommunicateWithHost err = 0 [13:09:53]CheckOFDResponse [13:09:53]1017 (14) - 77093643461234 [13:09:53]1041 (16) - 0000000000875093 [13:09:53]1040 (4) - 103412 [13:09:53]1012 (4) - 18.06.2024 06:48 [13:09:53]1206 (1) - 0 [13:09:53]OFD Sender: Remove packet 103412 [13:09:53]ProducePacketName [13:09:53]name=ofd_packets/00103412 [13:09:53]NVStorageDeleteData [13:09:53]Write to MH i2c: 01 00 00 12 56 68 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 07 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 07 00 12 56 00 00 00 00 00 DD 0C 58 [13:09:53]RasterBufferAndPrint [13:09:53]line [13:09:53]line [13:09:53]line [13:09:53]line [13:09:53]line [13:09:53]written 0, free lines is 3317 [13:09:53]MH_Cut [13:09:53]Write to MH i2c: D1 01 00 19 56 01 41 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: D1 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: D1 01 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: D1 01 00 19 56 00 40 [13:09:53]Write to MH i2c: 01 00 00 1A 56 70 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]OFD Sender: No OFD packet to send [13:09:53]*** Cut start [13:09:53]*** Partial cut [13:09:53]*** CUTSNS_PIN = 1 [13:09:54]*** CUTSNS_PIN = 0 [13:09:54]*** Brake cut motor [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]*** Stop cut motor [13:09:54]*** Cut end [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 1A 56 00 00 00 00 00 FF 0F 85 [13:09:54]process_action close_receipt done [13:09:54]requested_data is exist [13:09:54]produce_requested_data [13:09:54]requested_item fm.sn is exist - process it [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 11 00 00 [13:09:54]Write to MH i2c: E2 08 00 1B 56 80 11 00 00 00 00 00 00 EB [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 1B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [13:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:54]wFMCommunicate OK [13:09:54]requested_item fd.num is exist - process it [13:09:54]SAM_PROTO_GetFieldsCounters [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 13 00 00 [13:09:54]Write to MH i2c: E2 08 00 1C 56 80 13 00 00 00 00 00 00 EE [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 62 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 62 00 1C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 93 01 00 0E 04 04 00 60 01 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 1E [13:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 93 01 00 0E 04 04 00 60 01 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 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_GetFieldsCounters done [13:09:54]requested_item shift.num is exist - process it [13:09:54]requested_item shift.opened is exist - process it [13:09:54]req_shift_opened [13:09:54]FM_GetShiftState [13:09:54]SAM_PROTO_GetShiftState [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 13 01 00 [13:09:54]Write to MH i2c: E2 08 00 1D 56 80 13 01 00 00 00 00 00 F0 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 1D 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 71 [13:09:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_GetShiftState done [13:09:54]FM_GetShiftState done [13:09:54]req_shift_opened done [13:09:54]requested_item shift.open_date is exist - process it [13:09:54]req_shift_open_date [13:09:54]req_shift_open_date done [13:09:54]produce_requested_data done [13:09:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103412,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:09:54]process_action_free close_receipt [13:09:54]json_value_free [13:09:54]json_value_free done [13:09:54]process_json_proto returns [13:09:54]Send response to host [13:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103412,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:09:54]free response buf [13:09:54]execute_script done [13:09:54]execute_script returns [13:09:54]free content buf [13:09:54]Sock 9.Close socket [13:09:54]Sock 9.Thread stoped [13:09:55]accept exits with 7 [13:09:55]New connection [13:09:55]New thread 3067227492 created [13:09:55]Thread 3067084132 joined [13:09:55]Waiting for new connection... [13:09:55] Sock 7.Parse request [13:09:55]Sock 7.Check first char [13:09:55]Sock 7.First char is OK [13:09:55]request: POST /json_proto HTTP/1.0 [13:09:55]Method: POST [13:09:55]URL: /json_proto [13:09:55]Method is POST - this is cgi request [13:09:55]url: /json_proto [13:09:55]query_string will be loaded in cgi processing [13:09:55]execute_cgi json_proto POST (null) [13:09:55]execute_cgi path=json_proto method=POST [13:09:55]POST find Content-Length [13:09:55]Host: 172.17.38.133:8080 [13:09:55]Content-Length: 640 [13:09:55]Content-Type: application/json [13:09:55] [13:09:55]POST finish read [13:09:55]Found Content-Length = 640 [13:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:55]execute_script... [13:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:55]POST & json_proto [13:09:55]process_json_proto [13:09:55]json parsed OK: [13:09:55]protocol is kg_v1.0 [13:09:55]action value=close_receipt [13:09:55]process_action close_receipt [13:09:55]cmd_close_receipt [13:09:55]MH_GetDate [13:09:55]Write to MH i2c: F0 00 00 1E 56 63 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 09 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: F0 09 00 1E 56 00 2A 87 71 66 BD 8F 7C 64 20 [13:09:55]GetLastDocTimeStamp 1718716197 [13:09:55]current date 1718716202 [13:09:55]FM_GetShiftState [13:09:55]SAM_PROTO_GetShiftState [13:09:55]wFMCommunicate request_size=4 [13:09:55]MH_SAM_APDU [13:09:55]CAPDU: 80 13 01 00 [13:09:55]Write to MH i2c: E2 08 00 1F 56 80 13 01 00 00 00 00 00 F2 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:55]Read from MH i2c: E2 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 0E 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 0E 00 1F 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 73 [13:09:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:09:55]wFMCommunicate OK [13:09:55]SAM_PROTO_GetShiftState done [13:09:55]FM_GetShiftState done [13:09:55]opened in 1718670284 [13:09:55]opened+sec_in_day 1718756684 [13:09:55]quantity*price = 66400 [13:09:55]sum+1 = 66401 [13:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 97 18.06.2024 13:10 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103413 ФПД: 73046379371873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103413&fm=73046379371873&tin=02508201610067®Number=0000000000092785&sum=66400 [13:09:56]StoreToDocumentArchive [13:09:56]shift 352 fd 103413 [13:09:56]save to /storage/0352/doc_00103413 [13:09:56]save last doc name /storage/0352/doc_00103413 to /storage/kkm_last_doc_name [13:09:56]save OK [13:09:56]Clear old archive folders... [13:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:56]tlvbuf is 01489080 [13:09:56]SAM_PROTO_ClearQueue [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 09 00 00 [13:09:56]Write to MH i2c: E2 08 00 2C 56 80 09 00 00 00 00 00 00 F4 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 2C 56 00 90 00 F6 [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]SAM_PROTO_ClearQueue done [13:09:56]KKMCreateOFDPacket [13:09:56]OFDProtocolAddRootSTLVToBuf [13:09:56]FM_MakeSignedData [13:09:56]FM_MakeSignedData [13:09:56]SAM_PROTO_SignData [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 01 02 [13:09:56]Write to MH i2c: E2 08 00 2D 56 80 0D 01 02 00 00 00 00 FC [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 2D 56 00 90 00 F7 [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=255 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 93 01 00 35 04 06 00 42 [13:09:56]Write to MH i2c: E2 02 01 2E 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 93 01 00 35 04 06 00 42 00 00 81 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:57]Read from MH i2c: E2 03 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 03 00 2E 56 00 90 00 F8 [13:09:57]RAPDU: 90 00 [13:09:57]wFMCommunicate OK [13:09:57]wFMCommunicate request_size=10 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 0D 02 02 05 6F 6F 7E 9D 61 [13:09:57]Write to MH i2c: E2 0D 00 2F 56 80 0D 02 02 05 00 6F 6F 7E 9D 61 00 00 63 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 03 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 03 00 2F 56 00 90 00 F9 [13:09:57]RAPDU: 90 00 [13:09:57]wFMCommunicate OK [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 0D 03 02 [13:09:57]Write to MH i2c: E2 08 00 30 56 80 0D 03 02 00 00 00 00 01 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0B 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0B 00 30 56 00 BA 2E 07 F0 84 95 91 94 90 00 1F [13:09:57]RAPDU: BA 2E 07 F0 84 95 91 94 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_SignData done [13:09:57]FM_MakeSignedData done [13:09:57]CreateOFDProtocolMessage [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 11 00 00 [13:09:57]Write to MH i2c: E2 08 00 31 56 80 11 00 00 00 00 00 00 01 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 31 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [13:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:57]wFMCommunicate OK [13:09:57]CreateOFDProtocolMessage done [13:09:57]OFDSenderStorePacket 103413 [13:09:57]StoreOFDPacket docnum=103413 [13:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 67 07 01 07 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 93 01 00 35 04 06 00 42 6F 6F 7E 9D 61 BA 2E 07 F0 84 95 91 94 [13:09:57]CheckFolder [13:09:57]dirname=/storage/ofd_packets [13:09:57]CheckFolder done [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00103413 [13:09:57]NVStorageSaveData ofd_packets/00103413 [13:09:57]File name is /storage/ofd_packets/00103413 [13:09:57]Write 301 bytes [13:09:57]NVStorageSaveData done [13:09:57]OFDSenderStorePacket done [13:09:57]KKMCreateOFDPacket done [13:09:57]NVStorageSaveData kkm_last_timestamp [13:09:57]File name is /storage/kkm_last_timestamp [13:09:57]Write 4 bytes [13:09:57]NVStorageSaveData done [13:09:57]ExternCall_PrintAddStr [13:09:57]wPrintStart [13:09:57]Write to MH i2c: 01 00 00 32 56 88 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 32 56 00 00 00 00 00 FF 0F 9D [13:09:57]RasterBufferAndPrint [13:09:57]line Счет N : (1)672577 [13:09:57]line ИНН: 02508201610067 [13:09:57]line Контрольно-Кассовый Чек [13:09:57]line ПРОДАЖА [13:09:57]line ТРК (МРК, ГНК) : 42 [13:09:57]line Товар: 2710124130 [13:09:57]line Аи-92-К-5 [13:09:57]line 10.000 * 66.40 [13:09:57]line = 664.00 [13:09:57]line НДС 12% НСП 1% [13:09:57]line > о реализуемом товаре [13:09:57]line ИТОГО: 664.00 [13:09:57]line НСП 1% : 5.88 [13:09:57]line НДС 12% : 70.51 [13:09:57]line Наличными: 664.00 [13:09:57]line Безнал.: 0.00 [13:09:57]line Место: АЗС № 120 "Партнер Нефть" [13:09:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:09:57]line СНО: Общий режим [13:09:57]line Чек 97 18.06.2024 13:10 [13:09:57]line Смена: 352 ФФД: 1.0 [13:09:57]line ЗНМ: 0300000164 [13:09:57]line РНМ: 0000000000092785 [13:09:57]line Версия ККМ: 001 [13:09:57]line ФМ: 0000000000875093 [13:09:57]line ФД: 103413 [13:09:57]line ФПД: 73046379371873 [13:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103413&fm=73046379371873&tin=02508201610067®Number=0000000000092785&sum=66400 [13:09:57]written 0, free lines is 4095 [13:09:57]OFD Sender: Processing packet 103413 [packets to send 17, broken 16] [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00103413 [13:09:57]OFD Sender: To server: pG, [13:09:57]CommunicateWithHost lk.salyk.kg:30040 [13:09:57]ConnectInit lk.salyk.kg [13:09:57]Connected sock=10 [13:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 67 07 01 07 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 87 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 93 01 00 35 04 06 00 42 6F 6F 7E 9D 61 BA 2E 07 F0 84 95 91 94 [13:09:57]Write to MH i2c: 01 00 00 5A 56 B0 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 5A 56 00 00 00 00 00 12 0D D6 [13:09:57]RasterBufferAndPrint [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]line [13:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 82 A9 47 00 1B 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 93 01 00 F4 03 04 00 B6 2D 71 66 B6 04 01 00 00 97 C2 A4 40 46 5A 21 D8 [13:09:57]CommunicateWithHost err = 0 [13:09:57]CheckOFDResponse [13:09:57]1017 (14) - 77093643461234 [13:09:57]1041 (16) - 0000000000875093 [13:09:57]1040 (4) - 103413 [13:09:57]1012 (4) - 18.06.2024 06:48 [13:09:57]1206 (1) - 0 [13:09:57]OFD Sender: Remove packet 103413 [13:09:57]ProducePacketName [13:09:57]name=ofd_packets/00103413 [13:09:57]NVStorageDeleteData [13:09:57]written 0, free lines is 3387 [13:09:58]MH_Cut [13:09:58]Write to MH i2c: D1 01 00 61 56 01 89 [13:09:58]Write i2c OK [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: D1 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: D1 01 00 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: D1 01 00 61 56 00 88 [13:09:58]Write to MH i2c: 01 00 00 62 56 B8 [13:09:58]Write i2c OK [13:09:58]MH_I2C_Read... [13:09:58]OFD Sender: No OFD packet to send [13:09:58]*** Cut start [13:09:58]*** Partial cut [13:09:58]*** CUTSNS_PIN = 1 [13:09:58]*** CUTSNS_PIN = 0 [13:09:58]*** Brake cut motor [13:09:59]Read from MH i2c: 01 [13:09:59]MH_I2C_Read... [13:09:59]*** Stop cut motor [13:09:59]*** Cut end [13:09:59]Read from MH i2c: 01 07 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: 01 07 00 62 56 00 00 00 00 00 FF 0F CD [13:09:59]process_action close_receipt done [13:09:59]requested_data is exist [13:09:59]produce_requested_data [13:09:59]requested_item fm.sn is exist - process it [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 11 00 00 [13:09:59]Write to MH i2c: E2 08 00 63 56 80 11 00 00 00 00 00 00 33 [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 17 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 17 00 63 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [13:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:59]wFMCommunicate OK [13:09:59]requested_item fd.num is exist - process it [13:09:59]SAM_PROTO_GetFieldsCounters [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 13 00 00 [13:09:59]Write to MH i2c: E2 08 00 64 56 80 13 00 00 00 00 00 00 36 [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 62 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 62 00 64 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 93 01 00 0E 04 04 00 60 01 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 6A [13:09: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 93 01 00 0E 04 04 00 60 01 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 [13:09:59]wFMCommunicate OK [13:09:59]SAM_PROTO_GetFieldsCounters done [13:09:59]requested_item shift.num is exist - process it [13:09:59]requested_item shift.opened is exist - process it [13:09:59]req_shift_opened [13:09:59]FM_GetShiftState [13:09:59]SAM_PROTO_GetShiftState [13:09:59]wFMCommunicate request_size=4 [13:09:59]MH_SAM_APDU [13:09:59]CAPDU: 80 13 01 00 [13:09:59]Write to MH i2c: E2 08 00 65 56 80 13 01 00 00 00 00 00 38 [13:09:59]Write i2c OK [13:09:59]MH_I2C_Read... [13:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:59]Read from MH i2c: E2 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 0E 00 [13:09:59]MH_I2C_Read... [13:09:59]Read from MH i2c: E2 0E 00 65 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [13:09:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:09:59]wFMCommunicate OK [13:09:59]SAM_PROTO_GetShiftState done [13:09:59]FM_GetShiftState done [13:09:59]req_shift_opened done [13:09:59]requested_item shift.open_date is exist - process it [13:09:59]req_shift_open_date [13:09:59]req_shift_open_date done [13:09:59]produce_requested_data done [13:09:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103413,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:09:59]process_action_free close_receipt [13:09:59]json_value_free [13:09:59]json_value_free done [13:09:59]process_json_proto returns [13:09:59]Send response to host [13:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103413,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:09:59]free response buf [13:09:59]execute_script done [13:09:59]execute_script returns [13:09:59]free content buf [13:09:59]Sock 7.Close socket [13:09:59]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:15]accept exits with 9 [13:14:15]New connection [13:14:15]New thread 3067084132 created [13:14:15]Thread 3067227492 joined [13:14:15]Waiting for new connection... [13:14:15] Sock 9.Parse request [13:14:15]Sock 9.Check first char [13:14:15]Sock 9.First char is OK [13:14:15]request: POST /json_proto HTTP/1.0 [13:14:15]Method: POST [13:14:15]URL: /json_proto [13:14:15]Method is POST - this is cgi request [13:14:15]url: /json_proto [13:14:15]query_string will be loaded in cgi processing [13:14:15]execute_cgi json_proto POST (null) [13:14:15]execute_cgi path=json_proto method=POST [13:14:15]POST find Content-Length [13:14:15]Host: 172.17.38.133:8080 [13:14:15]Content-Length: 808 [13:14:15]Content-Type: application/json [13:14:15] [13:14:15]POST finish read [13:14:15]Found Content-Length = 808 [13:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:15]execute_script... [13:14:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:15]POST & json_proto [13:14:15]process_json_proto [13:14:15]json parsed OK: [13:14:15]protocol is kg_v1.0 [13:14:15]action value=close_receipt [13:14:15]process_action close_receipt [13:14:15]cmd_close_receipt [13:14:15]MH_GetDate [13:14:15]Write to MH i2c: F0 00 00 66 56 AB [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 66 56 00 2E 88 71 66 BD 8F 7C 64 6D [13:14:15]GetLastDocTimeStamp 1718716202 [13:14:15]current date 1718716462 [13:14:15]FM_GetShiftState [13:14:15]SAM_PROTO_GetShiftState [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 13 01 00 [13:14:15]Write to MH i2c: E2 08 00 67 56 80 13 01 00 00 00 00 00 3A [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 67 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [13:14:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:14:15]wFMCommunicate OK [13:14:15]SAM_PROTO_GetShiftState done [13:14:15]FM_GetShiftState done [13:14:15]opened in 1718670284 [13:14:15]opened+sec_in_day 1718756684 [13:14:15]quantity*price = 100018 [13:14:15]sum+1 = 100020 [13:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 98 18.06.2024 13:14 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103414 ФПД: 52759849012600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131422&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103414&fm=52759849012600&tin=02508201610067®Number=0000000000092785&sum=100019 [13:14:16]StoreToDocumentArchive [13:14:16]shift 352 fd 103414 [13:14:16]save to /storage/0352/doc_00103414 [13:14:16]save last doc name /storage/0352/doc_00103414 to /storage/kkm_last_doc_name [13:14:16]save OK [13:14:16]Clear old archive folders... [13:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:14:16]tlvbuf is 0132CEF0 [13:14:16]SAM_PROTO_ClearQueue [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 09 00 00 [13:14:16]Write to MH i2c: E2 08 00 74 56 80 09 00 00 00 00 00 00 3C [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 74 56 00 90 00 3E [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]SAM_PROTO_ClearQueue done [13:14:16]KKMCreateOFDPacket [13:14:16]OFDProtocolAddRootSTLVToBuf [13:14:16]FM_MakeSignedData [13:14:16]FM_MakeSignedData [13:14:16]SAM_PROTO_SignData [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 01 02 [13:14:16]Write to MH i2c: E2 08 00 75 56 80 0D 01 02 00 00 00 00 44 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 75 56 00 90 00 3F [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=255 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 93 01 00 35 04 06 00 [13:14:16]Write to MH i2c: E2 02 01 76 56 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 93 01 00 35 04 06 00 00 00 98 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 76 56 00 90 00 40 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=11 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 02 02 06 2F FC 1C 0F 0D 78 [13:14:16]Write to MH i2c: E2 0E 00 77 56 80 0D 02 02 06 00 2F FC 1C 0F 0D 78 00 00 2E [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 77 56 00 90 00 41 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 03 02 [13:14:16]Write to MH i2c: E2 08 00 78 56 80 0D 03 02 00 00 00 00 49 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 0B 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 0B 00 78 56 00 D0 F2 E3 05 26 B7 1C C1 90 00 AE [13:14:16]RAPDU: D0 F2 E3 05 26 B7 1C C1 90 00 [13:14:16]wFMCommunicate OK [13:14:16]SAM_PROTO_SignData done [13:14:16]FM_MakeSignedData done [13:14:16]CreateOFDProtocolMessage [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 11 00 00 [13:14:16]Write to MH i2c: E2 08 00 79 56 80 11 00 00 00 00 00 00 49 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 17 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 17 00 79 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [13:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:14:16]wFMCommunicate OK [13:14:16]CreateOFDProtocolMessage done [13:14:16]OFDSenderStorePacket 103414 [13:14:16]StoreOFDPacket docnum=103414 [13:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 10 BE 08 01 7C 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 93 01 00 35 04 06 00 2F FC 1C 0F 0D 78 D0 F2 E3 05 26 B7 1C C1 [13:14:16]CheckFolder [13:14:16]dirname=/storage/ofd_packets [13:14:16]CheckFolder done [13:14:16]ProducePacketName [13:14:16]name=ofd_packets/00103414 [13:14:16]NVStorageSaveData ofd_packets/00103414 [13:14:16]File name is /storage/ofd_packets/00103414 [13:14:16]Write 302 bytes [13:14:16]NVStorageSaveData done [13:14:16]OFDSenderStorePacket done [13:14:16]KKMCreateOFDPacket done [13:14:16]NVStorageSaveData kkm_last_timestamp [13:14:16]File name is /storage/kkm_last_timestamp [13:14:16]Write 4 bytes [13:14:16]NVStorageSaveData done [13:14:16]ExternCall_PrintAddStr [13:14:16]wPrintStart [13:14:16]Write to MH i2c: 01 00 00 7A 56 D0 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 7A 56 00 00 00 00 00 FF 0F E5 [13:14:16]RasterBufferAndPrint [13:14:16]line Счет N : (1)672578 [13:14:16]line ИНН: 02508201610067 [13:14:16]line Контрольно-Кассовый Чек [13:14:16]line ПРОДАЖА [13:14:16]line ТРК (МРК, ГНК) : 21 [13:14:16]line Товар: 2710194210 [13:14:16]line ДТ(л)-К-5 [13:14:16]line 13.720 * 72.90 [13:14:16]line = 1000.19 [13:14:16]line НДС 12% НСП 1% [13:14:16]line > о реализуемом товаре [13:14:16]line ИТОГО: 1000.19 [13:14:16]line НСП 1% : 8.85 [13:14:16]line НДС 12% : 106.21 [13:14:16]line Наличными: 0.00 [13:14:16]line Безнал.: 1000.19 [13:14:16]line Место: АЗС № 120 "Партнер Нефть" [13:14:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:14:16]line СНО: Общий режим [13:14:16]line Чек 98 18.06.2024 13:14 [13:14:16]line Смена: 352 ФФД: 1.0 [13:14:16]line ЗНМ: 0300000164 [13:14:16]line РНМ: 0000000000092785 [13:14:16]line Версия ККМ: 001 [13:14:16]line Платежная система: O! деньги [13:14:16]line ФМ: 0000000000875093 [13:14:16]line ФД: 103414 [13:14:16]line ФПД: 52759849012600 [13:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131422&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103414&fm=52759849012600&tin=02508201610067®Number=0000000000092785&sum=100019 [13:14:17]written 0, free lines is 4095 [13:14:17]OFD Sender: Processing packet 103414 [packets to send 17, broken 16] [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00103414 [13:14:17]OFD Sender: To server: pG, [13:14:17]CommunicateWithHost lk.salyk.kg:30040 [13:14:17]ConnectInit lk.salyk.kg [13:14:17]Connected sock=10 [13:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 10 BE 08 01 7C 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 93 01 00 35 04 06 00 2F FC 1C 0F 0D 78 D0 F2 E3 05 26 B7 1C C1 [13:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 33 21 47 00 58 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 93 01 00 F4 03 04 00 BA 2E 71 66 B6 04 01 00 00 3E 88 78 0C 1D F5 83 7B [13:14:17]CommunicateWithHost err = 0 [13:14:17]CheckOFDResponse [13:14:17]1017 (14) - 77093643461234 [13:14:17]1041 (16) - 0000000000875093 [13:14:17]1040 (4) - 103414 [13:14:17]1012 (4) - 18.06.2024 06:52 [13:14:17]1206 (1) - 0 [13:14:17]OFD Sender: Remove packet 103414 [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00103414 [13:14:17]NVStorageDeleteData [13:14:17]Write to MH i2c: 01 00 00 A4 56 FA [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 A4 56 00 00 00 00 00 E3 0C F0 [13:14:17]RasterBufferAndPrint [13:14:17]line [13:14:17]line [13:14:17]line [13:14:17]line [13:14:17]line [13:14:17]written 0, free lines is 3306 [13:14:17]MH_Cut [13:14:17]Write to MH i2c: D1 01 00 AB 56 01 D3 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: D1 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: D1 01 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: D1 01 00 AB 56 00 D2 [13:14:17]Write to MH i2c: 01 00 00 AC 56 02 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:18]OFD Sender: No OFD packet to send [13:14:18]*** Cut start [13:14:18]*** Partial cut [13:14:18]*** CUTSNS_PIN = 1 [13:14:18]*** CUTSNS_PIN = 0 [13:14:18]*** Brake cut motor [13:14:18]Read from MH i2c: 01 [13:14:18]MH_I2C_Read... [13:14:18]*** Stop cut motor [13:14:18]*** Cut end [13:14:18]Read from MH i2c: 01 07 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 AC 56 00 00 00 00 00 FF 0F 17 [13:14:18]process_action close_receipt done [13:14:18]requested_data is exist [13:14:18]produce_requested_data [13:14:18]requested_item fm.sn is exist - process it [13:14:18]wFMCommunicate request_size=4 [13:14:18]MH_SAM_APDU [13:14:18]CAPDU: 80 11 00 00 [13:14:18]Write to MH i2c: E2 08 00 AD 56 80 11 00 00 00 00 00 00 7D [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 AD 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [13:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:14:19]wFMCommunicate OK [13:14:19]requested_item fd.num is exist - process it [13:14:19]SAM_PROTO_GetFieldsCounters [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 00 00 [13:14:19]Write to MH i2c: E2 08 00 AE 56 80 13 00 00 00 00 00 00 80 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 AE 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 93 01 00 0E 04 04 00 60 01 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 B8 [13:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 93 01 00 0E 04 04 00 60 01 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 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetFieldsCounters done [13:14:19]requested_item shift.num is exist - process it [13:14:19]requested_item shift.opened is exist - process it [13:14:19]req_shift_opened [13:14:19]FM_GetShiftState [13:14:19]SAM_PROTO_GetShiftState [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 01 00 [13:14:19]Write to MH i2c: E2 08 00 AF 56 80 13 01 00 00 00 00 00 82 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 AF 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [13:14:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetShiftState done [13:14:19]FM_GetShiftState done [13:14:19]req_shift_opened done [13:14:19]requested_item shift.open_date is exist - process it [13:14:19]req_shift_open_date [13:14:19]req_shift_open_date done [13:14:19]produce_requested_data done [13:14:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103414,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:14:19]process_action_free close_receipt [13:14:19]json_value_free [13:14:19]json_value_free done [13:14:19]process_json_proto returns [13:14:19]Send response to host [13:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103414,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:14:19]free response buf [13:14:19]execute_script done [13:14:19]execute_script returns [13:14:19]free content buf [13:14:19]Sock 9.Close socket [13:14:19]Sock 9.Thread stoped [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:44]accept exits with 7 [13:17:44]New connection [13:17:44]New thread 3067227492 created [13:17:44]Thread 3067084132 joined [13:17:44]Waiting for new connection... [13:17:44] Sock 7.Parse request [13:17:44]Sock 7.Check first char [13:17:44]Sock 7.First char is OK [13:17:44]request: POST /json_proto HTTP/1.0 [13:17:44]Method: POST [13:17:44]URL: /json_proto [13:17:44]Method is POST - this is cgi request [13:17:44]url: /json_proto [13:17:44]query_string will be loaded in cgi processing [13:17:44]execute_cgi json_proto POST (null) [13:17:44]execute_cgi path=json_proto method=POST [13:17:44]POST find Content-Length [13:17:44]Host: 172.17.38.133:8080 [13:17:44]Content-Length: 687 [13:17:44]Content-Type: application/json [13:17:44] [13:17:44]POST finish read [13:17:44]Found Content-Length = 687 [13:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:44]execute_script... [13:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:44]POST & json_proto [13:17:44]process_json_proto [13:17:44]json parsed OK: [13:17:44]protocol is kg_v1.0 [13:17:44]action value=close_receipt [13:17:44]process_action close_receipt [13:17:44]cmd_close_receipt [13:17:44]MH_GetDate [13:17:44]Write to MH i2c: F0 00 00 B0 56 F5 [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 09 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 09 00 B0 56 00 FF 88 71 66 BD 8F 7C 64 88 [13:17:44]GetLastDocTimeStamp 1718716462 [13:17:44]current date 1718716671 [13:17:44]FM_GetShiftState [13:17:44]SAM_PROTO_GetShiftState [13:17:44]wFMCommunicate request_size=4 [13:17:44]MH_SAM_APDU [13:17:44]CAPDU: 80 13 01 00 [13:17:44]Write to MH i2c: E2 08 00 B1 56 80 13 01 00 00 00 00 00 84 [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0E 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0E 00 B1 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [13:17:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:17:44]wFMCommunicate OK [13:17:44]SAM_PROTO_GetShiftState done [13:17:44]FM_GetShiftState done [13:17:44]opened in 1718670284 [13:17:44]opened+sec_in_day 1718756684 [13:17:44]quantity*price = 500021 [13:17:44]sum+1 = 500022 [13:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 99 18.06.2024 13:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103415 ФПД: 73513990144944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131751&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103415&fm=73513990144944&tin=02508201610067®Number=0000000000092785&sum=500000 [13:17:46]StoreToDocumentArchive [13:17:46]shift 352 fd 103415 [13:17:46]save to /storage/0352/doc_00103415 [13:17:46]save last doc name /storage/0352/doc_00103415 to /storage/kkm_last_doc_name [13:17:46]save OK [13:17:46]Clear old archive folders... [13:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:17:46]tlvbuf is 01454610 [13:17:46]SAM_PROTO_ClearQueue [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 09 00 00 [13:17:46]Write to MH i2c: E2 08 00 BE 56 80 09 00 00 00 00 00 00 86 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 BE 56 00 90 00 88 [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]SAM_PROTO_ClearQueue done [13:17:46]KKMCreateOFDPacket [13:17:46]OFDProtocolAddRootSTLVToBuf [13:17:46]FM_MakeSignedData [13:17:46]FM_MakeSignedData [13:17:46]SAM_PROTO_SignData [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 01 02 [13:17:46]Write to MH i2c: E2 08 00 BF 56 80 0D 01 02 00 00 00 00 8E [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 BF 56 00 90 00 89 [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=255 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 FF 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 93 01 00 35 04 06 00 [13:17:46]Write to MH i2c: E2 02 01 C0 56 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 FF 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 93 01 00 35 04 06 00 00 00 18 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 C0 56 00 90 00 8A [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=11 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 02 02 06 42 DC 4F 44 C3 B0 [13:17:46]Write to MH i2c: E2 0E 00 C1 56 80 0D 02 02 06 00 42 DC 4F 44 C3 B0 00 00 C1 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 C1 56 00 90 00 8B [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 03 02 [13:17:46]Write to MH i2c: E2 08 00 C2 56 80 0D 03 02 00 00 00 00 93 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 0B 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 0B 00 C2 56 00 AD B7 23 C0 4E D0 63 06 90 00 62 [13:17:46]RAPDU: AD B7 23 C0 4E D0 63 06 90 00 [13:17:46]wFMCommunicate OK [13:17:46]SAM_PROTO_SignData done [13:17:46]FM_MakeSignedData done [13:17:46]CreateOFDProtocolMessage [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 11 00 00 [13:17:46]Write to MH i2c: E2 08 00 C3 56 80 11 00 00 00 00 00 00 93 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 17 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 17 00 C3 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [13:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:17:46]wFMCommunicate OK [13:17:46]CreateOFDProtocolMessage done [13:17:46]OFDSenderStorePacket 103415 [13:17:46]StoreOFDPacket docnum=103415 [13:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F6 2C 08 01 0C 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 FF 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 93 01 00 35 04 06 00 42 DC 4F 44 C3 B0 AD B7 23 C0 4E D0 63 06 [13:17:46]CheckFolder [13:17:46]dirname=/storage/ofd_packets [13:17:46]CheckFolder done [13:17:46]ProducePacketName [13:17:46]name=ofd_packets/00103415 [13:17:46]NVStorageSaveData ofd_packets/00103415 [13:17:46]File name is /storage/ofd_packets/00103415 [13:17:46]Write 302 bytes [13:17:46]NVStorageSaveData done [13:17:46]OFDSenderStorePacket done [13:17:46]KKMCreateOFDPacket done [13:17:46]NVStorageSaveData kkm_last_timestamp [13:17:46]File name is /storage/kkm_last_timestamp [13:17:46]Write 4 bytes [13:17:46]NVStorageSaveData done [13:17:46]ExternCall_PrintAddStr [13:17:46]wPrintStart [13:17:46]Write to MH i2c: 01 00 00 C4 56 1A [13:17:46]OFD Sender: Processing packet 103415 [packets to send 17, broken 16] [13:17:46]ProducePacketName [13:17:46]name=ofd_packets/00103415 [13:17:46]OFD Sender: To server: pG, [13:17:46]CommunicateWithHost lk.salyk.kg:30040 [13:17:46]ConnectInit lk.salyk.kg [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 07 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 07 00 C4 56 00 00 00 00 00 FF 0F 2F [13:17:46]RasterBufferAndPrint [13:17:46]line Счет N : (1)672580 [13:17:46]line ИНН: 02508201610067 [13:17:46]line Контрольно-Кассовый Чек [13:17:46]line ПРОДАЖА [13:17:46]line ТРК (МРК, ГНК) : 11 [13:17:46]line Товар: 2710194210 [13:17:46]line ДТ(л)-К-5 [13:17:46]line 68.590 * 72.90 [13:17:46]line = 5000.21 [13:17:46]line НДС 12% НСП 1% [13:17:46]line > о реализуемом товаре [13:17:46]line ОКРУГЛЕНИЕ: -0.21 [13:17:46]line ИТОГО: 5000.00 [13:17:46]line Внесено: 5000.00 [13:17:46]line СДАЧА: 0.00 [13:17:46]line НСП 1% : 44.25 [13:17:46]line НДС 12% : 531.00 [13:17:46]line Наличными: 5000.00 [13:17:46]line Безнал.: 0.00 [13:17:46]line Место: АЗС № 120 "Партнер Нефть" [13:17:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:17:46]line СНО: Общий режим [13:17:46]line Чек 99 18.06.2024 13:17 [13:17:46]line Смена: 352 ФФД: 1.0 [13:17:46]line ЗНМ: 0300000164 [13:17:46]line РНМ: 0000000000092785 [13:17:46]line Версия ККМ: 001 [13:17:46]line ФМ: 0000000000875093 [13:17:46]line ФД: 103415 [13:17:46]line ФПД: 73513990144944 [13:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131751&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103415&fm=73513990144944&tin=02508201610067®Number=0000000000092785&sum=500000 [13:17:46]Connected sock=10 [13:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F6 2C 08 01 0C 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 FF 88 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 93 01 00 35 04 06 00 42 DC 4F 44 C3 B0 AD B7 23 C0 4E D0 63 06 [13:17:46]written 0, free lines is 4095 [13:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F0 21 47 00 A4 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 35 30 39 33 10 04 04 00 F7 93 01 00 F4 03 04 00 8B 2F 71 66 B6 04 01 00 00 9F 06 2C 61 93 1A 4B F9 [13:17:47]CommunicateWithHost err = 0 [13:17:47]CheckOFDResponse [13:17:47]1017 (14) - 77093643461234 [13:17:47]1041 (16) - 0000000000875093 [13:17:47]1040 (4) - 103415 [13:17:47]1012 (4) - 18.06.2024 06:56 [13:17:47]1206 (1) - 0 [13:17:47]OFD Sender: Remove packet 103415 [13:17:47]ProducePacketName [13:17:47]name=ofd_packets/00103415 [13:17:47]NVStorageDeleteData [13:17:47]Write to MH i2c: 01 00 00 EF 56 45 [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 07 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 07 00 EF 56 00 00 00 00 00 DD 0C 35 [13:17:47]RasterBufferAndPrint [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]written 0, free lines is 3299 [13:17:47]MH_Cut [13:17:47]Write to MH i2c: D1 01 00 F6 56 01 1E [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 01 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 01 00 F6 56 00 1D [13:17:47]Write to MH i2c: 01 00 00 F7 56 4D [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]OFD Sender: No OFD packet to send [13:17:48]*** Cut start [13:17:48]*** Partial cut [13:17:48]*** CUTSNS_PIN = 1 [13:17:48]*** CUTSNS_PIN = 0 [13:17:48]*** Brake cut motor [13:17:48]Read from MH i2c: 01 [13:17:48]MH_I2C_Read... [13:17:48]*** Stop cut motor [13:17:48]*** Cut end [13:17:48]Read from MH i2c: 01 07 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: 01 07 00 F7 56 00 00 00 00 00 FF 0F 62 [13:17:48]process_action close_receipt done [13:17:48]requested_data is exist [13:17:48]produce_requested_data [13:17:48]requested_item fm.sn is exist - process it [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 11 00 00 [13:17:48]Write to MH i2c: E2 08 00 F8 56 80 11 00 00 00 00 00 00 C8 [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 17 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 17 00 F8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [13:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:17:48]wFMCommunicate OK [13:17:48]requested_item fd.num is exist - process it [13:17:48]SAM_PROTO_GetFieldsCounters [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 13 00 00 [13:17:48]Write to MH i2c: E2 08 00 F9 56 80 13 00 00 00 00 00 00 CB [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 62 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 62 00 F9 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 93 01 00 0E 04 04 00 60 01 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 07 [13:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 93 01 00 0E 04 04 00 60 01 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 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_GetFieldsCounters done [13:17:48]requested_item shift.num is exist - process it [13:17:48]requested_item shift.opened is exist - process it [13:17:48]req_shift_opened [13:17:48]FM_GetShiftState [13:17:48]SAM_PROTO_GetShiftState [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 13 01 00 [13:17:48]Write to MH i2c: E2 08 00 FA 56 80 13 01 00 00 00 00 00 CD [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:48]Read from MH i2c: E2 0E 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 0E 00 FA 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4E [13:17:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_GetShiftState done [13:17:48]FM_GetShiftState done [13:17:48]req_shift_opened done [13:17:48]requested_item shift.open_date is exist - process it [13:17:48]req_shift_open_date [13:17:48]req_shift_open_date done [13:17:48]produce_requested_data done [13:17:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103415,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:17:48]process_action_free close_receipt [13:17:48]json_value_free [13:17:48]json_value_free done [13:17:48]process_json_proto returns [13:17:48]Send response to host [13:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103415,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:17:48]free response buf [13:17:48]execute_script done [13:17:48]execute_script returns [13:17:48]free content buf [13:17:48]Sock 7.Close socket [13:17:48]Sock 7.Thread stoped [13:17:51]accept exits with 9 [13:17:51]New connection [13:17:51]New thread 3067084132 created [13:17:51]Thread 3067227492 joined [13:17:51]Waiting for new connection... [13:17:51] Sock 9.Parse request [13:17:51]Sock 9.Check first char [13:17:51]Sock 9.First char is OK [13:17:51]request: POST /json_proto HTTP/1.0 [13:17:51]Method: POST [13:17:51]URL: /json_proto [13:17:51]Method is POST - this is cgi request [13:17:51]url: /json_proto [13:17:51]query_string will be loaded in cgi processing [13:17:51]execute_cgi json_proto POST (null) [13:17:51]execute_cgi path=json_proto method=POST [13:17:51]POST find Content-Length [13:17:51]Host: 172.17.38.133:8080 [13:17:51]Content-Length: 744 [13:17:51]Content-Type: application/json [13:17:51] [13:17:51]POST finish read [13:17:51]Found Content-Length = 744 [13:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103415, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:51]execute_script... [13:17:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103415, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:51]POST & json_proto [13:17:51]process_json_proto [13:17:51]json parsed OK: [13:17:51]protocol is kg_v1.0 [13:17:51]action value=close_receipt [13:17:51]process_action close_receipt [13:17:51]cmd_close_receipt [13:17:51]MH_GetDate [13:17:51]Write to MH i2c: F0 00 00 FB 56 40 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: F0 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: F0 09 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: F0 09 00 FB 56 00 06 89 71 66 BD 8F 7C 64 DB [13:17:51]GetLastDocTimeStamp 1718716671 [13:17:51]current date 1718716678 [13:17:51]FM_GetShiftState [13:17:51]SAM_PROTO_GetShiftState [13:17:51]wFMCommunicate request_size=4 [13:17:51]MH_SAM_APDU [13:17:51]CAPDU: 80 13 01 00 [13:17:51]Write to MH i2c: E2 08 00 FC 56 80 13 01 00 00 00 00 00 CF [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:51]Read from MH i2c: E2 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 0E 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: E2 0E 00 FC 56 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 50 [13:17:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:17:51]wFMCommunicate OK [13:17:51]SAM_PROTO_GetShiftState done [13:17:51]FM_GetShiftState done [13:17:51]opened in 1718670284 [13:17:51]opened+sec_in_day 1718756684 [13:17:51]quantity*price = 500021 [13:17:51]sum+1 = 500022 [13:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 100 18.06.2024 13:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103415 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103416 ФПД: 121547099457164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131758&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103416&fm=121547099457164&tin=02508201610067®Number=0000000000092785&sum=500000 [13:17:52]StoreToDocumentArchive [13:17:52]shift 352 fd 103416 [13:17:52]save to /storage/0352/doc_00103416 [13:17:52]save last doc name /storage/0352/doc_00103416 to /storage/kkm_last_doc_name [13:17:52]save OK [13:17:52]Clear old archive folders... [13:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:17:52]tlvbuf is 013FFB90 [13:17:52]SAM_PROTO_ClearQueue [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 09 00 00 [13:17:52]Write to MH i2c: E2 08 00 0B 57 80 09 00 00 00 00 00 00 D4 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 03 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 03 00 0B 57 00 90 00 D6 [13:17:52]RAPDU: 90 00 [13:17:52]wFMCommunicate OK [13:17:52]SAM_PROTO_ClearQueue done [13:17:52]KKMCreateOFDPacket [13:17:52]OFDProtocolAddRootSTLVToBuf [13:17:52]FM_MakeSignedData [13:17:52]FM_MakeSignedData [13:17:52]SAM_PROTO_SignData [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 0D 01 02 [13:17:52]Write to MH i2c: E2 08 00 0C 57 80 0D 01 02 00 00 00 00 DC [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 03 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 03 00 0C 57 00 90 00 D7 [13:17:52]RAPDU: 90 00 [13:17:52]wFMCommunicate OK [13:17:52]wFMCommunicate request_size=255 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 06 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F7 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 [13:17:52]Write to MH i2c: E2 02 01 0D 57 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 06 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F7 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 00 00 A1 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 0D 57 00 90 00 D8 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]wFMCommunicate request_size=39 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 93 01 00 35 04 06 00 6E 8B E3 AF C6 8C [13:17:53]Write to MH i2c: E2 2A 00 0E 57 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 93 01 00 35 04 06 00 6E 8B E3 AF C6 8C 00 00 03 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 0E 57 00 90 00 D9 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 0D 03 02 [13:17:53]Write to MH i2c: E2 08 00 0F 57 80 0D 03 02 00 00 00 00 E1 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 0B 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 0B 00 0F 57 00 B9 FD 34 B6 A7 D8 2C 37 90 00 64 [13:17:53]RAPDU: B9 FD 34 B6 A7 D8 2C 37 90 00 [13:17:53]wFMCommunicate OK [13:17:53]SAM_PROTO_SignData done [13:17:53]FM_MakeSignedData done [13:17:53]CreateOFDProtocolMessage [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 11 00 00 [13:17:53]Write to MH i2c: E2 08 00 10 57 80 11 00 00 00 00 00 00 E1 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 17 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 17 00 10 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [13:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:17:53]wFMCommunicate OK [13:17:53]CreateOFDProtocolMessage done [13:17:53]OFDSenderStorePacket 103416 [13:17:53]StoreOFDPacket docnum=103416 [13:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2C 01 00 00 8E 40 24 01 A6 D1 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 06 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F7 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 93 01 00 35 04 06 00 6E 8B E3 AF C6 8C B9 FD 34 B6 A7 D8 2C 37 [13:17:53]CheckFolder [13:17:53]dirname=/storage/ofd_packets [13:17:53]CheckFolder done [13:17:53]ProducePacketName [13:17:53]name=ofd_packets/00103416 [13:17:53]NVStorageSaveData ofd_packets/00103416 [13:17:53]File name is /storage/ofd_packets/00103416 [13:17:53]Write 330 bytes [13:17:53]NVStorageSaveData done [13:17:53]OFDSenderStorePacket done [13:17:53]KKMCreateOFDPacket done [13:17:53]NVStorageSaveData kkm_last_timestamp [13:17:53]File name is /storage/kkm_last_timestamp [13:17:53]Write 4 bytes [13:17:53]NVStorageSaveData done [13:17:53]ExternCall_PrintAddStr [13:17:53]wPrintStart [13:17:53]Write to MH i2c: 01 00 00 11 57 68 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 07 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 07 00 11 57 00 00 00 00 00 FF 0F 7D [13:17:53]RasterBufferAndPrint [13:17:53]line Счет N : (1)672580 [13:17:53]line ИНН: 02508201610067 [13:17:53]line Контрольно-Кассовый Чек [13:17:53]line ВОЗВРАТ ПРОДАЖИ [13:17:53]line ТРК (МРК, ГНК) : 11 [13:17:53]line Товар: 2710194210 [13:17:53]line ДТ(л)-К-5 [13:17:53]line 68.590 * 72.90 [13:17:53]line = 5000.21 [13:17:53]line НДС 12% НСП 1% [13:17:53]line > о реализуемом товаре [13:17:53]line ОКРУГЛЕНИЕ: -0.21 [13:17:53]line ИТОГО: 5000.00 [13:17:53]line НСП 1% : 44.25 [13:17:53]line НДС 12% : 531.00 [13:17:53]line Наличными: 5000.00 [13:17:53]line Безнал.: 0.00 [13:17:53]line Место: АЗС № 120 "Партнер Нефть" [13:17:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:17:53]line СНО: Общий режим [13:17:53]line Чек 100 18.06.2024 13:17 [13:17:53]line Смена: 352 ФФД: 1.0 [13:17:53]line ЗНМ: 0300000164 [13:17:53]line РНМ: 0000000000092785 [13:17:53]line Версия ККМ: 001 [13:17:53]line ФД осн.: 103415 [13:17:53]line ФМ осн.: 0000000000875093 [13:17:53]line ФМ: 0000000000875093 [13:17:53]line ФД: 103416 [13:17:53]line ФПД: 121547099457164 [13:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131758&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103416&fm=121547099457164&tin=02508201610067®Number=0000000000092785&sum=500000 [13:17:53]written 0, free lines is 4095 [13:17:53]OFD Sender: Processing packet 103416 [packets to send 17, broken 16] [13:17:53]ProducePacketName [13:17:53]name=ofd_packets/00103416 [13:17:53]OFD Sender: To server: pG, [13:17:53]CommunicateWithHost lk.salyk.kg:30040 [13:17:53]ConnectInit lk.salyk.kg [13:17:53]Connected sock=10 [13:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2C 01 00 00 8E 40 24 01 A6 D1 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 06 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F7 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 93 01 00 35 04 06 00 6E 8B E3 AF C6 8C B9 FD 34 B6 A7 D8 2C 37 [13:17:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 ED BD 47 00 DB 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 93 01 00 F4 03 04 00 92 2F 71 66 B6 04 01 00 00 DF 2B 59 E0 07 AF 8A 67 [13:17:53]CommunicateWithHost err = 0 [13:17:53]CheckOFDResponse [13:17:53]1017 (14) - 77093643461234 [13:17:53]1041 (16) - 0000000000875093 [13:17:53]1040 (4) - 103416 [13:17:53]1012 (4) - 18.06.2024 06:56 [13:17:53]1206 (1) - 0 [13:17:53]OFD Sender: Remove packet 103416 [13:17:53]ProducePacketName [13:17:53]name=ofd_packets/00103416 [13:17:53]NVStorageDeleteData [13:17:53]Write to MH i2c: 01 00 00 3C 57 93 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 07 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: 01 07 00 3C 57 00 00 00 00 00 10 0D B7 [13:17:53]RasterBufferAndPrint [13:17:53]line [13:17:53]line [13:17:53]line [13:17:53]line [13:17:53]line [13:17:53]written 0, free lines is 3360 [13:17:53]MH_Cut [13:17:53]Write to MH i2c: D1 01 00 43 57 01 6C [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: D1 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: D1 01 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: D1 01 00 43 57 00 6B [13:17:53]Write to MH i2c: 01 00 00 44 57 9B [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:54]OFD Sender: No OFD packet to send [13:17:54]*** Cut start [13:17:54]*** Partial cut [13:17:54]*** CUTSNS_PIN = 1 [13:17:54]*** CUTSNS_PIN = 0 [13:17:54]*** Brake cut motor [13:17:55]Read from MH i2c: 01 [13:17:55]MH_I2C_Read... [13:17:55]*** Stop cut motor [13:17:55]*** Cut end [13:17:55]Read from MH i2c: 01 07 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: 01 07 00 44 57 00 00 00 00 00 FF 0F B0 [13:17:55]process_action close_receipt done [13:17:55]requested_data is exist [13:17:55]produce_requested_data [13:17:55]requested_item fm.sn is exist - process it [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 11 00 00 [13:17:55]Write to MH i2c: E2 08 00 45 57 80 11 00 00 00 00 00 00 16 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 17 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 17 00 45 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [13:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:17:55]wFMCommunicate OK [13:17:55]requested_item fd.num is exist - process it [13:17:55]SAM_PROTO_GetFieldsCounters [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 13 00 00 [13:17:55]Write to MH i2c: E2 08 00 46 57 80 13 00 00 00 00 00 00 19 [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 62 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 62 00 46 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 93 01 00 0E 04 04 00 60 01 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 59 [13:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 93 01 00 0E 04 04 00 60 01 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 [13:17:55]wFMCommunicate OK [13:17:55]SAM_PROTO_GetFieldsCounters done [13:17:55]requested_item shift.num is exist - process it [13:17:55]requested_item shift.opened is exist - process it [13:17:55]req_shift_opened [13:17:55]FM_GetShiftState [13:17:55]SAM_PROTO_GetShiftState [13:17:55]wFMCommunicate request_size=4 [13:17:55]MH_SAM_APDU [13:17:55]CAPDU: 80 13 01 00 [13:17:55]Write to MH i2c: E2 08 00 47 57 80 13 01 00 00 00 00 00 1B [13:17:55]Write i2c OK [13:17:55]MH_I2C_Read... [13:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:55]Read from MH i2c: E2 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 [13:17:55]MH_I2C_Read... [13:17:55]Read from MH i2c: E2 0E 00 47 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [13:17:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:17:55]wFMCommunicate OK [13:17:55]SAM_PROTO_GetShiftState done [13:17:55]FM_GetShiftState done [13:17:55]req_shift_opened done [13:17:55]requested_item shift.open_date is exist - process it [13:17:55]req_shift_open_date [13:17:55]req_shift_open_date done [13:17:55]produce_requested_data done [13:17:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103416,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:17:55]process_action_free close_receipt [13:17:55]json_value_free [13:17:55]json_value_free done [13:17:55]process_json_proto returns [13:17:55]Send response to host [13:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103416,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:17:55]free response buf [13:17:55]execute_script done [13:17:55]execute_script returns [13:17:55]free content buf [13:17:55]Sock 9.Close socket [13:17:55]Sock 9.Thread stoped [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:10]accept exits with 7 [13:18:10]New connection [13:18:10]New thread 3067227492 created [13:18:10]Thread 3067084132 joined [13:18:10]Waiting for new connection... [13:18:10] Sock 7.Parse request [13:18:10]Sock 7.Check first char [13:18:10]Sock 7.First char is OK [13:18:10]request: POST /json_proto HTTP/1.0 [13:18:10]Method: POST [13:18:10]URL: /json_proto [13:18:10]Method is POST - this is cgi request [13:18:10]url: /json_proto [13:18:10]query_string will be loaded in cgi processing [13:18:10]execute_cgi json_proto POST (null) [13:18:10]execute_cgi path=json_proto method=POST [13:18:10]POST find Content-Length [13:18:10]Host: 172.17.38.133:8080 [13:18:10]Content-Length: 677 [13:18:10]Content-Type: application/json [13:18:10] [13:18:10]POST finish read [13:18:10]Found Content-Length = 677 [13:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:10]execute_script... [13:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:10]POST & json_proto [13:18:10]process_json_proto [13:18:10]json parsed OK: [13:18:10]protocol is kg_v1.0 [13:18:10]action value=close_receipt [13:18:10]process_action close_receipt [13:18:10]cmd_close_receipt [13:18:10]MH_GetDate [13:18:10]Write to MH i2c: F0 00 00 48 57 8E [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 09 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: F0 09 00 48 57 00 19 89 71 66 BD 8F 7C 64 3C [13:18:10]GetLastDocTimeStamp 1718716678 [13:18:10]current date 1718716697 [13:18:10]FM_GetShiftState [13:18:10]SAM_PROTO_GetShiftState [13:18:10]wFMCommunicate request_size=4 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 13 01 00 [13:18:10]Write to MH i2c: E2 08 00 49 57 80 13 01 00 00 00 00 00 1D [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 0E 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 0E 00 49 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9E [13:18:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:18:10]wFMCommunicate OK [13:18:10]SAM_PROTO_GetShiftState done [13:18:10]FM_GetShiftState done [13:18:10]opened in 1718670284 [13:18:10]opened+sec_in_day 1718756684 [13:18:10]quantity*price = 40039 [13:18:10]sum+1 = 40040 [13:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 18.06.2024 13:18 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103417 ФПД: 76418741728907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103417&fm=76418741728907&tin=02508201610067®Number=0000000000092785&sum=40000 [13:18:11]StoreToDocumentArchive [13:18:11]shift 352 fd 103417 [13:18:11]save to /storage/0352/doc_00103417 [13:18:11]save last doc name /storage/0352/doc_00103417 to /storage/kkm_last_doc_name [13:18:11]save OK [13:18:11]Clear old archive folders... [13:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:11]tlvbuf is 01390DD0 [13:18:11]SAM_PROTO_ClearQueue [13:18:11]wFMCommunicate request_size=4 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 09 00 00 [13:18:11]Write to MH i2c: E2 08 00 56 57 80 09 00 00 00 00 00 00 1F [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 56 57 00 90 00 21 [13:18:11]RAPDU: 90 00 [13:18:11]wFMCommunicate OK [13:18:11]SAM_PROTO_ClearQueue done [13:18:11]KKMCreateOFDPacket [13:18:11]OFDProtocolAddRootSTLVToBuf [13:18:11]FM_MakeSignedData [13:18:11]FM_MakeSignedData [13:18:11]SAM_PROTO_SignData [13:18:11]wFMCommunicate request_size=4 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 0D 01 02 [13:18:11]Write to MH i2c: E2 08 00 57 57 80 0D 01 02 00 00 00 00 27 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 03 00 57 57 00 90 00 22 [13:18:11]RAPDU: 90 00 [13:18:11]wFMCommunicate OK [13:18:11]wFMCommunicate request_size=255 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 19 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 93 01 00 35 04 06 00 45 [13:18:11]Write to MH i2c: E2 02 01 58 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 19 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 93 01 00 35 04 06 00 45 00 00 C0 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 58 57 00 90 00 23 [13:18:12]RAPDU: 90 00 [13:18:12]wFMCommunicate OK [13:18:12]wFMCommunicate request_size=10 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 0D 02 02 05 80 9F F4 76 8B [13:18:12]Write to MH i2c: E2 0D 00 59 57 80 0D 02 02 05 00 80 9F F4 76 8B 00 00 48 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 03 00 59 57 00 90 00 24 [13:18:12]RAPDU: 90 00 [13:18:12]wFMCommunicate OK [13:18:12]wFMCommunicate request_size=4 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 0D 03 02 [13:18:12]Write to MH i2c: E2 08 00 5A 57 80 0D 03 02 00 00 00 00 2C [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0B 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0B 00 5A 57 00 C0 27 96 E7 A6 13 AF BF 90 00 B8 [13:18:12]RAPDU: C0 27 96 E7 A6 13 AF BF 90 00 [13:18:12]wFMCommunicate OK [13:18:12]SAM_PROTO_SignData done [13:18:12]FM_MakeSignedData done [13:18:12]CreateOFDProtocolMessage [13:18:12]wFMCommunicate request_size=4 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 11 00 00 [13:18:12]Write to MH i2c: E2 08 00 5B 57 80 11 00 00 00 00 00 00 2C [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 17 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 17 00 5B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [13:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:18:12]wFMCommunicate OK [13:18:12]CreateOFDProtocolMessage done [13:18:12]OFDSenderStorePacket 103417 [13:18:12]StoreOFDPacket docnum=103417 [13:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B8 1B 07 01 06 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 19 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 93 01 00 35 04 06 00 45 80 9F F4 76 8B C0 27 96 E7 A6 13 AF BF [13:18:12]CheckFolder [13:18:12]dirname=/storage/ofd_packets [13:18:12]CheckFolder done [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00103417 [13:18:12]NVStorageSaveData ofd_packets/00103417 [13:18:12]File name is /storage/ofd_packets/00103417 [13:18:12]Write 301 bytes [13:18:12]NVStorageSaveData done [13:18:12]OFDSenderStorePacket done [13:18:12]KKMCreateOFDPacket done [13:18:12]NVStorageSaveData kkm_last_timestamp [13:18:12]File name is /storage/kkm_last_timestamp [13:18:12]Write 4 bytes [13:18:12]NVStorageSaveData done [13:18:12]ExternCall_PrintAddStr [13:18:12]wPrintStart [13:18:12]Write to MH i2c: 01 00 00 5C 57 B3 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 5C 57 00 00 00 00 00 FF 0F C8 [13:18:12]RasterBufferAndPrint [13:18:12]line Счет N : (1)672581 [13:18:12]line ИНН: 02508201610067 [13:18:12]line Контрольно-Кассовый Чек [13:18:12]line ПРОДАЖА [13:18:12]line ТРК (МРК, ГНК) : 42 [13:18:12]line Товар: 2710124130 [13:18:12]line Аи-92-К-5 [13:18:12]line 6.030 * 66.40 [13:18:12]line = 400.39 [13:18:12]line НДС 12% НСП 1% [13:18:12]line > о реализуемом товаре [13:18:12]line ОКРУГЛЕНИЕ: -0.39 [13:18:12]line ИТОГО: 400.00 [13:18:12]line Внесено: 400.00 [13:18:12]line СДАЧА: 0.00 [13:18:12]line НСП 1% : 3.54 [13:18:12]line НДС 12% : 42.52 [13:18:12]line Наличными: 400.00 [13:18:12]line Безнал.: 0.00 [13:18:12]line Место: АЗС № 120 "Партнер Нефть" [13:18:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:18:12]line СНО: Общий режим [13:18:12]line Чек 101 18.06.2024 13:18 [13:18:12]line Смена: 352 ФФД: 1.0 [13:18:12]line ЗНМ: 0300000164 [13:18:12]line РНМ: 0000000000092785 [13:18:12]line Версия ККМ: 001 [13:18:12]line ФМ: 0000000000875093 [13:18:12]line ФД: 103417 [13:18:12]line ФПД: 76418741728907 [13:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103417&fm=76418741728907&tin=02508201610067®Number=0000000000092785&sum=40000 [13:18:12]OFD Sender: Processing packet 103417 [packets to send 17, broken 16] [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00103417 [13:18:12]OFD Sender: To server: pG, [13:18:12]CommunicateWithHost lk.salyk.kg:30040 [13:18:12]ConnectInit lk.salyk.kg [13:18:12]written 0, free lines is 4095 [13:18:12]Connected sock=11 [13:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B8 1B 07 01 06 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 19 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 93 01 00 35 04 06 00 45 80 9F F4 76 8B C0 27 96 E7 A6 13 AF BF [13:18:12]Write to MH i2c: 01 00 00 87 57 DE [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: 01 07 00 87 57 00 00 00 00 00 EC 0C DD [13:18:12]RasterBufferAndPrint [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]line [13:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B1 DB 47 00 FC 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 93 01 00 F4 03 04 00 A5 2F 71 66 B6 04 01 00 00 E5 36 B6 5A 93 DF 0C F2 [13:18:12]CommunicateWithHost err = 0 [13:18:12]CheckOFDResponse [13:18:12]1017 (14) - 77093643461234 [13:18:12]1041 (16) - 0000000000875093 [13:18:12]1040 (4) - 103417 [13:18:12]1012 (4) - 18.06.2024 06:56 [13:18:12]1206 (1) - 0 [13:18:12]OFD Sender: Remove packet 103417 [13:18:12]ProducePacketName [13:18:12]name=ofd_packets/00103417 [13:18:12]NVStorageDeleteData [13:18:12]written 0, free lines is 3332 [13:18:12]MH_Cut [13:18:12]Write to MH i2c: D1 01 00 8E 57 01 B7 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 01 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: D1 01 00 8E 57 00 B6 [13:18:12]Write to MH i2c: 01 00 00 8F 57 E6 [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:13]OFD Sender: No OFD packet to send [13:18:13]*** Cut start [13:18:13]*** Partial cut [13:18:13]*** CUTSNS_PIN = 1 [13:18:13]*** CUTSNS_PIN = 0 [13:18:13]*** Brake cut motor [13:18:14]Read from MH i2c: 01 [13:18:14]MH_I2C_Read... [13:18:14]*** Stop cut motor [13:18:14]*** Cut end [13:18:14]Read from MH i2c: 01 07 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: 01 07 00 8F 57 00 00 00 00 00 FF 0F FB [13:18:14]process_action close_receipt done [13:18:14]requested_data is exist [13:18:14]produce_requested_data [13:18:14]requested_item fm.sn is exist - process it [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 11 00 00 [13:18:14]Write to MH i2c: E2 08 00 90 57 80 11 00 00 00 00 00 00 61 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 17 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 17 00 90 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [13:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:18:14]wFMCommunicate OK [13:18:14]requested_item fd.num is exist - process it [13:18:14]SAM_PROTO_GetFieldsCounters [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 13 00 00 [13:18:14]Write to MH i2c: E2 08 00 91 57 80 13 00 00 00 00 00 00 64 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 62 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 62 00 91 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 93 01 00 0E 04 04 00 60 01 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 A8 [13:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 93 01 00 0E 04 04 00 60 01 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 [13:18:14]wFMCommunicate OK [13:18:14]SAM_PROTO_GetFieldsCounters done [13:18:14]requested_item shift.num is exist - process it [13:18:14]requested_item shift.opened is exist - process it [13:18:14]req_shift_opened [13:18:14]FM_GetShiftState [13:18:14]SAM_PROTO_GetShiftState [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 13 01 00 [13:18:14]Write to MH i2c: E2 08 00 92 57 80 13 01 00 00 00 00 00 66 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 0E 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 0E 00 92 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [13:18:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:18:14]wFMCommunicate OK [13:18:14]SAM_PROTO_GetShiftState done [13:18:14]FM_GetShiftState done [13:18:14]req_shift_opened done [13:18:14]requested_item shift.open_date is exist - process it [13:18:14]req_shift_open_date [13:18:14]req_shift_open_date done [13:18:14]produce_requested_data done [13:18:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103417,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:18:14]process_action_free close_receipt [13:18:14]json_value_free [13:18:14]json_value_free done [13:18:14]process_json_proto returns [13:18:14]Send response to host [13:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103417,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:18:14]free response buf [13:18:14]execute_script done [13:18:14]execute_script returns [13:18:14]free content buf [13:18:14]Sock 7.Close socket [13:18:14]Sock 7.Thread stoped [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:15]accept exits with 9 [13:19:15]New connection [13:19:15]New thread 3067084132 created [13:19:15]Thread 3067227492 joined [13:19:15]Waiting for new connection... [13:19:15] Sock 9.Parse request [13:19:15]Sock 9.Check first char [13:19:15]Sock 9.First char is OK [13:19:15]request: POST /json_proto HTTP/1.0 [13:19:15]Method: POST [13:19:15]URL: /json_proto [13:19:15]Method is POST - this is cgi request [13:19:15]url: /json_proto [13:19:15]query_string will be loaded in cgi processing [13:19:15]execute_cgi json_proto POST (null) [13:19:15]execute_cgi path=json_proto method=POST [13:19:15]POST find Content-Length [13:19:15]Host: 172.17.38.133:8080 [13:19:15]Content-Length: 734 [13:19:15]Content-Type: application/json [13:19:15] [13:19:15]POST finish read [13:19:15]Found Content-Length = 734 [13:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103417, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:15]execute_script... [13:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103417, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:15]POST & json_proto [13:19:15]process_json_proto [13:19:15]json parsed OK: [13:19:15]protocol is kg_v1.0 [13:19:15]action value=close_receipt [13:19:15]process_action close_receipt [13:19:15]cmd_close_receipt [13:19:15]MH_GetDate [13:19:15]Write to MH i2c: F0 00 00 93 57 D9 [13:19:15]Write i2c OK [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 09 00 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 09 00 93 57 00 5A 89 71 66 BD 8F 7C 64 C8 [13:19:15]GetLastDocTimeStamp 1718716697 [13:19:15]current date 1718716762 [13:19:15]FM_GetShiftState [13:19:15]SAM_PROTO_GetShiftState [13:19:15]wFMCommunicate request_size=4 [13:19:15]MH_SAM_APDU [13:19:15]CAPDU: 80 13 01 00 [13:19:15]Write to MH i2c: E2 08 00 94 57 80 13 01 00 00 00 00 00 68 [13:19:15]Write i2c OK [13:19:15]MH_I2C_Read... [13:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:15]Read from MH i2c: E2 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: E2 0E 00 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: E2 0E 00 94 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E9 [13:19:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:19:15]wFMCommunicate OK [13:19:15]SAM_PROTO_GetShiftState done [13:19:15]FM_GetShiftState done [13:19:15]opened in 1718670284 [13:19:15]opened+sec_in_day 1718756684 [13:19:15]quantity*price = 40039 [13:19:15]sum+1 = 40040 [13:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 102 18.06.2024 13:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103417 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103418 ФПД: 240564630436401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131922&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103418&fm=240564630436401&tin=02508201610067®Number=0000000000092785&sum=40000 [13:19:17]StoreToDocumentArchive [13:19:17]shift 352 fd 103418 [13:19:17]save to /storage/0352/doc_00103418 [13:19:17]save last doc name /storage/0352/doc_00103418 to /storage/kkm_last_doc_name [13:19:17]save OK [13:19:17]Clear old archive folders... [13:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=279 [13:19:17]tlvbuf is 0147C0A0 [13:19:17]SAM_PROTO_ClearQueue [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 09 00 00 [13:19:17]Write to MH i2c: E2 08 00 A3 57 80 09 00 00 00 00 00 00 6C [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 A3 57 00 90 00 6E [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]SAM_PROTO_ClearQueue done [13:19:17]KKMCreateOFDPacket [13:19:17]OFDProtocolAddRootSTLVToBuf [13:19:17]FM_MakeSignedData [13:19:17]FM_MakeSignedData [13:19:17]SAM_PROTO_SignData [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 01 02 [13:19:17]Write to MH i2c: E2 08 00 A4 57 80 0D 01 02 00 00 00 00 74 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 A4 57 00 90 00 6F [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]wFMCommunicate request_size=255 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F9 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [13:19:17]Write to MH i2c: E2 02 01 A5 57 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F9 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 6C [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 A5 57 00 90 00 70 [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]wFMCommunicate request_size=38 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 93 01 00 35 04 06 00 DA CA D1 57 BA 31 [13:19:17]Write to MH i2c: E2 29 00 A6 57 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 93 01 00 35 04 06 00 DA CA D1 57 BA 31 00 00 45 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 A6 57 00 90 00 71 [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 03 02 [13:19:17]Write to MH i2c: E2 08 00 A7 57 80 0D 03 02 00 00 00 00 79 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0B 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0B 00 A7 57 00 27 82 9F 8C D5 0D FE 80 90 00 AE [13:19:17]RAPDU: 27 82 9F 8C D5 0D FE 80 90 00 [13:19:17]wFMCommunicate OK [13:19:17]SAM_PROTO_SignData done [13:19:17]FM_MakeSignedData done [13:19:17]CreateOFDProtocolMessage [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 11 00 00 [13:19:17]Write to MH i2c: E2 08 00 A8 57 80 11 00 00 00 00 00 00 79 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 17 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 17 00 A8 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [13:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:19:17]wFMCommunicate OK [13:19:17]CreateOFDProtocolMessage done [13:19:17]OFDSenderStorePacket 103418 [13:19:17]StoreOFDPacket docnum=103418 [13:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 29 45 23 01 56 7F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F9 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 93 01 00 35 04 06 00 DA CA D1 57 BA 31 27 82 9F 8C D5 0D FE 80 [13:19:17]CheckFolder [13:19:17]dirname=/storage/ofd_packets [13:19:17]CheckFolder done [13:19:17]ProducePacketName [13:19:17]name=ofd_packets/00103418 [13:19:17]NVStorageSaveData ofd_packets/00103418 [13:19:17]File name is /storage/ofd_packets/00103418 [13:19:17]Write 329 bytes [13:19:17]NVStorageSaveData done [13:19:17]OFDSenderStorePacket done [13:19:17]KKMCreateOFDPacket done [13:19:17]NVStorageSaveData kkm_last_timestamp [13:19:17]File name is /storage/kkm_last_timestamp [13:19:17]Write 4 bytes [13:19:17]NVStorageSaveData done [13:19:17]ExternCall_PrintAddStr [13:19:17]wPrintStart [13:19:17]Write to MH i2c: 01 00 00 A9 57 00 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 A9 57 00 00 00 00 00 FF 0F 15 [13:19:17]RasterBufferAndPrint [13:19:17]line Счет N : (1)672581 [13:19:17]line ИНН: 02508201610067 [13:19:17]line Контрольно-Кассовый Чек [13:19:17]line ВОЗВРАТ ПРОДАЖИ [13:19:17]line ТРК (МРК, ГНК) : 42 [13:19:17]line Товар: 2710124130 [13:19:17]line Аи-92-К-5 [13:19:17]line 6.030 * 66.40 [13:19:17]line = 400.39 [13:19:17]line НДС 12% НСП 1% [13:19:17]line > о реализуемом товаре [13:19:17]line ОКРУГЛЕНИЕ: -0.39 [13:19:17]line ИТОГО: 400.00 [13:19:17]line НСП 1% : 3.54 [13:19:17]line НДС 12% : 42.52 [13:19:17]line Наличными: 400.00 [13:19:17]line Безнал.: 0.00 [13:19:17]line Место: АЗС № 120 "Партнер Нефть" [13:19:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:19:17]line СНО: Общий режим [13:19:17]line Чек 102 18.06.2024 13:19 [13:19:17]line Смена: 352 ФФД: 1.0 [13:19:17]line ЗНМ: 0300000164 [13:19:17]line РНМ: 0000000000092785 [13:19:17]line Версия ККМ: 001 [13:19:17]line ФД осн.: 103417 [13:19:17]line ФМ осн.: 0000000000875093 [13:19:17]line ФМ: 0000000000875093 [13:19:17]line ФД: 103418 [13:19:17]line ФПД: 240564630436401 [13:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131922&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103418&fm=240564630436401&tin=02508201610067®Number=0000000000092785&sum=40000 [13:19:17]OFD Sender: Processing packet 103418 [packets to send 17, broken 16] [13:19:17]ProducePacketName [13:19:17]name=ofd_packets/00103418 [13:19:17]OFD Sender: To server: pG, [13:19:17]CommunicateWithHost lk.salyk.kg:30040 [13:19:17]ConnectInit lk.salyk.kg [13:19:17]written 0, free lines is 4095 [13:19:18]Connected sock=10 [13:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 29 45 23 01 56 7F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5A 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 F9 93 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 93 01 00 35 04 06 00 DA CA D1 57 BA 31 27 82 9F 8C D5 0D FE 80 [13:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 28 3A 47 00 D7 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 93 01 00 F4 03 04 00 E6 2F 71 66 B6 04 01 00 00 FE FE C1 C0 DF 8F D1 E7 [13:19:18]CommunicateWithHost err = 0 [13:19:18]CheckOFDResponse [13:19:18]1017 (14) - 77093643461234 [13:19:18]1041 (16) - 0000000000875093 [13:19:18]1040 (4) - 103418 [13:19:18]1012 (4) - 18.06.2024 06:57 [13:19:18]1206 (1) - 0 [13:19:18]OFD Sender: Remove packet 103418 [13:19:18]ProducePacketName [13:19:18]name=ofd_packets/00103418 [13:19:18]NVStorageDeleteData [13:19:18]Write to MH i2c: 01 00 00 D4 57 2B [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 D4 57 00 00 00 00 00 ED 0C 2B [13:19:18]RasterBufferAndPrint [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]written 0, free lines is 3315 [13:19:18]MH_Cut [13:19:18]Write to MH i2c: D1 01 00 DB 57 01 04 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: D1 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: D1 01 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: D1 01 00 DB 57 00 03 [13:19:18]Write to MH i2c: 01 00 00 DC 57 33 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]OFD Sender: No OFD packet to send [13:19:19]*** Cut start [13:19:19]*** Partial cut [13:19:19]*** CUTSNS_PIN = 1 [13:19:19]*** CUTSNS_PIN = 0 [13:19:19]*** Brake cut motor [13:19:19]Read from MH i2c: 01 [13:19:19]MH_I2C_Read... [13:19:19]*** Stop cut motor [13:19:19]*** Cut end [13:19:19]Read from MH i2c: 01 07 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: 01 07 00 DC 57 00 00 00 00 00 FF 0F 48 [13:19:19]process_action close_receipt done [13:19:19]requested_data is exist [13:19:19]produce_requested_data [13:19:19]requested_item fm.sn is exist - process it [13:19:19]wFMCommunicate request_size=4 [13:19:19]MH_SAM_APDU [13:19:19]CAPDU: 80 11 00 00 [13:19:19]Write to MH i2c: E2 08 00 DD 57 80 11 00 00 00 00 00 00 AE [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:19]Read from MH i2c: E2 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 17 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 17 00 DD 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 01 [13:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:19:19]wFMCommunicate OK [13:19:19]requested_item fd.num is exist - process it [13:19:19]SAM_PROTO_GetFieldsCounters [13:19:19]wFMCommunicate request_size=4 [13:19:19]MH_SAM_APDU [13:19:19]CAPDU: 80 13 00 00 [13:19:19]Write to MH i2c: E2 08 00 DE 57 80 13 00 00 00 00 00 00 B1 [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:19]Read from MH i2c: E2 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 62 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 62 00 DE 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 93 01 00 0E 04 04 00 60 01 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 F9 [13:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 93 01 00 0E 04 04 00 60 01 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 [13:19:19]wFMCommunicate OK [13:19:19]SAM_PROTO_GetFieldsCounters done [13:19:19]requested_item shift.num is exist - process it [13:19:19]requested_item shift.opened is exist - process it [13:19:19]req_shift_opened [13:19:19]FM_GetShiftState [13:19:19]SAM_PROTO_GetShiftState [13:19:19]wFMCommunicate request_size=4 [13:19:19]MH_SAM_APDU [13:19:19]CAPDU: 80 13 01 00 [13:19:19]Write to MH i2c: E2 08 00 DF 57 80 13 01 00 00 00 00 00 B3 [13:19:19]Write i2c OK [13:19:19]MH_I2C_Read... [13:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:19]Read from MH i2c: E2 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 0E 00 [13:19:19]MH_I2C_Read... [13:19:19]Read from MH i2c: E2 0E 00 DF 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 34 [13:19:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:19:19]wFMCommunicate OK [13:19:19]SAM_PROTO_GetShiftState done [13:19:19]FM_GetShiftState done [13:19:19]req_shift_opened done [13:19:19]requested_item shift.open_date is exist - process it [13:19:19]req_shift_open_date [13:19:20]req_shift_open_date done [13:19:20]produce_requested_data done [13:19:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103418,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:19:20]process_action_free close_receipt [13:19:20]json_value_free [13:19:20]json_value_free done [13:19:20]process_json_proto returns [13:19:20]Send response to host [13:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103418,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:19:20]free response buf [13:19:20]execute_script done [13:19:20]execute_script returns [13:19:20]free content buf [13:19:20]Sock 9.Close socket [13:19:20]Sock 9.Thread stoped [13:19:20]accept exits with 7 [13:19:20]New connection [13:19:20]New thread 3067227492 created [13:19:20]Thread 3067084132 joined [13:19:20]Waiting for new connection... [13:19:20] Sock 7.Parse request [13:19:20]Sock 7.Check first char [13:19:20]Sock 7.First char is OK [13:19:20]request: POST /json_proto HTTP/1.0 [13:19:20]Method: POST [13:19:20]URL: /json_proto [13:19:20]Method is POST - this is cgi request [13:19:20]url: /json_proto [13:19:20]query_string will be loaded in cgi processing [13:19:20]execute_cgi json_proto POST (null) [13:19:20]execute_cgi path=json_proto method=POST [13:19:20]POST find Content-Length [13:19:20]Host: 172.17.38.133:8080 [13:19:20]Content-Length: 677 [13:19:20]Content-Type: application/json [13:19:20] [13:19:20]POST finish read [13:19:20]Found Content-Length = 677 [13:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:20]execute_script... [13: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 : (1)672581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:20]POST & json_proto [13:19:20]process_json_proto [13:19:20]json parsed OK: [13:19:20]protocol is kg_v1.0 [13:19:20]action value=close_receipt [13:19:20]process_action close_receipt [13:19:20]cmd_close_receipt [13:19:20]MH_GetDate [13:19:20]Write to MH i2c: F0 00 00 E0 57 26 [13:19:20]Write i2c OK [13:19:20]MH_I2C_Read... [13:19:20]Read from MH i2c: F0 [13:19:20]MH_I2C_Read... [13:19:20]Read from MH i2c: F0 09 00 [13:19:20]MH_I2C_Read... [13:19:20]Read from MH i2c: F0 09 00 E0 57 00 5F 89 71 66 BD 8F 7C 64 1A [13:19:20]GetLastDocTimeStamp 1718716762 [13:19:20]current date 1718716767 [13:19:20]FM_GetShiftState [13:19:20]SAM_PROTO_GetShiftState [13:19:20]wFMCommunicate request_size=4 [13:19:20]MH_SAM_APDU [13:19:20]CAPDU: 80 13 01 00 [13:19:20]Write to MH i2c: E2 08 00 E1 57 80 13 01 00 00 00 00 00 B5 [13:19:20]Write i2c OK [13:19:20]MH_I2C_Read... [13:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:20]Read from MH i2c: E2 [13:19:20]MH_I2C_Read... [13:19:20]Read from MH i2c: E2 0E 00 [13:19:20]MH_I2C_Read... [13:19:20]Read from MH i2c: E2 0E 00 E1 57 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 36 [13:19:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:19:20]wFMCommunicate OK [13:19:20]SAM_PROTO_GetShiftState done [13:19:20]FM_GetShiftState done [13:19:20]opened in 1718670284 [13:19:20]opened+sec_in_day 1718756684 [13:19:20]quantity*price = 35059 [13:19:20]sum+1 = 35060 [13:19:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 400.00 СДАЧА: 50.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 103 18.06.2024 13:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103419 ФПД: 151287321188497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103419&fm=151287321188497&tin=02508201610067®Number=0000000000092785&sum=35000 [13:19:21]StoreToDocumentArchive [13:19:21]shift 352 fd 103419 [13:19:21]save to /storage/0352/doc_00103419 [13:19:21]save last doc name /storage/0352/doc_00103419 to /storage/kkm_last_doc_name [13:19:21]save OK [13:19:21]Clear old archive folders... [13:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:21]tlvbuf is 01448CB0 [13:19:21]SAM_PROTO_ClearQueue [13:19:21]wFMCommunicate request_size=4 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 09 00 00 [13:19:21]Write to MH i2c: E2 08 00 EE 57 80 09 00 00 00 00 00 00 B7 [13:19:21]Write i2c OK [13:19:21]MH_I2C_Read... [13:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:21]Read from MH i2c: E2 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 03 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 03 00 EE 57 00 90 00 B9 [13:19:21]RAPDU: 90 00 [13:19:21]wFMCommunicate OK [13:19:21]SAM_PROTO_ClearQueue done [13:19:21]KKMCreateOFDPacket [13:19:21]OFDProtocolAddRootSTLVToBuf [13:19:21]FM_MakeSignedData [13:19:21]FM_MakeSignedData [13:19:21]SAM_PROTO_SignData [13:19:21]wFMCommunicate request_size=4 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 0D 01 02 [13:19:21]Write to MH i2c: E2 08 00 EF 57 80 0D 01 02 00 00 00 00 BF [13:19:21]Write i2c OK [13:19:21]MH_I2C_Read... [13:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:21]Read from MH i2c: E2 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 03 00 [13:19:21]MH_I2C_Read... [13:19:21]Read from MH i2c: E2 03 00 EF 57 00 90 00 BA [13:19:21]RAPDU: 90 00 [13:19:21]wFMCommunicate OK [13:19:21]wFMCommunicate request_size=255 [13:19:21]MH_SAM_APDU [13:19:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5F 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 93 01 00 35 04 06 00 89 [13:19:21]Write to MH i2c: E2 02 01 F0 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5F 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 93 01 00 35 04 06 00 89 00 00 F6 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:22]Read from MH i2c: E2 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 03 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 03 00 F0 57 00 90 00 BB [13:19:22]RAPDU: 90 00 [13:19:22]wFMCommunicate OK [13:19:22]wFMCommunicate request_size=10 [13:19:22]MH_SAM_APDU [13:19:22]CAPDU: 80 0D 02 02 05 98 53 09 D8 91 [13:19:22]Write to MH i2c: E2 0D 00 F1 57 80 0D 02 02 05 00 98 53 09 D8 91 00 00 29 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:22]Read from MH i2c: E2 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 03 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 03 00 F1 57 00 90 00 BC [13:19:22]RAPDU: 90 00 [13:19:22]wFMCommunicate OK [13:19:22]wFMCommunicate request_size=4 [13:19:22]MH_SAM_APDU [13:19:22]CAPDU: 80 0D 03 02 [13:19:22]Write to MH i2c: E2 08 00 F2 57 80 0D 03 02 00 00 00 00 C4 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:22]Read from MH i2c: E2 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 0B 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 0B 00 F2 57 00 18 53 6E B5 CA FE E1 04 90 00 00 [13:19:22]RAPDU: 18 53 6E B5 CA FE E1 04 90 00 [13:19:22]wFMCommunicate OK [13:19:22]SAM_PROTO_SignData done [13:19:22]FM_MakeSignedData done [13:19:22]CreateOFDProtocolMessage [13:19:22]wFMCommunicate request_size=4 [13:19:22]MH_SAM_APDU [13:19:22]CAPDU: 80 11 00 00 [13:19:22]Write to MH i2c: E2 08 00 F3 57 80 11 00 00 00 00 00 00 C4 [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:22]Read from MH i2c: E2 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 17 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: E2 17 00 F3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [13:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:19:22]wFMCommunicate OK [13:19:22]CreateOFDProtocolMessage done [13:19:22]OFDSenderStorePacket 103419 [13:19:22]StoreOFDPacket docnum=103419 [13:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BE 5C 07 01 A6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5F 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 93 01 00 35 04 06 00 89 98 53 09 D8 91 18 53 6E B5 CA FE E1 04 [13:19:22]CheckFolder [13:19:22]dirname=/storage/ofd_packets [13:19:22]CheckFolder done [13:19:22]ProducePacketName [13:19:22]name=ofd_packets/00103419 [13:19:22]NVStorageSaveData ofd_packets/00103419 [13:19:22]File name is /storage/ofd_packets/00103419 [13:19:22]Write 301 bytes [13:19:22]NVStorageSaveData done [13:19:22]OFDSenderStorePacket done [13:19:22]KKMCreateOFDPacket done [13:19:22]NVStorageSaveData kkm_last_timestamp [13:19:22]File name is /storage/kkm_last_timestamp [13:19:22]Write 4 bytes [13:19:22]NVStorageSaveData done [13:19:22]ExternCall_PrintAddStr [13:19:22]wPrintStart [13:19:22]Write to MH i2c: 01 00 00 F4 57 4B [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 07 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 07 00 F4 57 00 00 00 00 00 FF 0F 60 [13:19:22]RasterBufferAndPrint [13:19:22]line Счет N : (1)672581 [13:19:22]line ИНН: 02508201610067 [13:19:22]line Контрольно-Кассовый Чек [13:19:22]line ПРОДАЖА [13:19:22]line ТРК (МРК, ГНК) : 42 [13:19:22]line Товар: 2710124130 [13:19:22]line Аи-92-К-5 [13:19:22]line 5.280 * 66.40 [13:19:22]line = 350.59 [13:19:22]line НДС 12% НСП 1% [13:19:22]line > о реализуемом товаре [13:19:22]line ОКРУГЛЕНИЕ: -0.59 [13:19:22]line ИТОГО: 350.00 [13:19:22]line Внесено: 400.00 [13:19:22]line СДАЧА: 50.00 [13:19:22]line НСП 1% : 3.10 [13:19:22]line НДС 12% : 37.23 [13:19:22]line Наличными: 350.00 [13:19:22]line Безнал.: 0.00 [13:19:22]line Место: АЗС № 120 "Партнер Нефть" [13:19:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:19:22]line СНО: Общий режим [13:19:22]line Чек 103 18.06.2024 13:19 [13:19:22]line Смена: 352 ФФД: 1.0 [13:19:22]line ЗНМ: 0300000164 [13:19:22]line РНМ: 0000000000092785 [13:19:22]line Версия ККМ: 001 [13:19:22]line ФМ: 0000000000875093 [13:19:22]line ФД: 103419 [13:19:22]line ФПД: 151287321188497 [13:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103419&fm=151287321188497&tin=02508201610067®Number=0000000000092785&sum=35000 [13:19:22]OFD Sender: Processing packet 103419 [packets to send 17, broken 16] [13:19:22]ProducePacketName [13:19:22]name=ofd_packets/00103419 [13:19:22]OFD Sender: To server: pG, [13:19:22]CommunicateWithHost lk.salyk.kg:30040 [13:19:22]ConnectInit lk.salyk.kg [13:19:22]written 0, free lines is 4095 [13:19:23]Connected sock=10 [13:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BE 5C 07 01 A6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 5F 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 93 01 00 35 04 06 00 89 98 53 09 D8 91 18 53 6E B5 CA FE E1 04 [13:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 63 47 00 01 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 35 30 39 33 10 04 04 00 FB 93 01 00 F4 03 04 00 EB 2F 71 66 B6 04 01 00 00 B9 E3 DD B2 21 07 8E 8F [13:19:23]CommunicateWithHost err = 0 [13:19:23]CheckOFDResponse [13:19:23]1017 (14) - 77093643461234 [13:19:23]1041 (16) - 0000000000875093 [13:19:23]1040 (4) - 103419 [13:19:23]1012 (4) - 18.06.2024 06:57 [13:19:23]1206 (1) - 0 [13:19:23]OFD Sender: Remove packet 103419 [13:19:23]ProducePacketName [13:19:23]name=ofd_packets/00103419 [13:19:23]NVStorageDeleteData [13:19:23]Write to MH i2c: 01 00 00 1F 58 77 [13:19:23]Write i2c OK [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: 01 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: 01 07 00 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: 01 07 00 1F 58 00 00 00 00 00 E4 0C 6E [13:19:23]RasterBufferAndPrint [13:19:23]line [13:19:23]line [13:19:23]line [13:19:23]line [13:19:23]line [13:19:23]written 0, free lines is 3313 [13:19:23]MH_Cut [13:19:23]Write to MH i2c: D1 01 00 26 58 01 50 [13:19:23]Write i2c OK [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: D1 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: D1 01 00 [13:19:23]MH_I2C_Read... [13:19:23]Read from MH i2c: D1 01 00 26 58 00 4F [13:19:23]Write to MH i2c: 01 00 00 27 58 7F [13:19:23]Write i2c OK [13:19:23]MH_I2C_Read... [13:19:23]OFD Sender: No OFD packet to send [13:19:24]*** Cut start [13:19:24]*** Partial cut [13:19:24]*** CUTSNS_PIN = 1 [13:19:24]*** CUTSNS_PIN = 0 [13:19:24]*** Brake cut motor [13:19:24]Read from MH i2c: 01 [13:19:24]MH_I2C_Read... [13:19:24]*** Stop cut motor [13:19:24]*** Cut end [13:19:24]Read from MH i2c: 01 07 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: 01 07 00 27 58 00 00 00 00 00 FF 0F 94 [13:19:24]process_action close_receipt done [13:19:24]requested_data is exist [13:19:24]produce_requested_data [13:19:24]requested_item fm.sn is exist - process it [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 11 00 00 [13:19:24]Write to MH i2c: E2 08 00 28 58 80 11 00 00 00 00 00 00 FA [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 17 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 17 00 28 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [13:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:19:24]wFMCommunicate OK [13:19:24]requested_item fd.num is exist - process it [13:19:24]SAM_PROTO_GetFieldsCounters [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 13 00 00 [13:19:24]Write to MH i2c: E2 08 00 29 58 80 13 00 00 00 00 00 00 FD [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 62 00 [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 62 00 29 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 93 01 00 0E 04 04 00 60 01 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 49 [13: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 93 01 00 0E 04 04 00 60 01 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 [13:19:24]wFMCommunicate OK [13:19:24]SAM_PROTO_GetFieldsCounters done [13:19:24]requested_item shift.num is exist - process it [13:19:24]requested_item shift.opened is exist - process it [13:19:24]req_shift_opened [13:19:24]FM_GetShiftState [13:19:24]SAM_PROTO_GetShiftState [13:19:24]wFMCommunicate request_size=4 [13:19:24]MH_SAM_APDU [13:19:24]CAPDU: 80 13 01 00 [13:19:24]Write to MH i2c: E2 08 00 2A 58 80 13 01 00 00 00 00 00 FF [13:19:24]Write i2c OK [13:19:24]MH_I2C_Read... [13:19:24]Read from MH i2c: E2 [13:19:24]MH_I2C_Read... [13:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:25]Read from MH i2c: E2 0E 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0E 00 2A 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 80 [13:19:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_GetShiftState done [13:19:25]FM_GetShiftState done [13:19:25]req_shift_opened done [13:19:25]requested_item shift.open_date is exist - process it [13:19:25]req_shift_open_date [13:19:25]req_shift_open_date done [13:19:25]produce_requested_data done [13:19:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103419,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:19:25]process_action_free close_receipt [13:19:25]json_value_free [13:19:25]json_value_free done [13:19:25]process_json_proto returns [13:19:25]Send response to host [13:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103419,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:19:25]free response buf [13:19:25]execute_script done [13:19:25]execute_script returns [13:19:25]free content buf [13:19:25]Sock 7.Close socket [13:19:25]Sock 7.Thread stoped [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:36]accept exits with 9 [13:20:36]New connection [13:20:36]New thread 3067084132 created [13:20:36]Thread 3067227492 joined [13:20:36]Waiting for new connection... [13:20:36] Sock 9.Parse request [13:20:36]Sock 9.Check first char [13:20:36]Sock 9.First char is OK [13:20:36]request: POST /json_proto HTTP/1.0 [13:20:36]Method: POST [13:20:36]URL: /json_proto [13:20:36]Method is POST - this is cgi request [13:20:36]url: /json_proto [13:20:36]query_string will be loaded in cgi processing [13:20:36]execute_cgi json_proto POST (null) [13:20:36]execute_cgi path=json_proto method=POST [13:20:36]POST find Content-Length [13:20:36]Host: 172.17.38.133:8080 [13:20:36]Content-Length: 808 [13:20:36]Content-Type: application/json [13:20:36] [13:20:36]POST finish read [13:20:36]Found Content-Length = 808 [13:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:36]execute_script... [13:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:36]POST & json_proto [13:20:36]process_json_proto [13:20:36]json parsed OK: [13:20:36]protocol is kg_v1.0 [13:20:36]action value=close_receipt [13:20:36]process_action close_receipt [13:20:36]cmd_close_receipt [13:20:36]MH_GetDate [13:20:36]Write to MH i2c: F0 00 00 2B 58 72 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: F0 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: F0 09 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: F0 09 00 2B 58 00 AA 89 71 66 BD 8F 7C 64 B1 [13:20:36]GetLastDocTimeStamp 1718716767 [13:20:36]current date 1718716842 [13:20:36]FM_GetShiftState [13:20:36]SAM_PROTO_GetShiftState [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 13 01 00 [13:20:36]Write to MH i2c: E2 08 00 2C 58 80 13 01 00 00 00 00 00 01 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 2C 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 82 [13:20:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_GetShiftState done [13:20:36]FM_GetShiftState done [13:20:36]opened in 1718670284 [13:20:36]opened+sec_in_day 1718756684 [13:20:36]quantity*price = 500021 [13:20:36]sum+1 = 500022 [13:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.21 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.21 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 104 18.06.2024 13:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103420 ФПД: 11013291584388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103420&fm=11013291584388&tin=02508201610067®Number=0000000000092785&sum=500021 [13:20:37]StoreToDocumentArchive [13:20:37]shift 352 fd 103420 [13:20:37]save to /storage/0352/doc_00103420 [13:20:37]save last doc name /storage/0352/doc_00103420 to /storage/kkm_last_doc_name [13:20:37]save OK [13:20:37]Clear old archive folders... [13:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:20:37]tlvbuf is 013EBF00 [13:20:37]SAM_PROTO_ClearQueue [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 09 00 00 [13:20:37]Write to MH i2c: E2 08 00 39 58 80 09 00 00 00 00 00 00 03 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 39 58 00 90 00 05 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]SAM_PROTO_ClearQueue done [13:20:37]KKMCreateOFDPacket [13:20:37]OFDProtocolAddRootSTLVToBuf [13:20:37]FM_MakeSignedData [13:20:37]FM_MakeSignedData [13:20:37]SAM_PROTO_SignData [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 01 02 [13:20:37]Write to MH i2c: E2 08 00 3A 58 80 0D 01 02 00 00 00 00 0B [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 3A 58 00 90 00 06 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]wFMCommunicate request_size=255 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AA 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 93 01 00 35 04 06 00 [13:20:37]Write to MH i2c: E2 02 01 3B 58 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AA 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 93 01 00 35 04 06 00 00 00 75 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 3B 58 00 90 00 07 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]wFMCommunicate request_size=11 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 02 02 06 0A 04 3B 55 2B 84 [13:20:37]Write to MH i2c: E2 0E 00 3C 58 80 0D 02 02 06 00 0A 04 3B 55 2B 84 00 00 67 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 3C 58 00 90 00 08 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 03 02 [13:20:37]Write to MH i2c: E2 08 00 3D 58 80 0D 03 02 00 00 00 00 10 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 0B 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 0B 00 3D 58 00 3D AA 65 D4 1D 02 B6 AF 90 00 B5 [13:20:37]RAPDU: 3D AA 65 D4 1D 02 B6 AF 90 00 [13:20:37]wFMCommunicate OK [13:20:37]SAM_PROTO_SignData done [13:20:37]FM_MakeSignedData done [13:20:37]CreateOFDProtocolMessage [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 11 00 00 [13:20:37]Write to MH i2c: E2 08 00 3E 58 80 11 00 00 00 00 00 00 10 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 17 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 17 00 3E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [13:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:20:37]wFMCommunicate OK [13:20:37]CreateOFDProtocolMessage done [13:20:37]OFDSenderStorePacket 103420 [13:20:37]StoreOFDPacket docnum=103420 [13:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 64 33 08 01 B7 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AA 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 93 01 00 35 04 06 00 0A 04 3B 55 2B 84 3D AA 65 D4 1D 02 B6 AF [13:20:37]CheckFolder [13:20:37]dirname=/storage/ofd_packets [13:20:37]CheckFolder done [13:20:37]ProducePacketName [13:20:37]name=ofd_packets/00103420 [13:20:37]NVStorageSaveData ofd_packets/00103420 [13:20:37]File name is /storage/ofd_packets/00103420 [13:20:37]Write 302 bytes [13:20:37]NVStorageSaveData done [13:20:37]OFDSenderStorePacket done [13:20:37]KKMCreateOFDPacket done [13:20:37]NVStorageSaveData kkm_last_timestamp [13:20:37]File name is /storage/kkm_last_timestamp [13:20:37]Write 4 bytes [13:20:37]NVStorageSaveData done [13:20:37]ExternCall_PrintAddStr [13:20:37]wPrintStart [13:20:37]Write to MH i2c: 01 00 00 3F 58 97 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 3F 58 00 00 00 00 00 FF 0F AC [13:20:37]RasterBufferAndPrint [13:20:37]line Счет N : (1)672579 [13:20:37]line ИНН: 02508201610067 [13:20:37]line Контрольно-Кассовый Чек [13:20:37]line ПРОДАЖА [13:20:37]line ТРК (МРК, ГНК) : 21 [13:20:37]line Товар: 2710194210 [13:20:37]line ДТ(л)-К-5 [13:20:37]line 68.590 * 72.90 [13:20:37]line = 5000.21 [13:20:37]line НДС 12% НСП 1% [13:20:37]line > о реализуемом товаре [13:20:37]line ИТОГО: 5000.21 [13:20:37]line НСП 1% : 44.25 [13:20:37]line НДС 12% : 531.00 [13:20:37]line Наличными: 0.00 [13:20:37]line Безнал.: 5000.21 [13:20:37]line Место: АЗС № 120 "Партнер Нефть" [13:20:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:20:37]line СНО: Общий режим [13:20:37]line Чек 104 18.06.2024 13:20 [13:20:37]line Смена: 352 ФФД: 1.0 [13:20:37]line ЗНМ: 0300000164 [13:20:37]line РНМ: 0000000000092785 [13:20:37]line Версия ККМ: 001 [13:20:37]line Платежная система: O! деньги [13:20:37]line ФМ: 0000000000875093 [13:20:37]line ФД: 103420 [13:20:37]line ФПД: 11013291584388 [13:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103420&fm=11013291584388&tin=02508201610067®Number=0000000000092785&sum=500021 [13:20:38]OFD Sender: Processing packet 103420 [packets to send 17, broken 16] [13:20:38]ProducePacketName [13:20:38]name=ofd_packets/00103420 [13:20:38]OFD Sender: To server: pG, [13:20:38]CommunicateWithHost lk.salyk.kg:30040 [13:20:38]ConnectInit lk.salyk.kg [13:20:38]written 0, free lines is 4095 [13:20:38]Connected sock=10 [13:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 64 33 08 01 B7 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AA 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 93 01 00 35 04 06 00 0A 04 3B 55 2B 84 3D AA 65 D4 1D 02 B6 AF [13:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F7 1A 47 00 60 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 93 01 00 F4 03 04 00 37 30 71 66 B6 04 01 00 00 95 5D D0 3B F6 D2 1B F9 [13:20:38]CommunicateWithHost err = 0 [13:20:38]CheckOFDResponse [13:20:38]1017 (14) - 77093643461234 [13:20:38]1041 (16) - 0000000000875093 [13:20:38]1040 (4) - 103420 [13:20:38]1012 (4) - 18.06.2024 06:59 [13:20:38]1206 (1) - 0 [13:20:38]OFD Sender: Remove packet 103420 [13:20:38]ProducePacketName [13:20:38]name=ofd_packets/00103420 [13:20:38]NVStorageDeleteData [13:20:38]Write to MH i2c: 01 00 00 69 58 C1 [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: 01 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: 01 07 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: 01 07 00 69 58 00 00 00 00 00 E6 0C BA [13:20:38]RasterBufferAndPrint [13:20:38]line [13:20:38]line [13:20:38]line [13:20:38]line [13:20:38]line [13:20:38]written 0, free lines is 3306 [13:20:38]MH_Cut [13:20:38]Write to MH i2c: D1 01 00 70 58 01 9A [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: D1 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: D1 01 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: D1 01 00 70 58 00 99 [13:20:38]Write to MH i2c: 01 00 00 71 58 C9 [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]OFD Sender: No OFD packet to send [13:20:39]*** Cut start [13:20:39]*** Partial cut [13:20:39]*** CUTSNS_PIN = 1 [13:20:39]*** CUTSNS_PIN = 0 [13:20:39]*** Brake cut motor [13:20:39]Read from MH i2c: 01 [13:20:39]MH_I2C_Read... [13:20:39]*** Stop cut motor [13:20:39]*** Cut end [13:20:39]Read from MH i2c: 01 07 00 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: 01 07 00 71 58 00 00 00 00 00 FF 0F DE [13:20:39]process_action close_receipt done [13:20:39]requested_data is exist [13:20:39]produce_requested_data [13:20:39]requested_item fm.sn is exist - process it [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 11 00 00 [13:20:39]Write to MH i2c: E2 08 00 72 58 80 11 00 00 00 00 00 00 44 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:39]Read from MH i2c: E2 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 17 00 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 17 00 72 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [13:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:20:39]wFMCommunicate OK [13:20:39]requested_item fd.num is exist - process it [13:20:39]SAM_PROTO_GetFieldsCounters [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 13 00 00 [13:20:39]Write to MH i2c: E2 08 00 73 58 80 13 00 00 00 00 00 00 47 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:39]Read from MH i2c: E2 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 62 00 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 62 00 73 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 93 01 00 0E 04 04 00 60 01 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 97 [13:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 93 01 00 0E 04 04 00 60 01 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 [13:20:39]wFMCommunicate OK [13:20:39]SAM_PROTO_GetFieldsCounters done [13:20:39]requested_item shift.num is exist - process it [13:20:39]requested_item shift.opened is exist - process it [13:20:39]req_shift_opened [13:20:39]FM_GetShiftState [13:20:39]SAM_PROTO_GetShiftState [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 13 01 00 [13:20:39]Write to MH i2c: E2 08 00 74 58 80 13 01 00 00 00 00 00 49 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0E 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0E 00 74 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CA [13:20:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:20:40]wFMCommunicate OK [13:20:40]SAM_PROTO_GetShiftState done [13:20:40]FM_GetShiftState done [13:20:40]req_shift_opened done [13:20:40]requested_item shift.open_date is exist - process it [13:20:40]req_shift_open_date [13:20:40]req_shift_open_date done [13:20:40]produce_requested_data done [13:20:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103420,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:20:40]process_action_free close_receipt [13:20:40]json_value_free [13:20:40]json_value_free done [13:20:40]process_json_proto returns [13:20:40]Send response to host [13:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103420,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:20:40]free response buf [13:20:40]execute_script done [13:20:40]execute_script returns [13:20:40]free content buf [13:20:40]Sock 9.Close socket [13:20:40]Sock 9.Thread stoped [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]accept exits with 7 [13:21:28]New connection [13:21:28]New thread 3067227492 created [13:21:28]Thread 3067084132 joined [13:21:28]Waiting for new connection... [13:21:28] Sock 7.Parse request [13:21:28]Sock 7.Check first char [13:21:28]Sock 7.First char is OK [13:21:28]request: POST /json_proto HTTP/1.0 [13:21:28]Method: POST [13:21:28]URL: /json_proto [13:21:28]Method is POST - this is cgi request [13:21:28]url: /json_proto [13:21:28]query_string will be loaded in cgi processing [13:21:28]execute_cgi json_proto POST (null) [13:21:28]execute_cgi path=json_proto method=POST [13:21:28]POST find Content-Length [13:21:28]Host: 172.17.38.133:8080 [13:21:28]Content-Length: 682 [13:21:28]Content-Type: application/json [13:21:28] [13:21:28]POST finish read [13:21:28]Found Content-Length = 682 [13:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]execute_script... [13:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:28]POST & json_proto [13:21:28]process_json_proto [13:21:28]json parsed OK: [13:21:28]protocol is kg_v1.0 [13:21:28]action value=close_receipt [13:21:28]process_action close_receipt [13:21:28]cmd_close_receipt [13:21:28]MH_GetDate [13:21:28]Write to MH i2c: F0 00 00 75 58 BC [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: F0 09 00 75 58 00 DF 89 71 66 BD 8F 7C 64 30 [13:21:28]GetLastDocTimeStamp 1718716842 [13:21:28]current date 1718716895 [13:21:28]FM_GetShiftState [13:21:28]SAM_PROTO_GetShiftState [13:21:28]wFMCommunicate request_size=4 [13:21:28]MH_SAM_APDU [13:21:28]CAPDU: 80 13 01 00 [13:21:28]Write to MH i2c: E2 08 00 76 58 80 13 01 00 00 00 00 00 4B [13:21:28]Write i2c OK [13:21:28]MH_I2C_Read... [13:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:28]Read from MH i2c: E2 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 [13:21:28]MH_I2C_Read... [13:21:28]Read from MH i2c: E2 0E 00 76 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 CC [13:21:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:21:28]wFMCommunicate OK [13:21:28]SAM_PROTO_GetShiftState done [13:21:28]FM_GetShiftState done [13:21:28]opened in 1718670284 [13:21:28]opened+sec_in_day 1718756684 [13:21:28]quantity*price = 160024 [13:21:28]sum+1 = 160025 [13:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 105 18.06.2024 13:21 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103421 ФПД: 99474626720769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103421&fm=99474626720769&tin=02508201610067®Number=0000000000092785&sum=160000 [13:21:29]StoreToDocumentArchive [13:21:29]shift 352 fd 103421 [13:21:29]save to /storage/0352/doc_00103421 [13:21:29]save last doc name /storage/0352/doc_00103421 to /storage/kkm_last_doc_name [13:21:29]save OK [13:21:29]Clear old archive folders... [13:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:29]tlvbuf is 013F64E0 [13:21:29]SAM_PROTO_ClearQueue [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 09 00 00 [13:21:29]Write to MH i2c: E2 08 00 83 58 80 09 00 00 00 00 00 00 4D [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 83 58 00 90 00 4F [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]SAM_PROTO_ClearQueue done [13:21:29]KKMCreateOFDPacket [13:21:29]OFDProtocolAddRootSTLVToBuf [13:21:29]FM_MakeSignedData [13:21:29]FM_MakeSignedData [13:21:29]SAM_PROTO_SignData [13:21:29]wFMCommunicate request_size=4 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 01 02 [13:21:29]Write to MH i2c: E2 08 00 84 58 80 0D 01 02 00 00 00 00 55 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:29]Read from MH i2c: E2 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 [13:21:29]MH_I2C_Read... [13:21:29]Read from MH i2c: E2 03 00 84 58 00 90 00 50 [13:21:29]RAPDU: 90 00 [13:21:29]wFMCommunicate OK [13:21:29]wFMCommunicate request_size=255 [13:21:29]MH_SAM_APDU [13:21:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 93 01 00 35 04 06 00 5A [13:21:29]Write to MH i2c: E2 02 01 85 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 93 01 00 35 04 06 00 5A 00 00 86 [13:21:29]Write i2c OK [13:21:29]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 85 58 00 90 00 51 [13:21:30]RAPDU: 90 00 [13:21:30]wFMCommunicate OK [13:21:30]wFMCommunicate request_size=10 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 0D 02 02 05 78 BD CA 34 01 [13:21:30]Write to MH i2c: E2 0D 00 86 58 80 0D 02 02 05 00 78 BD CA 34 01 00 00 96 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 03 00 86 58 00 90 00 52 [13:21:30]RAPDU: 90 00 [13:21:30]wFMCommunicate OK [13:21:30]wFMCommunicate request_size=4 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 0D 03 02 [13:21:30]Write to MH i2c: E2 08 00 87 58 80 0D 03 02 00 00 00 00 5A [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0B 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 0B 00 87 58 00 30 75 46 3D 73 32 B5 18 90 00 F5 [13:21:30]RAPDU: 30 75 46 3D 73 32 B5 18 90 00 [13:21:30]wFMCommunicate OK [13:21:30]SAM_PROTO_SignData done [13:21:30]FM_MakeSignedData done [13:21:30]CreateOFDProtocolMessage [13:21:30]wFMCommunicate request_size=4 [13:21:30]MH_SAM_APDU [13:21:30]CAPDU: 80 11 00 00 [13:21:30]Write to MH i2c: E2 08 00 88 58 80 11 00 00 00 00 00 00 5A [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:30]Read from MH i2c: E2 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 17 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: E2 17 00 88 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [13:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:21:30]wFMCommunicate OK [13:21:30]CreateOFDProtocolMessage done [13:21:30]OFDSenderStorePacket 103421 [13:21:30]StoreOFDPacket docnum=103421 [13:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 55 74 07 01 E1 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 93 01 00 35 04 06 00 5A 78 BD CA 34 01 30 75 46 3D 73 32 B5 18 [13:21:30]CheckFolder [13:21:30]dirname=/storage/ofd_packets [13:21:30]CheckFolder done [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00103421 [13:21:30]NVStorageSaveData ofd_packets/00103421 [13:21:30]File name is /storage/ofd_packets/00103421 [13:21:30]Write 301 bytes [13:21:30]NVStorageSaveData done [13:21:30]OFDSenderStorePacket done [13:21:30]KKMCreateOFDPacket done [13:21:30]NVStorageSaveData kkm_last_timestamp [13:21:30]File name is /storage/kkm_last_timestamp [13:21:30]Write 4 bytes [13:21:30]NVStorageSaveData done [13:21:30]ExternCall_PrintAddStr [13:21:30]wPrintStart [13:21:30]Write to MH i2c: 01 00 00 89 58 E1 [13:21:30]Write i2c OK [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 [13:21:30]MH_I2C_Read... [13:21:30]Read from MH i2c: 01 07 00 89 58 00 00 00 00 00 FF 0F F6 [13:21:30]RasterBufferAndPrint [13:21:30]line Счет N : (1)672582 [13:21:30]line ИНН: 02508201610067 [13:21:30]line Контрольно-Кассовый Чек [13:21:30]line ПРОДАЖА [13:21:30]line ТРК (МРК, ГНК) : 42 [13:21:30]line Товар: 2710124130 [13:21:30]line Аи-92-К-5 [13:21:30]line 24.100 * 66.40 [13:21:30]line = 1600.24 [13:21:30]line НДС 12% НСП 1% [13:21:30]line > о реализуемом товаре [13:21:30]line ОКРУГЛЕНИЕ: -0.24 [13:21:30]line ИТОГО: 1600.00 [13:21:30]line Внесено: 1600.00 [13:21:30]line СДАЧА: 0.00 [13:21:30]line НСП 1% : 14.16 [13:21:30]line НДС 12% : 169.94 [13:21:30]line Наличными: 1600.00 [13:21:30]line Безнал.: 0.00 [13:21:30]line Место: АЗС № 120 "Партнер Нефть" [13:21:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:21:30]line СНО: Общий режим [13:21:30]line Чек 105 18.06.2024 13:21 [13:21:30]line Смена: 352 ФФД: 1.0 [13:21:30]line ЗНМ: 0300000164 [13:21:30]line РНМ: 0000000000092785 [13:21:30]line Версия ККМ: 001 [13:21:30]line ФМ: 0000000000875093 [13:21:30]line ФД: 103421 [13:21:30]line ФПД: 99474626720769 [13:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103421&fm=99474626720769&tin=02508201610067®Number=0000000000092785&sum=160000 [13:21:30]OFD Sender: Processing packet 103421 [packets to send 17, broken 16] [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00103421 [13:21:30]OFD Sender: To server: pG, [13:21:30]CommunicateWithHost lk.salyk.kg:30040 [13:21:30]ConnectInit lk.salyk.kg [13:21:30]written 0, free lines is 4095 [13:21:30]Connected sock=10 [13:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 55 74 07 01 E1 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DF 89 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 93 01 00 35 04 06 00 5A 78 BD CA 34 01 30 75 46 3D 73 32 B5 18 [13:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F2 D5 47 00 F0 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 93 01 00 F4 03 04 00 6B 30 71 66 B6 04 01 00 00 64 9F 32 4A 29 D5 A1 56 [13:21:30]CommunicateWithHost err = 0 [13:21:30]CheckOFDResponse [13:21:30]1017 (14) - 77093643461234 [13:21:30]1041 (16) - 0000000000875093 [13:21:30]1040 (4) - 103421 [13:21:30]1012 (4) - 18.06.2024 06:59 [13:21:30]1206 (1) - 0 [13:21:30]OFD Sender: Remove packet 103421 [13:21:30]ProducePacketName [13:21:30]name=ofd_packets/00103421 [13:21:30]NVStorageDeleteData [13:21:31]Write to MH i2c: 01 00 00 B4 58 0C [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: 01 07 00 B4 58 00 00 00 00 00 D8 0C F7 [13:21:31]RasterBufferAndPrint [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]line [13:21:31]written 0, free lines is 3296 [13:21:31]MH_Cut [13:21:31]Write to MH i2c: D1 01 00 BB 58 01 E5 [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 01 00 [13:21:31]MH_I2C_Read... [13:21:31]Read from MH i2c: D1 01 00 BB 58 00 E4 [13:21:31]Write to MH i2c: 01 00 00 BC 58 14 [13:21:31]Write i2c OK [13:21:31]MH_I2C_Read... [13:21:31]OFD Sender: No OFD packet to send [13:21:31]*** Cut start [13:21:31]*** Partial cut [13:21:31]*** CUTSNS_PIN = 1 [13:21:31]*** CUTSNS_PIN = 0 [13:21:31]*** Brake cut motor [13:21:32]Read from MH i2c: 01 [13:21:32]MH_I2C_Read... [13:21:32]*** Stop cut motor [13:21:32]*** Cut end [13:21:32]Read from MH i2c: 01 07 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: 01 07 00 BC 58 00 00 00 00 00 FF 0F 29 [13:21:32]process_action close_receipt done [13:21:32]requested_data is exist [13:21:32]produce_requested_data [13:21:32]requested_item fm.sn is exist - process it [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 11 00 00 [13:21:32]Write to MH i2c: E2 08 00 BD 58 80 11 00 00 00 00 00 00 8F [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 17 00 BD 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [13:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:21:32]wFMCommunicate OK [13:21:32]requested_item fd.num is exist - process it [13:21:32]SAM_PROTO_GetFieldsCounters [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 13 00 00 [13:21:32]Write to MH i2c: E2 08 00 BE 58 80 13 00 00 00 00 00 00 92 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 62 00 BE 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 93 01 00 0E 04 04 00 60 01 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 E6 [13:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 93 01 00 0E 04 04 00 60 01 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 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetFieldsCounters done [13:21:32]requested_item shift.num is exist - process it [13:21:32]requested_item shift.opened is exist - process it [13:21:32]req_shift_opened [13:21:32]FM_GetShiftState [13:21:32]SAM_PROTO_GetShiftState [13:21:32]wFMCommunicate request_size=4 [13:21:32]MH_SAM_APDU [13:21:32]CAPDU: 80 13 01 00 [13:21:32]Write to MH i2c: E2 08 00 BF 58 80 13 01 00 00 00 00 00 94 [13:21:32]Write i2c OK [13:21:32]MH_I2C_Read... [13:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:32]Read from MH i2c: E2 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 [13:21:32]MH_I2C_Read... [13:21:32]Read from MH i2c: E2 0E 00 BF 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 15 [13:21:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:21:32]wFMCommunicate OK [13:21:32]SAM_PROTO_GetShiftState done [13:21:32]FM_GetShiftState done [13:21:32]req_shift_opened done [13:21:32]requested_item shift.open_date is exist - process it [13:21:32]req_shift_open_date [13:21:32]req_shift_open_date done [13:21:32]produce_requested_data done [13:21:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103421,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:21:32]process_action_free close_receipt [13:21:32]json_value_free [13:21:32]json_value_free done [13:21:32]process_json_proto returns [13:21:32]Send response to host [13:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103421,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:21:32]free response buf [13:21:32]execute_script done [13:21:32]execute_script returns [13:21:32]free content buf [13:21:32]Sock 7.Close socket [13:21:32]Sock 7.Thread stoped [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:24]accept exits with 9 [13:22:24]New connection [13:22:24]New thread 3067084132 created [13:22:24]Thread 3067227492 joined [13:22:24]Waiting for new connection... [13:22:24] Sock 9.Parse request [13:22:24]Sock 9.Check first char [13:22:24]Sock 9.First char is OK [13:22:24]request: POST /json_proto HTTP/1.0 [13:22:24]Method: POST [13:22:24]URL: /json_proto [13:22:24]Method is POST - this is cgi request [13:22:24]url: /json_proto [13:22:24]query_string will be loaded in cgi processing [13:22:24]execute_cgi json_proto POST (null) [13:22:24]execute_cgi path=json_proto method=POST [13:22:24]POST find Content-Length [13:22:24]Host: 172.17.38.133:8080 [13:22:24]Content-Length: 682 [13:22:24]Content-Type: application/json [13:22:24] [13:22:24]POST finish read [13:22:24]Found Content-Length = 682 [13:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:22:24]execute_script... [13: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 : (1)672583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:22:24]POST & json_proto [13:22:24]process_json_proto [13:22:24]json parsed OK: [13:22:24]protocol is kg_v1.0 [13:22:24]action value=close_receipt [13:22:24]process_action close_receipt [13:22:24]cmd_close_receipt [13:22:24]MH_GetDate [13:22:24]Write to MH i2c: F0 00 00 C0 58 07 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: F0 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: F0 09 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: F0 09 00 C0 58 00 17 8A 71 66 BD 8F 7C 64 B4 [13:22:24]GetLastDocTimeStamp 1718716895 [13:22:24]current date 1718716951 [13:22:24]FM_GetShiftState [13:22:24]SAM_PROTO_GetShiftState [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 13 01 00 [13:22:24]Write to MH i2c: E2 08 00 C1 58 80 13 01 00 00 00 00 00 96 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:25]Read from MH i2c: E2 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 0E 00 [13:22:25]MH_I2C_Read... [13:22:25]Read from MH i2c: E2 0E 00 C1 58 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 17 [13:22:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:22:25]wFMCommunicate OK [13:22:25]SAM_PROTO_GetShiftState done [13:22:25]FM_GetShiftState done [13:22:25]opened in 1718670284 [13:22:25]opened+sec_in_day 1718756684 [13:22:25]quantity*price = 100064 [13:22:25]sum+1 = 100066 [13:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 106 18.06.2024 13:22 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103422 ФПД: 252820453529325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103422&fm=252820453529325&tin=02508201610067®Number=0000000000092785&sum=100000 [13:22:26]StoreToDocumentArchive [13:22:26]shift 352 fd 103422 [13:22:26]save to /storage/0352/doc_00103422 [13:22:26]save last doc name /storage/0352/doc_00103422 to /storage/kkm_last_doc_name [13:22:26]save OK [13:22:26]Clear old archive folders... [13:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:26]tlvbuf is 0134F9E0 [13:22:26]SAM_PROTO_ClearQueue [13:22:26]wFMCommunicate request_size=4 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 09 00 00 [13:22:26]Write to MH i2c: E2 08 00 CE 58 80 09 00 00 00 00 00 00 98 [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 CE 58 00 90 00 9A [13:22:26]RAPDU: 90 00 [13:22:26]wFMCommunicate OK [13:22:26]SAM_PROTO_ClearQueue done [13:22:26]KKMCreateOFDPacket [13:22:26]OFDProtocolAddRootSTLVToBuf [13:22:26]FM_MakeSignedData [13:22:26]FM_MakeSignedData [13:22:26]SAM_PROTO_SignData [13:22:26]wFMCommunicate request_size=4 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 0D 01 02 [13:22:26]Write to MH i2c: E2 08 00 CF 58 80 0D 01 02 00 00 00 00 A0 [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 CF 58 00 90 00 9B [13:22:26]RAPDU: 90 00 [13:22:26]wFMCommunicate OK [13:22:26]wFMCommunicate request_size=255 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 17 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 93 01 00 35 04 06 00 E5 [13:22:26]Write to MH i2c: E2 02 01 D0 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 17 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 93 01 00 35 04 06 00 E5 00 00 64 [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]OFD Sender: No OFD packet to send [13:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 D0 58 00 90 00 9C [13:22:26]RAPDU: 90 00 [13:22:26]wFMCommunicate OK [13:22:26]wFMCommunicate request_size=10 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 0D 02 02 05 F0 59 53 16 ED [13:22:26]Write to MH i2c: E2 0D 00 D1 58 80 0D 02 02 05 00 F0 59 53 16 ED 00 00 4C [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 03 00 D1 58 00 90 00 9D [13:22:26]RAPDU: 90 00 [13:22:26]wFMCommunicate OK [13:22:26]wFMCommunicate request_size=4 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 0D 03 02 [13:22:26]Write to MH i2c: E2 08 00 D2 58 80 0D 03 02 00 00 00 00 A5 [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 0B 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 0B 00 D2 58 00 36 C5 3E 41 10 81 1C 5B 90 00 28 [13:22:26]RAPDU: 36 C5 3E 41 10 81 1C 5B 90 00 [13:22:26]wFMCommunicate OK [13:22:26]SAM_PROTO_SignData done [13:22:26]FM_MakeSignedData done [13:22:26]CreateOFDProtocolMessage [13:22:26]wFMCommunicate request_size=4 [13:22:26]MH_SAM_APDU [13:22:26]CAPDU: 80 11 00 00 [13:22:26]Write to MH i2c: E2 08 00 D3 58 80 11 00 00 00 00 00 00 A5 [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:26]Read from MH i2c: E2 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 17 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: E2 17 00 D3 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [13:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:22:26]wFMCommunicate OK [13:22:26]CreateOFDProtocolMessage done [13:22:26]OFDSenderStorePacket 103422 [13:22:26]StoreOFDPacket docnum=103422 [13:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4A 23 07 01 D0 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 17 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 93 01 00 35 04 06 00 E5 F0 59 53 16 ED 36 C5 3E 41 10 81 1C 5B [13:22:26]CheckFolder [13:22:26]dirname=/storage/ofd_packets [13:22:26]CheckFolder done [13:22:26]ProducePacketName [13:22:26]name=ofd_packets/00103422 [13:22:26]NVStorageSaveData ofd_packets/00103422 [13:22:26]File name is /storage/ofd_packets/00103422 [13:22:26]Write 301 bytes [13:22:26]NVStorageSaveData done [13:22:26]OFDSenderStorePacket done [13:22:26]KKMCreateOFDPacket done [13:22:26]NVStorageSaveData kkm_last_timestamp [13:22:26]File name is /storage/kkm_last_timestamp [13:22:26]Write 4 bytes [13:22:26]NVStorageSaveData done [13:22:26]ExternCall_PrintAddStr [13:22:26]wPrintStart [13:22:26]Write to MH i2c: 01 00 00 D4 58 2C [13:22:26]Write i2c OK [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: 01 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: 01 07 00 [13:22:26]MH_I2C_Read... [13:22:26]Read from MH i2c: 01 07 00 D4 58 00 00 00 00 00 FF 0F 41 [13:22:26]RasterBufferAndPrint [13:22:26]line Счет N : (1)672583 [13:22:26]line ИНН: 02508201610067 [13:22:26]line Контрольно-Кассовый Чек [13:22:26]line ПРОДАЖА [13:22:26]line ТРК (МРК, ГНК) : 32 [13:22:26]line Товар: 2710124130 [13:22:26]line Аи-92-К-5 [13:22:26]line 15.070 * 66.40 [13:22:26]line = 1000.65 [13:22:26]line НДС 12% НСП 1% [13:22:26]line > о реализуемом товаре [13:22:26]line ОКРУГЛЕНИЕ: -0.65 [13:22:26]line ИТОГО: 1000.00 [13:22:26]line Внесено: 1000.00 [13:22:26]line СДАЧА: 0.00 [13:22:26]line НСП 1% : 8.85 [13:22:26]line НДС 12% : 106.26 [13:22:26]line Наличными: 1000.00 [13:22:26]line Безнал.: 0.00 [13:22:26]line Место: АЗС № 120 "Партнер Нефть" [13:22:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:22:26]line СНО: Общий режим [13:22:26]line Чек 106 18.06.2024 13:22 [13:22:26]line Смена: 352 ФФД: 1.0 [13:22:26]line ЗНМ: 0300000164 [13:22:26]line РНМ: 0000000000092785 [13:22:26]line Версия ККМ: 001 [13:22:26]line ФМ: 0000000000875093 [13:22:26]line ФД: 103422 [13:22:26]line ФПД: 252820453529325 [13:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132231&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103422&fm=252820453529325&tin=02508201610067®Number=0000000000092785&sum=100000 [13:22:27]OFD Sender: Processing packet 103422 [packets to send 17, broken 16] [13:22:27]ProducePacketName [13:22:27]name=ofd_packets/00103422 [13:22:27]OFD Sender: To server: pG, [13:22:27]CommunicateWithHost lk.salyk.kg:30040 [13:22:27]ConnectInit lk.salyk.kg [13:22:27]written 0, free lines is 4095 [13:22:27]Connected sock=10 [13:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4A 23 07 01 D0 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 17 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 93 01 00 35 04 06 00 E5 F0 59 53 16 ED 36 C5 3E 41 10 81 1C 5B [13:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C4 73 47 00 66 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 93 01 00 F4 03 04 00 A3 30 71 66 B6 04 01 00 00 C4 26 13 27 23 61 6C 60 [13:22:27]CommunicateWithHost err = 0 [13:22:27]CheckOFDResponse [13:22:27]1017 (14) - 77093643461234 [13:22:27]1041 (16) - 0000000000875093 [13:22:27]1040 (4) - 103422 [13:22:27]1012 (4) - 18.06.2024 07:00 [13:22:27]1206 (1) - 0 [13:22:27]OFD Sender: Remove packet 103422 [13:22:27]ProducePacketName [13:22:27]name=ofd_packets/00103422 [13:22:27]NVStorageDeleteData [13:22:27]Write to MH i2c: 01 00 00 FF 58 57 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: 01 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: 01 07 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: 01 07 00 FF 58 00 00 00 00 00 DA 0C 44 [13:22:27]RasterBufferAndPrint [13:22:27]line [13:22:27]line [13:22:27]line [13:22:27]line [13:22:27]line [13:22:27]written 0, free lines is 3297 [13:22:27]MH_Cut [13:22:27]Write to MH i2c: D1 01 00 06 59 01 31 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: D1 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: D1 01 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: D1 01 00 06 59 00 30 [13:22:27]Write to MH i2c: 01 00 00 07 59 60 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]OFD Sender: No OFD packet to send [13:22:28]*** Cut start [13:22:28]*** Partial cut [13:22:28]*** CUTSNS_PIN = 1 [13:22:28]*** CUTSNS_PIN = 0 [13:22:28]*** Brake cut motor [13:22:28]Read from MH i2c: 01 [13:22:28]MH_I2C_Read... [13:22:28]*** Stop cut motor [13:22:28]*** Cut end [13:22:28]Read from MH i2c: 01 07 00 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: 01 07 00 07 59 00 00 00 00 00 FF 0F 75 [13:22:28]process_action close_receipt done [13:22:28]requested_data is exist [13:22:28]produce_requested_data [13:22:28]requested_item fm.sn is exist - process it [13:22:28]wFMCommunicate request_size=4 [13:22:28]MH_SAM_APDU [13:22:28]CAPDU: 80 11 00 00 [13:22:28]Write to MH i2c: E2 08 00 08 59 80 11 00 00 00 00 00 00 DB [13:22:28]Write i2c OK [13:22:28]MH_I2C_Read... [13:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:28]Read from MH i2c: E2 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 17 00 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 17 00 08 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [13:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:22:28]wFMCommunicate OK [13:22:28]requested_item fd.num is exist - process it [13:22:28]SAM_PROTO_GetFieldsCounters [13:22:28]wFMCommunicate request_size=4 [13:22:28]MH_SAM_APDU [13:22:28]CAPDU: 80 13 00 00 [13:22:28]Write to MH i2c: E2 08 00 09 59 80 13 00 00 00 00 00 00 DE [13:22:28]Write i2c OK [13:22:28]MH_I2C_Read... [13:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:29]Read from MH i2c: E2 [13:22:29]MH_I2C_Read... [13:22:29]Read from MH i2c: E2 62 00 [13:22:29]MH_I2C_Read... [13:22:29]Read from MH i2c: E2 62 00 09 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 93 01 00 0E 04 04 00 60 01 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 36 [13:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 93 01 00 0E 04 04 00 60 01 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 [13:22:29]wFMCommunicate OK [13:22:29]SAM_PROTO_GetFieldsCounters done [13:22:29]requested_item shift.num is exist - process it [13:22:29]requested_item shift.opened is exist - process it [13:22:29]req_shift_opened [13:22:29]FM_GetShiftState [13:22:29]SAM_PROTO_GetShiftState [13:22:29]wFMCommunicate request_size=4 [13:22:29]MH_SAM_APDU [13:22:29]CAPDU: 80 13 01 00 [13:22:29]Write to MH i2c: E2 08 00 0A 59 80 13 01 00 00 00 00 00 E0 [13:22:29]Write i2c OK [13:22:29]MH_I2C_Read... [13:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:29]Read from MH i2c: E2 [13:22:29]MH_I2C_Read... [13:22:29]Read from MH i2c: E2 0E 00 [13:22:29]MH_I2C_Read... [13:22:29]Read from MH i2c: E2 0E 00 0A 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 61 [13:22:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:22:29]wFMCommunicate OK [13:22:29]SAM_PROTO_GetShiftState done [13:22:29]FM_GetShiftState done [13:22:29]req_shift_opened done [13:22:29]requested_item shift.open_date is exist - process it [13:22:29]req_shift_open_date [13:22:29]req_shift_open_date done [13:22:29]produce_requested_data done [13:22:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103422,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:22:29]process_action_free close_receipt [13:22:29]json_value_free [13:22:29]json_value_free done [13:22:29]process_json_proto returns [13:22:29]Send response to host [13:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103422,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:22:29]free response buf [13:22:29]execute_script done [13:22:29]execute_script returns [13:22:29]free content buf [13:22:29]Sock 9.Close socket [13:22:29]Sock 9.Thread stoped [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:02]accept exits with 7 [13:26:02]New connection [13:26:02]New thread 3067227492 created [13:26:02]Thread 3067084132 joined [13:26:02]Waiting for new connection... [13:26:02] Sock 7.Parse request [13:26:02]Sock 7.Check first char [13:26:02]Sock 7.First char is OK [13:26:02]request: POST /json_proto HTTP/1.0 [13:26:02]Method: POST [13:26:02]URL: /json_proto [13:26:02]Method is POST - this is cgi request [13:26:02]url: /json_proto [13:26:02]query_string will be loaded in cgi processing [13:26:02]execute_cgi json_proto POST (null) [13:26:02]execute_cgi path=json_proto method=POST [13:26:02]POST find Content-Length [13:26:02]Host: 172.17.38.133:8080 [13:26:02]Content-Length: 808 [13:26:02]Content-Type: application/json [13:26:02] [13:26:02]POST finish read [13:26:02]Found Content-Length = 808 [13:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:02]execute_script... [13:26:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:02]POST & json_proto [13:26:02]process_json_proto [13:26:02]json parsed OK: [13:26:02]protocol is kg_v1.0 [13:26:02]action value=close_receipt [13:26:02]process_action close_receipt [13:26:02]cmd_close_receipt [13:26:02]MH_GetDate [13:26:02]Write to MH i2c: F0 00 00 0B 59 53 [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 09 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: F0 09 00 0B 59 00 F1 8A 71 66 BD 8F 7C 64 DA [13:26:02]GetLastDocTimeStamp 1718716951 [13:26:02]current date 1718717169 [13:26:02]FM_GetShiftState [13:26:02]SAM_PROTO_GetShiftState [13:26:02]wFMCommunicate request_size=4 [13:26:02]MH_SAM_APDU [13:26:02]CAPDU: 80 13 01 00 [13:26:02]Write to MH i2c: E2 08 00 0C 59 80 13 01 00 00 00 00 00 E2 [13:26:02]Write i2c OK [13:26:02]MH_I2C_Read... [13:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:02]Read from MH i2c: E2 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 0E 00 [13:26:02]MH_I2C_Read... [13:26:02]Read from MH i2c: E2 0E 00 0C 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 63 [13:26:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:26:02]wFMCommunicate OK [13:26:02]SAM_PROTO_GetShiftState done [13:26:02]FM_GetShiftState done [13:26:02]opened in 1718670284 [13:26:02]opened+sec_in_day 1718756684 [13:26:02]quantity*price = 150028 [13:26:02]sum+1 = 150029 [13:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 18.06.2024 13:26 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103423 ФПД: 267074504740705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132609&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103423&fm=267074504740705&tin=02508201610067®Number=0000000000092785&sum=150028 [13:26:04]StoreToDocumentArchive [13:26:04]shift 352 fd 103423 [13:26:04]save to /storage/0352/doc_00103423 [13:26:04]save last doc name /storage/0352/doc_00103423 to /storage/kkm_last_doc_name [13:26:04]save OK [13:26:04]Clear old archive folders... [13:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:26:04]tlvbuf is 0135DFF0 [13:26:04]SAM_PROTO_ClearQueue [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 09 00 00 [13:26:04]Write to MH i2c: E2 08 00 19 59 80 09 00 00 00 00 00 00 E4 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 19 59 00 90 00 E6 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_ClearQueue done [13:26:04]KKMCreateOFDPacket [13:26:04]OFDProtocolAddRootSTLVToBuf [13:26:04]FM_MakeSignedData [13:26:04]FM_MakeSignedData [13:26:04]SAM_PROTO_SignData [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 01 02 [13:26:04]Write to MH i2c: E2 08 00 1A 59 80 0D 01 02 00 00 00 00 EC [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 1A 59 00 90 00 E7 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=255 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 F1 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 93 01 00 35 04 06 00 [13:26:04]Write to MH i2c: E2 02 01 1B 59 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 F1 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 93 01 00 35 04 06 00 00 00 E9 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 1B 59 00 90 00 E8 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=11 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 02 02 06 F2 E7 20 FB CF 61 [13:26:04]Write to MH i2c: E2 0E 00 1C 59 80 0D 02 02 06 00 F2 E7 20 FB CF 61 00 00 1F [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 1C 59 00 90 00 E9 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 03 02 [13:26:04]Write to MH i2c: E2 08 00 1D 59 80 0D 03 02 00 00 00 00 F1 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0B 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0B 00 1D 59 00 A7 24 47 F2 1F F4 97 D8 90 00 78 [13:26:04]RAPDU: A7 24 47 F2 1F F4 97 D8 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_SignData done [13:26:04]FM_MakeSignedData done [13:26:04]CreateOFDProtocolMessage [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 11 00 00 [13:26:04]Write to MH i2c: E2 08 00 1E 59 80 11 00 00 00 00 00 00 F1 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 1E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [13:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:26:04]wFMCommunicate OK [13:26:04]CreateOFDProtocolMessage done [13:26:04]OFDSenderStorePacket 103423 [13:26:04]StoreOFDPacket docnum=103423 [13:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 72 08 01 E2 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 F1 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 93 01 00 35 04 06 00 F2 E7 20 FB CF 61 A7 24 47 F2 1F F4 97 D8 [13:26:04]CheckFolder [13:26:04]dirname=/storage/ofd_packets [13:26:04]CheckFolder done [13:26:04]ProducePacketName [13:26:04]name=ofd_packets/00103423 [13:26:04]NVStorageSaveData ofd_packets/00103423 [13:26:04]File name is /storage/ofd_packets/00103423 [13:26:04]Write 302 bytes [13:26:04]NVStorageSaveData done [13:26:04]OFDSenderStorePacket done [13:26:04]KKMCreateOFDPacket done [13:26:04]NVStorageSaveData kkm_last_timestamp [13:26:04]File name is /storage/kkm_last_timestamp [13:26:04]Write 4 bytes [13:26:04]NVStorageSaveData done [13:26:04]ExternCall_PrintAddStr [13:26:04]wPrintStart [13:26:04]Write to MH i2c: 01 00 00 1F 59 78 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 1F 59 00 00 00 00 00 FF 0F 8D [13:26:04]RasterBufferAndPrint [13:26:04]line Счет N : (1)672585 [13:26:04]line ИНН: 02508201610067 [13:26:04]line Контрольно-Кассовый Чек [13:26:04]line ПРОДАЖА [13:26:04]line ТРК (МРК, ГНК) : 21 [13:26:04]line Товар: 2710194210 [13:26:04]line ДТ(л)-К-5 [13:26:04]line 20.580 * 72.90 [13:26:04]line = 1500.28 [13:26:04]line НДС 12% НСП 1% [13:26:04]line > о реализуемом товаре [13:26:04]line ИТОГО: 1500.28 [13:26:04]line НСП 1% : 13.28 [13:26:04]line НДС 12% : 159.32 [13:26:04]line Наличными: 0.00 [13:26:04]line Безнал.: 1500.28 [13:26:04]line Место: АЗС № 120 "Партнер Нефть" [13:26:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:26:04]line СНО: Общий режим [13:26:04]line Чек 107 18.06.2024 13:26 [13:26:04]line Смена: 352 ФФД: 1.0 [13:26:04]line ЗНМ: 0300000164 [13:26:04]line РНМ: 0000000000092785 [13:26:04]line Версия ККМ: 001 [13:26:04]line Платежная система: O! деньги [13:26:04]line ФМ: 0000000000875093 [13:26:04]line ФД: 103423 [13:26:04]line ФПД: 267074504740705 [13:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132609&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103423&fm=267074504740705&tin=02508201610067®Number=0000000000092785&sum=150028 [13:26:04]OFD Sender: Processing packet 103423 [packets to send 17, broken 16] [13:26:04]ProducePacketName [13:26:04]name=ofd_packets/00103423 [13:26:04]OFD Sender: To server: pG, [13:26:04]CommunicateWithHost lk.salyk.kg:30040 [13:26:04]ConnectInit lk.salyk.kg [13:26:04]written 0, free lines is 4095 [13:26:05]Connected sock=10 [13:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 72 08 01 E2 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 F1 8A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 93 01 00 35 04 06 00 F2 E7 20 FB CF 61 A7 24 47 F2 1F F4 97 D8 [13:26:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 D2 47 00 3D 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 93 01 00 F4 03 04 00 7D 31 71 66 B6 04 01 00 00 90 21 DF 55 86 D3 2D 35 [13:26:05]CommunicateWithHost err = 0 [13:26:05]CheckOFDResponse [13:26:05]1017 (14) - 77093643461234 [13:26:05]1041 (16) - 0000000000875093 [13:26:05]1040 (4) - 103423 [13:26:05]1012 (4) - 18.06.2024 07:04 [13:26:05]1206 (1) - 0 [13:26:05]OFD Sender: Remove packet 103423 [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00103423 [13:26:05]NVStorageDeleteData [13:26:05]Write to MH i2c: 01 00 00 49 59 A2 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 49 59 00 00 00 00 00 F1 0C A6 [13:26:05]RasterBufferAndPrint [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]written 0, free lines is 3318 [13:26:05]MH_Cut [13:26:05]Write to MH i2c: D1 01 00 50 59 01 7B [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 01 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 01 00 50 59 00 7A [13:26:05]Write to MH i2c: 01 00 00 51 59 AA [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]OFD Sender: No OFD packet to send [13:26:06]*** Cut start [13:26:06]*** Partial cut [13:26:06]*** CUTSNS_PIN = 1 [13:26:06]*** CUTSNS_PIN = 0 [13:26:06]*** Brake cut motor [13:26:06]Read from MH i2c: 01 [13:26:06]MH_I2C_Read... [13:26:06]*** Stop cut motor [13:26:06]*** Cut end [13:26:06]Read from MH i2c: 01 07 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: 01 07 00 51 59 00 00 00 00 00 FF 0F BF [13:26:06]process_action close_receipt done [13:26:06]requested_data is exist [13:26:06]produce_requested_data [13:26:06]requested_item fm.sn is exist - process it [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 11 00 00 [13:26:06]Write to MH i2c: E2 08 00 52 59 80 11 00 00 00 00 00 00 25 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 52 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [13:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:26:06]wFMCommunicate OK [13:26:06]requested_item fd.num is exist - process it [13:26:06]SAM_PROTO_GetFieldsCounters [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 13 00 00 [13:26:06]Write to MH i2c: E2 08 00 53 59 80 13 00 00 00 00 00 00 28 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 62 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 62 00 53 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 93 01 00 0E 04 04 00 60 01 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 84 [13:26:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 93 01 00 0E 04 04 00 60 01 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:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_GetFieldsCounters done [13:26:06]requested_item shift.num is exist - process it [13:26:06]requested_item shift.opened is exist - process it [13:26:06]req_shift_opened [13:26:06]FM_GetShiftState [13:26:06]SAM_PROTO_GetShiftState [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 13 01 00 [13:26:06]Write to MH i2c: E2 08 00 54 59 80 13 01 00 00 00 00 00 2A [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:07]Read from MH i2c: E2 0E 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 0E 00 54 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AB [13:26:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:26:07]wFMCommunicate OK [13:26:07]SAM_PROTO_GetShiftState done [13:26:07]FM_GetShiftState done [13:26:07]req_shift_opened done [13:26:07]requested_item shift.open_date is exist - process it [13:26:07]req_shift_open_date [13:26:07]req_shift_open_date done [13:26:07]produce_requested_data done [13:26:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103423,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:26:07]process_action_free close_receipt [13:26:07]json_value_free [13:26:07]json_value_free done [13:26:07]process_json_proto returns [13:26:07]Send response to host [13:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103423,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:26:07]free response buf [13:26:07]execute_script done [13:26:07]execute_script returns [13:26:07]free content buf [13:26:07]Sock 7.Close socket [13:26:07]Sock 7.Thread stoped [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:34]accept exits with 9 [13:26:34]New connection [13:26:34]New thread 3067084132 created [13:26:34]Thread 3067227492 joined [13:26:34]Waiting for new connection... [13:26:34] Sock 9.Parse request [13:26:34]Sock 9.Check first char [13:26:34]Sock 9.First char is OK [13:26:34]request: POST /json_proto HTTP/1.0 [13:26:34]Method: POST [13:26:34]URL: /json_proto [13:26:34]Method is POST - this is cgi request [13:26:34]url: /json_proto [13:26:34]query_string will be loaded in cgi processing [13:26:34]execute_cgi json_proto POST (null) [13:26:34]execute_cgi path=json_proto method=POST [13:26:34]POST find Content-Length [13:26:34]Host: 172.17.38.133:8080 [13:26:34]Content-Length: 678 [13:26:34]Content-Type: application/json [13:26:34] [13:26:34]POST finish read [13:26:34]Found Content-Length = 678 [13:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:34]execute_script... [13:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:34]POST & json_proto [13:26:34]process_json_proto [13:26:34]json parsed OK: [13:26:34]protocol is kg_v1.0 [13:26:34]action value=close_receipt [13:26:34]process_action close_receipt [13:26:34]cmd_close_receipt [13:26:34]MH_GetDate [13:26:34]Write to MH i2c: F0 00 00 55 59 9D [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: F0 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: F0 09 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: F0 09 00 55 59 00 10 8B 71 66 BD 8F 7C 64 44 [13:26:34]GetLastDocTimeStamp 1718717169 [13:26:34]current date 1718717200 [13:26:34]FM_GetShiftState [13:26:34]SAM_PROTO_GetShiftState [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 13 01 00 [13:26:34]Write to MH i2c: E2 08 00 56 59 80 13 01 00 00 00 00 00 2C [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 0E 00 56 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AD [13:26:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_GetShiftState done [13:26:34]FM_GetShiftState done [13:26:34]opened in 1718670284 [13:26:34]opened+sec_in_day 1718756684 [13:26:34]quantity*price = 90038 [13:26:34]sum+1 = 90039 [13:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 108 18.06.2024 13:26 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103424 ФПД: 9289245700861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103424&fm=9289245700861&tin=02508201610067®Number=0000000000092785&sum=90000 [13:26:35]StoreToDocumentArchive [13:26:35]shift 352 fd 103424 [13:26:35]save to /storage/0352/doc_00103424 [13:26:35]save last doc name /storage/0352/doc_00103424 to /storage/kkm_last_doc_name [13:26:35]save OK [13:26:35]Clear old archive folders... [13:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:35]tlvbuf is 014A37B0 [13:26:35]SAM_PROTO_ClearQueue [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 09 00 00 [13:26:35]Write to MH i2c: E2 08 00 63 59 80 09 00 00 00 00 00 00 2E [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 63 59 00 90 00 30 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_ClearQueue done [13:26:35]KKMCreateOFDPacket [13:26:35]OFDProtocolAddRootSTLVToBuf [13:26:35]FM_MakeSignedData [13:26:35]FM_MakeSignedData [13:26:35]SAM_PROTO_SignData [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 01 02 [13:26:35]Write to MH i2c: E2 08 00 64 59 80 0D 01 02 00 00 00 00 36 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 64 59 00 90 00 31 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=255 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 11 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 94 01 00 35 04 06 00 08 [13:26:35]Write to MH i2c: E2 02 01 65 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 11 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 94 01 00 35 04 06 00 08 00 00 ED [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 65 59 00 90 00 32 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=10 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 02 02 05 72 D2 30 B2 FD [13:26:35]Write to MH i2c: E2 0D 00 66 59 80 0D 02 02 05 00 72 D2 30 B2 FD 00 00 66 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 03 00 66 59 00 90 00 33 [13:26:35]RAPDU: 90 00 [13:26:35]wFMCommunicate OK [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 0D 03 02 [13:26:35]Write to MH i2c: E2 08 00 67 59 80 0D 03 02 00 00 00 00 3B [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0B 00 67 59 00 EB 84 F8 DE 62 09 0A 25 90 00 1B [13:26:35]RAPDU: EB 84 F8 DE 62 09 0A 25 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_SignData done [13:26:35]FM_MakeSignedData done [13:26:35]CreateOFDProtocolMessage [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 11 00 00 [13:26:35]Write to MH i2c: E2 08 00 68 59 80 11 00 00 00 00 00 00 3B [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 17 00 68 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [13:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:26:35]wFMCommunicate OK [13:26:35]CreateOFDProtocolMessage done [13:26:35]OFDSenderStorePacket 103424 [13:26:35]StoreOFDPacket docnum=103424 [13:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 01 07 01 0C 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 11 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 94 01 00 35 04 06 00 08 72 D2 30 B2 FD EB 84 F8 DE 62 09 0A 25 [13:26:35]CheckFolder [13:26:35]dirname=/storage/ofd_packets [13:26:35]CheckFolder done [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00103424 [13:26:35]NVStorageSaveData ofd_packets/00103424 [13:26:35]File name is /storage/ofd_packets/00103424 [13:26:35]Write 301 bytes [13:26:35]NVStorageSaveData done [13:26:35]OFDSenderStorePacket done [13:26:35]KKMCreateOFDPacket done [13:26:35]NVStorageSaveData kkm_last_timestamp [13:26:35]File name is /storage/kkm_last_timestamp [13:26:35]Write 4 bytes [13:26:35]NVStorageSaveData done [13:26:35]ExternCall_PrintAddStr [13:26:35]wPrintStart [13:26:35]Write to MH i2c: 01 00 00 69 59 C2 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: 01 07 00 69 59 00 00 00 00 00 FF 0F D7 [13:26:35]RasterBufferAndPrint [13:26:35]line Счет N : (1)672586 [13:26:35]line ИНН: 02508201610067 [13:26:35]line Контрольно-Кассовый Чек [13:26:35]line ПРОДАЖА [13:26:35]line ТРК (МРК, ГНК) : 42 [13:26:35]line Товар: 2710124130 [13:26:35]line Аи-92-К-5 [13:26:35]line 13.560 * 66.40 [13:26:35]line = 900.38 [13:26:35]line НДС 12% НСП 1% [13:26:35]line > о реализуемом товаре [13:26:35]line ОКРУГЛЕНИЕ: -0.38 [13:26:35]line ИТОГО: 900.00 [13:26:35]line Внесено: 900.00 [13:26:35]line СДАЧА: 0.00 [13:26:35]line НСП 1% : 7.97 [13:26:35]line НДС 12% : 95.62 [13:26:35]line Наличными: 900.00 [13:26:35]line Безнал.: 0.00 [13:26:35]line Место: АЗС № 120 "Партнер Нефть" [13:26:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:26:35]line СНО: Общий режим [13:26:35]line Чек 108 18.06.2024 13:26 [13:26:35]line Смена: 352 ФФД: 1.0 [13:26:35]line ЗНМ: 0300000164 [13:26:35]line РНМ: 0000000000092785 [13:26:35]line Версия ККМ: 001 [13:26:35]line ФМ: 0000000000875093 [13:26:35]line ФД: 103424 [13:26:35]line ФПД: 9289245700861 [13:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103424&fm=9289245700861&tin=02508201610067®Number=0000000000092785&sum=90000 [13:26:35]OFD Sender: Processing packet 103424 [packets to send 17, broken 16] [13:26:35]ProducePacketName [13:26:35]name=ofd_packets/00103424 [13:26:35]OFD Sender: To server: pG, [13:26:35]CommunicateWithHost lk.salyk.kg:30040 [13:26:35]ConnectInit lk.salyk.kg [13:26:35]written 0, free lines is 4095 [13:26:36]Connected sock=11 [13:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 01 07 01 0C 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 11 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 94 01 00 35 04 06 00 08 72 D2 30 B2 FD EB 84 F8 DE 62 09 0A 25 [13:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 65 1B 47 00 6C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 94 01 00 F4 03 04 00 9C 31 71 66 B6 04 01 00 00 55 AA E9 DD F7 2A F9 90 [13:26:36]CommunicateWithHost err = 0 [13:26:36]CheckOFDResponse [13:26:36]1017 (14) - 77093643461234 [13:26:36]1041 (16) - 0000000000875093 [13:26:36]1040 (4) - 103424 [13:26:36]1012 (4) - 18.06.2024 07:05 [13:26:36]1206 (1) - 0 [13:26:36]OFD Sender: Remove packet 103424 [13:26:36]ProducePacketName [13:26:36]name=ofd_packets/00103424 [13:26:36]NVStorageDeleteData [13:26:36]Write to MH i2c: 01 00 00 94 59 ED [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: 01 07 00 94 59 00 00 00 00 00 DA 0C DA [13:26:36]RasterBufferAndPrint [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]line [13:26:36]written 0, free lines is 3297 [13:26:36]MH_Cut [13:26:36]Write to MH i2c: D1 01 00 9B 59 01 C6 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 01 00 [13:26:36]MH_I2C_Read... [13:26:36]Read from MH i2c: D1 01 00 9B 59 00 C5 [13:26:36]Write to MH i2c: 01 00 00 9C 59 F5 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]OFD Sender: No OFD packet to send [13:26:37]*** Cut start [13:26:37]*** Partial cut [13:26:37]*** CUTSNS_PIN = 1 [13:26:37]*** CUTSNS_PIN = 0 [13:26:37]*** Brake cut motor [13:26:37]Read from MH i2c: 01 [13:26:37]MH_I2C_Read... [13:26:37]*** Stop cut motor [13:26:37]Read from MH i2c: 01 07 00 [13:26:37]MH_I2C_Read... [13:26:37]*** Cut end [13:26:37]Read from MH i2c: 01 07 00 9C 59 00 00 00 00 00 FF 0F 0A [13:26:37]process_action close_receipt done [13:26:37]requested_data is exist [13:26:37]produce_requested_data [13:26:37]requested_item fm.sn is exist - process it [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 11 00 00 [13:26:37]Write to MH i2c: E2 08 00 9D 59 80 11 00 00 00 00 00 00 70 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:37]Read from MH i2c: E2 17 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 9D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [13:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:26:37]wFMCommunicate OK [13:26:37]requested_item fd.num is exist - process it [13:26:37]SAM_PROTO_GetFieldsCounters [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 00 00 [13:26:37]Write to MH i2c: E2 08 00 9E 59 80 13 00 00 00 00 00 00 73 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 62 00 9E 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 94 01 00 0E 04 04 00 60 01 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 D4 [13:26:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 94 01 00 0E 04 04 00 60 01 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 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetFieldsCounters done [13:26:37]requested_item shift.num is exist - process it [13:26:37]requested_item shift.opened is exist - process it [13:26:37]req_shift_opened [13:26:37]FM_GetShiftState [13:26:37]SAM_PROTO_GetShiftState [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 13 01 00 [13:26:37]Write to MH i2c: E2 08 00 9F 59 80 13 01 00 00 00 00 00 75 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0E 00 9F 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F6 [13:26:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_GetShiftState done [13:26:37]FM_GetShiftState done [13:26:37]req_shift_opened done [13:26:37]requested_item shift.open_date is exist - process it [13:26:37]req_shift_open_date [13:26:37]req_shift_open_date done [13:26:37]produce_requested_data done [13:26:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103424,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:26:37]process_action_free close_receipt [13:26:37]json_value_free [13:26:37]json_value_free done [13:26:37]process_json_proto returns [13:26:37]Send response to host [13:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103424,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:26:37]free response buf [13:26:37]execute_script done [13:26:37]execute_script returns [13:26:37]free content buf [13:26:37]Sock 9.Close socket [13:26:37]Sock 9.Thread stoped [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:30]accept exits with 7 [13:29:30]New connection [13:29:30]New thread 3067227492 created [13:29:30]Thread 3067084132 joined [13:29:30]Waiting for new connection... [13:29:30] Sock 7.Parse request [13:29:30]Sock 7.Check first char [13:29:30]Sock 7.First char is OK [13:29:30]request: POST /json_proto HTTP/1.0 [13:29:30]Method: POST [13:29:30]URL: /json_proto [13:29:30]Method is POST - this is cgi request [13:29:30]url: /json_proto [13:29:30]query_string will be loaded in cgi processing [13:29:30]execute_cgi json_proto POST (null) [13:29:30]execute_cgi path=json_proto method=POST [13:29:30]POST find Content-Length [13:29:30]Host: 172.17.38.133:8080 [13:29:30]Content-Length: 824 [13:29:30]Content-Type: application/json [13:29:30] [13:29:30]POST finish read [13:29:30]Found Content-Length = 824 [13:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:30]execute_script... [13:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:30]POST & json_proto [13:29:30]process_json_proto [13:29:30]json parsed OK: [13:29:30]protocol is kg_v1.0 [13:29:30]action value=close_receipt [13:29:30]process_action close_receipt [13:29:30]cmd_close_receipt [13:29:30]MH_GetDate [13:29:30]Write to MH i2c: F0 00 00 A0 59 E8 [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: F0 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: F0 09 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: F0 09 00 A0 59 00 C1 8B 71 66 BD 8F 7C 64 40 [13:29:30]GetLastDocTimeStamp 1718717201 [13:29:30]current date 1718717377 [13:29:30]FM_GetShiftState [13:29:30]SAM_PROTO_GetShiftState [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 13 01 00 [13:29:30]Write to MH i2c: E2 08 00 A1 59 80 13 01 00 00 00 00 00 77 [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 0E 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 0E 00 A1 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F8 [13:29:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:29:30]wFMCommunicate OK [13:29:30]SAM_PROTO_GetShiftState done [13:29:30]FM_GetShiftState done [13:29:30]opened in 1718670284 [13:29:30]opened+sec_in_day 1718756684 [13:29:30]quantity*price = 200037 [13:29:30]sum+1 = 200039 [13:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 109 18.06.2024 13:29 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103425 ФПД: 36671414532054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103425&fm=36671414532054&tin=02508201610067®Number=0000000000092785&sum=200038 [13:29:31]StoreToDocumentArchive [13:29:31]shift 352 fd 103425 [13:29:31]save to /storage/0352/doc_00103425 [13:29:31]save last doc name /storage/0352/doc_00103425 to /storage/kkm_last_doc_name [13:29:31]save OK [13:29:31]Clear old archive folders... [13:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:32]tlvbuf is 01373E30 [13:29:32]SAM_PROTO_ClearQueue [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 09 00 00 [13:29:32]Write to MH i2c: E2 08 00 AE 59 80 09 00 00 00 00 00 00 79 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 AE 59 00 90 00 7B [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]SAM_PROTO_ClearQueue done [13:29:32]KKMCreateOFDPacket [13:29:32]OFDProtocolAddRootSTLVToBuf [13:29:32]FM_MakeSignedData [13:29:32]FM_MakeSignedData [13:29:32]SAM_PROTO_SignData [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 01 02 [13:29:32]Write to MH i2c: E2 08 00 AF 59 80 0D 01 02 00 00 00 00 81 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]OFD Sender: No OFD packet to send [13:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 AF 59 00 90 00 7C [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=255 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C1 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 94 01 00 35 04 06 00 [13:29:32]Write to MH i2c: E2 02 01 B0 59 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C1 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 94 01 00 35 04 06 00 00 00 23 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 B0 59 00 90 00 7D [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=11 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 02 02 06 21 5A 3A A2 F7 D6 [13:29:32]Write to MH i2c: E2 0E 00 B1 59 80 0D 02 02 06 00 21 5A 3A A2 F7 D6 00 00 B4 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [13:29:32]RAPDU: 90 00 [13:29:32]wFMCommunicate OK [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 0D 03 02 [13:29:32]Write to MH i2c: E2 08 00 B2 59 80 0D 03 02 00 00 00 00 86 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 0B 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 0B 00 B2 59 00 DC D2 F0 37 2F AF DF C8 90 00 E1 [13:29:32]RAPDU: DC D2 F0 37 2F AF DF C8 90 00 [13:29:32]wFMCommunicate OK [13:29:32]SAM_PROTO_SignData done [13:29:32]FM_MakeSignedData done [13:29:32]CreateOFDProtocolMessage [13:29:32]wFMCommunicate request_size=4 [13:29:32]MH_SAM_APDU [13:29:32]CAPDU: 80 11 00 00 [13:29:32]Write to MH i2c: E2 08 00 B3 59 80 11 00 00 00 00 00 00 86 [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:32]Read from MH i2c: E2 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 17 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: E2 17 00 B3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [13:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:29:32]wFMCommunicate OK [13:29:32]CreateOFDProtocolMessage done [13:29:32]OFDSenderStorePacket 103425 [13:29:32]StoreOFDPacket docnum=103425 [13:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 ED 64 08 01 D4 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C1 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 94 01 00 35 04 06 00 21 5A 3A A2 F7 D6 DC D2 F0 37 2F AF DF C8 [13:29:32]CheckFolder [13:29:32]dirname=/storage/ofd_packets [13:29:32]CheckFolder done [13:29:32]ProducePacketName [13:29:32]name=ofd_packets/00103425 [13:29:32]NVStorageSaveData ofd_packets/00103425 [13:29:32]File name is /storage/ofd_packets/00103425 [13:29:32]Write 302 bytes [13:29:32]NVStorageSaveData done [13:29:32]OFDSenderStorePacket done [13:29:32]KKMCreateOFDPacket done [13:29:32]NVStorageSaveData kkm_last_timestamp [13:29:32]File name is /storage/kkm_last_timestamp [13:29:32]Write 4 bytes [13:29:32]NVStorageSaveData done [13:29:32]ExternCall_PrintAddStr [13:29:32]wPrintStart [13:29:32]Write to MH i2c: 01 00 00 B4 59 0D [13:29:32]Write i2c OK [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 07 00 [13:29:32]MH_I2C_Read... [13:29:32]Read from MH i2c: 01 07 00 B4 59 00 00 00 00 00 FF 0F 22 [13:29:32]RasterBufferAndPrint [13:29:32]line Счет N : (1)672587 [13:29:32]line ИНН: 02508201610067 [13:29:32]line Контрольно-Кассовый Чек [13:29:32]line ПРОДАЖА [13:29:32]line ТРК (МРК, ГНК) : 11 [13:29:32]line Товар: 2710194210 [13:29:32]line ДТ(л)-К-5 [13:29:32]line 27.440 * 72.90 [13:29:32]line = 2000.38 [13:29:32]line НДС 12% НСП 1% [13:29:32]line > о реализуемом товаре [13:29:32]line ИТОГО: 2000.38 [13:29:32]line НСП 1% : 17.70 [13:29:32]line НДС 12% : 212.43 [13:29:32]line Наличными: 0.00 [13:29:32]line Безнал.: 2000.38 [13:29:32]line Место: АЗС № 120 "Партнер Нефть" [13:29:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:29:32]line СНО: Общий режим [13:29:32]line Чек 109 18.06.2024 13:29 [13:29:32]line Смена: 352 ФФД: 1.0 [13:29:32]line ЗНМ: 0300000164 [13:29:32]line РНМ: 0000000000092785 [13:29:32]line Версия ККМ: 001 [13:29:32]line Платежная система: Бакай Банк [13:29:32]line ФМ: 0000000000875093 [13:29:32]line ФД: 103425 [13:29:32]line ФПД: 36671414532054 [13:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103425&fm=36671414532054&tin=02508201610067®Number=0000000000092785&sum=200038 [13:29:32]OFD Sender: Processing packet 103425 [packets to send 17, broken 16] [13:29:32]ProducePacketName [13:29:32]name=ofd_packets/00103425 [13:29:32]OFD Sender: To server: pG, [13:29:32]CommunicateWithHost lk.salyk.kg:30040 [13:29:32]ConnectInit lk.salyk.kg [13:29:32]written 0, free lines is 4095 [13:29:32]Connected sock=10 [13:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 ED 64 08 01 D4 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C1 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 94 01 00 35 04 06 00 21 5A 3A A2 F7 D6 DC D2 F0 37 2F AF DF C8 [13:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 D2 47 00 58 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 94 01 00 F4 03 04 00 4D 32 71 66 B6 04 01 00 00 68 C7 37 5B 75 36 80 A8 [13:29:33]CommunicateWithHost err = 0 [13:29:33]CheckOFDResponse [13:29:33]1017 (14) - 77093643461234 [13:29:33]1041 (16) - 0000000000875093 [13:29:33]1040 (4) - 103425 [13:29:33]1012 (4) - 18.06.2024 07:07 [13:29:33]1206 (1) - 0 [13:29:33]OFD Sender: Remove packet 103425 [13:29:33]ProducePacketName [13:29:33]name=ofd_packets/00103425 [13:29:33]NVStorageDeleteData [13:29:33]Write to MH i2c: 01 00 00 DE 59 37 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 07 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 07 00 DE 59 00 00 00 00 00 F9 0C 43 [13:29:33]RasterBufferAndPrint [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]line [13:29:33]written 0, free lines is 3328 [13:29:33]MH_Cut [13:29:33]Write to MH i2c: D1 01 00 E5 59 01 10 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 01 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: D1 01 00 E5 59 00 0F [13:29:33]Write to MH i2c: 01 00 00 E6 59 3F [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]OFD Sender: No OFD packet to send [13:29:34]*** Cut start [13:29:34]*** Partial cut [13:29:34]*** CUTSNS_PIN = 1 [13:29:34]*** CUTSNS_PIN = 0 [13:29:34]*** Brake cut motor [13:29:34]Read from MH i2c: 01 [13:29:34]MH_I2C_Read... [13:29:34]*** Stop cut motor [13:29:34]*** Cut end [13:29:34]Read from MH i2c: 01 07 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: 01 07 00 E6 59 00 00 00 00 00 FF 0F 54 [13:29:34]process_action close_receipt done [13:29:34]requested_data is exist [13:29:34]produce_requested_data [13:29:34]requested_item fm.sn is exist - process it [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 11 00 00 [13:29:34]Write to MH i2c: E2 08 00 E7 59 80 11 00 00 00 00 00 00 BA [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:34]Read from MH i2c: E2 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 17 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 17 00 E7 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [13:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:29:34]wFMCommunicate OK [13:29:34]requested_item fd.num is exist - process it [13:29:34]SAM_PROTO_GetFieldsCounters [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 13 00 00 [13:29:34]Write to MH i2c: E2 08 00 E8 59 80 13 00 00 00 00 00 00 BD [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:34]Read from MH i2c: E2 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 62 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 62 00 E8 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 94 01 00 0E 04 04 00 60 01 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 22 [13:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 94 01 00 0E 04 04 00 60 01 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 [13:29:34]wFMCommunicate OK [13:29:34]SAM_PROTO_GetFieldsCounters done [13:29:34]requested_item shift.num is exist - process it [13:29:34]requested_item shift.opened is exist - process it [13:29:34]req_shift_opened [13:29:34]FM_GetShiftState [13:29:34]SAM_PROTO_GetShiftState [13:29:34]wFMCommunicate request_size=4 [13:29:34]MH_SAM_APDU [13:29:34]CAPDU: 80 13 01 00 [13:29:34]Write to MH i2c: E2 08 00 E9 59 80 13 01 00 00 00 00 00 BF [13:29:34]Write i2c OK [13:29:34]MH_I2C_Read... [13:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:34]Read from MH i2c: E2 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 0E 00 [13:29:34]MH_I2C_Read... [13:29:34]Read from MH i2c: E2 0E 00 E9 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 40 [13:29:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:29:34]wFMCommunicate OK [13:29:34]SAM_PROTO_GetShiftState done [13:29:34]FM_GetShiftState done [13:29:34]req_shift_opened done [13:29:34]requested_item shift.open_date is exist - process it [13:29:34]req_shift_open_date [13:29:34]req_shift_open_date done [13:29:34]produce_requested_data done [13:29:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103425,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:29:34]process_action_free close_receipt [13:29:34]json_value_free [13:29:34]json_value_free done [13:29:34]process_json_proto returns [13:29:34]Send response to host [13:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103425,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:29:34]free response buf [13:29:34]execute_script done [13:29:34]execute_script returns [13:29:34]free content buf [13:29:34]Sock 7.Close socket [13:29:34]Sock 7.Thread stoped [13:29:38]accept exits with 9 [13:29:38]New connection [13:29:38]New thread 3067084132 created [13:29:38]Thread 3067227492 joined [13:29:38]Waiting for new connection... [13:29:38] Sock 9.Parse request [13:29:38]Sock 9.Check first char [13:29:38]Sock 9.First char is OK [13:29:38]request: POST /json_proto HTTP/1.0 [13:29:38]Method: POST [13:29:38]URL: /json_proto [13:29:38]Method is POST - this is cgi request [13:29:38]url: /json_proto [13:29:38]query_string will be loaded in cgi processing [13:29:38]execute_cgi json_proto POST (null) [13:29:38]execute_cgi path=json_proto method=POST [13:29:38]POST find Content-Length [13:29:38]Host: 172.17.38.133:8080 [13:29:38]Content-Length: 803 [13:29:38]Content-Type: application/json [13:29:38] [13:29:38]POST finish read [13:29:38]Found Content-Length = 803 [13:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:38]execute_script... [13:29:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:38]POST & json_proto [13:29:38]process_json_proto [13:29:38]json parsed OK: [13:29:38]protocol is kg_v1.0 [13:29:38]action value=close_receipt [13:29:38]process_action close_receipt [13:29:38]cmd_close_receipt [13:29:38]MH_GetDate [13:29:38]Write to MH i2c: F0 00 00 EA 59 32 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: F0 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: F0 09 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: F0 09 00 EA 59 00 C9 8B 71 66 BD 8F 7C 64 92 [13:29:38]GetLastDocTimeStamp 1718717377 [13:29:38]current date 1718717385 [13:29:38]FM_GetShiftState [13:29:38]SAM_PROTO_GetShiftState [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 13 01 00 [13:29:38]Write to MH i2c: E2 08 00 EB 59 80 13 01 00 00 00 00 00 C1 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:38]Read from MH i2c: E2 0E 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0E 00 EB 59 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 42 [13:29:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:29:38]wFMCommunicate OK [13:29:38]SAM_PROTO_GetShiftState done [13:29:38]FM_GetShiftState done [13:29:38]opened in 1718670284 [13:29:38]opened+sec_in_day 1718756684 [13:29:38]quantity*price = 200063 [13:29:38]sum+1 = 200064 [13:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 18.06.2024 13:29 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103426 ФПД: 200515756963147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103426&fm=200515756963147&tin=02508201610067®Number=0000000000092785&sum=200063 [13:29:39]StoreToDocumentArchive [13:29:39]shift 352 fd 103426 [13:29:39]save to /storage/0352/doc_00103426 [13:29:39]save last doc name /storage/0352/doc_00103426 to /storage/kkm_last_doc_name [13:29:39]save OK [13:29:39]Clear old archive folders... [13:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:39]tlvbuf is B6F981B0 [13:29:39]SAM_PROTO_ClearQueue [13:29:39]wFMCommunicate request_size=4 [13:29:39]MH_SAM_APDU [13:29:39]CAPDU: 80 09 00 00 [13:29:39]Write to MH i2c: E2 08 00 F8 59 80 09 00 00 00 00 00 00 C3 [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:39]Read from MH i2c: E2 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 F8 59 00 90 00 C5 [13:29:39]RAPDU: 90 00 [13:29:39]wFMCommunicate OK [13:29:39]SAM_PROTO_ClearQueue done [13:29:39]KKMCreateOFDPacket [13:29:39]OFDProtocolAddRootSTLVToBuf [13:29:39]FM_MakeSignedData [13:29:39]FM_MakeSignedData [13:29:39]SAM_PROTO_SignData [13:29:39]wFMCommunicate request_size=4 [13:29:39]MH_SAM_APDU [13:29:39]CAPDU: 80 0D 01 02 [13:29:39]Write to MH i2c: E2 08 00 F9 59 80 0D 01 02 00 00 00 00 CB [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:39]Read from MH i2c: E2 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 F9 59 00 90 00 C6 [13:29:39]RAPDU: 90 00 [13:29:39]wFMCommunicate OK [13:29:39]wFMCommunicate request_size=255 [13:29:39]MH_SAM_APDU [13:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C9 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 94 01 00 35 04 06 00 B6 [13:29:39]Write to MH i2c: E2 02 01 FA 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C9 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 94 01 00 35 04 06 00 B6 00 00 3F [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:39]Read from MH i2c: E2 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: E2 03 00 FA 59 00 90 00 C7 [13:29:39]RAPDU: 90 00 [13:29:39]wFMCommunicate OK [13:29:39]wFMCommunicate request_size=10 [13:29:39]MH_SAM_APDU [13:29:39]CAPDU: 80 0D 02 02 05 5E 36 77 35 4B [13:29:39]Write to MH i2c: E2 0D 00 FB 59 80 0D 02 02 05 00 5E 36 77 35 4B 00 00 63 [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:40]Read from MH i2c: E2 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 03 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 03 00 FB 59 00 90 00 C8 [13:29:40]RAPDU: 90 00 [13:29:40]wFMCommunicate OK [13:29:40]wFMCommunicate request_size=4 [13:29:40]MH_SAM_APDU [13:29:40]CAPDU: 80 0D 03 02 [13:29:40]Write to MH i2c: E2 08 00 FC 59 80 0D 03 02 00 00 00 00 D0 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:40]Read from MH i2c: E2 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 0B 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 0B 00 FC 59 00 F2 80 6A 39 2E 33 93 82 90 00 5C [13:29:40]RAPDU: F2 80 6A 39 2E 33 93 82 90 00 [13:29:40]wFMCommunicate OK [13:29:40]SAM_PROTO_SignData done [13:29:40]FM_MakeSignedData done [13:29:40]CreateOFDProtocolMessage [13:29:40]wFMCommunicate request_size=4 [13:29:40]MH_SAM_APDU [13:29:40]CAPDU: 80 11 00 00 [13:29:40]Write to MH i2c: E2 08 00 FD 59 80 11 00 00 00 00 00 00 D0 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:40]Read from MH i2c: E2 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 17 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 17 00 FD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [13:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:29:40]wFMCommunicate OK [13:29:40]CreateOFDProtocolMessage done [13:29:40]OFDSenderStorePacket 103426 [13:29:40]StoreOFDPacket docnum=103426 [13:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 04 86 07 01 6D 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C9 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 94 01 00 35 04 06 00 B6 5E 36 77 35 4B F2 80 6A 39 2E 33 93 82 [13:29:40]CheckFolder [13:29:40]dirname=/storage/ofd_packets [13:29:40]CheckFolder done [13:29:40]ProducePacketName [13:29:40]name=ofd_packets/00103426 [13:29:40]NVStorageSaveData ofd_packets/00103426 [13:29:40]File name is /storage/ofd_packets/00103426 [13:29:40]Write 301 bytes [13:29:40]NVStorageSaveData done [13:29:40]OFDSenderStorePacket done [13:29:40]KKMCreateOFDPacket done [13:29:40]NVStorageSaveData kkm_last_timestamp [13:29:40]File name is /storage/kkm_last_timestamp [13:29:40]Write 4 bytes [13:29:40]NVStorageSaveData done [13:29:40]ExternCall_PrintAddStr [13:29:40]wPrintStart [13:29:40]Write to MH i2c: 01 00 00 FE 59 57 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 07 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 07 00 FE 59 00 00 00 00 00 FF 0F 6C [13:29:40]RasterBufferAndPrint [13:29:40]line Счет N : (1)672588 [13:29:40]line ИНН: 02508201610067 [13:29:40]line Контрольно-Кассовый Чек [13:29:40]line ПРОДАЖА [13:29:40]line ТРК (МРК, ГНК) : 32 [13:29:40]line Товар: 2710124130 [13:29:40]line Аи-92-К-5 [13:29:40]line 30.130 * 66.40 [13:29:40]line = 2000.63 [13:29:40]line НДС 12% НСП 1% [13:29:40]line > о реализуемом товаре [13:29:40]line ИТОГО: 2000.63 [13:29:40]line НСП 1% : 17.70 [13:29:40]line НДС 12% : 212.46 [13:29:40]line Наличными: 0.00 [13:29:40]line Безнал.: 2000.63 [13:29:40]line Место: АЗС № 120 "Партнер Нефть" [13:29:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:29:40]line СНО: Общий режим [13:29:40]line Чек 110 18.06.2024 13:29 [13:29:40]line Смена: 352 ФФД: 1.0 [13:29:40]line ЗНМ: 0300000164 [13:29:40]line РНМ: 0000000000092785 [13:29:40]line Версия ККМ: 001 [13:29:40]line Платежная система: O! деньги [13:29:40]line ФМ: 0000000000875093 [13:29:40]line ФД: 103426 [13:29:40]line ФПД: 200515756963147 [13:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T132945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103426&fm=200515756963147&tin=02508201610067®Number=0000000000092785&sum=200063 [13:29:40]written 0, free lines is 4095 [13:29:40]OFD Sender: Processing packet 103426 [packets to send 17, broken 16] [13:29:40]ProducePacketName [13:29:40]name=ofd_packets/00103426 [13:29:40]OFD Sender: To server: pG, [13:29:40]CommunicateWithHost lk.salyk.kg:30040 [13:29:40]ConnectInit lk.salyk.kg [13:29:40]Connected sock=10 [13:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 04 86 07 01 6D 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 C9 8B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 94 01 00 35 04 06 00 B6 5E 36 77 35 4B F2 80 6A 39 2E 33 93 82 [13:29:40]Write to MH i2c: 01 00 00 28 5A 82 [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 07 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 07 00 28 5A 00 00 00 00 00 F6 0C 8B [13:29:40]RasterBufferAndPrint [13:29:40]line [13:29:40]line [13:29:40]line [13:29:40]line [13:29:40]line [13:29:40]written 0, free lines is 3331 [13:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 17 AF 47 00 A4 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 94 01 00 F4 03 04 00 55 32 71 66 B6 04 01 00 00 76 B1 9F 4B 00 FD DA 44 [13:29:40]CommunicateWithHost err = 0 [13:29:40]CheckOFDResponse [13:29:40]1017 (14) - 77093643461234 [13:29:40]1041 (16) - 0000000000875093 [13:29:40]1040 (4) - 103426 [13:29:40]1012 (4) - 18.06.2024 07:08 [13:29:40]1206 (1) - 0 [13:29:40]OFD Sender: Remove packet 103426 [13:29:40]ProducePacketName [13:29:40]name=ofd_packets/00103426 [13:29:40]NVStorageDeleteData [13:29:40]MH_Cut [13:29:40]Write to MH i2c: D1 01 00 2F 5A 01 5B [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: D1 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: D1 01 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: D1 01 00 2F 5A 00 5A [13:29:40]Write to MH i2c: 01 00 00 30 5A 8A [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:41]OFD Sender: No OFD packet to send [13:29:41]*** Cut start [13:29:41]*** Partial cut [13:29:41]*** CUTSNS_PIN = 1 [13:29:41]*** CUTSNS_PIN = 0 [13:29:41]*** Brake cut motor [13:29:41]Read from MH i2c: 01 [13:29:41]MH_I2C_Read... [13:29:41]*** Stop cut motor [13:29:41]*** Cut end [13:29:41]Read from MH i2c: 01 07 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: 01 07 00 30 5A 00 00 00 00 00 FF 0F 9F [13:29:41]process_action close_receipt done [13:29:41]requested_data is exist [13:29:41]produce_requested_data [13:29:41]requested_item fm.sn is exist - process it [13:29:41]wFMCommunicate request_size=4 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 11 00 00 [13:29:41]Write to MH i2c: E2 08 00 31 5A 80 11 00 00 00 00 00 00 05 [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:41]Read from MH i2c: E2 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 17 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 17 00 31 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [13:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:29:41]wFMCommunicate OK [13:29:41]requested_item fd.num is exist - process it [13:29:41]SAM_PROTO_GetFieldsCounters [13:29:41]wFMCommunicate request_size=4 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 13 00 00 [13:29:41]Write to MH i2c: E2 08 00 32 5A 80 13 00 00 00 00 00 00 08 [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 62 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 62 00 32 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 94 01 00 0E 04 04 00 60 01 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 71 [13:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 94 01 00 0E 04 04 00 60 01 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 [13:29:42]wFMCommunicate OK [13:29:42]SAM_PROTO_GetFieldsCounters done [13:29:42]requested_item shift.num is exist - process it [13:29:42]requested_item shift.opened is exist - process it [13:29:42]req_shift_opened [13:29:42]FM_GetShiftState [13:29:42]SAM_PROTO_GetShiftState [13:29:42]wFMCommunicate request_size=4 [13:29:42]MH_SAM_APDU [13:29:42]CAPDU: 80 13 01 00 [13:29:42]Write to MH i2c: E2 08 00 33 5A 80 13 01 00 00 00 00 00 0A [13:29:42]Write i2c OK [13:29:42]MH_I2C_Read... [13:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:42]Read from MH i2c: E2 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 0E 00 [13:29:42]MH_I2C_Read... [13:29:42]Read from MH i2c: E2 0E 00 33 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8B [13:29:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:29:42]wFMCommunicate OK [13:29:42]SAM_PROTO_GetShiftState done [13:29:42]FM_GetShiftState done [13:29:42]req_shift_opened done [13:29:42]requested_item shift.open_date is exist - process it [13:29:42]req_shift_open_date [13:29:42]req_shift_open_date done [13:29:42]produce_requested_data done [13:29:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103426,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:29:42]process_action_free close_receipt [13:29:42]json_value_free [13:29:42]json_value_free done [13:29:42]process_json_proto returns [13:29:42]Send response to host [13:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103426,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:29:42]free response buf [13:29:42]execute_script done [13:29:42]execute_script returns [13:29:42]free content buf [13:29:42]Sock 9.Close socket [13:29:42]Sock 9.Thread stoped [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:03]accept exits with 7 [13:32:03]New connection [13:32:03]New thread 3067227492 created [13:32:03]Thread 3067084132 joined [13:32:03]Waiting for new connection... [13:32:03] Sock 7.Parse request [13:32:03]Sock 7.Check first char [13:32:03]Sock 7.First char is OK [13:32:03]request: POST /json_proto HTTP/1.0 [13:32:03]Method: POST [13:32:03]URL: /json_proto [13:32:03]Method is POST - this is cgi request [13:32:03]url: /json_proto [13:32:03]query_string will be loaded in cgi processing [13:32:03]execute_cgi json_proto POST (null) [13:32:03]execute_cgi path=json_proto method=POST [13:32:03]POST find Content-Length [13:32:03]Host: 172.17.38.133:8080 [13:32:03]Content-Length: 678 [13:32:03]Content-Type: application/json [13:32:03] [13:32:03]POST finish read [13:32:03]Found Content-Length = 678 [13:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:03]execute_script... [13:32:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:03]POST & json_proto [13:32:03]process_json_proto [13:32:03]json parsed OK: [13:32:03]protocol is kg_v1.0 [13:32:03]action value=close_receipt [13:32:03]process_action close_receipt [13:32:03]cmd_close_receipt [13:32:03]MH_GetDate [13:32:03]Write to MH i2c: F0 00 00 34 5A 7D [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: F0 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: F0 09 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: F0 09 00 34 5A 00 5A 8C 71 66 BD 8F 7C 64 6F [13:32:03]GetLastDocTimeStamp 1718717385 [13:32:03]current date 1718717530 [13:32:03]FM_GetShiftState [13:32:03]SAM_PROTO_GetShiftState [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 13 01 00 [13:32:03]Write to MH i2c: E2 08 00 35 5A 80 13 01 00 00 00 00 00 0C [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0E 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0E 00 35 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8D [13:32:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:32:03]wFMCommunicate OK [13:32:03]SAM_PROTO_GetShiftState done [13:32:03]FM_GetShiftState done [13:32:03]opened in 1718670284 [13:32:03]opened+sec_in_day 1718756684 [13:32:03]quantity*price = 70052 [13:32:03]sum+1 = 70053 [13:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 111 18.06.2024 13:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103427 ФПД: 94072994031480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103427&fm=94072994031480&tin=02508201610067®Number=0000000000092785&sum=70000 [13:32:04]StoreToDocumentArchive [13:32:04]shift 352 fd 103427 [13:32:04]save to /storage/0352/doc_00103427 [13:32:04]save last doc name /storage/0352/doc_00103427 to /storage/kkm_last_doc_name [13:32:04]save OK [13:32:04]Clear old archive folders... [13:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:04]tlvbuf is 0148BD50 [13:32:04]SAM_PROTO_ClearQueue [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 09 00 00 [13:32:04]Write to MH i2c: E2 08 00 42 5A 80 09 00 00 00 00 00 00 0E [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 42 5A 00 90 00 10 [13:32:04]RAPDU: 90 00 [13:32:04]wFMCommunicate OK [13:32:04]SAM_PROTO_ClearQueue done [13:32:04]KKMCreateOFDPacket [13:32:04]OFDProtocolAddRootSTLVToBuf [13:32:04]FM_MakeSignedData [13:32:04]FM_MakeSignedData [13:32:04]SAM_PROTO_SignData [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 0D 01 02 [13:32:04]Write to MH i2c: E2 08 00 43 5A 80 0D 01 02 00 00 00 00 16 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 43 5A 00 90 00 11 [13:32:04]RAPDU: 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=255 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5A 8C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 94 01 00 35 04 06 00 55 [13:32:04]Write to MH i2c: E2 02 01 44 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5A 8C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 94 01 00 35 04 06 00 55 00 00 5C [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 44 5A 00 90 00 12 [13:32:04]RAPDU: 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=10 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 0D 02 02 05 8F 13 64 67 78 [13:32:04]Write to MH i2c: E2 0D 00 45 5A 80 0D 02 02 05 00 8F 13 64 67 78 00 00 08 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 03 00 45 5A 00 90 00 13 [13:32:04]RAPDU: 90 00 [13:32:04]wFMCommunicate OK [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 0D 03 02 [13:32:04]Write to MH i2c: E2 08 00 46 5A 80 0D 03 02 00 00 00 00 1B [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 0B 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 0B 00 46 5A 00 5C F3 4A 0C 89 C9 F2 4C 90 00 51 [13:32:04]RAPDU: 5C F3 4A 0C 89 C9 F2 4C 90 00 [13:32:04]wFMCommunicate OK [13:32:04]SAM_PROTO_SignData done [13:32:04]FM_MakeSignedData done [13:32:04]CreateOFDProtocolMessage [13:32:04]wFMCommunicate request_size=4 [13:32:04]MH_SAM_APDU [13:32:04]CAPDU: 80 11 00 00 [13:32:04]Write to MH i2c: E2 08 00 47 5A 80 11 00 00 00 00 00 00 1B [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:04]Read from MH i2c: E2 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 17 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: E2 17 00 47 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [13:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:04]wFMCommunicate OK [13:32:04]CreateOFDProtocolMessage done [13:32:04]OFDSenderStorePacket 103427 [13:32:04]StoreOFDPacket docnum=103427 [13:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 56 07 01 69 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5A 8C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 94 01 00 35 04 06 00 55 8F 13 64 67 78 5C F3 4A 0C 89 C9 F2 4C [13:32:04]CheckFolder [13:32:04]dirname=/storage/ofd_packets [13:32:04]CheckFolder done [13:32:04]ProducePacketName [13:32:04]name=ofd_packets/00103427 [13:32:04]NVStorageSaveData ofd_packets/00103427 [13:32:04]File name is /storage/ofd_packets/00103427 [13:32:04]Write 301 bytes [13:32:04]NVStorageSaveData done [13:32:04]OFDSenderStorePacket done [13:32:04]KKMCreateOFDPacket done [13:32:04]NVStorageSaveData kkm_last_timestamp [13:32:04]File name is /storage/kkm_last_timestamp [13:32:04]Write 4 bytes [13:32:04]NVStorageSaveData done [13:32:04]ExternCall_PrintAddStr [13:32:04]wPrintStart [13:32:04]Write to MH i2c: 01 00 00 48 5A A2 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 48 5A 00 00 00 00 00 FF 0F B7 [13:32:04]RasterBufferAndPrint [13:32:04]line Счет N : (1)672589 [13:32:04]line ИНН: 02508201610067 [13:32:04]line Контрольно-Кассовый Чек [13:32:04]line ПРОДАЖА [13:32:04]line ТРК (МРК, ГНК) : 42 [13:32:04]line Товар: 2710124130 [13:32:04]line Аи-92-К-5 [13:32:04]line 10.550 * 66.40 [13:32:04]line = 700.52 [13:32:04]line НДС 12% НСП 1% [13:32:04]line > о реализуемом товаре [13:32:04]line ОКРУГЛЕНИЕ: -0.52 [13:32:04]line ИТОГО: 700.00 [13:32:04]line Внесено: 700.00 [13:32:04]line СДАЧА: 0.00 [13:32:04]line НСП 1% : 6.20 [13:32:04]line НДС 12% : 74.39 [13:32:04]line Наличными: 700.00 [13:32:04]line Безнал.: 0.00 [13:32:04]line Место: АЗС № 120 "Партнер Нефть" [13:32:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:32:04]line СНО: Общий режим [13:32:04]line Чек 111 18.06.2024 13:32 [13:32:04]line Смена: 352 ФФД: 1.0 [13:32:04]line ЗНМ: 0300000164 [13:32:04]line РНМ: 0000000000092785 [13:32:04]line Версия ККМ: 001 [13:32:04]line ФМ: 0000000000875093 [13:32:04]line ФД: 103427 [13:32:04]line ФПД: 94072994031480 [13:32:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103427&fm=94072994031480&tin=02508201610067®Number=0000000000092785&sum=70000 [13:32:05]OFD Sender: Processing packet 103427 [packets to send 17, broken 16] [13:32:05]ProducePacketName [13:32:05]name=ofd_packets/00103427 [13:32:05]OFD Sender: To server: pG, [13:32:05]CommunicateWithHost lk.salyk.kg:30040 [13:32:05]ConnectInit lk.salyk.kg [13:32:05]written 0, free lines is 4095 [13:32:05]Connected sock=10 [13:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 56 07 01 69 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5A 8C 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 94 01 00 35 04 06 00 55 8F 13 64 67 78 5C F3 4A 0C 89 C9 F2 4C [13:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8A 3D 47 00 2B 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 35 30 39 33 10 04 04 00 03 94 01 00 F4 03 04 00 E6 32 71 66 B6 04 01 00 00 33 36 05 00 54 6D 4E 6E [13:32:05]CommunicateWithHost err = 0 [13:32:05]CheckOFDResponse [13:32:05]1017 (14) - 77093643461234 [13:32:05]1041 (16) - 0000000000875093 [13:32:05]1040 (4) - 103427 [13:32:05]1012 (4) - 18.06.2024 07:10 [13:32:05]1206 (1) - 0 [13:32:05]OFD Sender: Remove packet 103427 [13:32:05]ProducePacketName [13:32:05]name=ofd_packets/00103427 [13:32:05]NVStorageDeleteData [13:32:05]Write to MH i2c: 01 00 00 73 5A CD [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 73 5A 00 00 00 00 00 D7 0C B7 [13:32:05]RasterBufferAndPrint [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]written 0, free lines is 3294 [13:32:05]MH_Cut [13:32:05]Write to MH i2c: D1 01 00 7A 5A 01 A6 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 01 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 01 00 7A 5A 00 A5 [13:32:05]Write to MH i2c: 01 00 00 7B 5A D5 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]OFD Sender: No OFD packet to send [13:32:06]*** Cut start [13:32:06]*** Partial cut [13:32:06]*** CUTSNS_PIN = 1 [13:32:06]*** CUTSNS_PIN = 0 [13:32:06]*** Brake cut motor [13:32:06]Read from MH i2c: 01 [13:32:06]MH_I2C_Read... [13:32:06]*** Stop cut motor [13:32:06]*** Cut end [13:32:06]Read from MH i2c: 01 07 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: 01 07 00 7B 5A 00 00 00 00 00 FF 0F EA [13:32:06]process_action close_receipt done [13:32:06]requested_data is exist [13:32:06]produce_requested_data [13:32:06]requested_item fm.sn is exist - process it [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 11 00 00 [13:32:06]Write to MH i2c: E2 08 00 7C 5A 80 11 00 00 00 00 00 00 50 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 7C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [13:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:06]wFMCommunicate OK [13:32:06]requested_item fd.num is exist - process it [13:32:06]SAM_PROTO_GetFieldsCounters [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 13 00 00 [13:32:06]Write to MH i2c: E2 08 00 7D 5A 80 13 00 00 00 00 00 00 53 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 62 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 62 00 7D 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 94 01 00 0E 04 04 00 60 01 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 C0 [13:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 94 01 00 0E 04 04 00 60 01 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 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetFieldsCounters done [13:32:07]requested_item shift.num is exist - process it [13:32:07]requested_item shift.opened is exist - process it [13:32:07]req_shift_opened [13:32:07]FM_GetShiftState [13:32:07]SAM_PROTO_GetShiftState [13:32:07]wFMCommunicate request_size=4 [13:32:07]MH_SAM_APDU [13:32:07]CAPDU: 80 13 01 00 [13:32:07]Write to MH i2c: E2 08 00 7E 5A 80 13 01 00 00 00 00 00 55 [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 7E 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D6 [13:32:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetShiftState done [13:32:07]FM_GetShiftState done [13:32:07]req_shift_opened done [13:32:07]requested_item shift.open_date is exist - process it [13:32:07]req_shift_open_date [13:32:07]req_shift_open_date done [13:32:07]produce_requested_data done [13:32:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103427,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:32:07]process_action_free close_receipt [13:32:07]json_value_free [13:32:07]json_value_free done [13:32:07]process_json_proto returns [13:32:07]Send response to host [13:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103427,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:32:07]free response buf [13:32:07]execute_script done [13:32:07]execute_script returns [13:32:07]free content buf [13:32:07]Sock 7.Close socket [13:32:07]Sock 7.Thread stoped [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:35]accept exits with 9 [13:35:35]New connection [13:35:35]New thread 3067084132 created [13:35:35]Thread 3067227492 joined [13:35:35]Waiting for new connection... [13:35:35] Sock 9.Parse request [13:35:35]Sock 9.Check first char [13:35:35]Sock 9.First char is OK [13:35:35]request: POST /json_proto HTTP/1.0 [13:35:35]Method: POST [13:35:35]URL: /json_proto [13:35:35]Method is POST - this is cgi request [13:35:35]url: /json_proto [13:35:35]query_string will be loaded in cgi processing [13:35:35]execute_cgi json_proto POST (null) [13:35:35]execute_cgi path=json_proto method=POST [13:35:35]POST find Content-Length [13:35:35]Host: 172.17.38.133:8080 [13:35:35]Content-Length: 819 [13:35:35]Content-Type: application/json [13:35:35] [13:35:35]POST finish read [13:35:35]Found Content-Length = 819 [13:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:35]execute_script... [13:35: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)672590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:35]POST & json_proto [13:35:35]process_json_proto [13:35:35]json parsed OK: [13:35:35]protocol is kg_v1.0 [13:35:35]action value=close_receipt [13:35:35]process_action close_receipt [13:35:35]cmd_close_receipt [13:35:35]MH_GetDate [13:35:35]Write to MH i2c: F0 00 00 7F 5A C8 [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 7F 5A 00 2E 8D 71 66 BD 8F 7C 64 8F [13:35:35]GetLastDocTimeStamp 1718717530 [13:35:35]current date 1718717742 [13:35:35]FM_GetShiftState [13:35:35]SAM_PROTO_GetShiftState [13:35:35]wFMCommunicate request_size=4 [13:35:35]MH_SAM_APDU [13:35:35]CAPDU: 80 13 01 00 [13:35:35]Write to MH i2c: E2 08 00 80 5A 80 13 01 00 00 00 00 00 57 [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:35]Read from MH i2c: E2 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 80 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D8 [13:35:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:35:35]wFMCommunicate OK [13:35:35]SAM_PROTO_GetShiftState done [13:35:35]FM_GetShiftState done [13:35:35]opened in 1718670284 [13:35:35]opened+sec_in_day 1718756684 [13:35:35]quantity*price = 200047 [13:35:35]sum+1 = 200048 [13:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 112 18.06.2024 13:35 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103428 ФПД: 122640431374429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103428&fm=122640431374429&tin=02508201610067®Number=0000000000092785&sum=200047 [13:35:36]StoreToDocumentArchive [13:35:36]shift 352 fd 103428 [13:35:36]save to /storage/0352/doc_00103428 [13:35:36]save last doc name /storage/0352/doc_00103428 to /storage/kkm_last_doc_name [13:35:36]save OK [13:35:36]Clear old archive folders... [13:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:36]tlvbuf is 013B1BB0 [13:35:36]SAM_PROTO_ClearQueue [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 09 00 00 [13:35:36]Write to MH i2c: E2 08 00 8D 5A 80 09 00 00 00 00 00 00 59 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 8D 5A 00 90 00 5B [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]SAM_PROTO_ClearQueue done [13:35:36]KKMCreateOFDPacket [13:35:36]OFDProtocolAddRootSTLVToBuf [13:35:36]FM_MakeSignedData [13:35:36]FM_MakeSignedData [13:35:36]SAM_PROTO_SignData [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 01 02 [13:35:36]Write to MH i2c: E2 08 00 8E 5A 80 0D 01 02 00 00 00 00 61 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 [13:35:36]MH_I2C_Read... [13:35:36]Read from MH i2c: E2 03 00 8E 5A 00 90 00 5C [13:35:36]RAPDU: 90 00 [13:35:36]wFMCommunicate OK [13:35:36]wFMCommunicate request_size=255 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2E 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 94 01 00 35 04 06 00 6F [13:35:36]Write to MH i2c: E2 02 01 8F 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2E 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 94 01 00 35 04 06 00 6F 00 00 BC [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 8F 5A 00 90 00 5D [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=10 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 02 02 05 8A 73 58 E0 5D [13:35:37]Write to MH i2c: E2 0D 00 90 5A 80 0D 02 02 05 00 8A 73 58 E0 5D 00 00 00 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 90 5A 00 90 00 5E [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 03 02 [13:35:37]Write to MH i2c: E2 08 00 91 5A 80 0D 03 02 00 00 00 00 66 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 91 5A 00 5D E2 07 10 60 EE EF D0 90 00 CA [13:35:37]RAPDU: 5D E2 07 10 60 EE EF D0 90 00 [13:35:37]wFMCommunicate OK [13:35:37]SAM_PROTO_SignData done [13:35:37]FM_MakeSignedData done [13:35:37]CreateOFDProtocolMessage [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 11 00 00 [13:35:37]Write to MH i2c: E2 08 00 92 5A 80 11 00 00 00 00 00 00 66 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 92 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [13:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:35:37]wFMCommunicate OK [13:35:37]CreateOFDProtocolMessage done [13:35:37]OFDSenderStorePacket 103428 [13:35:37]StoreOFDPacket docnum=103428 [13:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E4 7D 07 01 64 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2E 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 94 01 00 35 04 06 00 6F 8A 73 58 E0 5D 5D E2 07 10 60 EE EF D0 [13:35:37]CheckFolder [13:35:37]dirname=/storage/ofd_packets [13:35:37]CheckFolder done [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00103428 [13:35:37]NVStorageSaveData ofd_packets/00103428 [13:35:37]File name is /storage/ofd_packets/00103428 [13:35:37]Write 301 bytes [13:35:37]NVStorageSaveData done [13:35:37]OFDSenderStorePacket done [13:35:37]KKMCreateOFDPacket done [13:35:37]NVStorageSaveData kkm_last_timestamp [13:35:37]File name is /storage/kkm_last_timestamp [13:35:37]Write 4 bytes [13:35:37]NVStorageSaveData done [13:35:37]ExternCall_PrintAddStr [13:35:37]wPrintStart [13:35:37]Write to MH i2c: 01 00 00 93 5A ED [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 93 5A 00 00 00 00 00 FF 0F 02 [13:35:37]RasterBufferAndPrint [13:35:37]line Счет N : (1)672590 [13:35:37]line ИНН: 02508201610067 [13:35:37]line Контрольно-Кассовый Чек [13:35:37]line ПРОДАЖА [13:35:37]line ТРК (МРК, ГНК) : 31 [13:35:37]line Товар: 2710124500 [13:35:37]line Аи-95-К-5 [13:35:37]line 27.070 * 73.90 [13:35:37]line = 2000.47 [13:35:37]line НДС 12% НСП 1% [13:35:37]line > о реализуемом товаре [13:35:37]line ИТОГО: 2000.47 [13:35:37]line НСП 1% : 17.70 [13:35:37]line НДС 12% : 212.44 [13:35:37]line Наличными: 0.00 [13:35:37]line Безнал.: 2000.47 [13:35:37]line Место: АЗС № 120 "Партнер Нефть" [13:35:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:35:37]line СНО: Общий режим [13:35:37]line Чек 112 18.06.2024 13:35 [13:35:37]line Смена: 352 ФФД: 1.0 [13:35:37]line ЗНМ: 0300000164 [13:35:37]line РНМ: 0000000000092785 [13:35:37]line Версия ККМ: 001 [13:35:37]line Платежная система: Бакай Банк [13:35:37]line ФМ: 0000000000875093 [13:35:37]line ФД: 103428 [13:35:37]line ФПД: 122640431374429 [13:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103428&fm=122640431374429&tin=02508201610067®Number=0000000000092785&sum=200047 [13:35:37]written 0, free lines is 4095 [13:35:37]OFD Sender: Processing packet 103428 [packets to send 17, broken 16] [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00103428 [13:35:37]OFD Sender: To server: pG, [13:35:37]CommunicateWithHost lk.salyk.kg:30040 [13:35:37]ConnectInit lk.salyk.kg [13:35:37]Connected sock=11 [13:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E4 7D 07 01 64 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 2E 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 94 01 00 35 04 06 00 6F 8A 73 58 E0 5D 5D E2 07 10 60 EE EF D0 [13:35:37]Write to MH i2c: 01 00 00 BD 5A 17 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 BD 5A 00 00 00 00 00 F2 0C 1C [13:35:37]RasterBufferAndPrint [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]written 0, free lines is 3318 [13:35:37]MH_Cut [13:35:37]Write to MH i2c: D1 01 00 C4 5A 01 F0 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 01 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: D1 01 00 C4 5A 00 EF [13:35:37]Write to MH i2c: 01 00 00 C5 5A 1F [13:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1E 55 47 00 B0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 94 01 00 F4 03 04 00 BA 33 71 66 B6 04 01 00 00 46 50 14 97 06 AD 27 42 [13:35:37]CommunicateWithHost err = 0 [13:35:37]CheckOFDResponse [13:35:37]1017 (14) - 77093643461234 [13:35:37]1041 (16) - 0000000000875093 [13:35:37]1040 (4) - 103428 [13:35:37]1012 (4) - 18.06.2024 07:14 [13:35:37]1206 (1) - 0 [13:35:37]OFD Sender: Remove packet 103428 [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00103428 [13:35:37]NVStorageDeleteData [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:38]OFD Sender: No OFD packet to send [13:35:38]*** Cut start [13:35:38]*** Partial cut [13:35:38]*** CUTSNS_PIN = 1 [13:35:38]*** CUTSNS_PIN = 0 [13:35:38]*** Brake cut motor [13:35:39]Read from MH i2c: 01 [13:35:39]MH_I2C_Read... [13:35:39]*** Stop cut motor [13:35:39]*** Cut end [13:35:39]Read from MH i2c: 01 07 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: 01 07 00 C5 5A 00 00 00 00 00 FF 0F 34 [13:35:39]process_action close_receipt done [13:35:39]requested_data is exist [13:35:39]produce_requested_data [13:35:39]requested_item fm.sn is exist - process it [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 11 00 00 [13:35:39]Write to MH i2c: E2 08 00 C6 5A 80 11 00 00 00 00 00 00 9A [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:39]Read from MH i2c: E2 17 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 C6 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [13:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:35:39]wFMCommunicate OK [13:35:39]requested_item fd.num is exist - process it [13:35:39]SAM_PROTO_GetFieldsCounters [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 00 00 [13:35:39]Write to MH i2c: E2 08 00 C7 5A 80 13 00 00 00 00 00 00 9D [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 C7 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 94 01 00 0E 04 04 00 60 01 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 0E [13:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 94 01 00 0E 04 04 00 60 01 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 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetFieldsCounters done [13:35:39]requested_item shift.num is exist - process it [13:35:39]requested_item shift.opened is exist - process it [13:35:39]req_shift_opened [13:35:39]FM_GetShiftState [13:35:39]SAM_PROTO_GetShiftState [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 01 00 [13:35:39]Write to MH i2c: E2 08 00 C8 5A 80 13 01 00 00 00 00 00 9F [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 C8 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 20 [13:35:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetShiftState done [13:35:39]FM_GetShiftState done [13:35:39]req_shift_opened done [13:35:39]requested_item shift.open_date is exist - process it [13:35:39]req_shift_open_date [13:35:39]req_shift_open_date done [13:35:39]produce_requested_data done [13:35:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103428,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:35:39]process_action_free close_receipt [13:35:39]json_value_free [13:35:39]json_value_free done [13:35:39]process_json_proto returns [13:35:39]Send response to host [13:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103428,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:35:39]free response buf [13:35:39]execute_script done [13:35:39]execute_script returns [13:35:39]free content buf [13:35:39]Sock 9.Close socket [13:35:39]Sock 9.Thread stoped [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:28]accept exits with 7 [13:38:28]New connection [13:38:28]New thread 3067227492 created [13:38:28]Thread 3067084132 joined [13:38:28]Waiting for new connection... [13:38:28] Sock 7.Parse request [13:38:28]Sock 7.Check first char [13:38:28]Sock 7.First char is OK [13:38:28]request: POST /json_proto HTTP/1.0 [13:38:28]Method: POST [13:38:28]URL: /json_proto [13:38:28]Method is POST - this is cgi request [13:38:28]url: /json_proto [13:38:28]query_string will be loaded in cgi processing [13:38:28]execute_cgi json_proto POST (null) [13:38:28]execute_cgi path=json_proto method=POST [13:38:28]POST find Content-Length [13:38:28]Host: 172.17.38.133:8080 [13:38:28]Content-Length: 677 [13:38:28]Content-Type: application/json [13:38:28] [13:38:28]POST finish read [13:38:28]Found Content-Length = 677 [13:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:28]execute_script... [13:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:28]POST & json_proto [13:38:28]process_json_proto [13:38:28]json parsed OK: [13:38:28]protocol is kg_v1.0 [13:38:28]action value=close_receipt [13:38:28]process_action close_receipt [13:38:28]cmd_close_receipt [13:38:28]MH_GetDate [13:38:28]Write to MH i2c: F0 00 00 C9 5A 12 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: F0 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: F0 09 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: F0 09 00 C9 5A 00 DB 8D 71 66 BD 8F 7C 64 86 [13:38:28]GetLastDocTimeStamp 1718717742 [13:38:28]current date 1718717915 [13:38:28]FM_GetShiftState [13:38:28]SAM_PROTO_GetShiftState [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 13 01 00 [13:38:28]Write to MH i2c: E2 08 00 CA 5A 80 13 01 00 00 00 00 00 A1 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:28]Read from MH i2c: E2 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 0E 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 0E 00 CA 5A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [13:38:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:38:28]wFMCommunicate OK [13:38:28]SAM_PROTO_GetShiftState done [13:38:28]FM_GetShiftState done [13:38:28]opened in 1718670284 [13:38:28]opened+sec_in_day 1718756684 [13:38:28]quantity*price = 60025 [13:38:28]sum+1 = 60027 [13:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 113 18.06.2024 13:38 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103429 ФПД: 256710641282444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103429&fm=256710641282444&tin=02508201610067®Number=0000000000092785&sum=60000 [13:38:29]StoreToDocumentArchive [13:38:29]shift 352 fd 103429 [13:38:29]save to /storage/0352/doc_00103429 [13:38:29]save last doc name /storage/0352/doc_00103429 to /storage/kkm_last_doc_name [13:38:29]save OK [13:38:29]Clear old archive folders... [13:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:29]tlvbuf is 01383A20 [13:38:29]SAM_PROTO_ClearQueue [13:38:29]wFMCommunicate request_size=4 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 09 00 00 [13:38:29]Write to MH i2c: E2 08 00 D7 5A 80 09 00 00 00 00 00 00 A3 [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 D7 5A 00 90 00 A5 [13:38:30]RAPDU: 90 00 [13:38:30]wFMCommunicate OK [13:38:30]SAM_PROTO_ClearQueue done [13:38:30]KKMCreateOFDPacket [13:38:30]OFDProtocolAddRootSTLVToBuf [13:38:30]FM_MakeSignedData [13:38:30]FM_MakeSignedData [13:38:30]SAM_PROTO_SignData [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 0D 01 02 [13:38:30]Write to MH i2c: E2 08 00 D8 5A 80 0D 01 02 00 00 00 00 AB [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 D8 5A 00 90 00 A6 [13:38:30]RAPDU: 90 00 [13:38:30]wFMCommunicate OK [13:38:30]wFMCommunicate request_size=255 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DB 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 94 01 00 35 04 06 00 E9 [13:38:30]Write to MH i2c: E2 02 01 D9 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DB 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 94 01 00 35 04 06 00 E9 00 00 D6 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 D9 5A 00 90 00 A7 [13:38:30]RAPDU: 90 00 [13:38:30]wFMCommunicate OK [13:38:30]wFMCommunicate request_size=10 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 0D 02 02 05 7A 1A 95 6D 8C [13:38:30]Write to MH i2c: E2 0D 00 DA 5A 80 0D 02 02 05 00 7A 1A 95 6D 8C 00 00 DA [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 03 00 DA 5A 00 90 00 A8 [13:38:30]RAPDU: 90 00 [13:38:30]wFMCommunicate OK [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 0D 03 02 [13:38:30]Write to MH i2c: E2 08 00 DB 5A 80 0D 03 02 00 00 00 00 B0 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0B 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0B 00 DB 5A 00 AD D3 8B 2E 86 75 13 B4 90 00 AC [13:38:30]RAPDU: AD D3 8B 2E 86 75 13 B4 90 00 [13:38:30]wFMCommunicate OK [13:38:30]SAM_PROTO_SignData done [13:38:30]FM_MakeSignedData done [13:38:30]CreateOFDProtocolMessage [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 11 00 00 [13:38:30]Write to MH i2c: E2 08 00 DC 5A 80 11 00 00 00 00 00 00 B0 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 17 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 17 00 DC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [13:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:38:30]wFMCommunicate OK [13:38:30]CreateOFDProtocolMessage done [13:38:30]OFDSenderStorePacket 103429 [13:38:30]StoreOFDPacket docnum=103429 [13:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 63 BD 07 01 1B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DB 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 94 01 00 35 04 06 00 E9 7A 1A 95 6D 8C AD D3 8B 2E 86 75 13 B4 [13:38:30]CheckFolder [13:38:30]dirname=/storage/ofd_packets [13:38:30]CheckFolder done [13:38:30]ProducePacketName [13:38:30]name=ofd_packets/00103429 [13:38:30]NVStorageSaveData ofd_packets/00103429 [13:38:30]File name is /storage/ofd_packets/00103429 [13:38:30]Write 301 bytes [13:38:30]NVStorageSaveData done [13:38:30]OFDSenderStorePacket done [13:38:30]KKMCreateOFDPacket done [13:38:30]NVStorageSaveData kkm_last_timestamp [13:38:30]File name is /storage/kkm_last_timestamp [13:38:30]Write 4 bytes [13:38:30]NVStorageSaveData done [13:38:30]ExternCall_PrintAddStr [13:38:30]wPrintStart [13:38:30]Write to MH i2c: 01 00 00 DD 5A 37 [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: 01 07 00 DD 5A 00 00 00 00 00 FF 0F 4C [13:38:30]RasterBufferAndPrint [13:38:30]line Счет N : (1)672591 [13:38:30]line ИНН: 02508201610067 [13:38:30]line Контрольно-Кассовый Чек [13:38:30]line ПРОДАЖА [13:38:30]line ТРК (МРК, ГНК) : 32 [13:38:30]line Товар: 2710124130 [13:38:30]line Аи-92-К-5 [13:38:30]line 9.040 * 66.40 [13:38:30]line = 600.26 [13:38:30]line НДС 12% НСП 1% [13:38:30]line > о реализуемом товаре [13:38:30]line ОКРУГЛЕНИЕ: -0.26 [13:38:30]line ИТОГО: 600.00 [13:38:30]line Внесено: 600.00 [13:38:30]line СДАЧА: 0.00 [13:38:30]line НСП 1% : 5.31 [13:38:30]line НДС 12% : 63.74 [13:38:30]line Наличными: 600.00 [13:38:30]line Безнал.: 0.00 [13:38:30]line Место: АЗС № 120 "Партнер Нефть" [13:38:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:38:30]line СНО: Общий режим [13:38:30]line Чек 113 18.06.2024 13:38 [13:38:30]line Смена: 352 ФФД: 1.0 [13:38:30]line ЗНМ: 0300000164 [13:38:30]line РНМ: 0000000000092785 [13:38:30]line Версия ККМ: 001 [13:38:30]line ФМ: 0000000000875093 [13:38:30]line ФД: 103429 [13:38:30]line ФПД: 256710641282444 [13:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103429&fm=256710641282444&tin=02508201610067®Number=0000000000092785&sum=60000 [13:38:30]OFD Sender: Processing packet 103429 [packets to send 17, broken 16] [13:38:30]ProducePacketName [13:38:30]name=ofd_packets/00103429 [13:38:30]OFD Sender: To server: pG, [13:38:30]CommunicateWithHost lk.salyk.kg:30040 [13:38:30]ConnectInit lk.salyk.kg [13:38:30]written 0, free lines is 4095 [13:38:30]Connected sock=10 [13:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 63 BD 07 01 1B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DB 8D 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 94 01 00 35 04 06 00 E9 7A 1A 95 6D 8C AD D3 8B 2E 86 75 13 B4 [13:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D7 6A 47 00 16 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 94 01 00 F4 03 04 00 67 34 71 66 B6 04 01 00 00 BC 00 3B 8D E5 B3 CF E4 [13:38:31]CommunicateWithHost err = 0 [13:38:31]CheckOFDResponse [13:38:31]1017 (14) - 77093643461234 [13:38:31]1041 (16) - 0000000000875093 [13:38:31]1040 (4) - 103429 [13:38:31]1012 (4) - 18.06.2024 07:16 [13:38:31]1206 (1) - 0 [13:38:31]OFD Sender: Remove packet 103429 [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00103429 [13:38:31]NVStorageDeleteData [13:38:31]Write to MH i2c: 01 00 00 08 5B 63 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 08 5B 00 00 00 00 00 E4 0C 5A [13:38:31]RasterBufferAndPrint [13:38:31]line [13:38:31]line [13:38:31]line [13:38:31]line [13:38:31]line [13:38:31]written 0, free lines is 3306 [13:38:31]MH_Cut [13:38:31]Write to MH i2c: D1 01 00 0F 5B 01 3C [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: D1 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: D1 01 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: D1 01 00 0F 5B 00 3B [13:38:31]Write to MH i2c: 01 00 00 10 5B 6B [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]OFD Sender: No OFD packet to send [13:38:32]*** Cut start [13:38:32]*** Partial cut [13:38:32]*** CUTSNS_PIN = 1 [13:38:32]*** CUTSNS_PIN = 0 [13:38:32]*** Brake cut motor [13:38:32]Read from MH i2c: 01 [13:38:32]MH_I2C_Read... [13:38:32]*** Stop cut motor [13:38:32]*** Cut end [13:38:32]Read from MH i2c: 01 07 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 10 5B 00 00 00 00 00 FF 0F 80 [13:38:32]process_action close_receipt done [13:38:32]requested_data is exist [13:38:32]produce_requested_data [13:38:32]requested_item fm.sn is exist - process it [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 11 00 00 [13:38:32]Write to MH i2c: E2 08 00 11 5B 80 11 00 00 00 00 00 00 E6 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 17 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 17 00 11 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [13:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:38:32]wFMCommunicate OK [13:38:32]requested_item fd.num is exist - process it [13:38:32]SAM_PROTO_GetFieldsCounters [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 13 00 00 [13:38:32]Write to MH i2c: E2 08 00 12 5B 80 13 00 00 00 00 00 00 E9 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 62 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 62 00 12 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 94 01 00 0E 04 04 00 60 01 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 5E [13:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 94 01 00 0E 04 04 00 60 01 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 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_GetFieldsCounters done [13:38:32]requested_item shift.num is exist - process it [13:38:32]requested_item shift.opened is exist - process it [13:38:32]req_shift_opened [13:38:32]FM_GetShiftState [13:38:32]SAM_PROTO_GetShiftState [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 13 01 00 [13:38:32]Write to MH i2c: E2 08 00 13 5B 80 13 01 00 00 00 00 00 EB [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0E 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 0E 00 13 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6C [13:38:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_GetShiftState done [13:38:32]FM_GetShiftState done [13:38:32]req_shift_opened done [13:38:32]requested_item shift.open_date is exist - process it [13:38:32]req_shift_open_date [13:38:32]req_shift_open_date done [13:38:32]produce_requested_data done [13:38:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103429,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:38:32]process_action_free close_receipt [13:38:32]json_value_free [13:38:32]json_value_free done [13:38:32]process_json_proto returns [13:38:32]Send response to host [13:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103429,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:38:32]free response buf [13:38:32]execute_script done [13:38:32]execute_script returns [13:38:32]free content buf [13:38:32]Sock 7.Close socket [13:38:32]Sock 7.Thread stoped [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:50]accept exits with 9 [13:53:50]New connection [13:53:50]New thread 3067084132 created [13:53:50]Thread 3067227492 joined [13:53:50]Waiting for new connection... [13:53:50] Sock 9.Parse request [13:53:50]Sock 9.Check first char [13:53:50]Sock 9.First char is OK [13:53:50]request: POST /json_proto HTTP/1.0 [13:53:50]Method: POST [13:53:50]URL: /json_proto [13:53:50]Method is POST - this is cgi request [13:53:50]url: /json_proto [13:53:50]query_string will be loaded in cgi processing [13:53:50]execute_cgi json_proto POST (null) [13:53:50]execute_cgi path=json_proto method=POST [13:53:50]POST find Content-Length [13:53:50]Host: 172.17.38.133:8080 [13:53:50]Content-Length: 682 [13:53:50]Content-Type: application/json [13:53:50] [13:53:50]POST finish read [13:53:50]Found Content-Length = 682 [13:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 17.600, "sum" : 1300.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:50]execute_script... [13:53:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 17.600, "sum" : 1300.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:50]POST & json_proto [13:53:50]process_json_proto [13:53:50]json parsed OK: [13:53:50]protocol is kg_v1.0 [13:53:50]action value=close_receipt [13:53:50]process_action close_receipt [13:53:50]cmd_close_receipt [13:53:50]MH_GetDate [13:53:50]Write to MH i2c: F0 00 00 14 5B 5E [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: F0 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: F0 09 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: F0 09 00 14 5B 00 75 91 71 66 BD 8F 7C 64 70 [13:53:50]GetLastDocTimeStamp 1718717915 [13:53:50]current date 1718718837 [13:53:50]FM_GetShiftState [13:53:50]SAM_PROTO_GetShiftState [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 13 01 00 [13:53:50]Write to MH i2c: E2 08 00 15 5B 80 13 01 00 00 00 00 00 ED [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 0E 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 0E 00 15 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [13:53:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:53:50]wFMCommunicate OK [13:53:50]SAM_PROTO_GetShiftState done [13:53:50]FM_GetShiftState done [13:53:50]opened in 1718670284 [13:53:50]opened+sec_in_day 1718756684 [13:53:50]quantity*price = 130064 [13:53:50]sum+1 = 130065 [13:53:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.12 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 114 18.06.2024 13:53 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103430 ФПД: 62271092967627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135357&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103430&fm=62271092967627&tin=02508201610067®Number=0000000000092785&sum=130000 [13:53:51]StoreToDocumentArchive [13:53:51]shift 352 fd 103430 [13:53:51]save to /storage/0352/doc_00103430 [13:53:51]save last doc name /storage/0352/doc_00103430 to /storage/kkm_last_doc_name [13:53:51]save OK [13:53:51]Clear old archive folders... [13:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:51]tlvbuf is 014894E0 [13:53:51]SAM_PROTO_ClearQueue [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 09 00 00 [13:53:51]Write to MH i2c: E2 08 00 22 5B 80 09 00 00 00 00 00 00 EF [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 22 5B 00 90 00 F1 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]SAM_PROTO_ClearQueue done [13:53:51]KKMCreateOFDPacket [13:53:51]OFDProtocolAddRootSTLVToBuf [13:53:51]FM_MakeSignedData [13:53:51]FM_MakeSignedData [13:53:51]SAM_PROTO_SignData [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 01 02 [13:53:51]Write to MH i2c: E2 08 00 23 5B 80 0D 01 02 00 00 00 00 F7 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 23 5B 00 90 00 F2 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]wFMCommunicate request_size=255 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 44 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 75 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 94 01 00 35 04 06 00 38 [13:53:51]Write to MH i2c: E2 02 01 24 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 44 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 75 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 94 01 00 35 04 06 00 38 00 00 DD [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 24 5B 00 90 00 F3 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]wFMCommunicate request_size=10 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 02 02 05 A2 9E 60 48 CB [13:53:51]Write to MH i2c: E2 0D 00 25 5B 80 0D 02 02 05 00 A2 9E 60 48 CB 00 00 B7 [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:51]Read from MH i2c: E2 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 [13:53:51]MH_I2C_Read... [13:53:51]Read from MH i2c: E2 03 00 25 5B 00 90 00 F4 [13:53:51]RAPDU: 90 00 [13:53:51]wFMCommunicate OK [13:53:51]wFMCommunicate request_size=4 [13:53:51]MH_SAM_APDU [13:53:51]CAPDU: 80 0D 03 02 [13:53:51]Write to MH i2c: E2 08 00 26 5B 80 0D 03 02 00 00 00 00 FC [13:53:51]Write i2c OK [13:53:51]MH_I2C_Read... [13:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:52]Read from MH i2c: E2 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 0B 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 0B 00 26 5B 00 E0 DE 87 58 60 21 CD 10 90 00 F8 [13:53:52]RAPDU: E0 DE 87 58 60 21 CD 10 90 00 [13:53:52]wFMCommunicate OK [13:53:52]SAM_PROTO_SignData done [13:53:52]FM_MakeSignedData done [13:53:52]CreateOFDProtocolMessage [13:53:52]wFMCommunicate request_size=4 [13:53:52]MH_SAM_APDU [13:53:52]CAPDU: 80 11 00 00 [13:53:52]Write to MH i2c: E2 08 00 27 5B 80 11 00 00 00 00 00 00 FC [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:52]Read from MH i2c: E2 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 17 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 17 00 27 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [13:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:53:52]wFMCommunicate OK [13:53:52]CreateOFDProtocolMessage done [13:53:52]OFDSenderStorePacket 103430 [13:53:52]StoreOFDPacket docnum=103430 [13:53:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FE 91 07 01 9A FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 44 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 75 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 94 01 00 35 04 06 00 38 A2 9E 60 48 CB E0 DE 87 58 60 21 CD 10 [13:53:52]CheckFolder [13:53:52]dirname=/storage/ofd_packets [13:53:52]CheckFolder done [13:53:52]ProducePacketName [13:53:52]name=ofd_packets/00103430 [13:53:52]NVStorageSaveData ofd_packets/00103430 [13:53:52]File name is /storage/ofd_packets/00103430 [13:53:52]Write 301 bytes [13:53:52]NVStorageSaveData done [13:53:52]OFDSenderStorePacket done [13:53:52]KKMCreateOFDPacket done [13:53:52]NVStorageSaveData kkm_last_timestamp [13:53:52]File name is /storage/kkm_last_timestamp [13:53:52]Write 4 bytes [13:53:52]NVStorageSaveData done [13:53:52]ExternCall_PrintAddStr [13:53:52]wPrintStart [13:53:52]Write to MH i2c: 01 00 00 28 5B 83 [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 28 5B 00 00 00 00 00 FF 0F 98 [13:53:52]RasterBufferAndPrint [13:53:52]line Счет N : (1)672592 [13:53:52]line ИНН: 02508201610067 [13:53:52]line Контрольно-Кассовый Чек [13:53:52]line ПРОДАЖА [13:53:52]line ТРК (МРК, ГНК) : 41 [13:53:52]line Товар: 2710124500 [13:53:52]line Аи-95-К-5 [13:53:52]line 17.600 * 73.90 [13:53:52]line = 1300.64 [13:53:52]line НДС 12% НСП 1% [13:53:52]line > о реализуемом товаре [13:53:52]line ОКРУГЛЕНИЕ: -0.64 [13:53:52]line ИТОГО: 1300.00 [13:53:52]line Внесено: 1300.00 [13:53:52]line СДАЧА: 0.00 [13:53:52]line НСП 1% : 11.51 [13:53:52]line НДС 12% : 138.12 [13:53:52]line Наличными: 1300.00 [13:53:52]line Безнал.: 0.00 [13:53:52]line Место: АЗС № 120 "Партнер Нефть" [13:53:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:53:52]line СНО: Общий режим [13:53:52]line Чек 114 18.06.2024 13:53 [13:53:52]line Смена: 352 ФФД: 1.0 [13:53:52]line ЗНМ: 0300000164 [13:53:52]line РНМ: 0000000000092785 [13:53:52]line Версия ККМ: 001 [13:53:52]line ФМ: 0000000000875093 [13:53:52]line ФД: 103430 [13:53:52]line ФПД: 62271092967627 [13:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135357&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103430&fm=62271092967627&tin=02508201610067®Number=0000000000092785&sum=130000 [13:53:52]OFD Sender: Processing packet 103430 [packets to send 17, broken 16] [13:53:52]ProducePacketName [13:53:52]name=ofd_packets/00103430 [13:53:52]OFD Sender: To server: pG, [13:53:52]CommunicateWithHost lk.salyk.kg:30040 [13:53:52]ConnectInit lk.salyk.kg [13:53:52]written 0, free lines is 4095 [13:53:52]Connected sock=10 [13:53:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FE 91 07 01 9A FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 44 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 75 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 94 01 00 35 04 06 00 38 A2 9E 60 48 CB E0 DE 87 58 60 21 CD 10 [13:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2A F2 47 00 F4 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 94 01 00 F4 03 04 00 01 38 71 66 B6 04 01 00 00 6F A8 5A 43 71 7F 72 F5 [13:53:52]CommunicateWithHost err = 0 [13:53:52]CheckOFDResponse [13:53:52]1017 (14) - 77093643461234 [13:53:52]1041 (16) - 0000000000875093 [13:53:52]1040 (4) - 103430 [13:53:52]1012 (4) - 18.06.2024 07:32 [13:53:52]1206 (1) - 0 [13:53:52]OFD Sender: Remove packet 103430 [13:53:52]ProducePacketName [13:53:52]name=ofd_packets/00103430 [13:53:52]NVStorageDeleteData [13:53:52]Write to MH i2c: 01 00 00 53 5B AE [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: 01 07 00 53 5B 00 00 00 00 00 F2 0C B3 [13:53:52]RasterBufferAndPrint [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]line [13:53:52]written 0, free lines is 3323 [13:53:52]MH_Cut [13:53:52]Write to MH i2c: D1 01 00 5A 5B 01 87 [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 01 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: D1 01 00 5A 5B 00 86 [13:53:52]Write to MH i2c: 01 00 00 5B 5B B6 [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:53]OFD Sender: No OFD packet to send [13:53:53]*** Cut start [13:53:53]*** Partial cut [13:53:53]*** CUTSNS_PIN = 1 [13:53:53]*** CUTSNS_PIN = 0 [13:53:53]*** Brake cut motor [13:53:54]Read from MH i2c: 01 [13:53:54]MH_I2C_Read... [13:53:54]*** Stop cut motor [13:53:54]*** Cut end [13:53:54]Read from MH i2c: 01 07 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: 01 07 00 5B 5B 00 00 00 00 00 FF 0F CB [13:53:54]process_action close_receipt done [13:53:54]requested_data is exist [13:53:54]produce_requested_data [13:53:54]requested_item fm.sn is exist - process it [13:53:54]wFMCommunicate request_size=4 [13:53:54]MH_SAM_APDU [13:53:54]CAPDU: 80 11 00 00 [13:53:54]Write to MH i2c: E2 08 00 5C 5B 80 11 00 00 00 00 00 00 31 [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:54]Read from MH i2c: E2 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 17 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 17 00 5C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [13:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:53:54]wFMCommunicate OK [13:53:54]requested_item fd.num is exist - process it [13:53:54]SAM_PROTO_GetFieldsCounters [13:53:54]wFMCommunicate request_size=4 [13:53:54]MH_SAM_APDU [13:53:54]CAPDU: 80 13 00 00 [13:53:54]Write to MH i2c: E2 08 00 5D 5B 80 13 00 00 00 00 00 00 34 [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:54]Read from MH i2c: E2 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 62 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 62 00 5D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 94 01 00 0E 04 04 00 60 01 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 AD [13:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 94 01 00 0E 04 04 00 60 01 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 [13:53:54]wFMCommunicate OK [13:53:54]SAM_PROTO_GetFieldsCounters done [13:53:54]requested_item shift.num is exist - process it [13:53:54]requested_item shift.opened is exist - process it [13:53:54]req_shift_opened [13:53:54]FM_GetShiftState [13:53:54]SAM_PROTO_GetShiftState [13:53:54]wFMCommunicate request_size=4 [13:53:54]MH_SAM_APDU [13:53:54]CAPDU: 80 13 01 00 [13:53:54]Write to MH i2c: E2 08 00 5E 5B 80 13 01 00 00 00 00 00 36 [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:54]Read from MH i2c: E2 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 0E 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: E2 0E 00 5E 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [13:53:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:53:54]wFMCommunicate OK [13:53:54]SAM_PROTO_GetShiftState done [13:53:54]FM_GetShiftState done [13:53:54]req_shift_opened done [13:53:54]requested_item shift.open_date is exist - process it [13:53:54]req_shift_open_date [13:53:54]req_shift_open_date done [13:53:54]produce_requested_data done [13:53:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103430,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:53:54]process_action_free close_receipt [13:53:54]json_value_free [13:53:54]json_value_free done [13:53:54]process_json_proto returns [13:53:54]Send response to host [13:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103430,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:53:54]free response buf [13:53:54]execute_script done [13:53:54]execute_script returns [13:53:54]free content buf [13:53:54]Sock 9.Close socket [13:53:54]Sock 9.Thread stoped [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:06]accept exits with 7 [13:56:06]New connection [13:56:06]New thread 3067227492 created [13:56:06]Thread 3067084132 joined [13:56:06]Waiting for new connection... [13:56:06] Sock 7.Parse request [13:56:06]Sock 7.Check first char [13:56:06]Sock 7.First char is OK [13:56:06]request: POST /json_proto HTTP/1.0 [13:56:06]Method: POST [13:56:06]URL: /json_proto [13:56:06]Method is POST - this is cgi request [13:56:06]url: /json_proto [13:56:06]query_string will be loaded in cgi processing [13:56:06]execute_cgi json_proto POST (null) [13:56:06]execute_cgi path=json_proto method=POST [13:56:06]POST find Content-Length [13:56:06]Host: 172.17.38.133:8080 [13:56:06]Content-Length: 687 [13:56:06]Content-Type: application/json [13:56:06] [13:56:06]POST finish read [13:56:06]Found Content-Length = 687 [13:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]execute_script... [13:56:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:06]POST & json_proto [13:56:06]process_json_proto [13:56:06]json parsed OK: [13:56:06]protocol is kg_v1.0 [13:56:06]action value=close_receipt [13:56:06]process_action close_receipt [13:56:06]cmd_close_receipt [13:56:06]MH_GetDate [13:56:06]Write to MH i2c: F0 00 00 5F 5B A9 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: F0 09 00 5F 5B 00 FD 91 71 66 BD 8F 7C 64 43 [13:56:06]GetLastDocTimeStamp 1718718837 [13:56:06]current date 1718718973 [13:56:06]FM_GetShiftState [13:56:06]SAM_PROTO_GetShiftState [13:56:06]wFMCommunicate request_size=4 [13:56:06]MH_SAM_APDU [13:56:06]CAPDU: 80 13 01 00 [13:56:06]Write to MH i2c: E2 08 00 60 5B 80 13 01 00 00 00 00 00 38 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:06]Read from MH i2c: E2 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 0E 00 60 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [13:56:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:56:06]wFMCommunicate OK [13:56:06]SAM_PROTO_GetShiftState done [13:56:06]FM_GetShiftState done [13:56:06]opened in 1718670284 [13:56:06]opened+sec_in_day 1718756684 [13:56:06]quantity*price = 110006 [13:56:06]sum+1 = 110007 [13:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 115 18.06.2024 13:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103431 ФПД: 132833628891142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103431&fm=132833628891142&tin=02508201610067®Number=0000000000092785&sum=110000 [13:56:08]StoreToDocumentArchive [13:56:08]shift 352 fd 103431 [13:56:08]save to /storage/0352/doc_00103431 [13:56:08]save last doc name /storage/0352/doc_00103431 to /storage/kkm_last_doc_name [13:56:08]save OK [13:56:08]Clear old archive folders... [13:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:56:08]tlvbuf is 01410900 [13:56:08]SAM_PROTO_ClearQueue [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 09 00 00 [13:56:08]Write to MH i2c: E2 08 00 6D 5B 80 09 00 00 00 00 00 00 3A [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 6D 5B 00 90 00 3C [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_ClearQueue done [13:56:08]KKMCreateOFDPacket [13:56:08]OFDProtocolAddRootSTLVToBuf [13:56:08]FM_MakeSignedData [13:56:08]FM_MakeSignedData [13:56:08]SAM_PROTO_SignData [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 01 02 [13:56:08]Write to MH i2c: E2 08 00 6E 5B 80 0D 01 02 00 00 00 00 42 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 6E 5B 00 90 00 3D [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=255 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FD 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 94 01 00 35 04 06 00 [13:56:08]Write to MH i2c: E2 02 01 6F 5B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FD 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 94 01 00 35 04 06 00 00 00 E3 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 6F 5B 00 90 00 3E [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=11 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 02 02 06 78 CF BD 43 A8 06 [13:56:08]Write to MH i2c: E2 0E 00 70 5B 80 0D 02 02 06 00 78 CF BD 43 A8 06 00 00 46 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]OFD Sender: No OFD packet to send [13:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 03 00 70 5B 00 90 00 3F [13:56:08]RAPDU: 90 00 [13:56:08]wFMCommunicate OK [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 0D 03 02 [13:56:08]Write to MH i2c: E2 08 00 71 5B 80 0D 03 02 00 00 00 00 47 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0B 00 71 5B 00 1F DE F2 59 14 BA C8 00 90 00 26 [13:56:08]RAPDU: 1F DE F2 59 14 BA C8 00 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_SignData done [13:56:08]FM_MakeSignedData done [13:56:08]CreateOFDProtocolMessage [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 11 00 00 [13:56:08]Write to MH i2c: E2 08 00 72 5B 80 11 00 00 00 00 00 00 47 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 17 00 72 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [13:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:56:08]wFMCommunicate OK [13:56:08]CreateOFDProtocolMessage done [13:56:08]OFDSenderStorePacket 103431 [13:56:08]StoreOFDPacket docnum=103431 [13:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 48 15 08 01 DB 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FD 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 94 01 00 35 04 06 00 78 CF BD 43 A8 06 1F DE F2 59 14 BA C8 00 [13:56:08]CheckFolder [13:56:08]dirname=/storage/ofd_packets [13:56:08]CheckFolder done [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00103431 [13:56:08]NVStorageSaveData ofd_packets/00103431 [13:56:08]File name is /storage/ofd_packets/00103431 [13:56:08]Write 302 bytes [13:56:08]NVStorageSaveData done [13:56:08]OFDSenderStorePacket done [13:56:08]KKMCreateOFDPacket done [13:56:08]NVStorageSaveData kkm_last_timestamp [13:56:08]File name is /storage/kkm_last_timestamp [13:56:08]Write 4 bytes [13:56:08]NVStorageSaveData done [13:56:08]ExternCall_PrintAddStr [13:56:08]wPrintStart [13:56:08]Write to MH i2c: 01 00 00 73 5B CE [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: 01 07 00 73 5B 00 00 00 00 00 FF 0F E3 [13:56:08]RasterBufferAndPrint [13:56:08]line Счет N : (1)672593 [13:56:08]line ИНН: 02508201610067 [13:56:08]line Контрольно-Кассовый Чек [13:56:08]line ПРОДАЖА [13:56:08]line ТРК (МРК, ГНК) : 11 [13:56:08]line Товар: 2710194210 [13:56:08]line ДТ(л)-К-5 [13:56:08]line 15.090 * 72.90 [13:56:08]line = 1100.06 [13:56:08]line НДС 12% НСП 1% [13:56:08]line > о реализуемом товаре [13:56:08]line ОКРУГЛЕНИЕ: -0.06 [13:56:08]line ИТОГО: 1100.00 [13:56:08]line Внесено: 1100.00 [13:56:08]line СДАЧА: 0.00 [13:56:08]line НСП 1% : 9.73 [13:56:08]line НДС 12% : 116.82 [13:56:08]line Наличными: 1100.00 [13:56:08]line Безнал.: 0.00 [13:56:08]line Место: АЗС № 120 "Партнер Нефть" [13:56:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:56:08]line СНО: Общий режим [13:56:08]line Чек 115 18.06.2024 13:56 [13:56:08]line Смена: 352 ФФД: 1.0 [13:56:08]line ЗНМ: 0300000164 [13:56:08]line РНМ: 0000000000092785 [13:56:08]line Версия ККМ: 001 [13:56:08]line ФМ: 0000000000875093 [13:56:08]line ФД: 103431 [13:56:08]line ФПД: 132833628891142 [13:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135613&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103431&fm=132833628891142&tin=02508201610067®Number=0000000000092785&sum=110000 [13:56:08]OFD Sender: Processing packet 103431 [packets to send 17, broken 16] [13:56:08]ProducePacketName [13:56:08]name=ofd_packets/00103431 [13:56:08]OFD Sender: To server: pG, [13:56:08]CommunicateWithHost lk.salyk.kg:30040 [13:56:08]ConnectInit lk.salyk.kg [13:56:08]written 0, free lines is 4095 [13:56:09]Connected sock=9 [13:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 48 15 08 01 DB 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FD 91 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 94 01 00 35 04 06 00 78 CF BD 43 A8 06 1F DE F2 59 14 BA C8 00 [13:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 16 3B 47 00 8C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 94 01 00 F4 03 04 00 89 38 71 66 B6 04 01 00 00 51 5F 34 CE 68 E6 88 95 [13:56:09]CommunicateWithHost err = 0 [13:56:09]CheckOFDResponse [13:56:09]1017 (14) - 77093643461234 [13:56:09]1041 (16) - 0000000000875093 [13:56:09]1040 (4) - 103431 [13:56:09]1012 (4) - 18.06.2024 07:34 [13:56:09]1206 (1) - 0 [13:56:09]OFD Sender: Remove packet 103431 [13:56:09]ProducePacketName [13:56:09]name=ofd_packets/00103431 [13:56:09]NVStorageDeleteData [13:56:09]Write to MH i2c: 01 00 00 9E 5B F9 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: 01 07 00 9E 5B 00 00 00 00 00 E9 0C F5 [13:56:09]RasterBufferAndPrint [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]line [13:56:09]written 0, free lines is 3311 [13:56:09]MH_Cut [13:56:09]Write to MH i2c: D1 01 00 A5 5B 01 D2 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: D1 01 00 A5 5B 00 D1 [13:56:09]Write to MH i2c: 01 00 00 A6 5B 01 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]OFD Sender: No OFD packet to send [13:56:10]*** Cut start [13:56:10]*** Partial cut [13:56:10]*** CUTSNS_PIN = 1 [13:56:10]*** CUTSNS_PIN = 0 [13:56:10]*** Brake cut motor [13:56:10]Read from MH i2c: 01 [13:56:10]MH_I2C_Read... [13:56:10]*** Stop cut motor [13:56:10]*** Cut end [13:56:10]Read from MH i2c: 01 07 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 A6 5B 00 00 00 00 00 FF 0F 16 [13:56:10]process_action close_receipt done [13:56:10]requested_data is exist [13:56:10]produce_requested_data [13:56:10]requested_item fm.sn is exist - process it [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 11 00 00 [13:56:10]Write to MH i2c: E2 08 00 A7 5B 80 11 00 00 00 00 00 00 7C [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 A7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [13:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:56:10]wFMCommunicate OK [13:56:10]requested_item fd.num is exist - process it [13:56:10]SAM_PROTO_GetFieldsCounters [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 13 00 00 [13:56:10]Write to MH i2c: E2 08 00 A8 5B 80 13 00 00 00 00 00 00 7F [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 62 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 62 00 A8 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 94 01 00 0E 04 04 00 60 01 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 FC [13:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 94 01 00 0E 04 04 00 60 01 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 [13:56:10]wFMCommunicate OK [13:56:10]SAM_PROTO_GetFieldsCounters done [13:56:10]requested_item shift.num is exist - process it [13:56:10]requested_item shift.opened is exist - process it [13:56:10]req_shift_opened [13:56:10]FM_GetShiftState [13:56:10]SAM_PROTO_GetShiftState [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 13 01 00 [13:56:10]Write to MH i2c: E2 08 00 A9 5B 80 13 01 00 00 00 00 00 81 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0E 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0E 00 A9 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 02 [13:56:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:56:10]wFMCommunicate OK [13:56:10]SAM_PROTO_GetShiftState done [13:56:10]FM_GetShiftState done [13:56:10]req_shift_opened done [13:56:10]requested_item shift.open_date is exist - process it [13:56:10]req_shift_open_date [13:56:10]req_shift_open_date done [13:56:10]produce_requested_data done [13:56:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103431,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:56:10]process_action_free close_receipt [13:56:10]json_value_free [13:56:10]json_value_free done [13:56:10]process_json_proto returns [13:56:10]Send response to host [13:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103431,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:56:10]free response buf [13:56:10]execute_script done [13:56:10]execute_script returns [13:56:10]free content buf [13:56:10]Sock 7.Close socket [13:56:10]Sock 7.Thread stoped [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:28]accept exits with 10 [13:58:28]New connection [13:58:28]New thread 3067084132 created [13:58:28]Thread 3067227492 joined [13:58:28]Waiting for new connection... [13:58:28] Sock 10.Parse request [13:58:28]Sock 10.Check first char [13:58:28]Sock 10.First char is OK [13:58:28]request: POST /json_proto HTTP/1.0 [13:58:28]Method: POST [13:58:28]URL: /json_proto [13:58:28]Method is POST - this is cgi request [13:58:28]url: /json_proto [13:58:28]query_string will be loaded in cgi processing [13:58:28]execute_cgi json_proto POST (null) [13:58:28]execute_cgi path=json_proto method=POST [13:58:28]POST find Content-Length [13:58:28]Host: 172.17.38.133:8080 [13:58:28]Content-Length: 687 [13:58:28]Content-Type: application/json [13:58:28] [13:58:28]POST finish read [13:58:28]Found Content-Length = 687 [13:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.520, "sum" : 1350.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:28]execute_script... [13:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.520, "sum" : 1350.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:28]POST & json_proto [13:58:28]process_json_proto [13:58:28]json parsed OK: [13:58:28]protocol is kg_v1.0 [13:58:28]action value=close_receipt [13:58:28]process_action close_receipt [13:58:28]cmd_close_receipt [13:58:28]MH_GetDate [13:58:28]Write to MH i2c: F0 00 00 AA 5B F4 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: F0 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: F0 09 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: F0 09 00 AA 5B 00 8B 92 71 66 BD 8F 7C 64 1D [13:58:28]GetLastDocTimeStamp 1718718973 [13:58:28]current date 1718719115 [13:58:28]FM_GetShiftState [13:58:28]SAM_PROTO_GetShiftState [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 13 01 00 [13:58:28]Write to MH i2c: E2 08 00 AB 5B 80 13 01 00 00 00 00 00 83 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 0E 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 0E 00 AB 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [13:58:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:58:28]wFMCommunicate OK [13:58:28]SAM_PROTO_GetShiftState done [13:58:28]FM_GetShiftState done [13:58:28]opened in 1718670284 [13:58:28]opened+sec_in_day 1718756684 [13:58:28]quantity*price = 135010 [13:58:28]sum+1 = 135012 [13:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 116 18.06.2024 13:58 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103432 ФПД: 55264886443367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103432&fm=55264886443367&tin=02508201610067®Number=0000000000092785&sum=135000 [13:58:29]StoreToDocumentArchive [13:58:29]shift 352 fd 103432 [13:58:29]save to /storage/0352/doc_00103432 [13:58:29]save last doc name /storage/0352/doc_00103432 to /storage/kkm_last_doc_name [13:58:29]save OK [13:58:29]Clear old archive folders... [13:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:58:29]tlvbuf is 01390F20 [13:58:29]SAM_PROTO_ClearQueue [13:58:29]wFMCommunicate request_size=4 [13:58:29]MH_SAM_APDU [13:58:29]CAPDU: 80 09 00 00 [13:58:29]Write to MH i2c: E2 08 00 B8 5B 80 09 00 00 00 00 00 00 85 [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:29]Read from MH i2c: E2 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 B8 5B 00 90 00 87 [13:58:29]RAPDU: 90 00 [13:58:29]wFMCommunicate OK [13:58:29]SAM_PROTO_ClearQueue done [13:58:29]KKMCreateOFDPacket [13:58:29]OFDProtocolAddRootSTLVToBuf [13:58:29]FM_MakeSignedData [13:58:29]FM_MakeSignedData [13:58:29]SAM_PROTO_SignData [13:58:29]wFMCommunicate request_size=4 [13:58:29]MH_SAM_APDU [13:58:29]CAPDU: 80 0D 01 02 [13:58:29]Write to MH i2c: E2 08 00 B9 5B 80 0D 01 02 00 00 00 00 8D [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:29]Read from MH i2c: E2 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 B9 5B 00 90 00 88 [13:58:29]RAPDU: 90 00 [13:58:29]wFMCommunicate OK [13:58:29]wFMCommunicate request_size=255 [13:58:29]MH_SAM_APDU [13:58:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 8B 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 94 01 00 35 04 06 00 [13:58:29]Write to MH i2c: E2 02 01 BA 5B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 8B 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 94 01 00 35 04 06 00 00 00 A2 [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]OFD Sender: No OFD packet to send [13:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:29]Read from MH i2c: E2 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 BA 5B 00 90 00 89 [13:58:29]RAPDU: 90 00 [13:58:29]wFMCommunicate OK [13:58:29]wFMCommunicate request_size=11 [13:58:29]MH_SAM_APDU [13:58:29]CAPDU: 80 0D 02 02 06 32 43 5B EC CD 67 [13:58:29]Write to MH i2c: E2 0E 00 BB 5B 80 0D 02 02 06 00 32 43 5B EC CD 67 00 00 8C [13:58:29]Write i2c OK [13:58:29]MH_I2C_Read... [13:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:29]Read from MH i2c: E2 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 03 00 BB 5B 00 90 00 8A [13:58:29]RAPDU: 90 00 [13:58:29]wFMCommunicate OK [13:58:29]wFMCommunicate request_size=4 [13:58:29]MH_SAM_APDU [13:58:29]CAPDU: 80 0D 03 02 [13:58:29]Write to MH i2c: E2 08 00 BC 5B 80 0D 03 02 00 00 00 00 92 [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:30]Read from MH i2c: E2 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: E2 0B 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: E2 0B 00 BC 5B 00 75 C8 29 35 9E 12 F6 83 90 00 57 [13:58:30]RAPDU: 75 C8 29 35 9E 12 F6 83 90 00 [13:58:30]wFMCommunicate OK [13:58:30]SAM_PROTO_SignData done [13:58:30]FM_MakeSignedData done [13:58:30]CreateOFDProtocolMessage [13:58:30]wFMCommunicate request_size=4 [13:58:30]MH_SAM_APDU [13:58:30]CAPDU: 80 11 00 00 [13:58:30]Write to MH i2c: E2 08 00 BD 5B 80 11 00 00 00 00 00 00 92 [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:30]Read from MH i2c: E2 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: E2 17 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: E2 17 00 BD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [13:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:30]wFMCommunicate OK [13:58:30]CreateOFDProtocolMessage done [13:58:30]OFDSenderStorePacket 103432 [13:58:30]StoreOFDPacket docnum=103432 [13:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC 5A 08 01 12 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 8B 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 94 01 00 35 04 06 00 32 43 5B EC CD 67 75 C8 29 35 9E 12 F6 83 [13:58:30]CheckFolder [13:58:30]dirname=/storage/ofd_packets [13:58:30]CheckFolder done [13:58:30]ProducePacketName [13:58:30]name=ofd_packets/00103432 [13:58:30]NVStorageSaveData ofd_packets/00103432 [13:58:30]File name is /storage/ofd_packets/00103432 [13:58:30]Write 302 bytes [13:58:30]NVStorageSaveData done [13:58:30]OFDSenderStorePacket done [13:58:30]KKMCreateOFDPacket done [13:58:30]NVStorageSaveData kkm_last_timestamp [13:58:30]File name is /storage/kkm_last_timestamp [13:58:30]Write 4 bytes [13:58:30]NVStorageSaveData done [13:58:30]ExternCall_PrintAddStr [13:58:30]wPrintStart [13:58:30]Write to MH i2c: 01 00 00 BE 5B 19 [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 07 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 07 00 BE 5B 00 00 00 00 00 FF 0F 2E [13:58:30]RasterBufferAndPrint [13:58:30]line Счет N : (1)672594 [13:58:30]line ИНН: 02508201610067 [13:58:30]line Контрольно-Кассовый Чек [13:58:30]line ПРОДАЖА [13:58:30]line ТРК (МРК, ГНК) : 21 [13:58:30]line Товар: 2710194210 [13:58:30]line ДТ(л)-К-5 [13:58:30]line 18.520 * 72.90 [13:58:30]line = 1350.11 [13:58:30]line НДС 12% НСП 1% [13:58:30]line > о реализуемом товаре [13:58:30]line ОКРУГЛЕНИЕ: -0.11 [13:58:30]line ИТОГО: 1350.00 [13:58:30]line Внесено: 1350.00 [13:58:30]line СДАЧА: 0.00 [13:58:30]line НСП 1% : 11.95 [13:58:30]line НДС 12% : 143.37 [13:58:30]line Наличными: 1350.00 [13:58:30]line Безнал.: 0.00 [13:58:30]line Место: АЗС № 120 "Партнер Нефть" [13:58:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:58:30]line СНО: Общий режим [13:58:30]line Чек 116 18.06.2024 13:58 [13:58:30]line Смена: 352 ФФД: 1.0 [13:58:30]line ЗНМ: 0300000164 [13:58:30]line РНМ: 0000000000092785 [13:58:30]line Версия ККМ: 001 [13:58:30]line ФМ: 0000000000875093 [13:58:30]line ФД: 103432 [13:58:30]line ФПД: 55264886443367 [13:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103432&fm=55264886443367&tin=02508201610067®Number=0000000000092785&sum=135000 [13:58:30]OFD Sender: Processing packet 103432 [packets to send 17, broken 16] [13:58:30]ProducePacketName [13:58:30]name=ofd_packets/00103432 [13:58:30]OFD Sender: To server: pG, [13:58:30]CommunicateWithHost lk.salyk.kg:30040 [13:58:30]ConnectInit lk.salyk.kg [13:58:30]written 0, free lines is 4095 [13:58:30]Connected sock=9 [13:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC 5A 08 01 12 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 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 8B 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 94 01 00 35 04 06 00 32 43 5B EC CD 67 75 C8 29 35 9E 12 F6 83 [13:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 25 EF 47 00 8E F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 94 01 00 F4 03 04 00 17 39 71 66 B6 04 01 00 00 51 98 FA 27 A9 19 50 0F [13:58:30]CommunicateWithHost err = 0 [13:58:30]CheckOFDResponse [13:58:30]1017 (14) - 77093643461234 [13:58:30]1041 (16) - 0000000000875093 [13:58:30]1040 (4) - 103432 [13:58:30]1012 (4) - 18.06.2024 07:36 [13:58:30]1206 (1) - 0 [13:58:30]OFD Sender: Remove packet 103432 [13:58:30]ProducePacketName [13:58:30]name=ofd_packets/00103432 [13:58:30]NVStorageDeleteData [13:58:30]Write to MH i2c: 01 00 00 E9 5B 44 [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 07 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: 01 07 00 E9 5B 00 00 00 00 00 EE 0C 45 [13:58:30]RasterBufferAndPrint [13:58:30]line [13:58:30]line [13:58:30]line [13:58:30]line [13:58:30]line [13:58:30]written 0, free lines is 3316 [13:58:30]MH_Cut [13:58:30]Write to MH i2c: D1 01 00 F0 5B 01 1D [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: D1 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: D1 01 00 [13:58:30]MH_I2C_Read... [13:58:30]Read from MH i2c: D1 01 00 F0 5B 00 1C [13:58:30]Write to MH i2c: 01 00 00 F1 5B 4C [13:58:30]Write i2c OK [13:58:30]MH_I2C_Read... [13:58:31]OFD Sender: No OFD packet to send [13:58:31]*** Cut start [13:58:31]*** Partial cut [13:58:31]*** CUTSNS_PIN = 1 [13:58:31]*** CUTSNS_PIN = 0 [13:58:31]*** Brake cut motor [13:58:32]Read from MH i2c: 01 [13:58:32]MH_I2C_Read... [13:58:32]*** Stop cut motor [13:58:32]*** Cut end [13:58:32]Read from MH i2c: 01 07 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: 01 07 00 F1 5B 00 00 00 00 00 FF 0F 61 [13:58:32]process_action close_receipt done [13:58:32]requested_data is exist [13:58:32]produce_requested_data [13:58:32]requested_item fm.sn is exist - process it [13:58:32]wFMCommunicate request_size=4 [13:58:32]MH_SAM_APDU [13:58:32]CAPDU: 80 11 00 00 [13:58:32]Write to MH i2c: E2 08 00 F2 5B 80 11 00 00 00 00 00 00 C7 [13:58:32]Write i2c OK [13:58:32]MH_I2C_Read... [13:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:32]Read from MH i2c: E2 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 17 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 17 00 F2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [13:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:32]wFMCommunicate OK [13:58:32]requested_item fd.num is exist - process it [13:58:32]SAM_PROTO_GetFieldsCounters [13:58:32]wFMCommunicate request_size=4 [13:58:32]MH_SAM_APDU [13:58:32]CAPDU: 80 13 00 00 [13:58:32]Write to MH i2c: E2 08 00 F3 5B 80 13 00 00 00 00 00 00 CA [13:58:32]Write i2c OK [13:58:32]MH_I2C_Read... [13:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:32]Read from MH i2c: E2 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 62 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 62 00 F3 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 94 01 00 0E 04 04 00 60 01 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 4B [13:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 94 01 00 0E 04 04 00 60 01 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 [13:58:32]wFMCommunicate OK [13:58:32]SAM_PROTO_GetFieldsCounters done [13:58:32]requested_item shift.num is exist - process it [13:58:32]requested_item shift.opened is exist - process it [13:58:32]req_shift_opened [13:58:32]FM_GetShiftState [13:58:32]SAM_PROTO_GetShiftState [13:58:32]wFMCommunicate request_size=4 [13:58:32]MH_SAM_APDU [13:58:32]CAPDU: 80 13 01 00 [13:58:32]Write to MH i2c: E2 08 00 F4 5B 80 13 01 00 00 00 00 00 CC [13:58:32]Write i2c OK [13:58:32]MH_I2C_Read... [13:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:32]Read from MH i2c: E2 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 0E 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 0E 00 F4 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4D [13:58:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:58:32]wFMCommunicate OK [13:58:32]SAM_PROTO_GetShiftState done [13:58:32]FM_GetShiftState done [13:58:32]req_shift_opened done [13:58:32]requested_item shift.open_date is exist - process it [13:58:32]req_shift_open_date [13:58:32]req_shift_open_date done [13:58:32]produce_requested_data done [13:58:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103432,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:58:32]process_action_free close_receipt [13:58:32]json_value_free [13:58:32]json_value_free done [13:58:32]process_json_proto returns [13:58:32]Send response to host [13:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103432,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:58:32]free response buf [13:58:32]execute_script done [13:58:32]execute_script returns [13:58:32]free content buf [13:58:32]Sock 10.Close socket [13:58:32]Sock 10.Thread stoped [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:18]accept exits with 7 [13:59:18]New connection [13:59:18]New thread 3067227492 created [13:59:18]Thread 3067084132 joined [13:59:18]Waiting for new connection... [13:59:18] Sock 7.Parse request [13:59:18]Sock 7.Check first char [13:59:18]Sock 7.First char is OK [13:59:18]request: POST /json_proto HTTP/1.0 [13:59:18]Method: POST [13:59:18]URL: /json_proto [13:59:18]Method is POST - this is cgi request [13:59:18]url: /json_proto [13:59:18]query_string will be loaded in cgi processing [13:59:18]execute_cgi json_proto POST (null) [13:59:18]execute_cgi path=json_proto method=POST [13:59:18]POST find Content-Length [13:59:18]Host: 172.17.38.133:8080 [13:59:18]Content-Length: 801 [13:59:18]Content-Type: application/json [13:59:18] [13:59:18]POST finish read [13:59:18]Found Content-Length = 801 [13:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:18]execute_script... [13:59: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)672595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:18]POST & json_proto [13:59:18]process_json_proto [13:59:18]json parsed OK: [13:59:18]protocol is kg_v1.0 [13:59:18]action value=close_receipt [13:59:18]process_action close_receipt [13:59:18]cmd_close_receipt [13:59:18]MH_GetDate [13:59:18]Write to MH i2c: F0 00 00 F5 5B 3F [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 09 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 09 00 F5 5B 00 BD 92 71 66 BD 8F 7C 64 9A [13:59:18]GetLastDocTimeStamp 1718719115 [13:59:18]current date 1718719165 [13:59:18]FM_GetShiftState [13:59:18]SAM_PROTO_GetShiftState [13:59:18]wFMCommunicate request_size=4 [13:59:18]MH_SAM_APDU [13:59:18]CAPDU: 80 13 01 00 [13:59:18]Write to MH i2c: E2 08 00 F6 5B 80 13 01 00 00 00 00 00 CE [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:18]Read from MH i2c: E2 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0E 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0E 00 F6 5B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [13:59:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:59:18]wFMCommunicate OK [13:59:18]SAM_PROTO_GetShiftState done [13:59:18]FM_GetShiftState done [13:59:18]opened in 1718670284 [13:59:18]opened+sec_in_day 1718756684 [13:59:18]quantity*price = 70052 [13:59:18]sum+1 = 70053 [13:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 117 18.06.2024 13:59 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103433 ФПД: 120864033720890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135925&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103433&fm=120864033720890&tin=02508201610067®Number=0000000000092785&sum=70052 [13:59:19]StoreToDocumentArchive [13:59:19]shift 352 fd 103433 [13:59:19]save to /storage/0352/doc_00103433 [13:59:19]save last doc name /storage/0352/doc_00103433 to /storage/kkm_last_doc_name [13:59:19]save OK [13:59:19]Clear old archive folders... [13:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:19]tlvbuf is 0139E2D0 [13:59:19]SAM_PROTO_ClearQueue [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 09 00 00 [13:59:19]Write to MH i2c: E2 08 00 03 5C 80 09 00 00 00 00 00 00 D1 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 03 5C 00 90 00 D3 [13:59:19]RAPDU: 90 00 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_ClearQueue done [13:59:19]KKMCreateOFDPacket [13:59:19]OFDProtocolAddRootSTLVToBuf [13:59:19]FM_MakeSignedData [13:59:19]FM_MakeSignedData [13:59:19]SAM_PROTO_SignData [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 0D 01 02 [13:59:19]Write to MH i2c: E2 08 00 04 5C 80 0D 01 02 00 00 00 00 D9 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 04 5C 00 90 00 D4 [13:59:19]RAPDU: 90 00 [13:59:19]wFMCommunicate OK [13:59:19]wFMCommunicate request_size=255 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 94 01 00 35 04 06 00 6D [13:59:19]Write to MH i2c: E2 02 01 05 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 94 01 00 35 04 06 00 6D 00 00 14 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 05 5C 00 90 00 D5 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=10 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 02 02 05 EC D9 CB CA 3A [13:59:20]Write to MH i2c: E2 0D 00 06 5C 80 0D 02 02 05 00 EC D9 CB CA 3A 00 00 7A [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 06 5C 00 90 00 D6 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 03 02 [13:59:20]Write to MH i2c: E2 08 00 07 5C 80 0D 03 02 00 00 00 00 DE [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0B 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0B 00 07 5C 00 EF 58 5D AF CC D8 51 FF 90 00 26 [13:59:20]RAPDU: EF 58 5D AF CC D8 51 FF 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_SignData done [13:59:20]FM_MakeSignedData done [13:59:20]CreateOFDProtocolMessage [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 11 00 00 [13:59:20]Write to MH i2c: E2 08 00 08 5C 80 11 00 00 00 00 00 00 DE [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 08 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [13:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:20]wFMCommunicate OK [13:59:20]CreateOFDProtocolMessage done [13:59:20]OFDSenderStorePacket 103433 [13:59:20]StoreOFDPacket docnum=103433 [13:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 23 07 01 A6 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 94 01 00 35 04 06 00 6D EC D9 CB CA 3A EF 58 5D AF CC D8 51 FF [13:59:20]CheckFolder [13:59:20]dirname=/storage/ofd_packets [13:59:20]CheckFolder done [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00103433 [13:59:20]NVStorageSaveData ofd_packets/00103433 [13:59:20]File name is /storage/ofd_packets/00103433 [13:59:20]Write 301 bytes [13:59:20]NVStorageSaveData done [13:59:20]OFDSenderStorePacket done [13:59:20]KKMCreateOFDPacket done [13:59:20]NVStorageSaveData kkm_last_timestamp [13:59:20]File name is /storage/kkm_last_timestamp [13:59:20]Write 4 bytes [13:59:20]NVStorageSaveData done [13:59:20]ExternCall_PrintAddStr [13:59:20]wPrintStart [13:59:20]Write to MH i2c: 01 00 00 09 5C 65 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 07 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 07 00 09 5C 00 00 00 00 00 FF 0F 7A [13:59:20]RasterBufferAndPrint [13:59:20]line Счет N : (1)672595 [13:59:20]line ИНН: 02508201610067 [13:59:20]line Контрольно-Кассовый Чек [13:59:20]line ПРОДАЖА [13:59:20]line ТРК (МРК, ГНК) : 32 [13:59:20]line Товар: 2710124130 [13:59:20]line Аи-92-К-5 [13:59:20]line 10.550 * 66.40 [13:59:20]line = 700.52 [13:59:20]line НДС 12% НСП 1% [13:59:20]line > о реализуемом товаре [13:59:20]line ИТОГО: 700.52 [13:59:20]line НСП 1% : 6.20 [13:59:20]line НДС 12% : 74.39 [13:59:20]line Наличными: 0.00 [13:59:20]line Безнал.: 700.52 [13:59:20]line Место: АЗС № 120 "Партнер Нефть" [13:59:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:59:20]line СНО: Общий режим [13:59:20]line Чек 117 18.06.2024 13:59 [13:59:20]line Смена: 352 ФФД: 1.0 [13:59:20]line ЗНМ: 0300000164 [13:59:20]line РНМ: 0000000000092785 [13:59:20]line Версия ККМ: 001 [13:59:20]line Платежная система: O! деньги [13:59:20]line ФМ: 0000000000875093 [13:59:20]line ФД: 103433 [13:59:20]line ФПД: 120864033720890 [13:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135925&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103433&fm=120864033720890&tin=02508201610067®Number=0000000000092785&sum=70052 [13:59:20]OFD Sender: Processing packet 103433 [packets to send 17, broken 16] [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00103433 [13:59:20]OFD Sender: To server: pG, [13:59:20]CommunicateWithHost lk.salyk.kg:30040 [13:59:20]ConnectInit lk.salyk.kg [13:59:20]written 0, free lines is 4095 [13:59:20]Connected sock=10 [13:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 23 07 01 A6 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 92 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 94 01 00 35 04 06 00 6D EC D9 CB CA 3A EF 58 5D AF CC D8 51 FF [13:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4B 2B 47 00 DC 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 94 01 00 F4 03 04 00 49 39 71 66 B6 04 01 00 00 80 A5 0D 1E 1A 6F 3B 92 [13:59:20]CommunicateWithHost err = 0 [13:59:20]CheckOFDResponse [13:59:20]1017 (14) - 77093643461234 [13:59:20]1041 (16) - 0000000000875093 [13:59:20]1040 (4) - 103433 [13:59:20]1012 (4) - 18.06.2024 07:37 [13:59:20]1206 (1) - 0 [13:59:20]OFD Sender: Remove packet 103433 [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00103433 [13:59:20]NVStorageDeleteData [13:59:21]Write to MH i2c: 01 00 00 33 5C 8F [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 33 5C 00 00 00 00 00 EF 0C 91 [13:59:21]RasterBufferAndPrint [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]written 0, free lines is 3318 [13:59:21]MH_Cut [13:59:21]Write to MH i2c: D1 01 00 3A 5C 01 68 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 3A 5C 00 67 [13:59:21]Write to MH i2c: 01 00 00 3B 5C 97 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]OFD Sender: No OFD packet to send [13:59:21]*** Cut start [13:59:21]*** Partial cut [13:59:21]*** CUTSNS_PIN = 1 [13:59:21]*** CUTSNS_PIN = 0 [13:59:22]*** Brake cut motor [13:59:22]Read from MH i2c: 01 [13:59:22]MH_I2C_Read... [13:59:22]*** Stop cut motor [13:59:22]*** Cut end [13:59:22]Read from MH i2c: 01 07 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 3B 5C 00 00 00 00 00 FF 0F AC [13:59:22]process_action close_receipt done [13:59:22]requested_data is exist [13:59:22]produce_requested_data [13:59:22]requested_item fm.sn is exist - process it [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 11 00 00 [13:59:22]Write to MH i2c: E2 08 00 3C 5C 80 11 00 00 00 00 00 00 12 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 17 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 17 00 3C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [13:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:22]wFMCommunicate OK [13:59:22]requested_item fd.num is exist - process it [13:59:22]SAM_PROTO_GetFieldsCounters [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 13 00 00 [13:59:22]Write to MH i2c: E2 08 00 3D 5C 80 13 00 00 00 00 00 00 15 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 62 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 62 00 3D 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 94 01 00 0E 04 04 00 60 01 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 9A [13:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 94 01 00 0E 04 04 00 60 01 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 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_GetFieldsCounters done [13:59:22]requested_item shift.num is exist - process it [13:59:22]requested_item shift.opened is exist - process it [13:59:22]req_shift_opened [13:59:22]FM_GetShiftState [13:59:22]SAM_PROTO_GetShiftState [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 13 01 00 [13:59:22]Write to MH i2c: E2 08 00 3E 5C 80 13 01 00 00 00 00 00 17 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 3E 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [13:59:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_GetShiftState done [13:59:22]FM_GetShiftState done [13:59:22]req_shift_opened done [13:59:22]requested_item shift.open_date is exist - process it [13:59:22]req_shift_open_date [13:59:22]req_shift_open_date done [13:59:22]produce_requested_data done [13:59:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103433,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [13:59:22]process_action_free close_receipt [13:59:22]json_value_free [13:59:22]json_value_free done [13:59:22]process_json_proto returns [13:59:22]Send response to host [13:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103433,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [13:59:22]free response buf [13:59:22]execute_script done [13:59:22]execute_script returns [13:59:22]free content buf [13:59:22]Sock 7.Close socket [13:59:22]Sock 7.Thread stoped [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:32]accept exits with 9 [14:01:32]New connection [14:01:32]New thread 3067084132 created [14:01:32]Thread 3067227492 joined [14:01:32]Waiting for new connection... [14:01:32] Sock 9.Parse request [14:01:32]Sock 9.Check first char [14:01:32]Sock 9.First char is OK [14:01:32]request: POST /json_proto HTTP/1.0 [14:01:32]Method: POST [14:01:32]URL: /json_proto [14:01:32]Method is POST - this is cgi request [14:01:32]url: /json_proto [14:01:32]query_string will be loaded in cgi processing [14:01:32]execute_cgi json_proto POST (null) [14:01:32]execute_cgi path=json_proto method=POST [14:01:32]POST find Content-Length [14:01:32]Host: 172.17.38.133:8080 [14:01:32]Content-Length: 1157 [14:01:32]Content-Type: application/json [14:01:32] [14:01:32]POST finish read [14:01:32]Found Content-Length = 1157 [14:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672596\u000A18.06.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:32]execute_script... [14:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672596\u000A18.06.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:32]POST & json_proto [14:01:32]process_json_proto [14:01:32]json parsed OK: [14:01:32]protocol is kg_v1.0 [14:01:32]action value=print_text [14:01:32]process_action print_text [14:01:32]cmd_print_text [14:01:32]ExternCall_PrintAddStr [14:01:32]wPrintStart [14:01:32]Write to MH i2c: 01 00 00 3F 5C 9B [14:01:32]Write i2c OK [14:01:32]MH_I2C_Read... [14:01:32]Read from MH i2c: 01 [14:01:32]MH_I2C_Read... [14:01:32]Read from MH i2c: 01 07 00 [14:01:32]MH_I2C_Read... [14:01:32]Read from MH i2c: 01 07 00 3F 5C 00 00 00 00 00 FF 0F B0 [14:01:32]RasterBufferAndPrint [14:01:32]line *****ТОВАРНЫЙ ЧЕК***** [14:01:32]line АЗС 120 [14:01:32]line Партнер нефть [14:01:32]line 02508201610067 [14:01:32]line Кассир : Асанбаев Н. [14:01:32]line Счет N : (1)672596 [14:01:32]line 18.06.2024 13:38 [14:01:32]line ПРОДАЖА [14:01:32]line ТРК (МРК, ГНК): 42 [14:01:32]line Вид ГСМ : 2710124130 [14:01:32]line Аи-92-К-5 [14:01:32]line 20.000 x 66.40 [14:01:32]line ИТОГ: 1328.00 [14:01:32]line Тип оплаты: Талоны: ТК ГПНА Online [14:01:32]line 30101614 [14:01:32]line ______________________ [14:01:32]line (подпись) [14:01:32]written 0, free lines is 4095 [14:01:33]Write to MH i2c: 01 00 00 53 5C AF [14:01:33]Write i2c OK [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: 01 [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: 01 07 00 [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: 01 07 00 53 5C 00 00 00 00 00 11 0E D5 [14:01:33]RasterBufferAndPrint [14:01:33]line [14:01:33]line [14:01:33]line [14:01:33]line [14:01:33]line [14:01:33]written 0, free lines is 3602 [14:01:33]MH_Cut [14:01:33]Write to MH i2c: D1 01 00 5A 5C 01 88 [14:01:33]Write i2c OK [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: D1 [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: D1 01 00 [14:01:33]MH_I2C_Read... [14:01:33]Read from MH i2c: D1 01 00 5A 5C 00 87 [14:01:33]Write to MH i2c: 01 00 00 5B 5C B7 [14:01:33]Write i2c OK [14:01:33]MH_I2C_Read... [14:01:33]*** Cut start [14:01:33]*** Partial cut [14:01:33]*** CUTSNS_PIN = 1 [14:01:33]*** CUTSNS_PIN = 0 [14:01:33]*** Brake cut motor [14:01:34]Read from MH i2c: 01 [14:01:34]MH_I2C_Read... [14:01:34]*** Stop cut motor [14:01:34]*** Cut end [14:01:34]Read from MH i2c: 01 07 00 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: 01 07 00 5B 5C 00 00 00 00 00 FF 0F CC [14:01:34]process_action print_text done [14:01:34]requested_data is exist [14:01:34]produce_requested_data [14:01:34]requested_item fm.sn is exist - process it [14:01:34]wFMCommunicate request_size=4 [14:01:34]MH_SAM_APDU [14:01:34]CAPDU: 80 11 00 00 [14:01:34]Write to MH i2c: E2 08 00 5C 5C 80 11 00 00 00 00 00 00 32 [14:01:34]Write i2c OK [14:01:34]MH_I2C_Read... [14:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:34]Read from MH i2c: E2 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 17 00 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 17 00 5C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [14:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:01:34]wFMCommunicate OK [14:01:34]requested_item fd.num is exist - process it [14:01:34]SAM_PROTO_GetFieldsCounters [14:01:34]wFMCommunicate request_size=4 [14:01:34]MH_SAM_APDU [14:01:34]CAPDU: 80 13 00 00 [14:01:34]Write to MH i2c: E2 08 00 5D 5C 80 13 00 00 00 00 00 00 35 [14:01:34]Write i2c OK [14:01:34]MH_I2C_Read... [14:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:34]Read from MH i2c: E2 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 62 00 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 62 00 5D 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 94 01 00 0E 04 04 00 60 01 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 BA [14:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 94 01 00 0E 04 04 00 60 01 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 [14:01:34]wFMCommunicate OK [14:01:34]SAM_PROTO_GetFieldsCounters done [14:01:34]requested_item shift.num is exist - process it [14:01:34]requested_item shift.opened is exist - process it [14:01:34]req_shift_opened [14:01:34]FM_GetShiftState [14:01:34]SAM_PROTO_GetShiftState [14:01:34]wFMCommunicate request_size=4 [14:01:34]MH_SAM_APDU [14:01:34]CAPDU: 80 13 01 00 [14:01:34]Write to MH i2c: E2 08 00 5E 5C 80 13 01 00 00 00 00 00 37 [14:01:34]Write i2c OK [14:01:34]MH_I2C_Read... [14:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:34]Read from MH i2c: E2 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 0E 00 [14:01:34]MH_I2C_Read... [14:01:34]Read from MH i2c: E2 0E 00 5E 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B8 [14:01:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:01:34]wFMCommunicate OK [14:01:34]SAM_PROTO_GetShiftState done [14:01:34]FM_GetShiftState done [14:01:34]req_shift_opened done [14:01:34]requested_item shift.open_date is exist - process it [14:01:34]req_shift_open_date [14:01:34]req_shift_open_date done [14:01:34]produce_requested_data done [14:01:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103433,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:01:34]process_action_free print_text [14:01:34]json_value_free [14:01:34]json_value_free done [14:01:34]process_json_proto returns [14:01:34]Send response to host [14:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103433,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:01:34]free response buf [14:01:34]execute_script done [14:01:34]execute_script returns [14:01:34]free content buf [14:01:34]Sock 9.Close socket [14:01:34]Sock 9.Thread stoped [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:34]accept exits with 7 [14:06:34]New connection [14:06:34]New thread 3067227492 created [14:06:34]Thread 3067084132 joined [14:06:34]Waiting for new connection... [14:06:34] Sock 7.Parse request [14:06:34]Sock 7.Check first char [14:06:34]Sock 7.First char is OK [14:06:34]request: POST /json_proto HTTP/1.0 [14:06:34]Method: POST [14:06:34]URL: /json_proto [14:06:34]Method is POST - this is cgi request [14:06:34]url: /json_proto [14:06:34]query_string will be loaded in cgi processing [14:06:34]execute_cgi json_proto POST (null) [14:06:34]execute_cgi path=json_proto method=POST [14:06:34]POST find Content-Length [14:06:34]Host: 172.17.38.133:8080 [14:06:34]Content-Length: 677 [14:06:34]Content-Type: application/json [14:06:34] [14:06:34]POST finish read [14:06:34]Found Content-Length = 677 [14:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:34]execute_script... [14:06:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:34]POST & json_proto [14:06:34]process_json_proto [14:06:34]json parsed OK: [14:06:34]protocol is kg_v1.0 [14:06:34]action value=close_receipt [14:06:34]process_action close_receipt [14:06:34]cmd_close_receipt [14:06:34]MH_GetDate [14:06:34]Write to MH i2c: F0 00 00 5F 5C AA [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 09 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: F0 09 00 5F 5C 00 71 94 71 66 BD 8F 7C 64 BB [14:06:34]GetLastDocTimeStamp 1718719165 [14:06:34]current date 1718719601 [14:06:34]FM_GetShiftState [14:06:34]SAM_PROTO_GetShiftState [14:06:34]wFMCommunicate request_size=4 [14:06:34]MH_SAM_APDU [14:06:34]CAPDU: 80 13 01 00 [14:06:34]Write to MH i2c: E2 08 00 60 5C 80 13 01 00 00 00 00 00 39 [14:06:34]Write i2c OK [14:06:34]MH_I2C_Read... [14:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:34]Read from MH i2c: E2 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 0E 00 [14:06:34]MH_I2C_Read... [14:06:34]Read from MH i2c: E2 0E 00 60 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BA [14:06:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:06:34]wFMCommunicate OK [14:06:34]SAM_PROTO_GetShiftState done [14:06:34]FM_GetShiftState done [14:06:34]opened in 1718670284 [14:06:34]opened+sec_in_day 1718756684 [14:06:34]quantity*price = 20052 [14:06:34]sum+1 = 20054 [14:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 118 18.06.2024 14:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103434 ФПД: 89255222113963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103434&fm=89255222113963&tin=02508201610067®Number=0000000000092785&sum=20000 [14:06:35]StoreToDocumentArchive [14:06:35]shift 352 fd 103434 [14:06:35]save to /storage/0352/doc_00103434 [14:06:35]save last doc name /storage/0352/doc_00103434 to /storage/kkm_last_doc_name [14:06:35]save OK [14:06:35]Clear old archive folders... [14:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:35]tlvbuf is 013B1810 [14:06:35]SAM_PROTO_ClearQueue [14:06:35]wFMCommunicate request_size=4 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 09 00 00 [14:06:35]Write to MH i2c: E2 08 00 6D 5C 80 09 00 00 00 00 00 00 3B [14:06:35]Write i2c OK [14:06:35]MH_I2C_Read... [14:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:35]Read from MH i2c: E2 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 6D 5C 00 90 00 3D [14:06:35]RAPDU: 90 00 [14:06:35]wFMCommunicate OK [14:06:35]SAM_PROTO_ClearQueue done [14:06:35]KKMCreateOFDPacket [14:06:35]OFDProtocolAddRootSTLVToBuf [14:06:35]FM_MakeSignedData [14:06:35]FM_MakeSignedData [14:06:35]SAM_PROTO_SignData [14:06:35]wFMCommunicate request_size=4 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 0D 01 02 [14:06:35]Write to MH i2c: E2 08 00 6E 5C 80 0D 01 02 00 00 00 00 43 [14:06:35]Write i2c OK [14:06:35]MH_I2C_Read... [14:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:35]Read from MH i2c: E2 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 [14:06:35]MH_I2C_Read... [14:06:35]Read from MH i2c: E2 03 00 6E 5C 00 90 00 3E [14:06:35]RAPDU: 90 00 [14:06:35]wFMCommunicate OK [14:06:35]wFMCommunicate request_size=255 [14:06:35]MH_SAM_APDU [14:06:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 71 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 94 01 00 35 04 06 00 51 [14:06:35]Write to MH i2c: E2 02 01 6F 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 71 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 94 01 00 35 04 06 00 51 00 00 5F [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 6F 5C 00 90 00 3F [14:06:36]RAPDU: 90 00 [14:06:36]wFMCommunicate OK [14:06:36]wFMCommunicate request_size=10 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 0D 02 02 05 2D 59 CE F6 AB [14:06:36]Write to MH i2c: E2 0D 00 70 5C 80 0D 02 02 05 00 2D 59 CE F6 AB 00 00 45 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 03 00 70 5C 00 90 00 40 [14:06:36]RAPDU: 90 00 [14:06:36]wFMCommunicate OK [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 0D 03 02 [14:06:36]Write to MH i2c: E2 08 00 71 5C 80 0D 03 02 00 00 00 00 48 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0B 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0B 00 71 5C 00 D1 FC B2 50 63 95 D2 7D 90 00 5F [14:06:36]RAPDU: D1 FC B2 50 63 95 D2 7D 90 00 [14:06:36]wFMCommunicate OK [14:06:36]SAM_PROTO_SignData done [14:06:36]FM_MakeSignedData done [14:06:36]CreateOFDProtocolMessage [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 11 00 00 [14:06:36]Write to MH i2c: E2 08 00 72 5C 80 11 00 00 00 00 00 00 48 [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 17 00 72 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [14:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:36]wFMCommunicate OK [14:06:36]CreateOFDProtocolMessage done [14:06:36]OFDSenderStorePacket 103434 [14:06:36]StoreOFDPacket docnum=103434 [14:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD DB 07 01 30 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 71 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 94 01 00 35 04 06 00 51 2D 59 CE F6 AB D1 FC B2 50 63 95 D2 7D [14:06:36]CheckFolder [14:06:36]dirname=/storage/ofd_packets [14:06:36]CheckFolder done [14:06:36]ProducePacketName [14:06:36]name=ofd_packets/00103434 [14:06:36]NVStorageSaveData ofd_packets/00103434 [14:06:36]File name is /storage/ofd_packets/00103434 [14:06:36]Write 301 bytes [14:06:36]NVStorageSaveData done [14:06:36]OFDSenderStorePacket done [14:06:36]KKMCreateOFDPacket done [14:06:36]NVStorageSaveData kkm_last_timestamp [14:06:36]File name is /storage/kkm_last_timestamp [14:06:36]Write 4 bytes [14:06:36]NVStorageSaveData done [14:06:36]ExternCall_PrintAddStr [14:06:36]wPrintStart [14:06:36]Write to MH i2c: 01 00 00 73 5C CF [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 07 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: 01 07 00 73 5C 00 00 00 00 00 FF 0F E4 [14:06:36]RasterBufferAndPrint [14:06:36]line Счет N : (1)672597 [14:06:36]line ИНН: 02508201610067 [14:06:36]line Контрольно-Кассовый Чек [14:06:36]line ПРОДАЖА [14:06:36]line ТРК (МРК, ГНК) : 32 [14:06:36]line Товар: 2710124130 [14:06:36]line Аи-92-К-5 [14:06:36]line 3.020 * 66.40 [14:06:36]line = 200.53 [14:06:36]line НДС 12% НСП 1% [14:06:36]line > о реализуемом товаре [14:06:36]line ОКРУГЛЕНИЕ: -0.53 [14:06:36]line ИТОГО: 200.00 [14:06:36]line Внесено: 200.00 [14:06:36]line СДАЧА: 0.00 [14:06:36]line НСП 1% : 1.77 [14:06:36]line НДС 12% : 21.29 [14:06:36]line Наличными: 200.00 [14:06:36]line Безнал.: 0.00 [14:06:36]line Место: АЗС № 120 "Партнер Нефть" [14:06:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:06:36]line СНО: Общий режим [14:06:36]line Чек 118 18.06.2024 14:06 [14:06:36]line Смена: 352 ФФД: 1.0 [14:06:36]line ЗНМ: 0300000164 [14:06:36]line РНМ: 0000000000092785 [14:06:36]line Версия ККМ: 001 [14:06:36]line ФМ: 0000000000875093 [14:06:36]line ФД: 103434 [14:06:36]line ФПД: 89255222113963 [14:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140641&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103434&fm=89255222113963&tin=02508201610067®Number=0000000000092785&sum=20000 [14:06:36]written 0, free lines is 4095 [14:06:36]OFD Sender: Processing packet 103434 [packets to send 17, broken 16] [14:06:36]ProducePacketName [14:06:36]name=ofd_packets/00103434 [14:06:36]OFD Sender: To server: pG, [14:06:36]CommunicateWithHost lk.salyk.kg:30040 [14:06:36]ConnectInit lk.salyk.kg [14:06:36]Connected sock=10 [14:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD DB 07 01 30 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 71 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 94 01 00 35 04 06 00 51 2D 59 CE F6 AB D1 FC B2 50 63 95 D2 7D [14:06:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 94 DA 47 00 C9 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 94 01 00 F4 03 04 00 FD 3A 71 66 B6 04 01 00 00 63 DD C9 38 17 27 41 40 [14:06:37]CommunicateWithHost err = 0 [14:06:37]CheckOFDResponse [14:06:37]1017 (14) - 77093643461234 [14:06:37]1041 (16) - 0000000000875093 [14:06:37]1040 (4) - 103434 [14:06:37]1012 (4) - 18.06.2024 07:45 [14:06:37]1206 (1) - 0 [14:06:37]OFD Sender: Remove packet 103434 [14:06:37]ProducePacketName [14:06:37]name=ofd_packets/00103434 [14:06:37]NVStorageDeleteData [14:06:37]Write to MH i2c: 01 00 00 9E 5C FA [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 9E 5C 00 00 00 00 00 ED 0C FA [14:06:37]RasterBufferAndPrint [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]line [14:06:37]written 0, free lines is 3318 [14:06:37]MH_Cut [14:06:37]Write to MH i2c: D1 01 00 A5 5C 01 D3 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 01 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D1 01 00 A5 5C 00 D2 [14:06:37]Write to MH i2c: 01 00 00 A6 5C 02 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]OFD Sender: No OFD packet to send [14:06:37]*** Cut start [14:06:37]*** Partial cut [14:06:37]*** CUTSNS_PIN = 1 [14:06:37]*** CUTSNS_PIN = 0 [14:06:38]*** Brake cut motor [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]*** Stop cut motor [14:06:38]*** Cut end [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 A6 5C 00 00 00 00 00 FF 0F 17 [14:06:38]process_action close_receipt done [14:06:38]requested_data is exist [14:06:38]produce_requested_data [14:06:38]requested_item fm.sn is exist - process it [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 11 00 00 [14:06:38]Write to MH i2c: E2 08 00 A7 5C 80 11 00 00 00 00 00 00 7D [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 A7 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [14:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:38]wFMCommunicate OK [14:06:38]requested_item fd.num is exist - process it [14:06:38]SAM_PROTO_GetFieldsCounters [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 13 00 00 [14:06:38]Write to MH i2c: E2 08 00 A8 5C 80 13 00 00 00 00 00 00 80 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 62 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 62 00 A8 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 94 01 00 0E 04 04 00 60 01 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 09 [14:06: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 94 01 00 0E 04 04 00 60 01 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 [14:06:38]wFMCommunicate OK [14:06:38]SAM_PROTO_GetFieldsCounters done [14:06:38]requested_item shift.num is exist - process it [14:06:38]requested_item shift.opened is exist - process it [14:06:38]req_shift_opened [14:06:38]FM_GetShiftState [14:06:38]SAM_PROTO_GetShiftState [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 13 01 00 [14:06:38]Write to MH i2c: E2 08 00 A9 5C 80 13 01 00 00 00 00 00 82 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 0E 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 0E 00 A9 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [14:06:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:06:38]wFMCommunicate OK [14:06:38]SAM_PROTO_GetShiftState done [14:06:38]FM_GetShiftState done [14:06:38]req_shift_opened done [14:06:38]requested_item shift.open_date is exist - process it [14:06:38]req_shift_open_date [14:06:38]req_shift_open_date done [14:06:38]produce_requested_data done [14:06:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103434,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:06:38]process_action_free close_receipt [14:06:38]json_value_free [14:06:38]json_value_free done [14:06:38]process_json_proto returns [14:06:38]Send response to host [14:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103434,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:06:38]free response buf [14:06:38]execute_script done [14:06:38]execute_script returns [14:06:38]free content buf [14:06:38]Sock 7.Close socket [14:06:38]Sock 7.Thread stoped [14:06:42]OFD Sender: No OFD packet to send [14:06:43]accept exits with 9 [14:06:43]New connection [14:06:43]New thread 3067084132 created [14:06:43]Thread 3067227492 joined [14:06:43]Waiting for new connection... [14:06:43] Sock 9.Parse request [14:06:43]Sock 9.Check first char [14:06:43]Sock 9.First char is OK [14:06:43]request: POST /json_proto HTTP/1.0 [14:06:43]Method: POST [14:06:43]URL: /json_proto [14:06:43]Method is POST - this is cgi request [14:06:43]url: /json_proto [14:06:43]query_string will be loaded in cgi processing [14:06:43]execute_cgi json_proto POST (null) [14:06:43]execute_cgi path=json_proto method=POST [14:06:43]POST find Content-Length [14:06:43]Host: 172.17.38.133:8080 [14:06:43]Content-Length: 808 [14:06:43]Content-Type: application/json [14:06:43] [14:06:43]POST finish read [14:06:43]Found Content-Length = 808 [14:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:43]execute_script... [14:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:43]POST & json_proto [14:06:43]process_json_proto [14:06:43]json parsed OK: [14:06:43]protocol is kg_v1.0 [14:06:43]action value=close_receipt [14:06:43]process_action close_receipt [14:06:43]cmd_close_receipt [14:06:43]MH_GetDate [14:06:43]Write to MH i2c: F0 00 00 AA 5C F5 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: F0 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: F0 09 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: F0 09 00 AA 5C 00 7A 94 71 66 BD 8F 7C 64 0F [14:06:43]GetLastDocTimeStamp 1718719601 [14:06:43]current date 1718719610 [14:06:43]FM_GetShiftState [14:06:43]SAM_PROTO_GetShiftState [14:06:43]wFMCommunicate request_size=4 [14:06:43]MH_SAM_APDU [14:06:43]CAPDU: 80 13 01 00 [14:06:43]Write to MH i2c: E2 08 00 AB 5C 80 13 01 00 00 00 00 00 84 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:43]Read from MH i2c: E2 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 0E 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: E2 0E 00 AB 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [14:06:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:06:43]wFMCommunicate OK [14:06:43]SAM_PROTO_GetShiftState done [14:06:43]FM_GetShiftState done [14:06:43]opened in 1718670284 [14:06:43]opened+sec_in_day 1718756684 [14:06:43]quantity*price = 100018 [14:06:43]sum+1 = 100020 [14:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 119 18.06.2024 14:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103435 ФПД: 141310990706844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103435&fm=141310990706844&tin=02508201610067®Number=0000000000092785&sum=100019 [14:06:44]StoreToDocumentArchive [14:06:44]shift 352 fd 103435 [14:06:44]save to /storage/0352/doc_00103435 [14:06:44]save last doc name /storage/0352/doc_00103435 to /storage/kkm_last_doc_name [14:06:44]save OK [14:06:44]Clear old archive folders... [14:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:06:44]tlvbuf is 013EB6E0 [14:06:44]SAM_PROTO_ClearQueue [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 09 00 00 [14:06:44]Write to MH i2c: E2 08 00 B8 5C 80 09 00 00 00 00 00 00 86 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 B8 5C 00 90 00 88 [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]SAM_PROTO_ClearQueue done [14:06:44]KKMCreateOFDPacket [14:06:44]OFDProtocolAddRootSTLVToBuf [14:06:44]FM_MakeSignedData [14:06:44]FM_MakeSignedData [14:06:44]SAM_PROTO_SignData [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 0D 01 02 [14:06:44]Write to MH i2c: E2 08 00 B9 5C 80 0D 01 02 00 00 00 00 8E [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 B9 5C 00 90 00 89 [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=255 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7A 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 94 01 00 35 04 06 00 [14:06:44]Write to MH i2c: E2 02 01 BA 5C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7A 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 94 01 00 35 04 06 00 00 00 65 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 BA 5C 00 90 00 8A [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=11 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 0D 02 02 06 80 85 87 67 68 9C [14:06:44]Write to MH i2c: E2 0E 00 BB 5C 80 0D 02 02 06 00 80 85 87 67 68 9C 00 00 94 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 03 00 BB 5C 00 90 00 8B [14:06:44]RAPDU: 90 00 [14:06:44]wFMCommunicate OK [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 0D 03 02 [14:06:44]Write to MH i2c: E2 08 00 BC 5C 80 0D 03 02 00 00 00 00 93 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:44]Read from MH i2c: E2 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 0B 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: E2 0B 00 BC 5C 00 8E 91 B7 DB B1 68 D9 C9 90 00 00 [14:06:44]RAPDU: 8E 91 B7 DB B1 68 D9 C9 90 00 [14:06:44]wFMCommunicate OK [14:06:44]SAM_PROTO_SignData done [14:06:44]FM_MakeSignedData done [14:06:44]CreateOFDProtocolMessage [14:06:44]wFMCommunicate request_size=4 [14:06:44]MH_SAM_APDU [14:06:44]CAPDU: 80 11 00 00 [14:06:44]Write to MH i2c: E2 08 00 BD 5C 80 11 00 00 00 00 00 00 93 [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:45]Read from MH i2c: E2 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: E2 17 00 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: E2 17 00 BD 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [14:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:45]wFMCommunicate OK [14:06:45]CreateOFDProtocolMessage done [14:06:45]OFDSenderStorePacket 103435 [14:06:45]StoreOFDPacket docnum=103435 [14:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 18 E9 08 01 74 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7A 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 94 01 00 35 04 06 00 80 85 87 67 68 9C 8E 91 B7 DB B1 68 D9 C9 [14:06:45]CheckFolder [14:06:45]dirname=/storage/ofd_packets [14:06:45]CheckFolder done [14:06:45]ProducePacketName [14:06:45]name=ofd_packets/00103435 [14:06:45]NVStorageSaveData ofd_packets/00103435 [14:06:45]File name is /storage/ofd_packets/00103435 [14:06:45]Write 302 bytes [14:06:45]NVStorageSaveData done [14:06:45]OFDSenderStorePacket done [14:06:45]KKMCreateOFDPacket done [14:06:45]NVStorageSaveData kkm_last_timestamp [14:06:45]File name is /storage/kkm_last_timestamp [14:06:45]Write 4 bytes [14:06:45]NVStorageSaveData done [14:06:45]ExternCall_PrintAddStr [14:06:45]wPrintStart [14:06:45]Write to MH i2c: 01 00 00 BE 5C 1A [14:06:45]Write i2c OK [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 07 00 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 07 00 BE 5C 00 00 00 00 00 FF 0F 2F [14:06:45]RasterBufferAndPrint [14:06:45]line Счет N : (1)672598 [14:06:45]line ИНН: 02508201610067 [14:06:45]line Контрольно-Кассовый Чек [14:06:45]line ПРОДАЖА [14:06:45]line ТРК (МРК, ГНК) : 21 [14:06:45]line Товар: 2710194210 [14:06:45]line ДТ(л)-К-5 [14:06:45]line 13.720 * 72.90 [14:06:45]line = 1000.19 [14:06:45]line НДС 12% НСП 1% [14:06:45]line > о реализуемом товаре [14:06:45]line ИТОГО: 1000.19 [14:06:45]line НСП 1% : 8.85 [14:06:45]line НДС 12% : 106.21 [14:06:45]line Наличными: 0.00 [14:06:45]line Безнал.: 1000.19 [14:06:45]line Место: АЗС № 120 "Партнер Нефть" [14:06:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:06:45]line СНО: Общий режим [14:06:45]line Чек 119 18.06.2024 14:06 [14:06:45]line Смена: 352 ФФД: 1.0 [14:06:45]line ЗНМ: 0300000164 [14:06:45]line РНМ: 0000000000092785 [14:06:45]line Версия ККМ: 001 [14:06:45]line Платежная система: O! деньги [14:06:45]line ФМ: 0000000000875093 [14:06:45]line ФД: 103435 [14:06:45]line ФПД: 141310990706844 [14:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103435&fm=141310990706844&tin=02508201610067®Number=0000000000092785&sum=100019 [14:06:45]written 0, free lines is 4095 [14:06:45]OFD Sender: Processing packet 103435 [packets to send 17, broken 16] [14:06:45]ProducePacketName [14:06:45]name=ofd_packets/00103435 [14:06:45]OFD Sender: To server: pG, [14:06:45]CommunicateWithHost lk.salyk.kg:30040 [14:06:45]ConnectInit lk.salyk.kg [14:06:45]Connected sock=10 [14:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 18 E9 08 01 74 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7A 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 94 01 00 35 04 06 00 80 85 87 67 68 9C 8E 91 B7 DB B1 68 D9 C9 [14:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 18 44 47 00 8F C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 94 01 00 F4 03 04 00 06 3B 71 66 B6 04 01 00 00 85 F2 C2 14 77 B4 DD 06 [14:06:45]CommunicateWithHost err = 0 [14:06:45]CheckOFDResponse [14:06:45]1017 (14) - 77093643461234 [14:06:45]1041 (16) - 0000000000875093 [14:06:45]1040 (4) - 103435 [14:06:45]1012 (4) - 18.06.2024 07:45 [14:06:45]1206 (1) - 0 [14:06:45]OFD Sender: Remove packet 103435 [14:06:45]ProducePacketName [14:06:45]name=ofd_packets/00103435 [14:06:45]NVStorageDeleteData [14:06:45]Write to MH i2c: 01 00 00 E8 5C 44 [14:06:45]Write i2c OK [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 07 00 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: 01 07 00 E8 5C 00 00 00 00 00 01 0D 59 [14:06:45]RasterBufferAndPrint [14:06:45]line [14:06:45]line [14:06:45]line [14:06:45]line [14:06:45]line [14:06:45]written 0, free lines is 3341 [14:06:45]MH_Cut [14:06:45]Write to MH i2c: D1 01 00 EF 5C 01 1D [14:06:45]Write i2c OK [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: D1 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: D1 01 00 [14:06:45]MH_I2C_Read... [14:06:45]Read from MH i2c: D1 01 00 EF 5C 00 1C [14:06:45]Write to MH i2c: 01 00 00 F0 5C 4C [14:06:45]Write i2c OK [14:06:45]MH_I2C_Read... [14:06:45]OFD Sender: No OFD packet to send [14:06:46]*** Cut start [14:06:46]*** Partial cut [14:06:46]*** CUTSNS_PIN = 1 [14:06:46]*** CUTSNS_PIN = 0 [14:06:46]*** Brake cut motor [14:06:46]Read from MH i2c: 01 [14:06:46]MH_I2C_Read... [14:06:46]*** Stop cut motor [14:06:46]*** Cut end [14:06:46]Read from MH i2c: 01 07 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: 01 07 00 F0 5C 00 00 00 00 00 FF 0F 61 [14:06:46]process_action close_receipt done [14:06:46]requested_data is exist [14:06:46]produce_requested_data [14:06:46]requested_item fm.sn is exist - process it [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 11 00 00 [14:06:46]Write to MH i2c: E2 08 00 F1 5C 80 11 00 00 00 00 00 00 C7 [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:46]Read from MH i2c: E2 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 17 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: E2 17 00 F1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [14:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:46]wFMCommunicate OK [14:06:46]requested_item fd.num is exist - process it [14:06:46]SAM_PROTO_GetFieldsCounters [14:06:46]wFMCommunicate request_size=4 [14:06:46]MH_SAM_APDU [14:06:46]CAPDU: 80 13 00 00 [14:06:46]Write to MH i2c: E2 08 00 F2 5C 80 13 00 00 00 00 00 00 CA [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 62 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 62 00 F2 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 94 01 00 0E 04 04 00 60 01 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 57 [14:06: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 94 01 00 0E 04 04 00 60 01 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 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetFieldsCounters done [14:06:47]requested_item shift.num is exist - process it [14:06:47]requested_item shift.opened is exist - process it [14:06:47]req_shift_opened [14:06:47]FM_GetShiftState [14:06:47]SAM_PROTO_GetShiftState [14:06:47]wFMCommunicate request_size=4 [14:06:47]MH_SAM_APDU [14:06:47]CAPDU: 80 13 01 00 [14:06:47]Write to MH i2c: E2 08 00 F3 5C 80 13 01 00 00 00 00 00 CC [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 F3 5C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4D [14:06:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetShiftState done [14:06:47]FM_GetShiftState done [14:06:47]req_shift_opened done [14:06:47]requested_item shift.open_date is exist - process it [14:06:47]req_shift_open_date [14:06:47]req_shift_open_date done [14:06:47]produce_requested_data done [14:06:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103435,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:06:47]process_action_free close_receipt [14:06:47]json_value_free [14:06:47]json_value_free done [14:06:47]process_json_proto returns [14:06:47]Send response to host [14:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103435,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:06:47]free response buf [14:06:47]execute_script done [14:06:47]execute_script returns [14:06:47]free content buf [14:06:47]Sock 9.Close socket [14:06:47]Sock 9.Thread stoped [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:06:59]accept exits with 7 [14:06:59]New connection [14:06:59]New thread 3067227492 created [14:06:59]Thread 3067084132 joined [14:06:59]Waiting for new connection... [14:06:59] Sock 7.Parse request [14:06:59]Sock 7.Check first char [14:06:59]Sock 7.First char is OK [14:06:59]request: POST /json_proto HTTP/1.0 [14:06:59]Method: POST [14:06:59]URL: /json_proto [14:06:59]Method is POST - this is cgi request [14:06:59]url: /json_proto [14:06:59]query_string will be loaded in cgi processing [14:06:59]execute_cgi json_proto POST (null) [14:06:59]execute_cgi path=json_proto method=POST [14:06:59]POST find Content-Length [14:06:59]Host: 172.17.38.133:8080 [14:06:59]Content-Length: 1198 [14:06:59]Content-Type: application/json [14:06:59] [14:06:59]POST finish read [14:06:59]Found Content-Length = 1198 [14:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672599\u000A18.06.2024 13:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 2.180 x 72.90\u000A\u0418\u0422\u041E\u0413: 158.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:59]execute_script... [14:06:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672599\u000A18.06.2024 13:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 2.180 x 72.90\u000A\u0418\u0422\u041E\u0413: 158.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:59]POST & json_proto [14:06:59]process_json_proto [14:06:59]json parsed OK: [14:06:59]protocol is kg_v1.0 [14:06:59]action value=print_text [14:06:59]process_action print_text [14:06:59]cmd_print_text [14:06:59]ExternCall_PrintAddStr [14:06:59]wPrintStart [14:06:59]Write to MH i2c: 01 00 00 F4 5C 50 [14:06:59]Write i2c OK [14:06:59]MH_I2C_Read... [14:06:59]Read from MH i2c: 01 [14:06:59]MH_I2C_Read... [14:06:59]Read from MH i2c: 01 07 00 [14:06:59]MH_I2C_Read... [14:06:59]Read from MH i2c: 01 07 00 F4 5C 00 00 00 00 00 FF 0F 65 [14:06:59]RasterBufferAndPrint [14:06:59]line *****ТОВАРНЫЙ ЧЕК***** [14:06:59]line АЗС 120 [14:06:59]line Партнер нефть [14:06:59]line 02508201610067 [14:06:59]line Кассир : Асанбаев Н. [14:06:59]line Счет N : (1)672599 [14:06:59]line 18.06.2024 13:44 [14:06:59]line ПРОДАЖА [14:06:59]line ТРК (МРК, ГНК): 11 [14:06:59]line Вид ГСМ : 2710194210 [14:06:59]line ДТ(л)-К-5 [14:06:59]line 2.180 x 72.90 [14:06:59]line ИТОГ: 158.92 [14:06:59]line Тип оплаты: Талоны: Топливная Карта [14:06:59]line 24058 [14:06:59]line ______________________ [14:06:59]line (подпись) [14:06:59]written 0, free lines is 4095 [14:07:00]Write to MH i2c: 01 00 00 08 5D 65 [14:07:00]Write i2c OK [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: 01 [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: 01 07 00 [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: 01 07 00 08 5D 00 00 00 00 00 0F 0E 89 [14:07:00]RasterBufferAndPrint [14:07:00]line [14:07:00]line [14:07:00]line [14:07:00]line [14:07:00]line [14:07:00]written 0, free lines is 3601 [14:07:00]MH_Cut [14:07:00]Write to MH i2c: D1 01 00 0F 5D 01 3E [14:07:00]Write i2c OK [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: D1 [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: D1 01 00 [14:07:00]MH_I2C_Read... [14:07:00]Read from MH i2c: D1 01 00 0F 5D 00 3D [14:07:00]Write to MH i2c: 01 00 00 10 5D 6D [14:07:00]Write i2c OK [14:07:00]MH_I2C_Read... [14:07:00]*** Cut start [14:07:00]*** Partial cut [14:07:00]*** CUTSNS_PIN = 1 [14:07:00]*** CUTSNS_PIN = 0 [14:07:00]*** Brake cut motor [14:07:01]OFD Sender: No OFD packet to send [14:07:01]Read from MH i2c: 01 [14:07:01]MH_I2C_Read... [14:07:01]*** Stop cut motor [14:07:01]*** Cut end [14:07:01]Read from MH i2c: 01 07 00 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: 01 07 00 10 5D 00 00 00 00 00 FF 0F 82 [14:07:01]process_action print_text done [14:07:01]requested_data is exist [14:07:01]produce_requested_data [14:07:01]requested_item fm.sn is exist - process it [14:07:01]wFMCommunicate request_size=4 [14:07:01]MH_SAM_APDU [14:07:01]CAPDU: 80 11 00 00 [14:07:01]Write to MH i2c: E2 08 00 11 5D 80 11 00 00 00 00 00 00 E8 [14:07:01]Write i2c OK [14:07:01]MH_I2C_Read... [14:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:01]Read from MH i2c: E2 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 17 00 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 17 00 11 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [14:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:07:01]wFMCommunicate OK [14:07:01]requested_item fd.num is exist - process it [14:07:01]SAM_PROTO_GetFieldsCounters [14:07:01]wFMCommunicate request_size=4 [14:07:01]MH_SAM_APDU [14:07:01]CAPDU: 80 13 00 00 [14:07:01]Write to MH i2c: E2 08 00 12 5D 80 13 00 00 00 00 00 00 EB [14:07:01]Write i2c OK [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 [14:07:01]MH_I2C_Read... [14:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:01]Read from MH i2c: E2 62 00 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 62 00 12 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 94 01 00 0E 04 04 00 60 01 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 78 [14:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 94 01 00 0E 04 04 00 60 01 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 [14:07:01]wFMCommunicate OK [14:07:01]SAM_PROTO_GetFieldsCounters done [14:07:01]requested_item shift.num is exist - process it [14:07:01]requested_item shift.opened is exist - process it [14:07:01]req_shift_opened [14:07:01]FM_GetShiftState [14:07:01]SAM_PROTO_GetShiftState [14:07:01]wFMCommunicate request_size=4 [14:07:01]MH_SAM_APDU [14:07:01]CAPDU: 80 13 01 00 [14:07:01]Write to MH i2c: E2 08 00 13 5D 80 13 01 00 00 00 00 00 ED [14:07:01]Write i2c OK [14:07:01]MH_I2C_Read... [14:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:01]Read from MH i2c: E2 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 0E 00 [14:07:01]MH_I2C_Read... [14:07:01]Read from MH i2c: E2 0E 00 13 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [14:07:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:07:01]wFMCommunicate OK [14:07:01]SAM_PROTO_GetShiftState done [14:07:01]FM_GetShiftState done [14:07:01]req_shift_opened done [14:07:01]requested_item shift.open_date is exist - process it [14:07:01]req_shift_open_date [14:07:01]req_shift_open_date done [14:07:01]produce_requested_data done [14:07:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103435,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:07:01]process_action_free print_text [14:07:01]json_value_free [14:07:01]json_value_free done [14:07:01]process_json_proto returns [14:07:01]Send response to host [14:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103435,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:07:01]free response buf [14:07:01]execute_script done [14:07:01]execute_script returns [14:07:01]free content buf [14:07:01]Sock 7.Close socket [14:07:01]Sock 7.Thread stoped [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:07]accept exits with 9 [14:08:07]New connection [14:08:07]New thread 3067084132 created [14:08:07]Thread 3067227492 joined [14:08:07]Waiting for new connection... [14:08:07] Sock 9.Parse request [14:08:07]Sock 9.Check first char [14:08:07]Sock 9.First char is OK [14:08:07]request: POST /json_proto HTTP/1.0 [14:08:07]Method: POST [14:08:07]URL: /json_proto [14:08:07]Method is POST - this is cgi request [14:08:07]url: /json_proto [14:08:07]query_string will be loaded in cgi processing [14:08:07]execute_cgi json_proto POST (null) [14:08:07]execute_cgi path=json_proto method=POST [14:08:07]POST find Content-Length [14:08:07]Host: 172.17.38.133:8080 [14:08:07]Content-Length: 683 [14:08:07]Content-Type: application/json [14:08:07] [14:08:07]POST finish read [14:08:07]Found Content-Length = 683 [14:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.010, "sum" : 948.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 948.00, "total" : 948.00, "payments": [ { "type": 0, "sum" : 948.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:07]execute_script... [14:08: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)672600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.010, "sum" : 948.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 948.00, "total" : 948.00, "payments": [ { "type": 0, "sum" : 948.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:07]POST & json_proto [14:08:07]process_json_proto [14:08:07]json parsed OK: [14:08:07]protocol is kg_v1.0 [14:08:07]action value=close_receipt [14:08:07]process_action close_receipt [14:08:07]cmd_close_receipt [14:08:07]MH_GetDate [14:08:07]Write to MH i2c: F0 00 00 14 5D 60 [14:08:07]Write i2c OK [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 09 00 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: F0 09 00 14 5D 00 CE 94 71 66 BD 8F 7C 64 CE [14:08:07]GetLastDocTimeStamp 1718719610 [14:08:07]current date 1718719694 [14:08:07]FM_GetShiftState [14:08:07]SAM_PROTO_GetShiftState [14:08:07]wFMCommunicate request_size=4 [14:08:07]MH_SAM_APDU [14:08:07]CAPDU: 80 13 01 00 [14:08:07]Write to MH i2c: E2 08 00 15 5D 80 13 01 00 00 00 00 00 EF [14:08:07]Write i2c OK [14:08:07]MH_I2C_Read... [14:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:07]Read from MH i2c: E2 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: E2 0E 00 [14:08:07]MH_I2C_Read... [14:08:07]Read from MH i2c: E2 0E 00 15 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 70 [14:08:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:08:07]wFMCommunicate OK [14:08:07]SAM_PROTO_GetShiftState done [14:08:07]FM_GetShiftState done [14:08:07]opened in 1718670284 [14:08:07]opened+sec_in_day 1718756684 [14:08:07]quantity*price = 94842 [14:08:07]sum+1 = 94844 [14:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 948.00 Внесено: 948.00 СДАЧА: 0.00 НСП 1% : 8.39 НДС 12% : 100.72 Наличными: 948.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 120 18.06.2024 14:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103436 ФПД: 40792268324168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140814&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103436&fm=40792268324168&tin=02508201610067®Number=0000000000092785&sum=94800 [14:08:08]StoreToDocumentArchive [14:08:08]shift 352 fd 103436 [14:08:08]save to /storage/0352/doc_00103436 [14:08:08]save last doc name /storage/0352/doc_00103436 to /storage/kkm_last_doc_name [14:08:08]save OK [14:08:08]Clear old archive folders... [14:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:08:08]tlvbuf is 01370370 [14:08:08]SAM_PROTO_ClearQueue [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 09 00 00 [14:08:08]Write to MH i2c: E2 08 00 22 5D 80 09 00 00 00 00 00 00 F1 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 22 5D 00 90 00 F3 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]SAM_PROTO_ClearQueue done [14:08:08]KKMCreateOFDPacket [14:08:08]OFDProtocolAddRootSTLVToBuf [14:08:08]FM_MakeSignedData [14:08:08]FM_MakeSignedData [14:08:08]SAM_PROTO_SignData [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 0D 01 02 [14:08:08]Write to MH i2c: E2 08 00 23 5D 80 0D 01 02 00 00 00 00 F9 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 23 5D 00 90 00 F4 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]wFMCommunicate request_size=255 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 CE 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 94 01 00 35 04 06 00 [14:08:08]Write to MH i2c: E2 02 01 24 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 CE 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 94 01 00 35 04 06 00 00 00 CE [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 24 5D 00 90 00 F5 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]wFMCommunicate request_size=11 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 0D 02 02 06 25 19 B0 A9 BD 48 [14:08:08]Write to MH i2c: E2 0E 00 25 5D 80 0D 02 02 06 00 25 19 B0 A9 BD 48 00 00 A4 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 03 00 25 5D 00 90 00 F6 [14:08:08]RAPDU: 90 00 [14:08:08]wFMCommunicate OK [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 0D 03 02 [14:08:08]Write to MH i2c: E2 08 00 26 5D 80 0D 03 02 00 00 00 00 FE [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 0B 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 0B 00 26 5D 00 3F 73 57 8C C6 C4 77 24 90 00 B9 [14:08:08]RAPDU: 3F 73 57 8C C6 C4 77 24 90 00 [14:08:08]wFMCommunicate OK [14:08:08]SAM_PROTO_SignData done [14:08:08]FM_MakeSignedData done [14:08:08]CreateOFDProtocolMessage [14:08:08]wFMCommunicate request_size=4 [14:08:08]MH_SAM_APDU [14:08:08]CAPDU: 80 11 00 00 [14:08:08]Write to MH i2c: E2 08 00 27 5D 80 11 00 00 00 00 00 00 FE [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:08]Read from MH i2c: E2 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 17 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: E2 17 00 27 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [14:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:08:08]wFMCommunicate OK [14:08:08]CreateOFDProtocolMessage done [14:08:08]OFDSenderStorePacket 103436 [14:08:08]StoreOFDPacket docnum=103436 [14:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6F 62 08 01 3A DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 CE 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 94 01 00 35 04 06 00 25 19 B0 A9 BD 48 3F 73 57 8C C6 C4 77 24 [14:08:08]CheckFolder [14:08:08]dirname=/storage/ofd_packets [14:08:08]CheckFolder done [14:08:08]ProducePacketName [14:08:08]name=ofd_packets/00103436 [14:08:08]NVStorageSaveData ofd_packets/00103436 [14:08:08]File name is /storage/ofd_packets/00103436 [14:08:08]Write 302 bytes [14:08:08]NVStorageSaveData done [14:08:08]OFDSenderStorePacket done [14:08:08]KKMCreateOFDPacket done [14:08:08]NVStorageSaveData kkm_last_timestamp [14:08:08]File name is /storage/kkm_last_timestamp [14:08:08]Write 4 bytes [14:08:08]NVStorageSaveData done [14:08:08]ExternCall_PrintAddStr [14:08:08]wPrintStart [14:08:08]Write to MH i2c: 01 00 00 28 5D 85 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 07 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 07 00 28 5D 00 00 00 00 00 FF 0F 9A [14:08:08]RasterBufferAndPrint [14:08:08]line Счет N : (1)672600 [14:08:08]line ИНН: 02508201610067 [14:08:08]line Контрольно-Кассовый Чек [14:08:08]line ПРОДАЖА [14:08:08]line ТРК (МРК, ГНК) : 11 [14:08:08]line Товар: 2710194210 [14:08:08]line ДТ(л)-К-5 [14:08:08]line 13.010 * 72.90 [14:08:08]line = 948.43 [14:08:08]line НДС 12% НСП 1% [14:08:08]line > о реализуемом товаре [14:08:08]line ОКРУГЛЕНИЕ: -0.43 [14:08:08]line ИТОГО: 948.00 [14:08:08]line Внесено: 948.00 [14:08:08]line СДАЧА: 0.00 [14:08:08]line НСП 1% : 8.39 [14:08:08]line НДС 12% : 100.72 [14:08:08]line Наличными: 948.00 [14:08:08]line Безнал.: 0.00 [14:08:08]line Место: АЗС № 120 "Партнер Нефть" [14:08:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:08:08]line СНО: Общий режим [14:08:08]line Чек 120 18.06.2024 14:08 [14:08:09]line Смена: 352 ФФД: 1.0 [14:08:09]line ЗНМ: 0300000164 [14:08:09]line РНМ: 0000000000092785 [14:08:09]line Версия ККМ: 001 [14:08:09]line ФМ: 0000000000875093 [14:08:09]line ФД: 103436 [14:08:09]line ФПД: 40792268324168 [14:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T140814&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103436&fm=40792268324168&tin=02508201610067®Number=0000000000092785&sum=94800 [14:08:09]OFD Sender: Processing packet 103436 [packets to send 17, broken 16] [14:08:09]ProducePacketName [14:08:09]name=ofd_packets/00103436 [14:08:09]OFD Sender: To server: pG, [14:08:09]CommunicateWithHost lk.salyk.kg:30040 [14:08:09]ConnectInit lk.salyk.kg [14:08:09]written 0, free lines is 4095 [14:08:09]Connected sock=10 [14:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6F 62 08 01 3A DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 32 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7B 72 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 72 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 27 00 00 00 00 07 04 06 00 50 72 01 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 CE 94 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 94 01 00 35 04 06 00 25 19 B0 A9 BD 48 3F 73 57 8C C6 C4 77 24 [14:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5C 6A 47 00 E0 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 94 01 00 F4 03 04 00 5A 3B 71 66 B6 04 01 00 00 F6 FC 1A FC BA 6A 65 A6 [14:08:09]CommunicateWithHost err = 0 [14:08:09]CheckOFDResponse [14:08:09]1017 (14) - 77093643461234 [14:08:09]1041 (16) - 0000000000875093 [14:08:09]1040 (4) - 103436 [14:08:09]1012 (4) - 18.06.2024 07:46 [14:08:09]1206 (1) - 0 [14:08:09]OFD Sender: Remove packet 103436 [14:08:09]ProducePacketName [14:08:09]name=ofd_packets/00103436 [14:08:09]NVStorageDeleteData [14:08:09]Write to MH i2c: 01 00 00 53 5D B0 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: 01 07 00 53 5D 00 00 00 00 00 EF 0C B2 [14:08:09]RasterBufferAndPrint [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]line [14:08:09]written 0, free lines is 3317 [14:08:09]MH_Cut [14:08:09]Write to MH i2c: D1 01 00 5A 5D 01 89 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 01 00 [14:08:09]MH_I2C_Read... [14:08:09]Read from MH i2c: D1 01 00 5A 5D 00 88 [14:08:09]Write to MH i2c: 01 00 00 5B 5D B8 [14:08:09]Write i2c OK [14:08:09]MH_I2C_Read... [14:08:10]OFD Sender: No OFD packet to send [14:08:10]*** Cut start [14:08:10]*** Partial cut [14:08:10]*** CUTSNS_PIN = 1 [14:08:10]*** CUTSNS_PIN = 0 [14:08:10]*** Brake cut motor [14:08:11]Read from MH i2c: 01 [14:08:11]MH_I2C_Read... [14:08:11]*** Stop cut motor [14:08:11]*** Cut end [14:08:11]Read from MH i2c: 01 07 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: 01 07 00 5B 5D 00 00 00 00 00 FF 0F CD [14:08:11]process_action close_receipt done [14:08:11]requested_data is exist [14:08:11]produce_requested_data [14:08:11]requested_item fm.sn is exist - process it [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 11 00 00 [14:08:11]Write to MH i2c: E2 08 00 5C 5D 80 11 00 00 00 00 00 00 33 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 5C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [14:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:08:11]wFMCommunicate OK [14:08:11]requested_item fd.num is exist - process it [14:08:11]SAM_PROTO_GetFieldsCounters [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 13 00 00 [14:08:11]Write to MH i2c: E2 08 00 5D 5D 80 13 00 00 00 00 00 00 36 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 62 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 62 00 5D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 94 01 00 0E 04 04 00 60 01 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 C7 [14:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 94 01 00 0E 04 04 00 60 01 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 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_GetFieldsCounters done [14:08:11]requested_item shift.num is exist - process it [14:08:11]requested_item shift.opened is exist - process it [14:08:11]req_shift_opened [14:08:11]FM_GetShiftState [14:08:11]SAM_PROTO_GetShiftState [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 13 01 00 [14:08:11]Write to MH i2c: E2 08 00 5E 5D 80 13 01 00 00 00 00 00 38 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0E 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0E 00 5E 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [14:08:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_GetShiftState done [14:08:11]FM_GetShiftState done [14:08:11]req_shift_opened done [14:08:11]requested_item shift.open_date is exist - process it [14:08:11]req_shift_open_date [14:08:11]req_shift_open_date done [14:08:11]produce_requested_data done [14:08:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103436,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:08:11]process_action_free close_receipt [14:08:11]json_value_free [14:08:11]json_value_free done [14:08:11]process_json_proto returns [14:08:11]Send response to host [14:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103436,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:08:11]free response buf [14:08:11]execute_script done [14:08:11]execute_script returns [14:08:11]free content buf [14:08:11]Sock 9.Close socket [14:08:11]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:26]accept exits with 7 [14:11:26]New connection [14:11:26]New thread 3067227492 created [14:11:26]Thread 3067084132 joined [14:11:26]Waiting for new connection... [14:11:26] Sock 7.Parse request [14:11:26]Sock 7.Check first char [14:11:26]Sock 7.First char is OK [14:11:26]request: POST /json_proto HTTP/1.0 [14:11:26]Method: POST [14:11:26]URL: /json_proto [14:11:26]Method is POST - this is cgi request [14:11:26]url: /json_proto [14:11:26]query_string will be loaded in cgi processing [14:11:26]execute_cgi json_proto POST (null) [14:11:26]execute_cgi path=json_proto method=POST [14:11:26]POST find Content-Length [14:11:26]Host: 172.17.38.133:8080 [14:11:26]Content-Length: 682 [14:11:26]Content-Type: application/json [14:11:26] [14:11:26]POST finish read [14:11:26]Found Content-Length = 682 [14:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:26]execute_script... [14:11:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:26]POST & json_proto [14:11:26]process_json_proto [14:11:26]json parsed OK: [14:11:26]protocol is kg_v1.0 [14:11:26]action value=close_receipt [14:11:26]process_action close_receipt [14:11:26]cmd_close_receipt [14:11:26]MH_GetDate [14:11:26]Write to MH i2c: F0 00 00 5F 5D AB [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: F0 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: F0 09 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: F0 09 00 5F 5D 00 95 95 71 66 BD 8F 7C 64 E1 [14:11:26]GetLastDocTimeStamp 1718719694 [14:11:26]current date 1718719893 [14:11:26]FM_GetShiftState [14:11:26]SAM_PROTO_GetShiftState [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 13 01 00 [14:11:26]Write to MH i2c: E2 08 00 60 5D 80 13 01 00 00 00 00 00 3A [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 60 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [14:11:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_GetShiftState done [14:11:26]FM_GetShiftState done [14:11:26]opened in 1718670284 [14:11:26]opened+sec_in_day 1718756684 [14:11:26]quantity*price = 200063 [14:11:26]sum+1 = 200064 [14:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 121 18.06.2024 14:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103437 ФПД: 85045783120291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141133&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103437&fm=85045783120291&tin=02508201610067®Number=0000000000092785&sum=200000 [14:11:27]StoreToDocumentArchive [14:11:27]shift 352 fd 103437 [14:11:27]save to /storage/0352/doc_00103437 [14:11:27]save last doc name /storage/0352/doc_00103437 to /storage/kkm_last_doc_name [14:11:27]save OK [14:11:27]Clear old archive folders... [14:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:27]tlvbuf is 014161E0 [14:11:27]SAM_PROTO_ClearQueue [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 09 00 00 [14:11:27]Write to MH i2c: E2 08 00 6D 5D 80 09 00 00 00 00 00 00 3C [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 [14:11:27]MH_I2C_Read... [14:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:27]Read from MH i2c: E2 03 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 03 00 6D 5D 00 90 00 3E [14:11:27]RAPDU: 90 00 [14:11:27]wFMCommunicate OK [14:11:27]SAM_PROTO_ClearQueue done [14:11:27]KKMCreateOFDPacket [14:11:27]OFDProtocolAddRootSTLVToBuf [14:11:27]FM_MakeSignedData [14:11:27]FM_MakeSignedData [14:11:27]SAM_PROTO_SignData [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 0D 01 02 [14:11:27]Write to MH i2c: E2 08 00 6E 5D 80 0D 01 02 00 00 00 00 44 [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 6E 5D 00 90 00 3F [14:11:28]RAPDU: 90 00 [14:11:28]wFMCommunicate OK [14:11:28]wFMCommunicate request_size=255 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 79 00 00 00 F4 03 04 00 95 95 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 94 01 00 35 04 06 00 4D [14:11:28]Write to MH i2c: E2 02 01 6F 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 79 00 00 00 F4 03 04 00 95 95 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 94 01 00 35 04 06 00 4D 00 00 BD [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 6F 5D 00 90 00 40 [14:11:28]RAPDU: 90 00 [14:11:28]wFMCommunicate OK [14:11:28]wFMCommunicate request_size=10 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 0D 02 02 05 59 43 B1 49 A3 [14:11:28]Write to MH i2c: E2 0D 00 70 5D 80 0D 02 02 05 00 59 43 B1 49 A3 00 00 8A [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 03 00 70 5D 00 90 00 41 [14:11:28]RAPDU: 90 00 [14:11:28]wFMCommunicate OK [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 0D 03 02 [14:11:28]Write to MH i2c: E2 08 00 71 5D 80 0D 03 02 00 00 00 00 49 [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0B 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0B 00 71 5D 00 37 39 60 30 36 89 62 DD 90 00 48 [14:11:28]RAPDU: 37 39 60 30 36 89 62 DD 90 00 [14:11:28]wFMCommunicate OK [14:11:28]SAM_PROTO_SignData done [14:11:28]FM_MakeSignedData done [14:11:28]CreateOFDProtocolMessage [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 11 00 00 [14:11:28]Write to MH i2c: E2 08 00 72 5D 80 11 00 00 00 00 00 00 49 [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 17 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 17 00 72 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [14:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:11:28]wFMCommunicate OK [14:11:28]CreateOFDProtocolMessage done [14:11:28]OFDSenderStorePacket 103437 [14:11:28]StoreOFDPacket docnum=103437 [14:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B 05 07 01 D4 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 79 00 00 00 F4 03 04 00 95 95 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 94 01 00 35 04 06 00 4D 59 43 B1 49 A3 37 39 60 30 36 89 62 DD [14:11:28]CheckFolder [14:11:28]dirname=/storage/ofd_packets [14:11:28]CheckFolder done [14:11:28]ProducePacketName [14:11:28]name=ofd_packets/00103437 [14:11:28]NVStorageSaveData ofd_packets/00103437 [14:11:28]File name is /storage/ofd_packets/00103437 [14:11:28]Write 301 bytes [14:11:28]NVStorageSaveData done [14:11:28]OFDSenderStorePacket done [14:11:28]KKMCreateOFDPacket done [14:11:28]NVStorageSaveData kkm_last_timestamp [14:11:28]File name is /storage/kkm_last_timestamp [14:11:28]Write 4 bytes [14:11:28]NVStorageSaveData done [14:11:28]ExternCall_PrintAddStr [14:11:28]wPrintStart [14:11:28]Write to MH i2c: 01 00 00 73 5D D0 [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: 01 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: 01 07 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: 01 07 00 73 5D 00 00 00 00 00 FF 0F E5 [14:11:28]RasterBufferAndPrint [14:11:28]line Счет N : (1)672601 [14:11:28]line ИНН: 02508201610067 [14:11:28]line Контрольно-Кассовый Чек [14:11:28]line ПРОДАЖА [14:11:28]line ТРК (МРК, ГНК) : 32 [14:11:28]line Товар: 2710124130 [14:11:28]line Аи-92-К-5 [14:11:28]line 30.130 * 66.40 [14:11:28]line = 2000.63 [14:11:28]line НДС 12% НСП 1% [14:11:28]line > о реализуемом товаре [14:11:28]line ОКРУГЛЕНИЕ: -0.63 [14:11:28]line ИТОГО: 2000.00 [14:11:28]line Внесено: 2000.00 [14:11:28]line СДАЧА: 0.00 [14:11:28]line НСП 1% : 17.70 [14:11:28]line НДС 12% : 212.46 [14:11:28]line Наличными: 2000.00 [14:11:28]line Безнал.: 0.00 [14:11:28]line Место: АЗС № 120 "Партнер Нефть" [14:11:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:11:28]line СНО: Общий режим [14:11:28]line Чек 121 18.06.2024 14:11 [14:11:28]line Смена: 352 ФФД: 1.0 [14:11:28]line ЗНМ: 0300000164 [14:11:28]line РНМ: 0000000000092785 [14:11:28]line Версия ККМ: 001 [14:11:28]line ФМ: 0000000000875093 [14:11:28]line ФД: 103437 [14:11:28]line ФПД: 85045783120291 [14:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141133&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103437&fm=85045783120291&tin=02508201610067®Number=0000000000092785&sum=200000 [14:11:28]OFD Sender: Processing packet 103437 [packets to send 17, broken 16] [14:11:28]ProducePacketName [14:11:28]name=ofd_packets/00103437 [14:11:28]OFD Sender: To server: pG, [14:11:28]CommunicateWithHost lk.salyk.kg:30040 [14:11:28]ConnectInit lk.salyk.kg [14:11:28]written 0, free lines is 4095 [14:11:28]Connected sock=10 [14: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 35 30 39 33 0F 01 00 00 2B 05 07 01 D4 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 79 00 00 00 F4 03 04 00 95 95 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 94 01 00 35 04 06 00 4D 59 43 B1 49 A3 37 39 60 30 36 89 62 DD [14:11:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 64 16 47 00 22 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 94 01 00 F4 03 04 00 21 3C 71 66 B6 04 01 00 00 D8 E4 99 E2 C2 67 F3 A9 [14:11:29]CommunicateWithHost err = 0 [14:11:29]CheckOFDResponse [14:11:29]1017 (14) - 77093643461234 [14:11:29]1041 (16) - 0000000000875093 [14:11:29]1040 (4) - 103437 [14:11:29]1012 (4) - 18.06.2024 07:49 [14:11:29]1206 (1) - 0 [14:11:29]OFD Sender: Remove packet 103437 [14:11:29]ProducePacketName [14:11:29]name=ofd_packets/00103437 [14:11:29]NVStorageDeleteData [14:11:29]Write to MH i2c: 01 00 00 9E 5D FB [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 9E 5D 00 00 00 00 00 E2 0C F0 [14:11:29]RasterBufferAndPrint [14:11:29]line [14:11:29]line [14:11:29]line [14:11:29]line [14:11:29]line [14:11:29]written 0, free lines is 3307 [14:11:29]MH_Cut [14:11:29]Write to MH i2c: D1 01 00 A5 5D 01 D4 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: D1 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: D1 01 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: D1 01 00 A5 5D 00 D3 [14:11:29]Write to MH i2c: 01 00 00 A6 5D 03 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]OFD Sender: No OFD packet to send [14:11:29]*** Cut start [14:11:29]*** Partial cut [14:11:29]*** CUTSNS_PIN = 1 [14:11:30]*** CUTSNS_PIN = 0 [14:11:30]*** Brake cut motor [14:11:30]Read from MH i2c: 01 [14:11:30]MH_I2C_Read... [14:11:30]*** Stop cut motor [14:11:30]*** Cut end [14:11:30]Read from MH i2c: 01 07 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 07 00 A6 5D 00 00 00 00 00 FF 0F 18 [14:11:30]process_action close_receipt done [14:11:30]requested_data is exist [14:11:30]produce_requested_data [14:11:30]requested_item fm.sn is exist - process it [14:11:30]wFMCommunicate request_size=4 [14:11:30]MH_SAM_APDU [14:11:30]CAPDU: 80 11 00 00 [14:11:30]Write to MH i2c: E2 08 00 A7 5D 80 11 00 00 00 00 00 00 7E [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:30]Read from MH i2c: E2 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 17 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 17 00 A7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [14:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:11:30]wFMCommunicate OK [14:11:30]requested_item fd.num is exist - process it [14:11:30]SAM_PROTO_GetFieldsCounters [14:11:30]wFMCommunicate request_size=4 [14:11:30]MH_SAM_APDU [14:11:30]CAPDU: 80 13 00 00 [14:11:30]Write to MH i2c: E2 08 00 A8 5D 80 13 00 00 00 00 00 00 81 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:30]Read from MH i2c: E2 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 62 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 62 00 A8 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 94 01 00 0E 04 04 00 60 01 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 16 [14: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 94 01 00 0E 04 04 00 60 01 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 [14:11:30]wFMCommunicate OK [14:11:30]SAM_PROTO_GetFieldsCounters done [14:11:30]requested_item shift.num is exist - process it [14:11:30]requested_item shift.opened is exist - process it [14:11:30]req_shift_opened [14:11:30]FM_GetShiftState [14:11:30]SAM_PROTO_GetShiftState [14:11:30]wFMCommunicate request_size=4 [14:11:30]MH_SAM_APDU [14:11:30]CAPDU: 80 13 01 00 [14:11:30]Write to MH i2c: E2 08 00 A9 5D 80 13 01 00 00 00 00 00 83 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:30]Read from MH i2c: E2 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 0E 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 0E 00 A9 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [14:11:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:11:30]wFMCommunicate OK [14:11:30]SAM_PROTO_GetShiftState done [14:11:30]FM_GetShiftState done [14:11:30]req_shift_opened done [14:11:30]requested_item shift.open_date is exist - process it [14:11:30]req_shift_open_date [14:11:30]req_shift_open_date done [14:11:30]produce_requested_data done [14:11:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103437,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:11:30]process_action_free close_receipt [14:11:30]json_value_free [14:11:30]json_value_free done [14:11:30]process_json_proto returns [14:11:30]Send response to host [14:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103437,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:11:30]free response buf [14:11:30]execute_script done [14:11:30]execute_script returns [14:11:30]free content buf [14:11:30]Sock 7.Close socket [14:11:30]Sock 7.Thread stoped [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:00]accept exits with 9 [14:15:00]New connection [14:15:00]New thread 3067084132 created [14:15:00]Thread 3067227492 joined [14:15:00]Waiting for new connection... [14:15:00] Sock 9.Parse request [14:15:00]Sock 9.Check first char [14:15:00]Sock 9.First char is OK [14:15:00]request: POST /json_proto HTTP/1.0 [14:15:00]Method: POST [14:15:00]URL: /json_proto [14:15:00]Method is POST - this is cgi request [14:15:00]url: /json_proto [14:15:00]query_string will be loaded in cgi processing [14:15:00]execute_cgi json_proto POST (null) [14:15:00]execute_cgi path=json_proto method=POST [14:15:00]POST find Content-Length [14:15:00]Host: 172.17.38.133:8080 [14:15:00]Content-Length: 687 [14:15:00]Content-Type: application/json [14:15:00] [14:15:00]POST finish read [14:15:00]Found Content-Length = 687 [14:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:00]execute_script... [14:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:00]POST & json_proto [14:15:00]process_json_proto [14:15:00]json parsed OK: [14:15:00]protocol is kg_v1.0 [14:15:00]action value=close_receipt [14:15:00]process_action close_receipt [14:15:00]cmd_close_receipt [14:15:00]MH_GetDate [14:15:00]Write to MH i2c: F0 00 00 AA 5D F6 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: F0 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: F0 09 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: F0 09 00 AA 5D 00 6C 96 71 66 BD 8F 7C 64 04 [14:15:00]GetLastDocTimeStamp 1718719893 [14:15:00]current date 1718720108 [14:15:00]FM_GetShiftState [14:15:00]SAM_PROTO_GetShiftState [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 13 01 00 [14:15:00]Write to MH i2c: E2 08 00 AB 5D 80 13 01 00 00 00 00 00 85 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0E 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0E 00 AB 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 06 [14:15:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:15:01]wFMCommunicate OK [14:15:01]SAM_PROTO_GetShiftState done [14:15:01]FM_GetShiftState done [14:15:01]opened in 1718670284 [14:15:01]opened+sec_in_day 1718756684 [14:15:01]quantity*price = 200037 [14:15:01]sum+1 = 200039 [14:15:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 122 18.06.2024 14:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103438 ФПД: 246404414218830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141508&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103438&fm=246404414218830&tin=02508201610067®Number=0000000000092785&sum=200000 [14:15:02]StoreToDocumentArchive [14:15:02]shift 352 fd 103438 [14:15:02]save to /storage/0352/doc_00103438 [14:15:02]save last doc name /storage/0352/doc_00103438 to /storage/kkm_last_doc_name [14:15:02]save OK [14:15:02]Clear old archive folders... [14:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:15:02]tlvbuf is 0137D150 [14:15:02]SAM_PROTO_ClearQueue [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 09 00 00 [14:15:02]Write to MH i2c: E2 08 00 B8 5D 80 09 00 00 00 00 00 00 87 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 B8 5D 00 90 00 89 [14:15:02]RAPDU: 90 00 [14:15:02]wFMCommunicate OK [14:15:02]SAM_PROTO_ClearQueue done [14:15:02]KKMCreateOFDPacket [14:15:02]OFDProtocolAddRootSTLVToBuf [14:15:02]FM_MakeSignedData [14:15:02]FM_MakeSignedData [14:15:02]SAM_PROTO_SignData [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 0D 01 02 [14:15:02]Write to MH i2c: E2 08 00 B9 5D 80 0D 01 02 00 00 00 00 8F [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 B9 5D 00 90 00 8A [14:15:02]RAPDU: 90 00 [14:15:02]wFMCommunicate OK [14:15:02]wFMCommunicate request_size=255 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6C 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 94 01 00 35 04 06 00 [14:15:02]Write to MH i2c: E2 02 01 BA 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6C 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 94 01 00 35 04 06 00 00 00 B5 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 BA 5D 00 90 00 8B [14:15:02]RAPDU: 90 00 [14:15:02]wFMCommunicate OK [14:15:02]wFMCommunicate request_size=11 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 0D 02 02 06 E0 1A 7F 94 A2 4E [14:15:02]Write to MH i2c: E2 0E 00 BB 5D 80 0D 02 02 06 00 E0 1A 7F 94 A2 4E 00 00 9B [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 03 00 BB 5D 00 90 00 8C [14:15:02]RAPDU: 90 00 [14:15:02]wFMCommunicate OK [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 0D 03 02 [14:15:02]Write to MH i2c: E2 08 00 BC 5D 80 0D 03 02 00 00 00 00 94 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 0B 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 0B 00 BC 5D 00 49 63 85 BA 05 87 1D F4 90 00 1D [14:15:02]RAPDU: 49 63 85 BA 05 87 1D F4 90 00 [14:15:02]wFMCommunicate OK [14:15:02]SAM_PROTO_SignData done [14:15:02]FM_MakeSignedData done [14:15:02]CreateOFDProtocolMessage [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 11 00 00 [14:15:02]Write to MH i2c: E2 08 00 BD 5D 80 11 00 00 00 00 00 00 94 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 17 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 17 00 BD 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [14:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:15:02]wFMCommunicate OK [14:15:02]CreateOFDProtocolMessage done [14:15:02]OFDSenderStorePacket 103438 [14:15:02]StoreOFDPacket docnum=103438 [14:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 89 2E 08 01 4A 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6C 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 94 01 00 35 04 06 00 E0 1A 7F 94 A2 4E 49 63 85 BA 05 87 1D F4 [14:15:02]CheckFolder [14:15:02]dirname=/storage/ofd_packets [14:15:02]CheckFolder done [14:15:02]ProducePacketName [14:15:02]name=ofd_packets/00103438 [14:15:02]NVStorageSaveData ofd_packets/00103438 [14:15:02]File name is /storage/ofd_packets/00103438 [14:15:02]Write 302 bytes [14:15:02]NVStorageSaveData done [14:15:02]OFDSenderStorePacket done [14:15:02]KKMCreateOFDPacket done [14:15:02]NVStorageSaveData kkm_last_timestamp [14:15:02]File name is /storage/kkm_last_timestamp [14:15:02]Write 4 bytes [14:15:02]NVStorageSaveData done [14:15:02]ExternCall_PrintAddStr [14:15:02]wPrintStart [14:15:02]Write to MH i2c: 01 00 00 BE 5D 1B [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 BE 5D 00 00 00 00 00 FF 0F 30 [14:15:02]RasterBufferAndPrint [14:15:02]line Счет N : (1)672602 [14:15:02]line ИНН: 02508201610067 [14:15:02]line Контрольно-Кассовый Чек [14:15:02]line ПРОДАЖА [14:15:02]line ТРК (МРК, ГНК) : 21 [14:15:02]line Товар: 2710194210 [14:15:02]line ДТ(л)-К-5 [14:15:02]line 27.440 * 72.90 [14:15:02]line = 2000.38 [14:15:02]line НДС 12% НСП 1% [14:15:02]line > о реализуемом товаре [14:15:02]line ОКРУГЛЕНИЕ: -0.38 [14:15:02]line ИТОГО: 2000.00 [14:15:02]line Внесено: 2000.00 [14:15:02]line СДАЧА: 0.00 [14:15:02]line НСП 1% : 17.70 [14:15:02]line НДС 12% : 212.43 [14:15:02]line Наличными: 2000.00 [14:15:02]line Безнал.: 0.00 [14:15:02]line Место: АЗС № 120 "Партнер Нефть" [14:15:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:15:02]line СНО: Общий режим [14:15:02]line Чек 122 18.06.2024 14:15 [14:15:02]line Смена: 352 ФФД: 1.0 [14:15:02]line ЗНМ: 0300000164 [14:15:02]line РНМ: 0000000000092785 [14:15:02]line Версия ККМ: 001 [14:15:02]line ФМ: 0000000000875093 [14:15:02]line ФД: 103438 [14:15:02]line ФПД: 246404414218830 [14:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141508&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103438&fm=246404414218830&tin=02508201610067®Number=0000000000092785&sum=200000 [14:15:02]OFD Sender: Processing packet 103438 [packets to send 17, broken 16] [14:15:02]ProducePacketName [14:15:02]name=ofd_packets/00103438 [14:15:02]OFD Sender: To server: pG, [14:15:02]CommunicateWithHost lk.salyk.kg:30040 [14:15:02]ConnectInit lk.salyk.kg [14:15:02]written 0, free lines is 4095 [14:15:03]Connected sock=10 [14:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 89 2E 08 01 4A 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6C 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 94 01 00 35 04 06 00 E0 1A 7F 94 A2 4E 49 63 85 BA 05 87 1D F4 [14:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA 8E 47 00 C1 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 35 30 39 33 10 04 04 00 0E 94 01 00 F4 03 04 00 F7 3C 71 66 B6 04 01 00 00 85 83 65 1F 36 6C 13 87 [14:15:03]CommunicateWithHost err = 0 [14:15:03]CheckOFDResponse [14:15:03]1017 (14) - 77093643461234 [14:15:03]1041 (16) - 0000000000875093 [14:15:03]1040 (4) - 103438 [14:15:03]1012 (4) - 18.06.2024 07:53 [14:15:03]1206 (1) - 0 [14:15:03]OFD Sender: Remove packet 103438 [14:15:03]ProducePacketName [14:15:03]name=ofd_packets/00103438 [14:15:03]NVStorageDeleteData [14:15:03]Write to MH i2c: 01 00 00 E9 5D 46 [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: 01 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: 01 07 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: 01 07 00 E9 5D 00 00 00 00 00 EC 0C 45 [14:15:03]RasterBufferAndPrint [14:15:03]line [14:15:03]line [14:15:03]line [14:15:03]line [14:15:03]line [14:15:03]written 0, free lines is 3314 [14:15:03]MH_Cut [14:15:03]Write to MH i2c: D1 01 00 F0 5D 01 1F [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: D1 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: D1 01 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: D1 01 00 F0 5D 00 1E [14:15:03]Write to MH i2c: 01 00 00 F1 5D 4E [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]OFD Sender: No OFD packet to send [14:15:04]*** Cut start [14:15:04]*** Partial cut [14:15:04]*** CUTSNS_PIN = 1 [14:15:04]*** CUTSNS_PIN = 0 [14:15:04]*** Brake cut motor [14:15:04]Read from MH i2c: 01 [14:15:04]MH_I2C_Read... [14:15:04]*** Stop cut motor [14:15:04]*** Cut end [14:15:04]Read from MH i2c: 01 07 00 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: 01 07 00 F1 5D 00 00 00 00 00 FF 0F 63 [14:15:04]process_action close_receipt done [14:15:04]requested_data is exist [14:15:04]produce_requested_data [14:15:04]requested_item fm.sn is exist - process it [14:15:04]wFMCommunicate request_size=4 [14:15:04]MH_SAM_APDU [14:15:04]CAPDU: 80 11 00 00 [14:15:04]Write to MH i2c: E2 08 00 F2 5D 80 11 00 00 00 00 00 00 C9 [14:15:04]Write i2c OK [14:15:04]MH_I2C_Read... [14:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:04]Read from MH i2c: E2 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 17 00 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 17 00 F2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [14:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:15:04]wFMCommunicate OK [14:15:04]requested_item fd.num is exist - process it [14:15:04]SAM_PROTO_GetFieldsCounters [14:15:04]wFMCommunicate request_size=4 [14:15:04]MH_SAM_APDU [14:15:04]CAPDU: 80 13 00 00 [14:15:04]Write to MH i2c: E2 08 00 F3 5D 80 13 00 00 00 00 00 00 CC [14:15:04]Write i2c OK [14:15:04]MH_I2C_Read... [14:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:04]Read from MH i2c: E2 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 62 00 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 62 00 F3 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 94 01 00 0E 04 04 00 60 01 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 65 [14:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 94 01 00 0E 04 04 00 60 01 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 [14:15:04]wFMCommunicate OK [14:15:04]SAM_PROTO_GetFieldsCounters done [14:15:04]requested_item shift.num is exist - process it [14:15:04]requested_item shift.opened is exist - process it [14:15:04]req_shift_opened [14:15:04]FM_GetShiftState [14:15:04]SAM_PROTO_GetShiftState [14:15:04]wFMCommunicate request_size=4 [14:15:04]MH_SAM_APDU [14:15:04]CAPDU: 80 13 01 00 [14:15:04]Write to MH i2c: E2 08 00 F4 5D 80 13 01 00 00 00 00 00 CE [14:15:04]Write i2c OK [14:15:04]MH_I2C_Read... [14:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:05]Read from MH i2c: E2 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 F4 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [14:15:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:15:05]wFMCommunicate OK [14:15:05]SAM_PROTO_GetShiftState done [14:15:05]FM_GetShiftState done [14:15:05]req_shift_opened done [14:15:05]requested_item shift.open_date is exist - process it [14:15:05]req_shift_open_date [14:15:05]req_shift_open_date done [14:15:05]produce_requested_data done [14:15:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103438,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:15:05]process_action_free close_receipt [14:15:05]json_value_free [14:15:05]json_value_free done [14:15:05]process_json_proto returns [14:15:05]Send response to host [14:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103438,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:15:05]free response buf [14:15:05]execute_script done [14:15:05]execute_script returns [14:15:05]free content buf [14:15:05]Sock 9.Close socket [14:15:05]Sock 9.Thread stoped [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:22]accept exits with 7 [14:16:22]New connection [14:16:22]New thread 3067227492 created [14:16:22]Thread 3067084132 joined [14:16:22]Waiting for new connection... [14:16:22] Sock 7.Parse request [14:16:22]Sock 7.Check first char [14:16:22]Sock 7.First char is OK [14:16:22]request: POST /json_proto HTTP/1.0 [14:16:22]Method: POST [14:16:22]URL: /json_proto [14:16:22]Method is POST - this is cgi request [14:16:22]url: /json_proto [14:16:22]query_string will be loaded in cgi processing [14:16:22]execute_cgi json_proto POST (null) [14:16:22]execute_cgi path=json_proto method=POST [14:16:22]POST find Content-Length [14:16:22]Host: 172.17.38.133:8080 [14:16:22]Content-Length: 819 [14:16:22]Content-Type: application/json [14:16:22] [14:16:22]POST finish read [14:16:22]Found Content-Length = 819 [14:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 34.540, "sum" : 2552.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2552.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:22]execute_script... [14:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 34.540, "sum" : 2552.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2552.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:22]POST & json_proto [14:16:22]process_json_proto [14:16:22]json parsed OK: [14:16:22]protocol is kg_v1.0 [14:16:22]action value=close_receipt [14:16:22]process_action close_receipt [14:16:22]cmd_close_receipt [14:16:22]MH_GetDate [14:16:22]Write to MH i2c: F0 00 00 F5 5D 41 [14:16:22]Write i2c OK [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 09 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 09 00 F5 5D 00 BD 96 71 66 BD 8F 7C 64 A0 [14:16:22]GetLastDocTimeStamp 1718720108 [14:16:22]current date 1718720189 [14:16:22]FM_GetShiftState [14:16:22]SAM_PROTO_GetShiftState [14:16:22]wFMCommunicate request_size=4 [14:16:22]MH_SAM_APDU [14:16:22]CAPDU: 80 13 01 00 [14:16:22]Write to MH i2c: E2 08 00 F6 5D 80 13 01 00 00 00 00 00 D0 [14:16:22]Write i2c OK [14:16:22]MH_I2C_Read... [14:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:22]Read from MH i2c: E2 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 F6 5D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 51 [14:16:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:16:22]wFMCommunicate OK [14:16:22]SAM_PROTO_GetShiftState done [14:16:22]FM_GetShiftState done [14:16:22]opened in 1718670284 [14:16:22]opened+sec_in_day 1718756684 [14:16:22]quantity*price = 255250 [14:16:22]sum+1 = 255252 [14:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2552.51 НСП 1% : 22.59 НДС 12% : 271.06 Наличными: 0.00 Безнал.: 2552.51 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 123 18.06.2024 14:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103439 ФПД: 152531591346999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103439&fm=152531591346999&tin=02508201610067®Number=0000000000092785&sum=255251 [14:16:23]StoreToDocumentArchive [14:16:23]shift 352 fd 103439 [14:16:23]save to /storage/0352/doc_00103439 [14:16:23]save last doc name /storage/0352/doc_00103439 to /storage/kkm_last_doc_name [14:16:23]save OK [14:16:23]Clear old archive folders... [14:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:23]tlvbuf is 01368EF0 [14:16:23]SAM_PROTO_ClearQueue [14:16:23]wFMCommunicate request_size=4 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 09 00 00 [14:16:23]Write to MH i2c: E2 08 00 03 5E 80 09 00 00 00 00 00 00 D3 [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:23]Read from MH i2c: E2 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 03 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 03 00 03 5E 00 90 00 D5 [14:16:23]RAPDU: 90 00 [14:16:23]wFMCommunicate OK [14:16:23]SAM_PROTO_ClearQueue done [14:16:23]KKMCreateOFDPacket [14:16:23]OFDProtocolAddRootSTLVToBuf [14:16:23]FM_MakeSignedData [14:16:23]FM_MakeSignedData [14:16:23]SAM_PROTO_SignData [14:16:23]wFMCommunicate request_size=4 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 0D 01 02 [14:16:23]Write to MH i2c: E2 08 00 04 5E 80 0D 01 02 00 00 00 00 DB [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:23]OFD Sender: No OFD packet to send [14:16:23]Read from MH i2c: E2 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 03 00 [14:16:23]MH_I2C_Read... [14:16:23]Read from MH i2c: E2 03 00 04 5E 00 90 00 D6 [14:16:23]RAPDU: 90 00 [14:16:23]wFMCommunicate OK [14:16:23]wFMCommunicate request_size=255 [14:16:23]MH_SAM_APDU [14:16:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 13 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BD 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 94 01 00 35 04 06 00 8A [14:16:23]Write to MH i2c: E2 02 01 05 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 13 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BD 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 94 01 00 35 04 06 00 8A 00 00 A6 [14:16:23]Write i2c OK [14:16:23]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 05 5E 00 90 00 D7 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]wFMCommunicate request_size=10 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 02 02 05 BA 07 51 BB 37 [14:16:24]Write to MH i2c: E2 0D 00 06 5E 80 0D 02 02 05 00 BA 07 51 BB 37 00 00 EC [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 06 5E 00 90 00 D8 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 03 02 [14:16:24]Write to MH i2c: E2 08 00 07 5E 80 0D 03 02 00 00 00 00 E0 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 0B 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 0B 00 07 5E 00 0B A4 6F 09 D6 CF 1B D0 90 00 98 [14:16:24]RAPDU: 0B A4 6F 09 D6 CF 1B D0 90 00 [14:16:24]wFMCommunicate OK [14:16:24]SAM_PROTO_SignData done [14:16:24]FM_MakeSignedData done [14:16:24]CreateOFDProtocolMessage [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 11 00 00 [14:16:24]Write to MH i2c: E2 08 00 08 5E 80 11 00 00 00 00 00 00 E0 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 17 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 17 00 08 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [14:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:16:24]wFMCommunicate OK [14:16:24]CreateOFDProtocolMessage done [14:16:24]OFDSenderStorePacket 103439 [14:16:24]StoreOFDPacket docnum=103439 [14:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6C B7 07 01 F1 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 13 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BD 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 94 01 00 35 04 06 00 8A BA 07 51 BB 37 0B A4 6F 09 D6 CF 1B D0 [14:16:24]CheckFolder [14:16:24]dirname=/storage/ofd_packets [14:16:24]CheckFolder done [14:16:24]ProducePacketName [14:16:24]name=ofd_packets/00103439 [14:16:24]NVStorageSaveData ofd_packets/00103439 [14:16:24]File name is /storage/ofd_packets/00103439 [14:16:24]Write 301 bytes [14:16:24]NVStorageSaveData done [14:16:24]OFDSenderStorePacket done [14:16:24]KKMCreateOFDPacket done [14:16:24]NVStorageSaveData kkm_last_timestamp [14:16:24]File name is /storage/kkm_last_timestamp [14:16:24]Write 4 bytes [14:16:24]NVStorageSaveData done [14:16:24]ExternCall_PrintAddStr [14:16:24]wPrintStart [14:16:24]Write to MH i2c: 01 00 00 09 5E 67 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 07 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 07 00 09 5E 00 00 00 00 00 FF 0F 7C [14:16:24]RasterBufferAndPrint [14:16:24]line Счет N : (1)672604 [14:16:24]line ИНН: 02508201610067 [14:16:24]line Контрольно-Кассовый Чек [14:16:24]line ПРОДАЖА [14:16:24]line ТРК (МРК, ГНК) : 31 [14:16:24]line Товар: 2710124500 [14:16:24]line Аи-95-К-5 [14:16:24]line 34.540 * 73.90 [14:16:24]line = 2552.51 [14:16:24]line НДС 12% НСП 1% [14:16:24]line > о реализуемом товаре [14:16:24]line ИТОГО: 2552.51 [14:16:24]line НСП 1% : 22.59 [14:16:24]line НДС 12% : 271.06 [14:16:24]line Наличными: 0.00 [14:16:24]line Безнал.: 2552.51 [14:16:24]line Место: АЗС № 120 "Партнер Нефть" [14:16:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:16:24]line СНО: Общий режим [14:16:24]line Чек 123 18.06.2024 14:16 [14:16:24]line Смена: 352 ФФД: 1.0 [14:16:24]line ЗНМ: 0300000164 [14:16:24]line РНМ: 0000000000092785 [14:16:24]line Версия ККМ: 001 [14:16:24]line Платежная система: Бакай Банк [14:16:24]line ФМ: 0000000000875093 [14:16:24]line ФД: 103439 [14:16:24]line ФПД: 152531591346999 [14:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T141629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103439&fm=152531591346999&tin=02508201610067®Number=0000000000092785&sum=255251 [14:16:24]OFD Sender: Processing packet 103439 [packets to send 17, broken 16] [14:16:24]ProducePacketName [14:16:24]name=ofd_packets/00103439 [14:16:24]OFD Sender: To server: pG, [14:16:24]CommunicateWithHost lk.salyk.kg:30040 [14:16:24]ConnectInit lk.salyk.kg [14:16:24]written 0, free lines is 4095 [14:16:24]Connected sock=10 [14:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6C B7 07 01 F1 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 13 E5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 E5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 E5 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BD 96 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 94 01 00 35 04 06 00 8A BA 07 51 BB 37 0B A4 6F 09 D6 CF 1B D0 [14:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CE 6B 47 00 AA 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 94 01 00 F4 03 04 00 49 3D 71 66 B6 04 01 00 00 D5 4F 1B 4D 05 63 DC 18 [14:16:25]CommunicateWithHost err = 0 [14:16:25]CheckOFDResponse [14:16:25]1017 (14) - 77093643461234 [14:16:25]1041 (16) - 0000000000875093 [14:16:25]1040 (4) - 103439 [14:16:25]1012 (4) - 18.06.2024 07:54 [14:16:25]1206 (1) - 0 [14:16:25]OFD Sender: Remove packet 103439 [14:16:25]ProducePacketName [14:16:25]name=ofd_packets/00103439 [14:16:25]NVStorageDeleteData [14:16:25]Write to MH i2c: 01 00 00 33 5E 91 [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 07 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 07 00 33 5E 00 00 00 00 00 06 0D AB [14:16:25]RasterBufferAndPrint [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]written 0, free lines is 3340 [14:16:25]MH_Cut [14:16:25]Write to MH i2c: D1 01 00 3A 5E 01 6A [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 01 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 01 00 3A 5E 00 69 [14:16:25]Write to MH i2c: 01 00 00 3B 5E 99 [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]OFD Sender: No OFD packet to send [14:16:25]*** Cut start [14:16:25]*** Partial cut [14:16:25]*** CUTSNS_PIN = 1 [14:16:25]*** CUTSNS_PIN = 0 [14:16:26]*** Brake cut motor [14:16:26]Read from MH i2c: 01 [14:16:26]MH_I2C_Read... [14:16:26]*** Stop cut motor [14:16:26]*** Cut end [14:16:26]Read from MH i2c: 01 07 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: 01 07 00 3B 5E 00 00 00 00 00 FF 0F AE [14:16:26]process_action close_receipt done [14:16:26]requested_data is exist [14:16:26]produce_requested_data [14:16:26]requested_item fm.sn is exist - process it [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 11 00 00 [14:16:26]Write to MH i2c: E2 08 00 3C 5E 80 11 00 00 00 00 00 00 14 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 17 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 17 00 3C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [14:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:16:26]wFMCommunicate OK [14:16:26]requested_item fd.num is exist - process it [14:16:26]SAM_PROTO_GetFieldsCounters [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 13 00 00 [14:16:26]Write to MH i2c: E2 08 00 3D 5E 80 13 00 00 00 00 00 00 17 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 62 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 62 00 3D 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 94 01 00 0E 04 04 00 60 01 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 B4 [14:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 94 01 00 0E 04 04 00 60 01 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 [14:16:26]wFMCommunicate OK [14:16:26]SAM_PROTO_GetFieldsCounters done [14:16:26]requested_item shift.num is exist - process it [14:16:26]requested_item shift.opened is exist - process it [14:16:26]req_shift_opened [14:16:26]FM_GetShiftState [14:16:26]SAM_PROTO_GetShiftState [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 13 01 00 [14:16:26]Write to MH i2c: E2 08 00 3E 5E 80 13 01 00 00 00 00 00 19 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 0E 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 0E 00 3E 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [14:16:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:16:26]wFMCommunicate OK [14:16:26]SAM_PROTO_GetShiftState done [14:16:26]FM_GetShiftState done [14:16:26]req_shift_opened done [14:16:26]requested_item shift.open_date is exist - process it [14:16:26]req_shift_open_date [14:16:26]req_shift_open_date done [14:16:26]produce_requested_data done [14:16:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103439,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:16:26]process_action_free close_receipt [14:16:26]json_value_free [14:16:26]json_value_free done [14:16:26]process_json_proto returns [14:16:26]Send response to host [14:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103439,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:16:26]free response buf [14:16:26]execute_script done [14:16:26]execute_script returns [14:16:26]free content buf [14:16:26]Sock 7.Close socket [14:16:26]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]accept exits with 9 [14:23:40]New connection [14:23:40]New thread 3067084132 created [14:23:40]Thread 3067227492 joined [14:23:40]Waiting for new connection... [14:23:40] Sock 9.Parse request [14:23:40]Sock 9.Check first char [14:23:40]Sock 9.First char is OK [14:23:40]request: POST /json_proto HTTP/1.0 [14:23:40]Method: POST [14:23:40]URL: /json_proto [14:23:40]Method is POST - this is cgi request [14:23:40]url: /json_proto [14:23:40]query_string will be loaded in cgi processing [14:23:40]execute_cgi json_proto POST (null) [14:23:40]execute_cgi path=json_proto method=POST [14:23:40]POST find Content-Length [14:23:40]Host: 172.17.38.133:8080 [14:23:40]Content-Length: 678 [14:23:40]Content-Type: application/json [14:23:40] [14:23:40]POST finish read [14:23:40]Found Content-Length = 678 [14:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:40]execute_script... [14:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:40]POST & json_proto [14:23:40]process_json_proto [14:23:40]json parsed OK: [14:23:40]protocol is kg_v1.0 [14:23:40]action value=close_receipt [14:23:40]process_action close_receipt [14:23:40]cmd_close_receipt [14:23:40]MH_GetDate [14:23:40]Write to MH i2c: F0 00 00 3F 5E 8C [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: F0 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: F0 09 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: F0 09 00 3F 5E 00 73 98 71 66 BD 8F 7C 64 A3 [14:23:40]GetLastDocTimeStamp 1718720189 [14:23:40]current date 1718720627 [14:23:40]FM_GetShiftState [14:23:40]SAM_PROTO_GetShiftState [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 13 01 00 [14:23:40]Write to MH i2c: E2 08 00 40 5E 80 13 01 00 00 00 00 00 1B [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0E 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 0E 00 40 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [14:23:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:23:40]wFMCommunicate OK [14:23:40]SAM_PROTO_GetShiftState done [14:23:40]FM_GetShiftState done [14:23:40]opened in 1718670284 [14:23:40]opened+sec_in_day 1718756684 [14:23:40]quantity*price = 90038 [14:23:40]sum+1 = 90039 [14:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 124 18.06.2024 14:23 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103440 ФПД: 149764097186759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T142347&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103440&fm=149764097186759&tin=02508201610067®Number=0000000000092785&sum=90000 [14:23:41]StoreToDocumentArchive [14:23:41]shift 352 fd 103440 [14:23:41]save to /storage/0352/doc_00103440 [14:23:41]save last doc name /storage/0352/doc_00103440 to /storage/kkm_last_doc_name [14:23:41]save OK [14:23:41]Clear old archive folders... [14:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:41]tlvbuf is B6F1D9C0 [14:23:41]SAM_PROTO_ClearQueue [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 09 00 00 [14:23:41]Write to MH i2c: E2 08 00 4D 5E 80 09 00 00 00 00 00 00 1D [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 4D 5E 00 90 00 1F [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_ClearQueue done [14:23:41]KKMCreateOFDPacket [14:23:41]OFDProtocolAddRootSTLVToBuf [14:23:41]FM_MakeSignedData [14:23:41]FM_MakeSignedData [14:23:41]SAM_PROTO_SignData [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 01 02 [14:23:41]Write to MH i2c: E2 08 00 4E 5E 80 0D 01 02 00 00 00 00 25 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 4E 5E 00 90 00 20 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=255 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 73 98 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 94 01 00 35 04 06 00 88 [14:23:41]Write to MH i2c: E2 02 01 4F 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 73 98 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 94 01 00 35 04 06 00 88 00 00 EB [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 4F 5E 00 90 00 21 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=10 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 02 02 05 35 AB D0 1B C7 [14:23:41]Write to MH i2c: E2 0D 00 50 5E 80 0D 02 02 05 00 35 AB D0 1B C7 00 00 C4 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 50 5E 00 90 00 22 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 03 02 [14:23:41]Write to MH i2c: E2 08 00 51 5E 80 0D 03 02 00 00 00 00 2A [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0B 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0B 00 51 5E 00 48 82 D5 FB 8B B1 16 F9 90 00 10 [14:23:41]RAPDU: 48 82 D5 FB 8B B1 16 F9 90 00 [14:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_SignData done [14:23:41]FM_MakeSignedData done [14:23:41]CreateOFDProtocolMessage [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 11 00 00 [14:23:41]Write to MH i2c: E2 08 00 52 5E 80 11 00 00 00 00 00 00 2A [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 52 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [14:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:23:41]wFMCommunicate OK [14:23:41]CreateOFDProtocolMessage done [14:23:41]OFDSenderStorePacket 103440 [14:23:41]StoreOFDPacket docnum=103440 [14:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1C 1A 07 01 C3 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 73 98 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 94 01 00 35 04 06 00 88 35 AB D0 1B C7 48 82 D5 FB 8B B1 16 F9 [14:23:41]CheckFolder [14:23:41]dirname=/storage/ofd_packets [14:23:41]CheckFolder done [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00103440 [14:23:41]NVStorageSaveData ofd_packets/00103440 [14:23:41]File name is /storage/ofd_packets/00103440 [14:23:41]Write 301 bytes [14:23:41]NVStorageSaveData done [14:23:41]OFDSenderStorePacket done [14:23:41]KKMCreateOFDPacket done [14:23:41]NVStorageSaveData kkm_last_timestamp [14:23:41]File name is /storage/kkm_last_timestamp [14:23:41]Write 4 bytes [14:23:41]NVStorageSaveData done [14:23:41]ExternCall_PrintAddStr [14:23:41]wPrintStart [14:23:41]Write to MH i2c: 01 00 00 53 5E B1 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 53 5E 00 00 00 00 00 FF 0F C6 [14:23:41]RasterBufferAndPrint [14:23:41]line Счет N : (1)672605 [14:23:41]line ИНН: 02508201610067 [14:23:41]line Контрольно-Кассовый Чек [14:23:41]line ПРОДАЖА [14:23:41]line ТРК (МРК, ГНК) : 32 [14:23:41]line Товар: 2710124130 [14:23:41]line Аи-92-К-5 [14:23:41]line 13.560 * 66.40 [14:23:41]line = 900.38 [14:23:41]line НДС 12% НСП 1% [14:23:41]line > о реализуемом товаре [14:23:41]line ОКРУГЛЕНИЕ: -0.38 [14:23:41]line ИТОГО: 900.00 [14:23:41]line Внесено: 900.00 [14:23:41]line СДАЧА: 0.00 [14:23:41]line НСП 1% : 7.97 [14:23:41]line НДС 12% : 95.62 [14:23:41]line Наличными: 900.00 [14:23:41]line Безнал.: 0.00 [14:23:41]line Место: АЗС № 120 "Партнер Нефть" [14:23:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:23:41]line СНО: Общий режим [14:23:41]line Чек 124 18.06.2024 14:23 [14:23:41]line Смена: 352 ФФД: 1.0 [14:23:41]line ЗНМ: 0300000164 [14:23:41]line РНМ: 0000000000092785 [14:23:41]line Версия ККМ: 001 [14:23:41]line ФМ: 0000000000875093 [14:23:41]line ФД: 103440 [14:23:41]line ФПД: 149764097186759 [14:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T142347&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103440&fm=149764097186759&tin=02508201610067®Number=0000000000092785&sum=90000 [14:23:42]OFD Sender: Processing packet 103440 [packets to send 17, broken 16] [14:23:42]ProducePacketName [14:23:42]name=ofd_packets/00103440 [14:23:42]OFD Sender: To server: pG, [14:23:42]CommunicateWithHost lk.salyk.kg:30040 [14:23:42]ConnectInit lk.salyk.kg [14:23:42]written 0, free lines is 4095 [14:23:42]Connected sock=7 [14:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1C 1A 07 01 C3 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 73 98 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 94 01 00 35 04 06 00 88 35 AB D0 1B C7 48 82 D5 FB 8B B1 16 F9 [14:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5D 07 47 00 13 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 94 01 00 F4 03 04 00 FF 3E 71 66 B6 04 01 00 00 CB 88 36 5A 12 ED 92 EC [14:23:42]CommunicateWithHost err = 0 [14:23:42]CheckOFDResponse [14:23:42]1017 (14) - 77093643461234 [14:23:42]1041 (16) - 0000000000875093 [14:23:42]1040 (4) - 103440 [14:23:42]1012 (4) - 18.06.2024 08:02 [14:23:42]1206 (1) - 0 [14:23:42]OFD Sender: Remove packet 103440 [14:23:42]ProducePacketName [14:23:42]name=ofd_packets/00103440 [14:23:42]NVStorageDeleteData [14:23:42]Write to MH i2c: 01 00 00 7E 5E DC [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 07 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 07 00 7E 5E 00 00 00 00 00 ED 0C DC [14:23:42]RasterBufferAndPrint [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]written 0, free lines is 3318 [14:23:42]MH_Cut [14:23:42]Write to MH i2c: D1 01 00 85 5E 01 B5 [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 01 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 01 00 85 5E 00 B4 [14:23:42]Write to MH i2c: 01 00 00 86 5E E4 [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:43]OFD Sender: No OFD packet to send [14:23:43]*** Cut start [14:23:43]*** Partial cut [14:23:43]*** CUTSNS_PIN = 1 [14:23:43]*** CUTSNS_PIN = 0 [14:23:43]*** Brake cut motor [14:23:44]Read from MH i2c: 01 [14:23:44]MH_I2C_Read... [14:23:44]*** Stop cut motor [14:23:44]*** Cut end [14:23:44]Read from MH i2c: 01 07 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: 01 07 00 86 5E 00 00 00 00 00 FF 0F F9 [14:23:44]process_action close_receipt done [14:23:44]requested_data is exist [14:23:44]produce_requested_data [14:23:44]requested_item fm.sn is exist - process it [14:23:44]wFMCommunicate request_size=4 [14:23:44]MH_SAM_APDU [14:23:44]CAPDU: 80 11 00 00 [14:23:44]Write to MH i2c: E2 08 00 87 5E 80 11 00 00 00 00 00 00 5F [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 17 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 17 00 87 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [14:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:23:44]wFMCommunicate OK [14:23:44]requested_item fd.num is exist - process it [14:23:44]SAM_PROTO_GetFieldsCounters [14:23:44]wFMCommunicate request_size=4 [14:23:44]MH_SAM_APDU [14:23:44]CAPDU: 80 13 00 00 [14:23:44]Write to MH i2c: E2 08 00 88 5E 80 13 00 00 00 00 00 00 62 [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 62 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 62 00 88 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 94 01 00 0E 04 04 00 60 01 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 03 [14:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 94 01 00 0E 04 04 00 60 01 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 [14:23:44]wFMCommunicate OK [14:23:44]SAM_PROTO_GetFieldsCounters done [14:23:44]requested_item shift.num is exist - process it [14:23:44]requested_item shift.opened is exist - process it [14:23:44]req_shift_opened [14:23:44]FM_GetShiftState [14:23:44]SAM_PROTO_GetShiftState [14:23:44]wFMCommunicate request_size=4 [14:23:44]MH_SAM_APDU [14:23:44]CAPDU: 80 13 01 00 [14:23:44]Write to MH i2c: E2 08 00 89 5E 80 13 01 00 00 00 00 00 64 [14:23:44]Write i2c OK [14:23:44]MH_I2C_Read... [14:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:44]Read from MH i2c: E2 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 [14:23:44]MH_I2C_Read... [14:23:44]Read from MH i2c: E2 0E 00 89 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [14:23:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:23:44]wFMCommunicate OK [14:23:44]SAM_PROTO_GetShiftState done [14:23:44]FM_GetShiftState done [14:23:44]req_shift_opened done [14:23:44]requested_item shift.open_date is exist - process it [14:23:44]req_shift_open_date [14:23:44]req_shift_open_date done [14:23:44]produce_requested_data done [14:23:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103440,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:23:44]process_action_free close_receipt [14:23:44]json_value_free [14:23:44]json_value_free done [14:23:44]process_json_proto returns [14:23:44]Send response to host [14:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103440,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:23:44]free response buf [14:23:44]execute_script done [14:23:44]execute_script returns [14:23:44]free content buf [14:23:44]Sock 9.Close socket [14:23:44]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:00]accept exits with 10 [14:28:00]New connection [14:28:00]New thread 3067227492 created [14:28:00]Thread 3067084132 joined [14:28:00]Waiting for new connection... [14:28:00] Sock 10.Parse request [14:28:00]Sock 10.Check first char [14:28:00]Sock 10.First char is OK [14:28:00]request: POST /json_proto HTTP/1.0 [14:28:00]Method: POST [14:28:00]URL: /json_proto [14:28:00]Method is POST - this is cgi request [14:28:00]url: /json_proto [14:28:00]query_string will be loaded in cgi processing [14:28:00]execute_cgi json_proto POST (null) [14:28:00]execute_cgi path=json_proto method=POST [14:28:00]POST find Content-Length [14:28:00]Host: 172.17.38.133:8080 [14:28:00]Content-Length: 1157 [14:28:00]Content-Type: application/json [14:28:00] [14:28:00]POST finish read [14:28:00]Found Content-Length = 1157 [14:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672607\u000A18.06.2024 14:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2324.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:00]execute_script... [14:28:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672607\u000A18.06.2024 14:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2324.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:00]POST & json_proto [14:28:00]process_json_proto [14:28:00]json parsed OK: [14:28:00]protocol is kg_v1.0 [14:28:00]action value=print_text [14:28:00]process_action print_text [14:28:00]cmd_print_text [14:28:00]ExternCall_PrintAddStr [14:28:00]wPrintStart [14:28:00]Write to MH i2c: 01 00 00 8A 5E E8 [14:28:00]Write i2c OK [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 07 00 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 07 00 8A 5E 00 00 00 00 00 FF 0F FD [14:28:00]RasterBufferAndPrint [14:28:00]line *****ТОВАРНЫЙ ЧЕК***** [14:28:00]line АЗС 120 [14:28:00]line Партнер нефть [14:28:00]line 02508201610067 [14:28:00]line Кассир : Асанбаев Н. [14:28:00]line Счет N : (1)672607 [14:28:00]line 18.06.2024 14:05 [14:28:00]line ПРОДАЖА [14:28:00]line ТРК (МРК, ГНК): 32 [14:28:00]line Вид ГСМ : 2710124130 [14:28:00]line Аи-92-К-5 [14:28:00]line 35.000 x 66.40 [14:28:00]line ИТОГ: 2324.00 [14:28:00]line Тип оплаты: Талоны: ТК ГПНА Online [14:28:00]line 30101614 [14:28:00]line ______________________ [14:28:00]line (подпись) [14:28:00]written 0, free lines is 4095 [14:28:00]Write to MH i2c: 01 00 00 9E 5E FC [14:28:00]Write i2c OK [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 07 00 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: 01 07 00 9E 5E 00 00 00 00 00 0F 0E 20 [14:28:00]RasterBufferAndPrint [14:28:00]line [14:28:00]line [14:28:00]line [14:28:00]line [14:28:00]line [14:28:00]written 0, free lines is 3601 [14:28:00]MH_Cut [14:28:00]Write to MH i2c: D1 01 00 A5 5E 01 D5 [14:28:00]Write i2c OK [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: D1 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: D1 01 00 [14:28:00]MH_I2C_Read... [14:28:00]Read from MH i2c: D1 01 00 A5 5E 00 D4 [14:28:00]Write to MH i2c: 01 00 00 A6 5E 04 [14:28:00]Write i2c OK [14:28:00]MH_I2C_Read... [14:28:01]*** Cut start [14:28:01]*** Partial cut [14:28:01]*** CUTSNS_PIN = 1 [14:28:01]*** CUTSNS_PIN = 0 [14:28:01]*** Brake cut motor [14:28:01]Read from MH i2c: 01 [14:28:01]MH_I2C_Read... [14:28:01]*** Stop cut motor [14:28:01]*** Cut end [14:28:01]Read from MH i2c: 01 07 00 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: 01 07 00 A6 5E 00 00 00 00 00 FF 0F 19 [14:28:01]process_action print_text done [14:28:01]requested_data is exist [14:28:01]produce_requested_data [14:28:01]requested_item fm.sn is exist - process it [14:28:01]wFMCommunicate request_size=4 [14:28:01]MH_SAM_APDU [14:28:01]CAPDU: 80 11 00 00 [14:28:01]Write to MH i2c: E2 08 00 A7 5E 80 11 00 00 00 00 00 00 7F [14:28:01]Write i2c OK [14:28:01]MH_I2C_Read... [14:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:01]Read from MH i2c: E2 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 17 00 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 17 00 A7 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [14:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:28:01]wFMCommunicate OK [14:28:01]requested_item fd.num is exist - process it [14:28:01]SAM_PROTO_GetFieldsCounters [14:28:01]wFMCommunicate request_size=4 [14:28:01]MH_SAM_APDU [14:28:01]CAPDU: 80 13 00 00 [14:28:01]Write to MH i2c: E2 08 00 A8 5E 80 13 00 00 00 00 00 00 82 [14:28:01]Write i2c OK [14:28:01]MH_I2C_Read... [14:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:01]Read from MH i2c: E2 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 62 00 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 62 00 A8 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 94 01 00 0E 04 04 00 60 01 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 23 [14:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 94 01 00 0E 04 04 00 60 01 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 [14:28:01]wFMCommunicate OK [14:28:01]SAM_PROTO_GetFieldsCounters done [14:28:01]requested_item shift.num is exist - process it [14:28:01]requested_item shift.opened is exist - process it [14:28:01]req_shift_opened [14:28:01]FM_GetShiftState [14:28:01]SAM_PROTO_GetShiftState [14:28:01]wFMCommunicate request_size=4 [14:28:01]MH_SAM_APDU [14:28:01]CAPDU: 80 13 01 00 [14:28:01]Write to MH i2c: E2 08 00 A9 5E 80 13 01 00 00 00 00 00 84 [14:28:01]Write i2c OK [14:28:01]MH_I2C_Read... [14:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:01]Read from MH i2c: E2 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 0E 00 [14:28:01]MH_I2C_Read... [14:28:01]Read from MH i2c: E2 0E 00 A9 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [14:28:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:28:01]wFMCommunicate OK [14:28:01]SAM_PROTO_GetShiftState done [14:28:01]FM_GetShiftState done [14:28:01]req_shift_opened done [14:28:01]requested_item shift.open_date is exist - process it [14:28:01]req_shift_open_date [14:28:01]req_shift_open_date done [14:28:01]produce_requested_data done [14:28:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103440,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:28:01]process_action_free print_text [14:28:01]json_value_free [14:28:01]json_value_free done [14:28:01]process_json_proto returns [14:28:01]Send response to host [14:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103440,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:28:01]free response buf [14:28:01]execute_script done [14:28:01]execute_script returns [14:28:01]free content buf [14:28:01]Sock 10.Close socket [14:28:01]Sock 10.Thread stoped [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:03]accept exits with 7 [14:30:03]New connection [14:30:03]New thread 3067084132 created [14:30:03]Thread 3067227492 joined [14:30:03]Waiting for new connection... [14:30:03] Sock 7.Parse request [14:30:03]Sock 7.Check first char [14:30:03]Sock 7.First char is OK [14:30:03]request: POST /json_proto HTTP/1.0 [14:30:03]Method: POST [14:30:03]URL: /json_proto [14:30:03]Method is POST - this is cgi request [14:30:03]url: /json_proto [14:30:03]query_string will be loaded in cgi processing [14:30:03]execute_cgi json_proto POST (null) [14:30:03]execute_cgi path=json_proto method=POST [14:30:03]POST find Content-Length [14:30:03]Host: 172.17.38.133:8080 [14:30:03]Content-Length: 677 [14:30:03]Content-Type: application/json [14:30:03] [14:30:03]POST finish read [14:30:03]Found Content-Length = 677 [14:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:03]execute_script... [14:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:03]POST & json_proto [14:30:03]process_json_proto [14:30:03]json parsed OK: [14:30:03]protocol is kg_v1.0 [14:30:03]action value=close_receipt [14:30:03]process_action close_receipt [14:30:03]cmd_close_receipt [14:30:03]MH_GetDate [14:30:03]Write to MH i2c: F0 00 00 AA 5E F7 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: F0 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: F0 09 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: F0 09 00 AA 5E 00 F2 99 71 66 BD 8F 7C 64 8E [14:30:03]GetLastDocTimeStamp 1718720627 [14:30:03]current date 1718721010 [14:30:03]FM_GetShiftState [14:30:03]SAM_PROTO_GetShiftState [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 13 01 00 [14:30:03]Write to MH i2c: E2 08 00 AB 5E 80 13 01 00 00 00 00 00 86 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 AB 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 07 [14:30:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_GetShiftState done [14:30:03]FM_GetShiftState done [14:30:03]opened in 1718670284 [14:30:03]opened+sec_in_day 1718756684 [14:30:03]quantity*price = 35059 [14:30:03]sum+1 = 35060 [14:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 125 18.06.2024 14:30 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103441 ФПД: 121427353472124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103441&fm=121427353472124&tin=02508201610067®Number=0000000000092785&sum=35000 [14:30:04]StoreToDocumentArchive [14:30:04]shift 352 fd 103441 [14:30:04]save to /storage/0352/doc_00103441 [14:30:04]save last doc name /storage/0352/doc_00103441 to /storage/kkm_last_doc_name [14:30:04]save OK [14:30:04]Clear old archive folders... [14:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:04]tlvbuf is 01446870 [14:30:04]SAM_PROTO_ClearQueue [14:30:04]wFMCommunicate request_size=4 [14:30:04]MH_SAM_APDU [14:30:04]CAPDU: 80 09 00 00 [14:30:04]Write to MH i2c: E2 08 00 B8 5E 80 09 00 00 00 00 00 00 88 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:04]Read from MH i2c: E2 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 03 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 03 00 B8 5E 00 90 00 8A [14:30:04]RAPDU: 90 00 [14:30:04]wFMCommunicate OK [14:30:04]SAM_PROTO_ClearQueue done [14:30:04]KKMCreateOFDPacket [14:30:04]OFDProtocolAddRootSTLVToBuf [14:30:04]FM_MakeSignedData [14:30:04]FM_MakeSignedData [14:30:04]SAM_PROTO_SignData [14:30:04]wFMCommunicate request_size=4 [14:30:04]MH_SAM_APDU [14:30:04]CAPDU: 80 0D 01 02 [14:30:04]Write to MH i2c: E2 08 00 B9 5E 80 0D 01 02 00 00 00 00 90 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:04]Read from MH i2c: E2 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 03 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 03 00 B9 5E 00 90 00 8B [14:30:04]RAPDU: 90 00 [14:30:04]wFMCommunicate OK [14:30:04]wFMCommunicate request_size=255 [14:30:04]MH_SAM_APDU [14:30:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F2 99 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 94 01 00 35 04 06 00 6E [14:30:04]Write to MH i2c: E2 02 01 BA 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F2 99 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 94 01 00 35 04 06 00 6E 00 00 7C [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 03 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 03 00 BA 5E 00 90 00 8C [14:30:05]RAPDU: 90 00 [14:30:05]wFMCommunicate OK [14:30:05]wFMCommunicate request_size=10 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 0D 02 02 05 70 02 45 0C 7C [14:30:05]Write to MH i2c: E2 0D 00 BB 5E 80 0D 02 02 05 00 70 02 45 0C 7C 00 00 DC [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 03 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 03 00 BB 5E 00 90 00 8D [14:30:05]RAPDU: 90 00 [14:30:05]wFMCommunicate OK [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 0D 03 02 [14:30:05]Write to MH i2c: E2 08 00 BC 5E 80 0D 03 02 00 00 00 00 95 [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 0B 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 0B 00 BC 5E 00 E8 CE 71 66 2D E1 2A 76 90 00 D1 [14:30:05]RAPDU: E8 CE 71 66 2D E1 2A 76 90 00 [14:30:05]wFMCommunicate OK [14:30:05]SAM_PROTO_SignData done [14:30:05]FM_MakeSignedData done [14:30:05]CreateOFDProtocolMessage [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 11 00 00 [14:30:05]Write to MH i2c: E2 08 00 BD 5E 80 11 00 00 00 00 00 00 95 [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 17 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 17 00 BD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [14:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:30:05]wFMCommunicate OK [14:30:05]CreateOFDProtocolMessage done [14:30:05]OFDSenderStorePacket 103441 [14:30:05]StoreOFDPacket docnum=103441 [14:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 ED EB 07 01 2A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F2 99 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 94 01 00 35 04 06 00 6E 70 02 45 0C 7C E8 CE 71 66 2D E1 2A 76 [14:30:05]CheckFolder [14:30:05]dirname=/storage/ofd_packets [14:30:05]CheckFolder done [14:30:05]ProducePacketName [14:30:05]name=ofd_packets/00103441 [14:30:05]NVStorageSaveData ofd_packets/00103441 [14:30:05]File name is /storage/ofd_packets/00103441 [14:30:05]Write 301 bytes [14:30:05]NVStorageSaveData done [14:30:05]OFDSenderStorePacket done [14:30:05]KKMCreateOFDPacket done [14:30:05]NVStorageSaveData kkm_last_timestamp [14:30:05]File name is /storage/kkm_last_timestamp [14:30:05]Write 4 bytes [14:30:05]NVStorageSaveData done [14:30:05]ExternCall_PrintAddStr [14:30:05]wPrintStart [14:30:05]Write to MH i2c: 01 00 00 BE 5E 1C [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: 01 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: 01 07 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: 01 07 00 BE 5E 00 00 00 00 00 FF 0F 31 [14:30:05]RasterBufferAndPrint [14:30:05]line Счет N : (1)672608 [14:30:05]line ИНН: 02508201610067 [14:30:05]line Контрольно-Кассовый Чек [14:30:05]line ПРОДАЖА [14:30:05]line ТРК (МРК, ГНК) : 32 [14:30:05]line Товар: 2710124130 [14:30:05]line Аи-92-К-5 [14:30:05]line 5.280 * 66.40 [14:30:05]line = 350.59 [14:30:05]line НДС 12% НСП 1% [14:30:05]line > о реализуемом товаре [14:30:05]line ОКРУГЛЕНИЕ: -0.59 [14:30:05]line ИТОГО: 350.00 [14:30:05]line Внесено: 350.00 [14:30:05]line СДАЧА: 0.00 [14:30:05]line НСП 1% : 3.10 [14:30:05]line НДС 12% : 37.23 [14:30:05]line Наличными: 350.00 [14:30:05]line Безнал.: 0.00 [14:30:05]line Место: АЗС № 120 "Партнер Нефть" [14:30:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:30:05]line СНО: Общий режим [14:30:05]line Чек 125 18.06.2024 14:30 [14:30:05]line Смена: 352 ФФД: 1.0 [14:30:05]line ЗНМ: 0300000164 [14:30:05]line РНМ: 0000000000092785 [14:30:05]line Версия ККМ: 001 [14:30:05]line ФМ: 0000000000875093 [14:30:05]line ФД: 103441 [14:30:05]line ФПД: 121427353472124 [14:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103441&fm=121427353472124&tin=02508201610067®Number=0000000000092785&sum=35000 [14:30:05]OFD Sender: Processing packet 103441 [packets to send 17, broken 16] [14:30:05]ProducePacketName [14:30:05]name=ofd_packets/00103441 [14:30:05]OFD Sender: To server: pG, [14:30:05]CommunicateWithHost lk.salyk.kg:30040 [14:30:05]ConnectInit lk.salyk.kg [14:30:05]written 0, free lines is 4095 [14:30:05]Connected sock=10 [14:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 ED EB 07 01 2A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F2 99 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 94 01 00 35 04 06 00 6E 70 02 45 0C 7C E8 CE 71 66 2D E1 2A 76 [14:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 49 01 47 00 E6 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 94 01 00 F4 03 04 00 7E 40 71 66 B6 04 01 00 00 BF 46 23 36 EB A0 AF 88 [14:30:06]CommunicateWithHost err = 0 [14:30:06]CheckOFDResponse [14:30:06]1017 (14) - 77093643461234 [14:30:06]1041 (16) - 0000000000875093 [14:30:06]1040 (4) - 103441 [14:30:06]1012 (4) - 18.06.2024 08:08 [14:30:06]1206 (1) - 0 [14:30:06]OFD Sender: Remove packet 103441 [14:30:06]ProducePacketName [14:30:06]name=ofd_packets/00103441 [14:30:06]NVStorageDeleteData [14:30:06]Write to MH i2c: 01 00 00 E9 5E 47 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 07 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 07 00 E9 5E 00 00 00 00 00 E7 0C 41 [14:30:06]RasterBufferAndPrint [14:30:06]line [14:30:06]line [14:30:06]line [14:30:06]line [14:30:06]line [14:30:06]written 0, free lines is 3309 [14:30:06]MH_Cut [14:30:06]Write to MH i2c: D1 01 00 F0 5E 01 20 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: D1 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: D1 01 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: D1 01 00 F0 5E 00 1F [14:30:06]Write to MH i2c: 01 00 00 F1 5E 4F [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]OFD Sender: No OFD packet to send [14:30:06]*** Cut start [14:30:06]*** Partial cut [14:30:06]*** CUTSNS_PIN = 1 [14:30:06]*** CUTSNS_PIN = 0 [14:30:07]*** Brake cut motor [14:30:07]Read from MH i2c: 01 [14:30:07]MH_I2C_Read... [14:30:07]*** Stop cut motor [14:30:07]*** Cut end [14:30:07]Read from MH i2c: 01 07 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: 01 07 00 F1 5E 00 00 00 00 00 FF 0F 64 [14:30:07]process_action close_receipt done [14:30:07]requested_data is exist [14:30:07]produce_requested_data [14:30:07]requested_item fm.sn is exist - process it [14:30:07]wFMCommunicate request_size=4 [14:30:07]MH_SAM_APDU [14:30:07]CAPDU: 80 11 00 00 [14:30:07]Write to MH i2c: E2 08 00 F2 5E 80 11 00 00 00 00 00 00 CA [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:07]Read from MH i2c: E2 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 17 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 17 00 F2 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [14:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:30:07]wFMCommunicate OK [14:30:07]requested_item fd.num is exist - process it [14:30:07]SAM_PROTO_GetFieldsCounters [14:30:07]wFMCommunicate request_size=4 [14:30:07]MH_SAM_APDU [14:30:07]CAPDU: 80 13 00 00 [14:30:07]Write to MH i2c: E2 08 00 F3 5E 80 13 00 00 00 00 00 00 CD [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:07]Read from MH i2c: E2 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 62 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 62 00 F3 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 94 01 00 0E 04 04 00 60 01 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 72 [14:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 94 01 00 0E 04 04 00 60 01 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 [14:30:07]wFMCommunicate OK [14:30:07]SAM_PROTO_GetFieldsCounters done [14:30:07]requested_item shift.num is exist - process it [14:30:07]requested_item shift.opened is exist - process it [14:30:07]req_shift_opened [14:30:07]FM_GetShiftState [14:30:07]SAM_PROTO_GetShiftState [14:30:07]wFMCommunicate request_size=4 [14:30:07]MH_SAM_APDU [14:30:07]CAPDU: 80 13 01 00 [14:30:07]Write to MH i2c: E2 08 00 F4 5E 80 13 01 00 00 00 00 00 CF [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:07]Read from MH i2c: E2 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 F4 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 50 [14:30:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:30:07]wFMCommunicate OK [14:30:07]SAM_PROTO_GetShiftState done [14:30:07]FM_GetShiftState done [14:30:07]req_shift_opened done [14:30:07]requested_item shift.open_date is exist - process it [14:30:07]req_shift_open_date [14:30:07]req_shift_open_date done [14:30:07]produce_requested_data done [14:30:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103441,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:30:07]process_action_free close_receipt [14:30:07]json_value_free [14:30:07]json_value_free done [14:30:07]process_json_proto returns [14:30:07]Send response to host [14:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103441,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:30:07]free response buf [14:30:07]execute_script done [14:30:07]execute_script returns [14:30:07]free content buf [14:30:07]Sock 7.Close socket [14:30:07]Sock 7.Thread stoped [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:07]accept exits with 9 [14:31:07]New connection [14:31:07]New thread 3067227492 created [14:31:07]Thread 3067084132 joined [14:31:07]Waiting for new connection... [14:31:07] Sock 9.Parse request [14:31:07]Sock 9.Check first char [14:31:07]Sock 9.First char is OK [14:31:07]request: POST /json_proto HTTP/1.0 [14:31:07]Method: POST [14:31:07]URL: /json_proto [14:31:07]Method is POST - this is cgi request [14:31:07]url: /json_proto [14:31:07]query_string will be loaded in cgi processing [14:31:07]execute_cgi json_proto POST (null) [14:31:07]execute_cgi path=json_proto method=POST [14:31:07]POST find Content-Length [14:31:07]Host: 172.17.38.133:8080 [14:31:07]Content-Length: 682 [14:31:07]Content-Type: application/json [14:31:07] [14:31:07]POST finish read [14:31:07]Found Content-Length = 682 [14:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:07]execute_script... [14:31: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)672609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:07]POST & json_proto [14:31:07]process_json_proto [14:31:07]json parsed OK: [14:31:07]protocol is kg_v1.0 [14:31:07]action value=close_receipt [14:31:07]process_action close_receipt [14:31:07]cmd_close_receipt [14:31:07]MH_GetDate [14:31:07]Write to MH i2c: F0 00 00 F5 5E 42 [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 09 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 09 00 F5 5E 00 32 9A 71 66 BD 8F 7C 64 1A [14:31:07]GetLastDocTimeStamp 1718721010 [14:31:07]current date 1718721074 [14:31:07]FM_GetShiftState [14:31:07]SAM_PROTO_GetShiftState [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 13 01 00 [14:31:07]Write to MH i2c: E2 08 00 F6 5E 80 13 01 00 00 00 00 00 D1 [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:07]Read from MH i2c: E2 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 0E 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 0E 00 F6 5E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 52 [14:31:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:31:07]wFMCommunicate OK [14:31:07]SAM_PROTO_GetShiftState done [14:31:07]FM_GetShiftState done [14:31:07]opened in 1718670284 [14:31:07]opened+sec_in_day 1718756684 [14:31:07]quantity*price = 100064 [14:31:07]sum+1 = 100066 [14:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 126 18.06.2024 14:31 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103442 ФПД: 246687218983321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143114&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103442&fm=246687218983321&tin=02508201610067®Number=0000000000092785&sum=100000 [14:31:08]StoreToDocumentArchive [14:31:08]shift 352 fd 103442 [14:31:08]save to /storage/0352/doc_00103442 [14:31:08]save last doc name /storage/0352/doc_00103442 to /storage/kkm_last_doc_name [14:31:08]save OK [14:31:08]Clear old archive folders... [14:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:08]tlvbuf is 0137D0C0 [14:31:08]SAM_PROTO_ClearQueue [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 09 00 00 [14:31:08]Write to MH i2c: E2 08 00 03 5F 80 09 00 00 00 00 00 00 D4 [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 03 5F 00 90 00 D6 [14:31:08]RAPDU: 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_ClearQueue done [14:31:08]KKMCreateOFDPacket [14:31:08]OFDProtocolAddRootSTLVToBuf [14:31:08]FM_MakeSignedData [14:31:08]FM_MakeSignedData [14:31:08]SAM_PROTO_SignData [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 0D 01 02 [14:31:08]Write to MH i2c: E2 08 00 04 5F 80 0D 01 02 00 00 00 00 DC [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 04 5F 00 90 00 D7 [14:31:08]RAPDU: 90 00 [14:31:08]wFMCommunicate OK [14:31:08]wFMCommunicate request_size=255 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 32 9A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 94 01 00 35 04 06 00 E0 [14:31:08]Write to MH i2c: E2 02 01 05 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 32 9A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 94 01 00 35 04 06 00 E0 00 00 EF [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 03 00 05 5F 00 90 00 D8 [14:31:08]RAPDU: 90 00 [14:31:08]wFMCommunicate OK [14:31:08]wFMCommunicate request_size=10 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 0D 02 02 05 5C 58 0E E1 99 [14:31:08]Write to MH i2c: E2 0D 00 06 5F 80 0D 02 02 05 00 5C 58 0E E1 99 00 00 25 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 06 5F 00 90 00 D9 [14:31:09]RAPDU: 90 00 [14:31:09]wFMCommunicate OK [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 0D 03 02 [14:31:09]Write to MH i2c: E2 08 00 07 5F 80 0D 03 02 00 00 00 00 E1 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0B 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0B 00 07 5F 00 D8 D2 DA B1 E6 3C 6F C3 90 00 6B [14:31:09]RAPDU: D8 D2 DA B1 E6 3C 6F C3 90 00 [14:31:09]wFMCommunicate OK [14:31:09]SAM_PROTO_SignData done [14:31:09]FM_MakeSignedData done [14:31:09]CreateOFDProtocolMessage [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 11 00 00 [14:31:09]Write to MH i2c: E2 08 00 08 5F 80 11 00 00 00 00 00 00 E1 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 17 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 17 00 08 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [14:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:09]wFMCommunicate OK [14:31:09]CreateOFDProtocolMessage done [14:31:09]OFDSenderStorePacket 103442 [14:31:09]StoreOFDPacket docnum=103442 [14:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 2C 07 01 FD D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 32 9A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 94 01 00 35 04 06 00 E0 5C 58 0E E1 99 D8 D2 DA B1 E6 3C 6F C3 [14:31:09]CheckFolder [14:31:09]dirname=/storage/ofd_packets [14:31:09]CheckFolder done [14:31:09]ProducePacketName [14:31:09]name=ofd_packets/00103442 [14:31:09]NVStorageSaveData ofd_packets/00103442 [14:31:09]File name is /storage/ofd_packets/00103442 [14:31:09]Write 301 bytes [14:31:09]NVStorageSaveData done [14:31:09]OFDSenderStorePacket done [14:31:09]KKMCreateOFDPacket done [14:31:09]NVStorageSaveData kkm_last_timestamp [14:31:09]File name is /storage/kkm_last_timestamp [14:31:09]Write 4 bytes [14:31:09]NVStorageSaveData done [14:31:09]ExternCall_PrintAddStr [14:31:09]wPrintStart [14:31:09]Write to MH i2c: 01 00 00 09 5F 68 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 09 5F 00 00 00 00 00 FF 0F 7D [14:31:09]RasterBufferAndPrint [14:31:09]line Счет N : (1)672609 [14:31:09]line ИНН: 02508201610067 [14:31:09]line Контрольно-Кассовый Чек [14:31:09]line ПРОДАЖА [14:31:09]line ТРК (МРК, ГНК) : 32 [14:31:09]line Товар: 2710124130 [14:31:09]line Аи-92-К-5 [14:31:09]line 15.070 * 66.40 [14:31:09]line = 1000.65 [14:31:09]line НДС 12% НСП 1% [14:31:09]line > о реализуемом товаре [14:31:09]line ОКРУГЛЕНИЕ: -0.65 [14:31:09]line ИТОГО: 1000.00 [14:31:09]line Внесено: 1000.00 [14:31:09]line СДАЧА: 0.00 [14:31:09]line НСП 1% : 8.85 [14:31:09]line НДС 12% : 106.26 [14:31:09]line Наличными: 1000.00 [14:31:09]line Безнал.: 0.00 [14:31:09]line Место: АЗС № 120 "Партнер Нефть" [14:31:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:31:09]line СНО: Общий режим [14:31:09]line Чек 126 18.06.2024 14:31 [14:31:09]line Смена: 352 ФФД: 1.0 [14:31:09]line ЗНМ: 0300000164 [14:31:09]line РНМ: 0000000000092785 [14:31:09]line Версия ККМ: 001 [14:31:09]line ФМ: 0000000000875093 [14:31:09]line ФД: 103442 [14:31:09]line ФПД: 246687218983321 [14:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143114&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103442&fm=246687218983321&tin=02508201610067®Number=0000000000092785&sum=100000 [14:31:09]OFD Sender: Processing packet 103442 [packets to send 17, broken 16] [14:31:09]ProducePacketName [14:31:09]name=ofd_packets/00103442 [14:31:09]OFD Sender: To server: pG, [14:31:09]CommunicateWithHost lk.salyk.kg:30040 [14:31:09]ConnectInit lk.salyk.kg [14:31:09]written 0, free lines is 4095 [14:31:09]Connected sock=10 [14:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 2C 07 01 FD D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 32 9A 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 94 01 00 35 04 06 00 E0 5C 58 0E E1 99 D8 D2 DA B1 E6 3C 6F C3 [14:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1D C0 47 00 2F 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 35 30 39 33 10 04 04 00 12 94 01 00 F4 03 04 00 BE 40 71 66 B6 04 01 00 00 59 A3 BF 2E 13 EE 1B 73 [14:31:09]CommunicateWithHost err = 0 [14:31:09]CheckOFDResponse [14:31:09]1017 (14) - 77093643461234 [14:31:09]1041 (16) - 0000000000875093 [14:31:09]1040 (4) - 103442 [14:31:09]1012 (4) - 18.06.2024 08:09 [14:31:09]1206 (1) - 0 [14:31:09]OFD Sender: Remove packet 103442 [14:31:09]ProducePacketName [14:31:09]name=ofd_packets/00103442 [14:31:09]NVStorageDeleteData [14:31:09]Write to MH i2c: 01 00 00 34 5F 93 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 34 5F 00 00 00 00 00 E3 0C 89 [14:31:09]RasterBufferAndPrint [14:31:09]line [14:31:09]line [14:31:09]line [14:31:09]line [14:31:09]line [14:31:09]written 0, free lines is 3305 [14:31:09]MH_Cut [14:31:09]Write to MH i2c: D1 01 00 3B 5F 01 6C [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: D1 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: D1 01 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: D1 01 00 3B 5F 00 6B [14:31:09]Write to MH i2c: 01 00 00 3C 5F 9B [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:10]OFD Sender: No OFD packet to send [14:31:10]*** Cut start [14:31:10]*** Partial cut [14:31:10]*** CUTSNS_PIN = 1 [14:31:10]*** CUTSNS_PIN = 0 [14:31:10]*** Brake cut motor [14:31:11]Read from MH i2c: 01 [14:31:11]MH_I2C_Read... [14:31:11]*** Stop cut motor [14:31:11]*** Cut end [14:31:11]Read from MH i2c: 01 07 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: 01 07 00 3C 5F 00 00 00 00 00 FF 0F B0 [14:31:11]process_action close_receipt done [14:31:11]requested_data is exist [14:31:11]produce_requested_data [14:31:11]requested_item fm.sn is exist - process it [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 11 00 00 [14:31:11]Write to MH i2c: E2 08 00 3D 5F 80 11 00 00 00 00 00 00 16 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 17 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 17 00 3D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [14:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:11]wFMCommunicate OK [14:31:11]requested_item fd.num is exist - process it [14:31:11]SAM_PROTO_GetFieldsCounters [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 00 00 [14:31:11]Write to MH i2c: E2 08 00 3E 5F 80 13 00 00 00 00 00 00 19 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 62 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 62 00 3E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 94 01 00 0E 04 04 00 60 01 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 C2 [14:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 94 01 00 0E 04 04 00 60 01 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 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetFieldsCounters done [14:31:11]requested_item shift.num is exist - process it [14:31:11]requested_item shift.opened is exist - process it [14:31:11]req_shift_opened [14:31:11]FM_GetShiftState [14:31:11]SAM_PROTO_GetShiftState [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 01 00 [14:31:11]Write to MH i2c: E2 08 00 3F 5F 80 13 01 00 00 00 00 00 1B [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 3F 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [14:31:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetShiftState done [14:31:11]FM_GetShiftState done [14:31:11]req_shift_opened done [14:31:11]requested_item shift.open_date is exist - process it [14:31:11]req_shift_open_date [14:31:11]req_shift_open_date done [14:31:11]produce_requested_data done [14:31:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103442,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:31:11]process_action_free close_receipt [14:31:11]json_value_free [14:31:11]json_value_free done [14:31:11]process_json_proto returns [14:31:11]Send response to host [14:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103442,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:31:11]free response buf [14:31:11]execute_script done [14:31:11]execute_script returns [14:31:11]free content buf [14:31:11]Sock 9.Close socket [14:31:11]Sock 9.Thread stoped [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:32]accept exits with 7 [14:36:32]New connection [14:36:32]New thread 3067084132 created [14:36:32]Thread 3067227492 joined [14:36:32]Waiting for new connection... [14:36:32] Sock 7.Parse request [14:36:32]Sock 7.Check first char [14:36:32]Sock 7.First char is OK [14:36:32]request: POST /json_proto HTTP/1.0 [14:36:32]Method: POST [14:36:32]URL: /json_proto [14:36:32]Method is POST - this is cgi request [14:36:32]url: /json_proto [14:36:32]query_string will be loaded in cgi processing [14:36:32]execute_cgi json_proto POST (null) [14:36:32]execute_cgi path=json_proto method=POST [14:36:32]POST find Content-Length [14:36:32]Host: 172.17.38.133:8080 [14:36:32]Content-Length: 677 [14:36:32]Content-Type: application/json [14:36:32] [14:36:32]POST finish read [14:36:32]Found Content-Length = 677 [14:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:32]execute_script... [14:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:32]POST & json_proto [14:36:32]process_json_proto [14:36:32]json parsed OK: [14:36:32]protocol is kg_v1.0 [14:36:32]action value=close_receipt [14:36:32]process_action close_receipt [14:36:32]cmd_close_receipt [14:36:32]MH_GetDate [14:36:32]Write to MH i2c: F0 00 00 40 5F 8E [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 09 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 09 00 40 5F 00 77 9B 71 66 BD 8F 7C 64 AC [14:36:32]GetLastDocTimeStamp 1718721074 [14:36:32]current date 1718721399 [14:36:32]FM_GetShiftState [14:36:32]SAM_PROTO_GetShiftState [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 13 01 00 [14:36:32]Write to MH i2c: E2 08 00 41 5F 80 13 01 00 00 00 00 00 1D [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 41 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9E [14:36:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:36:32]wFMCommunicate OK [14:36:32]SAM_PROTO_GetShiftState done [14:36:32]FM_GetShiftState done [14:36:32]opened in 1718670284 [14:36:32]opened+sec_in_day 1718756684 [14:36:32]quantity*price = 50065 [14:36:32]sum+1 = 50067 [14:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 127 18.06.2024 14:36 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103443 ФПД: 62944156468637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143639&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103443&fm=62944156468637&tin=02508201610067®Number=0000000000092785&sum=50000 [14:36:33]StoreToDocumentArchive [14:36:33]shift 352 fd 103443 [14:36:33]save to /storage/0352/doc_00103443 [14:36:33]save last doc name /storage/0352/doc_00103443 to /storage/kkm_last_doc_name [14:36:33]save OK [14:36:33]Clear old archive folders... [14:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:33]tlvbuf is 014894F0 [14:36:33]SAM_PROTO_ClearQueue [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 09 00 00 [14:36:33]Write to MH i2c: E2 08 00 4E 5F 80 09 00 00 00 00 00 00 1F [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 4E 5F 00 90 00 21 [14:36:33]RAPDU: 90 00 [14:36:33]wFMCommunicate OK [14:36:33]SAM_PROTO_ClearQueue done [14:36:33]KKMCreateOFDPacket [14:36:33]OFDProtocolAddRootSTLVToBuf [14:36:33]FM_MakeSignedData [14:36:33]FM_MakeSignedData [14:36:33]SAM_PROTO_SignData [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 0D 01 02 [14:36:33]Write to MH i2c: E2 08 00 4F 5F 80 0D 01 02 00 00 00 00 27 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 4F 5F 00 90 00 22 [14:36:33]RAPDU: 90 00 [14:36:33]wFMCommunicate OK [14:36:33]wFMCommunicate request_size=255 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 94 01 00 35 04 06 00 39 [14:36:33]Write to MH i2c: E2 02 01 50 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 94 01 00 35 04 06 00 39 00 00 8B [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 50 5F 00 90 00 23 [14:36:34]RAPDU: 90 00 [14:36:34]wFMCommunicate OK [14:36:34]wFMCommunicate request_size=10 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 0D 02 02 05 3F 54 16 45 9D [14:36:34]Write to MH i2c: E2 0D 00 51 5F 80 0D 02 02 05 00 3F 54 16 45 9D 00 00 BF [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 51 5F 00 90 00 24 [14:36:34]RAPDU: 90 00 [14:36:34]wFMCommunicate OK [14:36:34]wFMCommunicate request_size=4 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 0D 03 02 [14:36:34]Write to MH i2c: E2 08 00 52 5F 80 0D 03 02 00 00 00 00 2C [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0B 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0B 00 52 5F 00 2E D9 80 73 0A 7E 18 D2 90 00 99 [14:36:34]RAPDU: 2E D9 80 73 0A 7E 18 D2 90 00 [14:36:34]wFMCommunicate OK [14:36:34]SAM_PROTO_SignData done [14:36:34]FM_MakeSignedData done [14:36:34]CreateOFDProtocolMessage [14:36:34]wFMCommunicate request_size=4 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 11 00 00 [14:36:34]Write to MH i2c: E2 08 00 53 5F 80 11 00 00 00 00 00 00 2C [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 17 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 17 00 53 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [14:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:36:34]wFMCommunicate OK [14:36:34]CreateOFDProtocolMessage done [14:36:34]OFDSenderStorePacket 103443 [14:36:34]StoreOFDPacket docnum=103443 [14:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB 30 07 01 97 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 94 01 00 35 04 06 00 39 3F 54 16 45 9D 2E D9 80 73 0A 7E 18 D2 [14:36:34]CheckFolder [14:36:34]dirname=/storage/ofd_packets [14:36:34]CheckFolder done [14:36:34]ProducePacketName [14:36:34]name=ofd_packets/00103443 [14:36:34]NVStorageSaveData ofd_packets/00103443 [14:36:34]File name is /storage/ofd_packets/00103443 [14:36:34]Write 301 bytes [14:36:34]NVStorageSaveData done [14:36:34]OFDSenderStorePacket done [14:36:34]KKMCreateOFDPacket done [14:36:34]NVStorageSaveData kkm_last_timestamp [14:36:34]File name is /storage/kkm_last_timestamp [14:36:34]Write 4 bytes [14:36:34]NVStorageSaveData done [14:36:34]ExternCall_PrintAddStr [14:36:34]wPrintStart [14:36:34]Write to MH i2c: 01 00 00 54 5F B3 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 54 5F 00 00 00 00 00 FF 0F C8 [14:36:34]RasterBufferAndPrint [14:36:34]line Счет N : (1)672612 [14:36:34]line ИНН: 02508201610067 [14:36:34]line Контрольно-Кассовый Чек [14:36:34]line ПРОДАЖА [14:36:34]line ТРК (МРК, ГНК) : 32 [14:36:34]line Товар: 2710124130 [14:36:34]line Аи-92-К-5 [14:36:34]line 7.540 * 66.40 [14:36:34]line = 500.66 [14:36:34]line НДС 12% НСП 1% [14:36:34]line > о реализуемом товаре [14:36:34]line ОКРУГЛЕНИЕ: -0.66 [14:36:34]line ИТОГО: 500.00 [14:36:34]line Внесено: 500.00 [14:36:34]line СДАЧА: 0.00 [14:36:34]line НСП 1% : 4.43 [14:36:34]line НДС 12% : 53.17 [14:36:34]line Наличными: 500.00 [14:36:34]line Безнал.: 0.00 [14:36:34]line Место: АЗС № 120 "Партнер Нефть" [14:36:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:36:34]line СНО: Общий режим [14:36:34]line Чек 127 18.06.2024 14:36 [14:36:34]line Смена: 352 ФФД: 1.0 [14:36:34]line ЗНМ: 0300000164 [14:36:34]line РНМ: 0000000000092785 [14:36:34]line Версия ККМ: 001 [14:36:34]line ФМ: 0000000000875093 [14:36:34]line ФД: 103443 [14:36:34]line ФПД: 62944156468637 [14:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143639&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103443&fm=62944156468637&tin=02508201610067®Number=0000000000092785&sum=50000 [14:36:34]written 0, free lines is 4095 [14:36:34]OFD Sender: Processing packet 103443 [packets to send 17, broken 16] [14:36:34]ProducePacketName [14:36:34]name=ofd_packets/00103443 [14:36:34]OFD Sender: To server: pG, [14:36:34]CommunicateWithHost lk.salyk.kg:30040 [14:36:34]ConnectInit lk.salyk.kg [14:36:34]Connected sock=10 [14:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB 30 07 01 97 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 94 01 00 35 04 06 00 39 3F 54 16 45 9D 2E D9 80 73 0A 7E 18 D2 [14:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 95 6A 47 00 A0 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 94 01 00 F4 03 04 00 03 42 71 66 B6 04 01 00 00 BF D0 EA 04 D6 07 94 68 [14:36:34]CommunicateWithHost err = 0 [14:36:34]CheckOFDResponse [14:36:34]1017 (14) - 77093643461234 [14:36:34]1041 (16) - 0000000000875093 [14:36:34]1040 (4) - 103443 [14:36:34]1012 (4) - 18.06.2024 08:14 [14:36:34]1206 (1) - 0 [14:36:34]OFD Sender: Remove packet 103443 [14:36:34]ProducePacketName [14:36:34]name=ofd_packets/00103443 [14:36:34]NVStorageDeleteData [14:36:34]Write to MH i2c: 01 00 00 7F 5F DE [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 7F 5F 00 00 00 00 00 ED 0C DE [14:36:34]RasterBufferAndPrint [14:36:34]line [14:36:34]line [14:36:34]line [14:36:34]line [14:36:34]line [14:36:34]written 0, free lines is 3315 [14:36:34]MH_Cut [14:36:34]Write to MH i2c: D1 01 00 86 5F 01 B7 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: D1 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: D1 01 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: D1 01 00 86 5F 00 B6 [14:36:34]Write to MH i2c: 01 00 00 87 5F E6 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:35]OFD Sender: No OFD packet to send [14:36:35]*** Cut start [14:36:35]*** Partial cut [14:36:35]*** CUTSNS_PIN = 1 [14:36:35]*** CUTSNS_PIN = 0 [14:36:35]*** Brake cut motor [14:36:36]Read from MH i2c: 01 [14:36:36]MH_I2C_Read... [14:36:36]*** Stop cut motor [14:36:36]*** Cut end [14:36:36]Read from MH i2c: 01 07 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 87 5F 00 00 00 00 00 FF 0F FB [14:36:36]process_action close_receipt done [14:36:36]requested_data is exist [14:36:36]produce_requested_data [14:36:36]requested_item fm.sn is exist - process it [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 11 00 00 [14:36:36]Write to MH i2c: E2 08 00 88 5F 80 11 00 00 00 00 00 00 61 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 88 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [14:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:36:36]wFMCommunicate OK [14:36:36]requested_item fd.num is exist - process it [14:36:36]SAM_PROTO_GetFieldsCounters [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 00 00 [14:36:36]Write to MH i2c: E2 08 00 89 5F 80 13 00 00 00 00 00 00 64 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 62 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 62 00 89 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 11 [14:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetFieldsCounters done [14:36:36]requested_item shift.num is exist - process it [14:36:36]requested_item shift.opened is exist - process it [14:36:36]req_shift_opened [14:36:36]FM_GetShiftState [14:36:36]SAM_PROTO_GetShiftState [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 01 00 [14:36:36]Write to MH i2c: E2 08 00 8A 5F 80 13 01 00 00 00 00 00 66 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 8A 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [14:36:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetShiftState done [14:36:36]FM_GetShiftState done [14:36:36]req_shift_opened done [14:36:36]requested_item shift.open_date is exist - process it [14:36:36]req_shift_open_date [14:36:36]req_shift_open_date done [14:36:36]produce_requested_data done [14:36:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:36:36]process_action_free close_receipt [14:36:36]json_value_free [14:36:36]json_value_free done [14:36:36]process_json_proto returns [14:36:36]Send response to host [14:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:36:36]free response buf [14:36:36]execute_script done [14:36:36]execute_script returns [14:36:36]free content buf [14:36:36]Sock 7.Close socket [14:36:36]Sock 7.Thread stoped [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:24]accept exits with 9 [14:45:24]New connection [14:45:24]New thread 3067227492 created [14:45:24]Thread 3067084132 joined [14:45:24]Waiting for new connection... [14:45:24] Sock 9.Parse request [14:45:24]Sock 9.Check first char [14:45:24]Sock 9.First char is OK [14:45:24]request: POST /json_proto HTTP/1.0 [14:45:24]Method: POST [14:45:24]URL: /json_proto [14:45:24]Method is POST - this is cgi request [14:45:24]url: /json_proto [14:45:24]query_string will be loaded in cgi processing [14:45:24]execute_cgi json_proto POST (null) [14:45:24]execute_cgi path=json_proto method=POST [14:45:24]POST find Content-Length [14:45:24]Host: 172.17.38.133:8080 [14:45:24]Content-Length: 1157 [14:45:24]Content-Type: application/json [14:45:24] [14:45:24]POST finish read [14:45:24]Found Content-Length = 1157 [14:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672616\u000A18.06.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2324.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:24]execute_script... [14:45:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672616\u000A18.06.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2324.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:24]POST & json_proto [14:45:24]process_json_proto [14:45:24]json parsed OK: [14:45:24]protocol is kg_v1.0 [14:45:24]action value=print_text [14:45:24]process_action print_text [14:45:24]cmd_print_text [14:45:24]ExternCall_PrintAddStr [14:45:24]wPrintStart [14:45:24]Write to MH i2c: 01 00 00 8B 5F EA [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 07 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: 01 07 00 8B 5F 00 00 00 00 00 FF 0F FF [14:45:24]RasterBufferAndPrint [14:45:24]line *****ТОВАРНЫЙ ЧЕК***** [14:45:24]line АЗС 120 [14:45:24]line Партнер нефть [14:45:24]line 02508201610067 [14:45:24]line Кассир : Асанбаев Н. [14:45:24]line Счет N : (1)672616 [14:45:24]line 18.06.2024 14:22 [14:45:24]line ПРОДАЖА [14:45:24]line ТРК (МРК, ГНК): 32 [14:45:24]line Вид ГСМ : 2710124130 [14:45:24]line Аи-92-К-5 [14:45:24]line 35.000 x 66.40 [14:45:24]line ИТОГ: 2324.00 [14:45:24]line Тип оплаты: Талоны: ТК ГПНА Online [14:45:24]line 30090585 [14:45:24]line ______________________ [14:45:24]line (подпись) [14:45:24]written 0, free lines is 4095 [14:45:25]Write to MH i2c: 01 00 00 9F 5F FE [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 07 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: 01 07 00 9F 5F 00 00 00 00 00 11 0E 24 [14:45:25]RasterBufferAndPrint [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]line [14:45:25]written 0, free lines is 3602 [14:45:25]MH_Cut [14:45:25]Write to MH i2c: D1 01 00 A6 5F 01 D7 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 01 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: D1 01 00 A6 5F 00 D6 [14:45:25]Write to MH i2c: 01 00 00 A7 5F 06 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** Cut start [14:45:25]*** Partial cut [14:45:25]*** CUTSNS_PIN = 1 [14:45:25]*** CUTSNS_PIN = 0 [14:45:25]OFD Sender: No OFD packet to send [14:45:25]*** Brake cut motor [14:45:26]Read from MH i2c: 01 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 [14:45:26]MH_I2C_Read... [14:45:26]*** Stop cut motor [14:45:26]*** Cut end [14:45:26]Read from MH i2c: 01 07 00 A7 5F 00 00 00 00 00 FF 0F 1B [14:45:26]process_action print_text done [14:45:26]requested_data is exist [14:45:26]produce_requested_data [14:45:26]requested_item fm.sn is exist - process it [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 11 00 00 [14:45:26]Write to MH i2c: E2 08 00 A8 5F 80 11 00 00 00 00 00 00 81 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 17 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 17 00 A8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [14:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:26]wFMCommunicate OK [14:45:26]requested_item fd.num is exist - process it [14:45:26]SAM_PROTO_GetFieldsCounters [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 13 00 00 [14:45:26]Write to MH i2c: E2 08 00 A9 5F 80 13 00 00 00 00 00 00 84 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 62 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 62 00 A9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 31 [14:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:45:26]wFMCommunicate OK [14:45:26]SAM_PROTO_GetFieldsCounters done [14:45:26]requested_item shift.num is exist - process it [14:45:26]requested_item shift.opened is exist - process it [14:45:26]req_shift_opened [14:45:26]FM_GetShiftState [14:45:26]SAM_PROTO_GetShiftState [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 13 01 00 [14:45:26]Write to MH i2c: E2 08 00 AA 5F 80 13 01 00 00 00 00 00 86 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0E 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0E 00 AA 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 07 [14:45:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:45:26]wFMCommunicate OK [14:45:26]SAM_PROTO_GetShiftState done [14:45:26]FM_GetShiftState done [14:45:26]req_shift_opened done [14:45:26]requested_item shift.open_date is exist - process it [14:45:26]req_shift_open_date [14:45:26]req_shift_open_date done [14:45:26]produce_requested_data done [14:45:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:45:26]process_action_free print_text [14:45:26]json_value_free [14:45:26]json_value_free done [14:45:26]process_json_proto returns [14:45:26]Send response to host [14:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:45:26]free response buf [14:45:26]execute_script done [14:45:26]execute_script returns [14:45:26]free content buf [14:45:26]Sock 9.Close socket [14:45:26]Sock 9.Thread stoped [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]accept exits with 7 [14:46:00]New connection [14:46:00]New thread 3067084132 created [14:46:00]Thread 3067227492 joined [14:46:00]Waiting for new connection... [14:46:00] Sock 7.Parse request [14:46:00]Sock 7.Check first char [14:46:00]Sock 7.First char is OK [14:46:00]request: POST /json_proto HTTP/1.0 [14:46:00]Method: POST [14:46:00]URL: /json_proto [14:46:00]Method is POST - this is cgi request [14:46:00]url: /json_proto [14:46:00]query_string will be loaded in cgi processing [14:46:00]execute_cgi json_proto POST (null) [14:46:00]execute_cgi path=json_proto method=POST [14:46:00]POST find Content-Length [14:46:00]Host: 172.17.38.133:8080 [14:46:00]Content-Length: 1193 [14:46:00]Content-Type: application/json [14:46:00] [14:46:00]POST finish read [14:46:00]Found Content-Length = 1193 [14:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672617\u000A18.06.2024 14:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104006;4104005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:00]execute_script... [14:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672617\u000A18.06.2024 14:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104006;4104005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:00]POST & json_proto [14:46:00]process_json_proto [14:46:00]json parsed OK: [14:46:00]protocol is kg_v1.0 [14:46:00]action value=print_text [14:46:00]process_action print_text [14:46:00]cmd_print_text [14:46:00]ExternCall_PrintAddStr [14:46:00]wPrintStart [14:46:00]Write to MH i2c: 01 00 00 AB 5F 0A [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 AB 5F 00 00 00 00 00 FF 0F 1F [14:46:00]RasterBufferAndPrint [14:46:00]line *****ТОВАРНЫЙ ЧЕК***** [14:46:00]line АЗС 120 [14:46:00]line Партнер нефть [14:46:00]line 02508201610067 [14:46:00]line Кассир : Асанбаев Н. [14:46:00]line Счет N : (1)672617 [14:46:00]line 18.06.2024 14:23 [14:46:00]line ПРОДАЖА [14:46:00]line ТРК (МРК, ГНК): 42 [14:46:00]line Вид ГСМ : 2710124130 [14:46:00]line Аи-92-К-5 [14:46:00]line 20.000 x 66.40 [14:46:00]line ИТОГ: 1328.00 [14:46:00]line Тип оплаты: Талоны: Партнер нефть [14:46:00]line 4104006;4104005 [14:46:00]line ______________________ [14:46:00]line (подпись) [14:46:00]written 0, free lines is 4095 [14:46:00]OFD Sender: No OFD packet to send [14:46:00]Write to MH i2c: 01 00 00 BF 5F 1E [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 BF 5F 00 00 00 00 00 14 0E 47 [14:46:00]RasterBufferAndPrint [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]written 0, free lines is 3606 [14:46:00]MH_Cut [14:46:00]Write to MH i2c: D1 01 00 C6 5F 01 F7 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 C6 5F 00 F6 [14:46:00]Write to MH i2c: 01 00 00 C7 5F 26 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:01]*** Cut start [14:46:01]*** Partial cut [14:46:01]*** CUTSNS_PIN = 1 [14:46:01]*** CUTSNS_PIN = 0 [14:46:01]*** Brake cut motor [14:46:01]Read from MH i2c: 01 [14:46:01]MH_I2C_Read... [14:46:01]*** Stop cut motor [14:46:01]*** Cut end [14:46:01]Read from MH i2c: 01 07 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: 01 07 00 C7 5F 00 00 00 00 00 FF 0F 3B [14:46:01]process_action print_text done [14:46:01]requested_data is exist [14:46:01]produce_requested_data [14:46:01]requested_item fm.sn is exist - process it [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 11 00 00 [14:46:01]Write to MH i2c: E2 08 00 C8 5F 80 11 00 00 00 00 00 00 A1 [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 C8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [14:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:02]wFMCommunicate OK [14:46:02]requested_item fd.num is exist - process it [14:46:02]SAM_PROTO_GetFieldsCounters [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 13 00 00 [14:46:02]Write to MH i2c: E2 08 00 C9 5F 80 13 00 00 00 00 00 00 A4 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 62 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 62 00 C9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 51 [14:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetFieldsCounters done [14:46:02]requested_item shift.num is exist - process it [14:46:02]requested_item shift.opened is exist - process it [14:46:02]req_shift_opened [14:46:02]FM_GetShiftState [14:46:02]SAM_PROTO_GetShiftState [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 13 01 00 [14:46:02]Write to MH i2c: E2 08 00 CA 5F 80 13 01 00 00 00 00 00 A6 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 CA 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 27 [14:46:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetShiftState done [14:46:02]FM_GetShiftState done [14:46:02]req_shift_opened done [14:46:02]requested_item shift.open_date is exist - process it [14:46:02]req_shift_open_date [14:46:02]req_shift_open_date done [14:46:02]produce_requested_data done [14:46:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:46:02]process_action_free print_text [14:46:02]json_value_free [14:46:02]json_value_free done [14:46:02]process_json_proto returns [14:46:02]Send response to host [14:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:46:02]free response buf [14:46:02]execute_script done [14:46:02]execute_script returns [14:46:02]free content buf [14:46:02]Sock 7.Close socket [14:46:02]Sock 7.Thread stoped [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:47]accept exits with 9 [14:46:47]New connection [14:46:47]New thread 3067227492 created [14:46:47]Thread 3067084132 joined [14:46:47]Waiting for new connection... [14:46:47] Sock 9.Parse request [14:46:47]Sock 9.Check first char [14:46:47]Sock 9.First char is OK [14:46:47]request: POST /json_proto HTTP/1.0 [14:46:47]Method: POST [14:46:47]URL: /json_proto [14:46:47]Method is POST - this is cgi request [14:46:47]url: /json_proto [14:46:47]query_string will be loaded in cgi processing [14:46:47]execute_cgi json_proto POST (null) [14:46:47]execute_cgi path=json_proto method=POST [14:46:47]POST find Content-Length [14:46:47]Host: 172.17.38.133:8080 [14:46:47]Content-Length: 1184 [14:46:47]Content-Type: application/json [14:46:47] [14:46:47]POST finish read [14:46:47]Found Content-Length = 1184 [14:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672618\u000A18.06.2024 14:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104004\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:47]execute_script... [14:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672618\u000A18.06.2024 14:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104004\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:47]POST & json_proto [14:46:47]process_json_proto [14:46:47]json parsed OK: [14:46:47]protocol is kg_v1.0 [14:46:47]action value=print_text [14:46:47]process_action print_text [14:46:47]cmd_print_text [14:46:47]ExternCall_PrintAddStr [14:46:47]wPrintStart [14:46:47]Write to MH i2c: 01 00 00 CB 5F 2A [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 CB 5F 00 00 00 00 00 FF 0F 3F [14:46:47]RasterBufferAndPrint [14:46:47]line *****ТОВАРНЫЙ ЧЕК***** [14:46:47]line АЗС 120 [14:46:47]line Партнер нефть [14:46:47]line 02508201610067 [14:46:47]line Кассир : Асанбаев Н. [14:46:47]line Счет N : (1)672618 [14:46:47]line 18.06.2024 14:24 [14:46:47]line ПРОДАЖА [14:46:47]line ТРК (МРК, ГНК): 42 [14:46:47]line Вид ГСМ : 2710124130 [14:46:47]line Аи-92-К-5 [14:46:47]line 10.000 x 66.40 [14:46:47]line ИТОГ: 664.00 [14:46:47]line Тип оплаты: Талоны: Партнер нефть [14:46:47]line 4104004 [14:46:47]line ______________________ [14:46:47]line (подпись) [14:46:47]written 0, free lines is 4095 [14:46:47]Write to MH i2c: 01 00 00 DF 5F 3E [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 DF 5F 00 00 00 00 00 10 0E 63 [14:46:47]RasterBufferAndPrint [14:46:47]line [14:46:47]line [14:46:47]line [14:46:47]line [14:46:47]line [14:46:47]written 0, free lines is 3602 [14:46:47]MH_Cut [14:46:47]Write to MH i2c: D1 01 00 E6 5F 01 17 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: D1 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: D1 01 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: D1 01 00 E6 5F 00 16 [14:46:47]Write to MH i2c: 01 00 00 E7 5F 46 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:48]*** Cut start [14:46:48]*** Partial cut [14:46:48]*** CUTSNS_PIN = 1 [14:46:48]*** CUTSNS_PIN = 0 [14:46:48]*** Brake cut motor [14:46:48]Read from MH i2c: 01 [14:46:48]MH_I2C_Read... [14:46:48]*** Stop cut motor [14:46:48]*** Cut end [14:46:48]Read from MH i2c: 01 07 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 E7 5F 00 00 00 00 00 FF 0F 5B [14:46:48]process_action print_text done [14:46:48]requested_data is exist [14:46:48]produce_requested_data [14:46:48]requested_item fm.sn is exist - process it [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 11 00 00 [14:46:48]Write to MH i2c: E2 08 00 E8 5F 80 11 00 00 00 00 00 00 C1 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 E8 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [14:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:48]wFMCommunicate OK [14:46:48]requested_item fd.num is exist - process it [14:46:48]SAM_PROTO_GetFieldsCounters [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 13 00 00 [14:46:48]Write to MH i2c: E2 08 00 E9 5F 80 13 00 00 00 00 00 00 C4 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 62 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 62 00 E9 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 71 [14:46:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_GetFieldsCounters done [14:46:48]requested_item shift.num is exist - process it [14:46:48]requested_item shift.opened is exist - process it [14:46:48]req_shift_opened [14:46:48]FM_GetShiftState [14:46:48]SAM_PROTO_GetShiftState [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 13 01 00 [14:46:48]Write to MH i2c: E2 08 00 EA 5F 80 13 01 00 00 00 00 00 C6 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0E 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0E 00 EA 5F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 47 [14:46:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_GetShiftState done [14:46:48]FM_GetShiftState done [14:46:48]req_shift_opened done [14:46:48]requested_item shift.open_date is exist - process it [14:46:48]req_shift_open_date [14:46:48]req_shift_open_date done [14:46:48]produce_requested_data done [14:46:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:46:48]process_action_free print_text [14:46:48]json_value_free [14:46:48]json_value_free done [14:46:48]process_json_proto returns [14:46:48]Send response to host [14:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:46:48]free response buf [14:46:48]execute_script done [14:46:48]execute_script returns [14:46:48]free content buf [14:46:48]Sock 9.Close socket [14:46:48]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]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:29]accept exits with 7 [14:49:29]New connection [14:49:29]New thread 3067084132 created [14:49:29]Thread 3067227492 joined [14:49:29]Waiting for new connection... [14:49:29] Sock 7.Parse request [14:49:29]Sock 7.Check first char [14:49:29]Sock 7.First char is OK [14:49:29]request: POST /json_proto HTTP/1.0 [14:49:29]Method: POST [14:49:29]URL: /json_proto [14:49:29]Method is POST - this is cgi request [14:49:29]url: /json_proto [14:49:29]query_string will be loaded in cgi processing [14:49:29]execute_cgi json_proto POST (null) [14:49:29]execute_cgi path=json_proto method=POST [14:49:29]POST find Content-Length [14:49:29]Host: 172.17.38.133:8080 [14:49:29]Content-Length: 1195 [14:49:29]Content-Type: application/json [14:49:29] [14:49:29]POST finish read [14:49:29]Found Content-Length = 1195 [14:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672619\u000A18.06.2024 14:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:29]execute_script... [14:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672619\u000A18.06.2024 14:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:29]POST & json_proto [14:49:29]process_json_proto [14:49:29]json parsed OK: [14:49:29]protocol is kg_v1.0 [14:49:29]action value=print_text [14:49:29]process_action print_text [14:49:29]cmd_print_text [14:49:29]ExternCall_PrintAddStr [14:49:29]wPrintStart [14:49:29]Write to MH i2c: 01 00 00 EB 5F 4A [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 07 00 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 07 00 EB 5F 00 00 00 00 00 FF 0F 5F [14:49:29]RasterBufferAndPrint [14:49:29]line *****ТОВАРНЫЙ ЧЕК***** [14:49:29]line АЗС 120 [14:49:29]line Партнер нефть [14:49:29]line 02508201610067 [14:49:29]line Кассир : Асанбаев Н. [14:49:29]line Счет N : (1)672619 [14:49:29]line 18.06.2024 14:26 [14:49:29]line ПРОДАЖА [14:49:29]line ТРК (МРК, ГНК): 42 [14:49:29]line Вид ГСМ : 2710124130 [14:49:29]line Аи-92-К-5 [14:49:29]line 15.070 x 66.40 [14:49:29]line ИТОГ: 1000.65 [14:49:29]line Тип оплаты: Талоны: Топливная Карта [14:49:29]line 03082 [14:49:29]line ______________________ [14:49:29]line (подпись) [14:49:29]written 0, free lines is 4095 [14:49:29]Write to MH i2c: 01 00 00 FF 5F 5E [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 07 00 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: 01 07 00 FF 5F 00 00 00 00 00 10 0E 83 [14:49:29]RasterBufferAndPrint [14:49:29]line [14:49:29]line [14:49:29]line [14:49:29]line [14:49:29]line [14:49:29]written 0, free lines is 3601 [14:49:29]MH_Cut [14:49:29]Write to MH i2c: D1 01 00 06 60 01 38 [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: D1 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: D1 01 00 [14:49:29]MH_I2C_Read... [14:49:29]Read from MH i2c: D1 01 00 06 60 00 37 [14:49:29]Write to MH i2c: 01 00 00 07 60 67 [14:49:29]Write i2c OK [14:49:29]MH_I2C_Read... [14:49:29]*** Cut start [14:49:29]*** Partial cut [14:49:29]*** CUTSNS_PIN = 1 [14:49:29]*** CUTSNS_PIN = 0 [14:49:30]*** Brake cut motor [14:49:30]Read from MH i2c: 01 [14:49:30]MH_I2C_Read... [14:49:30]*** Stop cut motor [14:49:30]*** Cut end [14:49:30]Read from MH i2c: 01 07 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: 01 07 00 07 60 00 00 00 00 00 FF 0F 7C [14:49:30]process_action print_text done [14:49:30]requested_data is exist [14:49:30]produce_requested_data [14:49:30]requested_item fm.sn is exist - process it [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 11 00 00 [14:49:30]Write to MH i2c: E2 08 00 08 60 80 11 00 00 00 00 00 00 E2 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 17 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 17 00 08 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [14:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:49:30]wFMCommunicate OK [14:49:30]requested_item fd.num is exist - process it [14:49:30]SAM_PROTO_GetFieldsCounters [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 13 00 00 [14:49:30]Write to MH i2c: E2 08 00 09 60 80 13 00 00 00 00 00 00 E5 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 62 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 62 00 09 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 92 [14:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:49:30]wFMCommunicate OK [14:49:30]SAM_PROTO_GetFieldsCounters done [14:49:30]requested_item shift.num is exist - process it [14:49:30]requested_item shift.opened is exist - process it [14:49:30]req_shift_opened [14:49:30]FM_GetShiftState [14:49:30]SAM_PROTO_GetShiftState [14:49:30]wFMCommunicate request_size=4 [14:49:30]MH_SAM_APDU [14:49:30]CAPDU: 80 13 01 00 [14:49:30]Write to MH i2c: E2 08 00 0A 60 80 13 01 00 00 00 00 00 E7 [14:49:30]Write i2c OK [14:49:30]MH_I2C_Read... [14:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:30]Read from MH i2c: E2 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0E 00 [14:49:30]MH_I2C_Read... [14:49:30]Read from MH i2c: E2 0E 00 0A 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 68 [14:49:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:49:30]wFMCommunicate OK [14:49:30]SAM_PROTO_GetShiftState done [14:49:30]FM_GetShiftState done [14:49:30]req_shift_opened done [14:49:30]requested_item shift.open_date is exist - process it [14:49:30]req_shift_open_date [14:49:30]req_shift_open_date done [14:49:30]produce_requested_data done [14:49:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:49:30]process_action_free print_text [14:49:30]json_value_free [14:49:30]json_value_free done [14:49:30]process_json_proto returns [14:49:30]Send response to host [14:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:49:30]free response buf [14:49:30]execute_script done [14:49:30]execute_script returns [14:49:30]free content buf [14:49:30]Sock 7.Close socket [14:49:30]Sock 7.Thread stoped [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:45]accept exits with 9 [14:50:45]New connection [14:50:45]New thread 3067227492 created [14:50:45]Thread 3067084132 joined [14:50:45]Waiting for new connection... [14:50:45] Sock 9.Parse request [14:50:45]Sock 9.Check first char [14:50:45]Sock 9.First char is OK [14:50:45]request: POST /json_proto HTTP/1.0 [14:50:45]Method: POST [14:50:45]URL: /json_proto [14:50:45]Method is POST - this is cgi request [14:50:45]url: /json_proto [14:50:45]query_string will be loaded in cgi processing [14:50:45]execute_cgi json_proto POST (null) [14:50:45]execute_cgi path=json_proto method=POST [14:50:45]POST find Content-Length [14:50:45]Host: 172.17.38.133:8080 [14:50:45]Content-Length: 1193 [14:50:45]Content-Type: application/json [14:50:45] [14:50:45]POST finish read [14:50:45]Found Content-Length = 1193 [14:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672620\u000A18.06.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104033;4104032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:45]execute_script... [14:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672620\u000A18.06.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104033;4104032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:45]POST & json_proto [14:50:45]process_json_proto [14:50:45]json parsed OK: [14:50:45]protocol is kg_v1.0 [14:50:45]action value=print_text [14:50:45]process_action print_text [14:50:45]cmd_print_text [14:50:45]ExternCall_PrintAddStr [14:50:45]wPrintStart [14:50:45]Write to MH i2c: 01 00 00 0B 60 6B [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 07 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: 01 07 00 0B 60 00 00 00 00 00 FF 0F 80 [14:50:45]RasterBufferAndPrint [14:50:45]line *****ТОВАРНЫЙ ЧЕК***** [14:50:45]line АЗС 120 [14:50:45]line Партнер нефть [14:50:45]line 02508201610067 [14:50:45]line Кассир : Асанбаев Н. [14:50:45]line Счет N : (1)672620 [14:50:45]line 18.06.2024 14:28 [14:50:45]line ПРОДАЖА [14:50:45]line ТРК (МРК, ГНК): 32 [14:50:45]line Вид ГСМ : 2710124130 [14:50:45]line Аи-92-К-5 [14:50:45]line 20.000 x 66.40 [14:50:45]line ИТОГ: 1328.00 [14:50:45]line Тип оплаты: Талоны: Партнер нефть [14:50:45]line 4104033;4104032 [14:50:45]line ______________________ [14:50:45]line (подпись) [14:50:45]written 0, free lines is 4095 [14:50:46]Write to MH i2c: 01 00 00 1F 60 7F [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 07 00 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: 01 07 00 1F 60 00 00 00 00 00 17 0E AB [14:50:46]RasterBufferAndPrint [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]line [14:50:46]written 0, free lines is 3609 [14:50:46]MH_Cut [14:50:46]Write to MH i2c: D1 01 00 26 60 01 58 [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 01 00 [14:50:46]MH_I2C_Read... [14:50:46]Read from MH i2c: D1 01 00 26 60 00 57 [14:50:46]Write to MH i2c: 01 00 00 27 60 87 [14:50:46]Write i2c OK [14:50:46]MH_I2C_Read... [14:50:46]OFD Sender: No OFD packet to send [14:50:46]*** Cut start [14:50:46]*** Partial cut [14:50:46]*** CUTSNS_PIN = 1 [14:50:46]*** CUTSNS_PIN = 0 [14:50:46]*** Brake cut motor [14:50:47]Read from MH i2c: 01 [14:50:47]MH_I2C_Read... [14:50:47]*** Stop cut motor [14:50:47]*** Cut end [14:50:47]Read from MH i2c: 01 07 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: 01 07 00 27 60 00 00 00 00 00 FF 0F 9C [14:50:47]process_action print_text done [14:50:47]requested_data is exist [14:50:47]produce_requested_data [14:50:47]requested_item fm.sn is exist - process it [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 11 00 00 [14:50:47]Write to MH i2c: E2 08 00 28 60 80 11 00 00 00 00 00 00 02 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 17 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 17 00 28 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [14:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:50:47]wFMCommunicate OK [14:50:47]requested_item fd.num is exist - process it [14:50:47]SAM_PROTO_GetFieldsCounters [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 13 00 00 [14:50:47]Write to MH i2c: E2 08 00 29 60 80 13 00 00 00 00 00 00 05 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 62 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 62 00 29 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 B2 [14:50: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:50:47]wFMCommunicate OK [14:50:47]SAM_PROTO_GetFieldsCounters done [14:50:47]requested_item shift.num is exist - process it [14:50:47]requested_item shift.opened is exist - process it [14:50:47]req_shift_opened [14:50:47]FM_GetShiftState [14:50:47]SAM_PROTO_GetShiftState [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 13 01 00 [14:50:47]Write to MH i2c: E2 08 00 2A 60 80 13 01 00 00 00 00 00 07 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 0E 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 0E 00 2A 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 88 [14:50:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:50:47]wFMCommunicate OK [14:50:47]SAM_PROTO_GetShiftState done [14:50:47]FM_GetShiftState done [14:50:47]req_shift_opened done [14:50:47]requested_item shift.open_date is exist - process it [14:50:47]req_shift_open_date [14:50:47]req_shift_open_date done [14:50:47]produce_requested_data done [14:50:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:50:47]process_action_free print_text [14:50:47]json_value_free [14:50:47]json_value_free done [14:50:47]process_json_proto returns [14:50:47]Send response to host [14:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:50:47]free response buf [14:50:47]execute_script done [14:50:47]execute_script returns [14:50:47]free content buf [14:50:47]Sock 9.Close socket [14:50:47]Sock 9.Thread stoped [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:53]accept exits with 7 [14:52:53]New connection [14:52:53]New thread 3067084132 created [14:52:53]Thread 3067227492 joined [14:52:53]Waiting for new connection... [14:52:53] Sock 7.Parse request [14:52:53]Sock 7.Check first char [14:52:53]Sock 7.First char is OK [14:52:53]request: POST /json_proto HTTP/1.0 [14:52:53]Method: POST [14:52:53]URL: /json_proto [14:52:53]Method is POST - this is cgi request [14:52:53]url: /json_proto [14:52:53]query_string will be loaded in cgi processing [14:52:53]execute_cgi json_proto POST (null) [14:52:53]execute_cgi path=json_proto method=POST [14:52:53]POST find Content-Length [14:52:53]Host: 172.17.38.133:8080 [14:52:53]Content-Length: 1194 [14:52:53]Content-Type: application/json [14:52:53] [14:52:53]POST finish read [14:52:53]Found Content-Length = 1194 [14:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672621\u000A18.06.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.100 x 66.40\u000A\u0418\u0422\u041E\u0413: 670.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:53]execute_script... [14:52:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672621\u000A18.06.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.100 x 66.40\u000A\u0418\u0422\u041E\u0413: 670.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:53]POST & json_proto [14:52:53]process_json_proto [14:52:53]json parsed OK: [14:52:53]protocol is kg_v1.0 [14:52:53]action value=print_text [14:52:53]process_action print_text [14:52:53]cmd_print_text [14:52:53]ExternCall_PrintAddStr [14:52:53]wPrintStart [14:52:53]Write to MH i2c: 01 00 00 2B 60 8B [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 07 00 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 07 00 2B 60 00 00 00 00 00 FF 0F A0 [14:52:53]RasterBufferAndPrint [14:52:53]line *****ТОВАРНЫЙ ЧЕК***** [14:52:53]line АЗС 120 [14:52:53]line Партнер нефть [14:52:53]line 02508201610067 [14:52:53]line Кассир : Асанбаев Н. [14:52:53]line Счет N : (1)672621 [14:52:53]line 18.06.2024 14:30 [14:52:53]line ПРОДАЖА [14:52:53]line ТРК (МРК, ГНК): 32 [14:52:53]line Вид ГСМ : 2710124130 [14:52:53]line Аи-92-К-5 [14:52:53]line 10.100 x 66.40 [14:52:53]line ИТОГ: 670.64 [14:52:53]line Тип оплаты: Талоны: Топливная Карта [14:52:53]line 03082 [14:52:53]line ______________________ [14:52:53]line (подпись) [14:52:53]written 0, free lines is 4095 [14:52:54]Write to MH i2c: 01 00 00 3F 60 9F [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: 01 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: 01 07 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: 01 07 00 3F 60 00 00 00 00 00 11 0E C5 [14:52:54]RasterBufferAndPrint [14:52:54]line [14:52:54]line [14:52:54]line [14:52:54]line [14:52:54]line [14:52:54]written 0, free lines is 3602 [14:52:54]MH_Cut [14:52:54]Write to MH i2c: D1 01 00 46 60 01 78 [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: D1 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: D1 01 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: D1 01 00 46 60 00 77 [14:52:54]Write to MH i2c: 01 00 00 47 60 A7 [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]*** Cut start [14:52:54]*** Partial cut [14:52:54]*** CUTSNS_PIN = 1 [14:52:54]*** CUTSNS_PIN = 0 [14:52:54]*** Brake cut motor [14:52:55]Read from MH i2c: 01 [14:52:55]MH_I2C_Read... [14:52:55]*** Stop cut motor [14:52:55]*** Cut end [14:52:55]Read from MH i2c: 01 07 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: 01 07 00 47 60 00 00 00 00 00 FF 0F BC [14:52:55]process_action print_text done [14:52:55]requested_data is exist [14:52:55]produce_requested_data [14:52:55]requested_item fm.sn is exist - process it [14:52:55]wFMCommunicate request_size=4 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 11 00 00 [14:52:55]Write to MH i2c: E2 08 00 48 60 80 11 00 00 00 00 00 00 22 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 17 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 17 00 48 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 75 [14:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:55]wFMCommunicate OK [14:52:55]requested_item fd.num is exist - process it [14:52:55]SAM_PROTO_GetFieldsCounters [14:52:55]wFMCommunicate request_size=4 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 13 00 00 [14:52:55]Write to MH i2c: E2 08 00 49 60 80 13 00 00 00 00 00 00 25 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 62 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 62 00 49 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 D2 [14:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 94 01 00 0E 04 04 00 60 01 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 [14:52:55]wFMCommunicate OK [14:52:55]SAM_PROTO_GetFieldsCounters done [14:52:55]requested_item shift.num is exist - process it [14:52:55]requested_item shift.opened is exist - process it [14:52:55]req_shift_opened [14:52:55]FM_GetShiftState [14:52:55]SAM_PROTO_GetShiftState [14:52:55]wFMCommunicate request_size=4 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 13 01 00 [14:52:55]Write to MH i2c: E2 08 00 4A 60 80 13 01 00 00 00 00 00 27 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0E 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0E 00 4A 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A8 [14:52:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:52:55]wFMCommunicate OK [14:52:55]SAM_PROTO_GetShiftState done [14:52:55]FM_GetShiftState done [14:52:55]req_shift_opened done [14:52:55]requested_item shift.open_date is exist - process it [14:52:55]req_shift_open_date [14:52:55]req_shift_open_date done [14:52:55]produce_requested_data done [14:52:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:52:55]process_action_free print_text [14:52:55]json_value_free [14:52:55]json_value_free done [14:52:55]process_json_proto returns [14:52:55]Send response to host [14:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103443,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:52:55]free response buf [14:52:55]execute_script done [14:52:55]execute_script returns [14:52:55]free content buf [14:52:55]Sock 7.Close socket [14:52:55]Sock 7.Thread stoped [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:05]accept exits with 9 [14:57:05]New connection [14:57:05]New thread 3067227492 created [14:57:05]Thread 3067084132 joined [14:57:05]Waiting for new connection... [14:57:05] Sock 9.Parse request [14:57:05]Sock 9.Check first char [14:57:05]Sock 9.First char is OK [14:57:05]request: POST /json_proto HTTP/1.0 [14:57:05]Method: POST [14:57:05]URL: /json_proto [14:57:05]Method is POST - this is cgi request [14:57:05]url: /json_proto [14:57:05]query_string will be loaded in cgi processing [14:57:05]execute_cgi json_proto POST (null) [14:57:05]execute_cgi path=json_proto method=POST [14:57:05]POST find Content-Length [14:57:05]Host: 172.17.38.133:8080 [14:57:05]Content-Length: 677 [14:57:05]Content-Type: application/json [14:57:05] [14:57:05]POST finish read [14:57:05]Found Content-Length = 677 [14:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:05]execute_script... [14:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:05]POST & json_proto [14:57:05]process_json_proto [14:57:05]json parsed OK: [14:57:05]protocol is kg_v1.0 [14:57:05]action value=close_receipt [14:57:05]process_action close_receipt [14:57:05]cmd_close_receipt [14:57:05]MH_GetDate [14:57:05]Write to MH i2c: F0 00 00 4B 60 9A [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 09 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 09 00 4B 60 00 48 A0 71 66 BD 8F 7C 64 8E [14:57:05]GetLastDocTimeStamp 1718721399 [14:57:05]current date 1718722632 [14:57:05]FM_GetShiftState [14:57:05]SAM_PROTO_GetShiftState [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 13 01 00 [14:57:05]Write to MH i2c: E2 08 00 4C 60 80 13 01 00 00 00 00 00 29 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 4C 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AA [14:57:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_GetShiftState done [14:57:05]FM_GetShiftState done [14:57:05]opened in 1718670284 [14:57:05]opened+sec_in_day 1718756684 [14:57:05]quantity*price = 50065 [14:57:05]sum+1 = 50067 [14:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 128 18.06.2024 14:57 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103444 ФПД: 242526970439173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103444&fm=242526970439173&tin=02508201610067®Number=0000000000092785&sum=50000 [14:57:06]StoreToDocumentArchive [14:57:06]shift 352 fd 103444 [14:57:06]save to /storage/0352/doc_00103444 [14:57:06]save last doc name /storage/0352/doc_00103444 to /storage/kkm_last_doc_name [14:57:06]save OK [14:57:06]Clear old archive folders... [14:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:06]tlvbuf is 013A1EC0 [14:57:06]SAM_PROTO_ClearQueue [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 09 00 00 [14:57:06]Write to MH i2c: E2 08 00 59 60 80 09 00 00 00 00 00 00 2B [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:06]OFD Sender: No OFD packet to send [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 59 60 00 90 00 2D [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_ClearQueue done [14:57:06]KKMCreateOFDPacket [14:57:06]OFDProtocolAddRootSTLVToBuf [14:57:06]FM_MakeSignedData [14:57:06]FM_MakeSignedData [14:57:06]SAM_PROTO_SignData [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 01 02 [14:57:06]Write to MH i2c: E2 08 00 5A 60 80 0D 01 02 00 00 00 00 33 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 5A 60 00 90 00 2E [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=255 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 48 A0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 94 01 00 35 04 06 00 DC [14:57:06]Write to MH i2c: E2 02 01 5B 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 48 A0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 94 01 00 35 04 06 00 DC 00 00 12 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 5B 60 00 90 00 2F [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=10 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 02 02 05 93 B5 EB E6 05 [14:57:06]Write to MH i2c: E2 0D 00 5C 60 80 0D 02 02 05 00 93 B5 EB E6 05 00 00 5E [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 5C 60 00 90 00 30 [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 03 02 [14:57:06]Write to MH i2c: E2 08 00 5D 60 80 0D 03 02 00 00 00 00 38 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0B 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0B 00 5D 60 00 DF 28 C2 11 7B 6F EE D7 90 00 C2 [14:57:06]RAPDU: DF 28 C2 11 7B 6F EE D7 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_SignData done [14:57:06]FM_MakeSignedData done [14:57:06]CreateOFDProtocolMessage [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 11 00 00 [14:57:06]Write to MH i2c: E2 08 00 5E 60 80 11 00 00 00 00 00 00 38 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 5E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [14:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:57:06]wFMCommunicate OK [14:57:06]CreateOFDProtocolMessage done [14:57:06]OFDSenderStorePacket 103444 [14:57:06]StoreOFDPacket docnum=103444 [14:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 4B 07 01 E3 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 48 A0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 94 01 00 35 04 06 00 DC 93 B5 EB E6 05 DF 28 C2 11 7B 6F EE D7 [14:57:06]CheckFolder [14:57:06]dirname=/storage/ofd_packets [14:57:06]CheckFolder done [14:57:06]ProducePacketName [14:57:06]name=ofd_packets/00103444 [14:57:06]NVStorageSaveData ofd_packets/00103444 [14:57:06]File name is /storage/ofd_packets/00103444 [14:57:06]Write 301 bytes [14:57:06]NVStorageSaveData done [14:57:06]OFDSenderStorePacket done [14:57:06]KKMCreateOFDPacket done [14:57:06]NVStorageSaveData kkm_last_timestamp [14:57:06]File name is /storage/kkm_last_timestamp [14:57:06]Write 4 bytes [14:57:06]NVStorageSaveData done [14:57:06]ExternCall_PrintAddStr [14:57:06]wPrintStart [14:57:06]Write to MH i2c: 01 00 00 5F 60 BF [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 5F 60 00 00 00 00 00 FF 0F D4 [14:57:06]RasterBufferAndPrint [14:57:06]line Счет N : (1)672622 [14:57:06]line ИНН: 02508201610067 [14:57:06]line Контрольно-Кассовый Чек [14:57:06]line ПРОДАЖА [14:57:06]line ТРК (МРК, ГНК) : 32 [14:57:06]line Товар: 2710124130 [14:57:06]line Аи-92-К-5 [14:57:06]line 7.540 * 66.40 [14:57:06]line = 500.66 [14:57:06]line НДС 12% НСП 1% [14:57:06]line > о реализуемом товаре [14:57:06]line ОКРУГЛЕНИЕ: -0.66 [14:57:06]line ИТОГО: 500.00 [14:57:06]line Внесено: 500.00 [14:57:06]line СДАЧА: 0.00 [14:57:06]line НСП 1% : 4.43 [14:57:06]line НДС 12% : 53.17 [14:57:06]line Наличными: 500.00 [14:57:06]line Безнал.: 0.00 [14:57:06]line Место: АЗС № 120 "Партнер Нефть" [14:57:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:57:06]line СНО: Общий режим [14:57:06]line Чек 128 18.06.2024 14:57 [14:57:06]line Смена: 352 ФФД: 1.0 [14:57:06]line ЗНМ: 0300000164 [14:57:06]line РНМ: 0000000000092785 [14:57:06]line Версия ККМ: 001 [14:57:06]line ФМ: 0000000000875093 [14:57:06]line ФД: 103444 [14:57:06]line ФПД: 242526970439173 [14:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103444&fm=242526970439173&tin=02508201610067®Number=0000000000092785&sum=50000 [14:57:07]OFD Sender: Processing packet 103444 [packets to send 17, broken 16] [14:57:07]ProducePacketName [14:57:07]name=ofd_packets/00103444 [14:57:07]OFD Sender: To server: pG, [14:57:07]CommunicateWithHost lk.salyk.kg:30040 [14:57:07]ConnectInit lk.salyk.kg [14:57:07]written 0, free lines is 4095 [14:57:07]Connected sock=10 [14:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 4B 07 01 E3 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 48 A0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 94 01 00 35 04 06 00 DC 93 B5 EB E6 05 DF 28 C2 11 7B 6F EE D7 [14:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1E 39 47 00 73 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 35 30 39 33 10 04 04 00 14 94 01 00 F4 03 04 00 D4 46 71 66 B6 04 01 00 00 66 80 94 3F DE F9 DD BB [14:57:07]CommunicateWithHost err = 0 [14:57:07]CheckOFDResponse [14:57:07]1017 (14) - 77093643461234 [14:57:07]1041 (16) - 0000000000875093 [14:57:07]1040 (4) - 103444 [14:57:07]1012 (4) - 18.06.2024 08:35 [14:57:07]1206 (1) - 0 [14:57:07]OFD Sender: Remove packet 103444 [14:57:07]ProducePacketName [14:57:07]name=ofd_packets/00103444 [14:57:07]NVStorageDeleteData [14:57:07]Write to MH i2c: 01 00 00 8A 60 EA [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 8A 60 00 00 00 00 00 F2 0C EF [14:57:07]RasterBufferAndPrint [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]written 0, free lines is 3323 [14:57:07]MH_Cut [14:57:07]Write to MH i2c: D1 01 00 91 60 01 C3 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 01 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 01 00 91 60 00 C2 [14:57:07]Write to MH i2c: 01 00 00 92 60 F2 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:08]OFD Sender: No OFD packet to send [14:57:08]*** Cut start [14:57:08]*** Partial cut [14:57:08]*** CUTSNS_PIN = 1 [14:57:08]*** CUTSNS_PIN = 0 [14:57:08]*** Brake cut motor [14:57:09]Read from MH i2c: 01 [14:57:09]MH_I2C_Read... [14:57:09]*** Stop cut motor [14:57:09]*** Cut end [14:57:09]Read from MH i2c: 01 07 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: 01 07 00 92 60 00 00 00 00 00 FF 0F 07 [14:57:09]process_action close_receipt done [14:57:09]requested_data is exist [14:57:09]produce_requested_data [14:57:09]requested_item fm.sn is exist - process it [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 11 00 00 [14:57:09]Write to MH i2c: E2 08 00 93 60 80 11 00 00 00 00 00 00 6D [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 93 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [14:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:57:09]wFMCommunicate OK [14:57:09]requested_item fd.num is exist - process it [14:57:09]SAM_PROTO_GetFieldsCounters [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 00 00 [14:57:09]Write to MH i2c: E2 08 00 94 60 80 13 00 00 00 00 00 00 70 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 62 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 62 00 94 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 94 01 00 0E 04 04 00 60 01 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 21 [14:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 94 01 00 0E 04 04 00 60 01 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 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetFieldsCounters done [14:57:09]requested_item shift.num is exist - process it [14:57:09]requested_item shift.opened is exist - process it [14:57:09]req_shift_opened [14:57:09]FM_GetShiftState [14:57:09]SAM_PROTO_GetShiftState [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 01 00 [14:57:09]Write to MH i2c: E2 08 00 95 60 80 13 01 00 00 00 00 00 72 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 95 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F3 [14:57:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetShiftState done [14:57:09]FM_GetShiftState done [14:57:09]req_shift_opened done [14:57:09]requested_item shift.open_date is exist - process it [14:57:09]req_shift_open_date [14:57:09]req_shift_open_date done [14:57:09]produce_requested_data done [14:57:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103444,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [14:57:09]process_action_free close_receipt [14:57:09]json_value_free [14:57:09]json_value_free done [14:57:09]process_json_proto returns [14:57:09]Send response to host [14:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103444,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [14:57:09]free response buf [14:57:09]execute_script done [14:57:09]execute_script returns [14:57:09]free content buf [14:57:09]Sock 9.Close socket [14:57:09]Sock 9.Thread stoped [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:41]accept exits with 7 [15:02:41]New connection [15:02:41]New thread 3067084132 created [15:02:41]Thread 3067227492 joined [15:02:41]Waiting for new connection... [15:02:41] Sock 7.Parse request [15:02:41]Sock 7.Check first char [15:02:41]Sock 7.First char is OK [15:02:41]request: POST /json_proto HTTP/1.0 [15:02:41]Method: POST [15:02:41]URL: /json_proto [15:02:41]Method is POST - this is cgi request [15:02:41]url: /json_proto [15:02:41]query_string will be loaded in cgi processing [15:02:41]execute_cgi json_proto POST (null) [15:02:41]execute_cgi path=json_proto method=POST [15:02:41]POST find Content-Length [15:02:41]Host: 172.17.38.133:8080 [15:02:41]Content-Length: 682 [15:02:41]Content-Type: application/json [15:02:41] [15:02:41]POST finish read [15:02:41]Found Content-Length = 682 [15:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:41]execute_script... [15:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:41]POST & json_proto [15:02:41]process_json_proto [15:02:41]json parsed OK: [15:02:41]protocol is kg_v1.0 [15:02:41]action value=close_receipt [15:02:41]process_action close_receipt [15:02:41]cmd_close_receipt [15:02:41]MH_GetDate [15:02:41]Write to MH i2c: F0 00 00 96 60 E5 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: F0 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: F0 09 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: F0 09 00 96 60 00 98 A1 71 66 BD 8F 7C 64 2A [15:02:41]GetLastDocTimeStamp 1718722632 [15:02:41]current date 1718722968 [15:02:41]FM_GetShiftState [15:02:41]SAM_PROTO_GetShiftState [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 13 01 00 [15:02:41]Write to MH i2c: E2 08 00 97 60 80 13 01 00 00 00 00 00 74 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0E 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0E 00 97 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F5 [15:02:41]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:02:41]wFMCommunicate OK [15:02:41]SAM_PROTO_GetShiftState done [15:02:41]FM_GetShiftState done [15:02:41]opened in 1718670284 [15:02:41]opened+sec_in_day 1718756684 [15:02:41]quantity*price = 200063 [15:02:41]sum+1 = 200064 [15:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 129 18.06.2024 15:02 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103445 ФПД: 101575210067146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103445&fm=101575210067146&tin=02508201610067®Number=0000000000092785&sum=200000 [15:02:42]StoreToDocumentArchive [15:02:42]shift 352 fd 103445 [15:02:42]save to /storage/0352/doc_00103445 [15:02:42]save last doc name /storage/0352/doc_00103445 to /storage/kkm_last_doc_name [15:02:42]save OK [15:02:42]Clear old archive folders... [15:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:42]tlvbuf is B6DEB430 [15:02:42]SAM_PROTO_ClearQueue [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 09 00 00 [15:02:42]Write to MH i2c: E2 08 00 A4 60 80 09 00 00 00 00 00 00 76 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 A4 60 00 90 00 78 [15:02:42]RAPDU: 90 00 [15:02:42]wFMCommunicate OK [15:02:42]SAM_PROTO_ClearQueue done [15:02:42]KKMCreateOFDPacket [15:02:42]OFDProtocolAddRootSTLVToBuf [15:02:42]FM_MakeSignedData [15:02:42]FM_MakeSignedData [15:02:42]SAM_PROTO_SignData [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 0D 01 02 [15:02:42]Write to MH i2c: E2 08 00 A5 60 80 0D 01 02 00 00 00 00 7E [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 A5 60 00 90 00 79 [15:02:42]RAPDU: 90 00 [15:02:42]wFMCommunicate OK [15:02:42]wFMCommunicate request_size=255 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 98 A1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 94 01 00 35 04 06 00 5C [15:02:42]Write to MH i2c: E2 02 01 A6 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 98 A1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 94 01 00 35 04 06 00 5C 00 00 25 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 A6 60 00 90 00 7A [15:02:42]RAPDU: 90 00 [15:02:42]wFMCommunicate OK [15:02:42]wFMCommunicate request_size=10 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 0D 02 02 05 61 D2 50 64 CA [15:02:42]Write to MH i2c: E2 0D 00 A7 60 80 0D 02 02 05 00 61 D2 50 64 CA 00 00 3C [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 03 00 A7 60 00 90 00 7B [15:02:42]RAPDU: 90 00 [15:02:42]wFMCommunicate OK [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 0D 03 02 [15:02:42]Write to MH i2c: E2 08 00 A8 60 80 0D 03 02 00 00 00 00 83 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0B 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 0B 00 A8 60 00 3F A2 E3 7A 2F 7F A4 6A 90 00 7E [15:02:42]RAPDU: 3F A2 E3 7A 2F 7F A4 6A 90 00 [15:02:42]wFMCommunicate OK [15:02:42]SAM_PROTO_SignData done [15:02:42]FM_MakeSignedData done [15:02:42]CreateOFDProtocolMessage [15:02:42]wFMCommunicate request_size=4 [15:02:42]MH_SAM_APDU [15:02:42]CAPDU: 80 11 00 00 [15:02:42]Write to MH i2c: E2 08 00 A9 60 80 11 00 00 00 00 00 00 83 [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:42]Read from MH i2c: E2 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 17 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: E2 17 00 A9 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [15:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:02:42]wFMCommunicate OK [15:02:42]CreateOFDProtocolMessage done [15:02:42]OFDSenderStorePacket 103445 [15:02:42]StoreOFDPacket docnum=103445 [15:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2D 96 07 01 BD AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 98 A1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 94 01 00 35 04 06 00 5C 61 D2 50 64 CA 3F A2 E3 7A 2F 7F A4 6A [15:02:42]CheckFolder [15:02:42]dirname=/storage/ofd_packets [15:02:42]CheckFolder done [15:02:42]ProducePacketName [15:02:42]name=ofd_packets/00103445 [15:02:42]NVStorageSaveData ofd_packets/00103445 [15:02:42]File name is /storage/ofd_packets/00103445 [15:02:42]Write 301 bytes [15:02:42]NVStorageSaveData done [15:02:42]OFDSenderStorePacket done [15:02:42]KKMCreateOFDPacket done [15:02:42]NVStorageSaveData kkm_last_timestamp [15:02:42]File name is /storage/kkm_last_timestamp [15:02:42]Write 4 bytes [15:02:42]NVStorageSaveData done [15:02:42]ExternCall_PrintAddStr [15:02:42]wPrintStart [15:02:42]Write to MH i2c: 01 00 00 AA 60 0A [15:02:42]Write i2c OK [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 07 00 [15:02:42]MH_I2C_Read... [15:02:42]Read from MH i2c: 01 07 00 AA 60 00 00 00 00 00 FF 0F 1F [15:02:42]RasterBufferAndPrint [15:02:42]line Счет N : (1)672623 [15:02:42]line ИНН: 02508201610067 [15:02:42]line Контрольно-Кассовый Чек [15:02:42]line ПРОДАЖА [15:02:42]line ТРК (МРК, ГНК) : 42 [15:02:42]line Товар: 2710124130 [15:02:42]line Аи-92-К-5 [15:02:42]line 30.130 * 66.40 [15:02:42]line = 2000.63 [15:02:42]line НДС 12% НСП 1% [15:02:42]line > о реализуемом товаре [15:02:42]line ОКРУГЛЕНИЕ: -0.63 [15:02:42]line ИТОГО: 2000.00 [15:02:42]line Внесено: 2000.00 [15:02:42]line СДАЧА: 0.00 [15:02:42]line НСП 1% : 17.70 [15:02:42]line НДС 12% : 212.46 [15:02:42]line Наличными: 2000.00 [15:02:42]line Безнал.: 0.00 [15:02:42]line Место: АЗС № 120 "Партнер Нефть" [15:02:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:02:42]line СНО: Общий режим [15:02:42]line Чек 129 18.06.2024 15:02 [15:02:42]line Смена: 352 ФФД: 1.0 [15:02:42]line ЗНМ: 0300000164 [15:02:42]line РНМ: 0000000000092785 [15:02:42]line Версия ККМ: 001 [15:02:42]line ФМ: 0000000000875093 [15:02:42]line ФД: 103445 [15:02:42]line ФПД: 101575210067146 [15:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103445&fm=101575210067146&tin=02508201610067®Number=0000000000092785&sum=200000 [15:02:43]OFD Sender: Processing packet 103445 [packets to send 17, broken 16] [15:02:43]ProducePacketName [15:02:43]name=ofd_packets/00103445 [15:02:43]OFD Sender: To server: pG, [15:02:43]CommunicateWithHost lk.salyk.kg:30040 [15:02:43]ConnectInit lk.salyk.kg [15:02:43]written 0, free lines is 4095 [15:02:43]Connected sock=10 [15:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2D 96 07 01 BD AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 98 A1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 94 01 00 35 04 06 00 5C 61 D2 50 64 CA 3F A2 E3 7A 2F 7F A4 6A [15:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 05 CC 47 00 DD 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 35 30 39 33 10 04 04 00 15 94 01 00 F4 03 04 00 24 48 71 66 B6 04 01 00 00 B2 CA 34 9A AD FA CF 02 [15:02:43]CommunicateWithHost err = 0 [15:02:43]CheckOFDResponse [15:02:43]1017 (14) - 77093643461234 [15:02:43]1041 (16) - 0000000000875093 [15:02:43]1040 (4) - 103445 [15:02:43]1012 (4) - 18.06.2024 08:41 [15:02:43]1206 (1) - 0 [15:02:43]OFD Sender: Remove packet 103445 [15:02:43]ProducePacketName [15:02:43]name=ofd_packets/00103445 [15:02:43]NVStorageDeleteData [15:02:43]Write to MH i2c: 01 00 00 D5 60 35 [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: 01 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: 01 07 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: 01 07 00 D5 60 00 00 00 00 00 D8 0C 20 [15:02:43]RasterBufferAndPrint [15:02:43]line [15:02:43]line [15:02:43]line [15:02:43]line [15:02:43]line [15:02:43]written 0, free lines is 3296 [15:02:43]MH_Cut [15:02:43]Write to MH i2c: D1 01 00 DC 60 01 0E [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: D1 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: D1 01 00 [15:02:43]MH_I2C_Read... [15:02:43]Read from MH i2c: D1 01 00 DC 60 00 0D [15:02:43]Write to MH i2c: 01 00 00 DD 60 3D [15:02:43]Write i2c OK [15:02:43]MH_I2C_Read... [15:02:44]OFD Sender: No OFD packet to send [15:02:44]*** Cut start [15:02:44]*** Partial cut [15:02:44]*** CUTSNS_PIN = 1 [15:02:44]*** CUTSNS_PIN = 0 [15:02:44]*** Brake cut motor [15:02:45]Read from MH i2c: 01 [15:02:45]MH_I2C_Read... [15:02:45]*** Stop cut motor [15:02:45]*** Cut end [15:02:45]Read from MH i2c: 01 07 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: 01 07 00 DD 60 00 00 00 00 00 FF 0F 52 [15:02:45]process_action close_receipt done [15:02:45]requested_data is exist [15:02:45]produce_requested_data [15:02:45]requested_item fm.sn is exist - process it [15:02:45]wFMCommunicate request_size=4 [15:02:45]MH_SAM_APDU [15:02:45]CAPDU: 80 11 00 00 [15:02:45]Write to MH i2c: E2 08 00 DE 60 80 11 00 00 00 00 00 00 B8 [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:45]Read from MH i2c: E2 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 17 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 17 00 DE 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [15:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:02:45]wFMCommunicate OK [15:02:45]requested_item fd.num is exist - process it [15:02:45]SAM_PROTO_GetFieldsCounters [15:02:45]wFMCommunicate request_size=4 [15:02:45]MH_SAM_APDU [15:02:45]CAPDU: 80 13 00 00 [15:02:45]Write to MH i2c: E2 08 00 DF 60 80 13 00 00 00 00 00 00 BB [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:45]Read from MH i2c: E2 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 62 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 62 00 DF 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 94 01 00 0E 04 04 00 60 01 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 70 [15:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 94 01 00 0E 04 04 00 60 01 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 [15:02:45]wFMCommunicate OK [15:02:45]SAM_PROTO_GetFieldsCounters done [15:02:45]requested_item shift.num is exist - process it [15:02:45]requested_item shift.opened is exist - process it [15:02:45]req_shift_opened [15:02:45]FM_GetShiftState [15:02:45]SAM_PROTO_GetShiftState [15:02:45]wFMCommunicate request_size=4 [15:02:45]MH_SAM_APDU [15:02:45]CAPDU: 80 13 01 00 [15:02:45]Write to MH i2c: E2 08 00 E0 60 80 13 01 00 00 00 00 00 BD [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:45]Read from MH i2c: E2 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 E0 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3E [15:02:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:02:45]wFMCommunicate OK [15:02:45]SAM_PROTO_GetShiftState done [15:02:45]FM_GetShiftState done [15:02:45]req_shift_opened done [15:02:45]requested_item shift.open_date is exist - process it [15:02:45]req_shift_open_date [15:02:45]req_shift_open_date done [15:02:45]produce_requested_data done [15:02:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103445,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:02:45]process_action_free close_receipt [15:02:45]json_value_free [15:02:45]json_value_free done [15:02:45]process_json_proto returns [15:02:45]Send response to host [15:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103445,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:02:45]free response buf [15:02:45]execute_script done [15:02:45]execute_script returns [15:02:45]free content buf [15:02:45]Sock 7.Close socket [15:02:45]Sock 7.Thread stoped [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:50]accept exits with 9 [15:04:50]New connection [15:04:50]New thread 3067227492 created [15:04:50]Thread 3067084132 joined [15:04:50]Waiting for new connection... [15:04:50] Sock 9.Parse request [15:04:50]Sock 9.Check first char [15:04:50]Sock 9.First char is OK [15:04:50]request: POST /json_proto HTTP/1.0 [15:04:50]Method: POST [15:04:50]URL: /json_proto [15:04:50]Method is POST - this is cgi request [15:04:50]url: /json_proto [15:04:50]query_string will be loaded in cgi processing [15:04:50]execute_cgi json_proto POST (null) [15:04:50]execute_cgi path=json_proto method=POST [15:04:50]POST find Content-Length [15:04:50]Host: 172.17.38.133:8080 [15:04:50]Content-Length: 677 [15:04:50]Content-Type: application/json [15:04:50] [15:04:50]POST finish read [15:04:50]Found Content-Length = 677 [15:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:50]execute_script... [15:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:50]POST & json_proto [15:04:50]process_json_proto [15:04:50]json parsed OK: [15:04:50]protocol is kg_v1.0 [15:04:50]action value=close_receipt [15:04:50]process_action close_receipt [15:04:50]cmd_close_receipt [15:04:50]MH_GetDate [15:04:50]Write to MH i2c: F0 00 00 E1 60 30 [15:04:50]Write i2c OK [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 09 00 [15:04:50]MH_I2C_Read... [15:04:50]Read from MH i2c: F0 09 00 E1 60 00 1A A2 71 66 BD 8F 7C 64 F8 [15:04:50]GetLastDocTimeStamp 1718722968 [15:04:50]current date 1718723098 [15:04:50]FM_GetShiftState [15:04:50]SAM_PROTO_GetShiftState [15:04:50]wFMCommunicate request_size=4 [15:04:50]MH_SAM_APDU [15:04:50]CAPDU: 80 13 01 00 [15:04:50]Write to MH i2c: E2 08 00 E2 60 80 13 01 00 00 00 00 00 BF [15:04:50]Write i2c OK [15:04:50]MH_I2C_Read... [15:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:51]Read from MH i2c: E2 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 [15:04:51]MH_I2C_Read... [15:04:51]Read from MH i2c: E2 0E 00 E2 60 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 40 [15:04:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:04:51]wFMCommunicate OK [15:04:51]SAM_PROTO_GetShiftState done [15:04:51]FM_GetShiftState done [15:04:51]opened in 1718670284 [15:04:51]opened+sec_in_day 1718756684 [15:04:51]quantity*price = 50065 [15:04:51]sum+1 = 50067 [15:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 130 18.06.2024 15:04 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103446 ФПД: 198725041360562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103446&fm=198725041360562&tin=02508201610067®Number=0000000000092785&sum=50000 [15:04:52]StoreToDocumentArchive [15:04:52]shift 352 fd 103446 [15:04:52]save to /storage/0352/doc_00103446 [15:04:52]save last doc name /storage/0352/doc_00103446 to /storage/kkm_last_doc_name [15:04:52]save OK [15:04:52]Clear old archive folders... [15:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:52]tlvbuf is 014894C0 [15:04:52]SAM_PROTO_ClearQueue [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 09 00 00 [15:04:52]Write to MH i2c: E2 08 00 EF 60 80 09 00 00 00 00 00 00 C1 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 EF 60 00 90 00 C3 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]SAM_PROTO_ClearQueue done [15:04:52]KKMCreateOFDPacket [15:04:52]OFDProtocolAddRootSTLVToBuf [15:04:52]FM_MakeSignedData [15:04:52]FM_MakeSignedData [15:04:52]SAM_PROTO_SignData [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 01 02 [15:04:52]Write to MH i2c: E2 08 00 F0 60 80 0D 01 02 00 00 00 00 C9 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 F0 60 00 90 00 C4 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=255 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1A A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 94 01 00 35 04 06 00 B4 [15:04:52]Write to MH i2c: E2 02 01 F1 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1A A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 94 01 00 35 04 06 00 B4 00 00 58 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 F1 60 00 90 00 C5 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=10 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 02 02 05 BD 47 7F 8E B2 [15:04:52]Write to MH i2c: E2 0D 00 F2 60 80 0D 02 02 05 00 BD 47 7F 8E B2 00 00 99 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 03 00 F2 60 00 90 00 C6 [15:04:52]RAPDU: 90 00 [15:04:52]wFMCommunicate OK [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 0D 03 02 [15:04:52]Write to MH i2c: E2 08 00 F3 60 80 0D 03 02 00 00 00 00 CE [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 0B 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 0B 00 F3 60 00 17 16 2F D8 61 61 08 B7 90 00 84 [15:04:52]RAPDU: 17 16 2F D8 61 61 08 B7 90 00 [15:04:52]wFMCommunicate OK [15:04:52]SAM_PROTO_SignData done [15:04:52]FM_MakeSignedData done [15:04:52]CreateOFDProtocolMessage [15:04:52]wFMCommunicate request_size=4 [15:04:52]MH_SAM_APDU [15:04:52]CAPDU: 80 11 00 00 [15:04:52]Write to MH i2c: E2 08 00 F4 60 80 11 00 00 00 00 00 00 CE [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:52]Read from MH i2c: E2 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 17 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: E2 17 00 F4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [15:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:52]wFMCommunicate OK [15:04:52]CreateOFDProtocolMessage done [15:04:52]OFDSenderStorePacket 103446 [15:04:52]StoreOFDPacket docnum=103446 [15:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 77 4D 07 01 50 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1A A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 94 01 00 35 04 06 00 B4 BD 47 7F 8E B2 17 16 2F D8 61 61 08 B7 [15:04:52]CheckFolder [15:04:52]dirname=/storage/ofd_packets [15:04:52]CheckFolder done [15:04:52]ProducePacketName [15:04:52]name=ofd_packets/00103446 [15:04:52]NVStorageSaveData ofd_packets/00103446 [15:04:52]File name is /storage/ofd_packets/00103446 [15:04:52]Write 301 bytes [15:04:52]NVStorageSaveData done [15:04:52]OFDSenderStorePacket done [15:04:52]KKMCreateOFDPacket done [15:04:52]NVStorageSaveData kkm_last_timestamp [15:04:52]File name is /storage/kkm_last_timestamp [15:04:52]Write 4 bytes [15:04:52]NVStorageSaveData done [15:04:52]ExternCall_PrintAddStr [15:04:52]wPrintStart [15:04:52]Write to MH i2c: 01 00 00 F5 60 55 [15:04:52]Write i2c OK [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 07 00 [15:04:52]MH_I2C_Read... [15:04:52]Read from MH i2c: 01 07 00 F5 60 00 00 00 00 00 FF 0F 6A [15:04:52]RasterBufferAndPrint [15:04:52]line Счет N : (1)672625 [15:04:52]line ИНН: 02508201610067 [15:04:52]line Контрольно-Кассовый Чек [15:04:52]line ПРОДАЖА [15:04:52]line ТРК (МРК, ГНК) : 42 [15:04:52]line Товар: 2710124130 [15:04:52]line Аи-92-К-5 [15:04:52]line 7.540 * 66.40 [15:04:52]line = 500.66 [15:04:52]line НДС 12% НСП 1% [15:04:52]line > о реализуемом товаре [15:04:52]line ОКРУГЛЕНИЕ: -0.66 [15:04:52]line ИТОГО: 500.00 [15:04:52]line Внесено: 500.00 [15:04:52]line СДАЧА: 0.00 [15:04:52]line НСП 1% : 4.43 [15:04:52]line НДС 12% : 53.17 [15:04:52]line Наличными: 500.00 [15:04:52]line Безнал.: 0.00 [15:04:52]line Место: АЗС № 120 "Партнер Нефть" [15:04:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:04:52]line СНО: Общий режим [15:04:52]line Чек 130 18.06.2024 15:04 [15:04:52]line Смена: 352 ФФД: 1.0 [15:04:52]line ЗНМ: 0300000164 [15:04:52]line РНМ: 0000000000092785 [15:04:52]line Версия ККМ: 001 [15:04:52]line ФМ: 0000000000875093 [15:04:52]line ФД: 103446 [15:04:52]line ФПД: 198725041360562 [15:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103446&fm=198725041360562&tin=02508201610067®Number=0000000000092785&sum=50000 [15:04:53]OFD Sender: Processing packet 103446 [packets to send 17, broken 16] [15:04:53]ProducePacketName [15:04:53]name=ofd_packets/00103446 [15:04:53]OFD Sender: To server: pG, [15:04:53]CommunicateWithHost lk.salyk.kg:30040 [15:04:53]ConnectInit lk.salyk.kg [15:04:53]written 0, free lines is 4095 [15:04:53]Connected sock=10 [15:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 77 4D 07 01 50 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 1A A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 94 01 00 35 04 06 00 B4 BD 47 7F 8E B2 17 16 2F D8 61 61 08 B7 [15:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 81 8E 47 00 6F 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 35 30 39 33 10 04 04 00 16 94 01 00 F4 03 04 00 A6 48 71 66 B6 04 01 00 00 01 37 7C A0 1E 7D 2F 94 [15:04:53]CommunicateWithHost err = 0 [15:04:53]CheckOFDResponse [15:04:53]1017 (14) - 77093643461234 [15:04:53]1041 (16) - 0000000000875093 [15:04:53]1040 (4) - 103446 [15:04:53]1012 (4) - 18.06.2024 08:43 [15:04:53]1206 (1) - 0 [15:04:53]OFD Sender: Remove packet 103446 [15:04:53]ProducePacketName [15:04:53]name=ofd_packets/00103446 [15:04:53]NVStorageDeleteData [15:04:53]Write to MH i2c: 01 00 00 20 61 81 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: 01 07 00 20 61 00 00 00 00 00 EB 0C 7F [15:04:53]RasterBufferAndPrint [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]line [15:04:53]written 0, free lines is 3313 [15:04:53]MH_Cut [15:04:53]Write to MH i2c: D1 01 00 27 61 01 5A [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 01 00 [15:04:53]MH_I2C_Read... [15:04:53]Read from MH i2c: D1 01 00 27 61 00 59 [15:04:53]Write to MH i2c: 01 00 00 28 61 89 [15:04:53]Write i2c OK [15:04:53]MH_I2C_Read... [15:04:53]OFD Sender: No OFD packet to send [15:04:54]*** Cut start [15:04:54]*** Partial cut [15:04:54]*** CUTSNS_PIN = 1 [15:04:54]*** CUTSNS_PIN = 0 [15:04:54]*** Brake cut motor [15:04:54]Read from MH i2c: 01 [15:04:54]MH_I2C_Read... [15:04:54]*** Stop cut motor [15:04:54]*** Cut end [15:04:54]Read from MH i2c: 01 07 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: 01 07 00 28 61 00 00 00 00 00 FF 0F 9E [15:04:54]process_action close_receipt done [15:04:54]requested_data is exist [15:04:54]produce_requested_data [15:04:54]requested_item fm.sn is exist - process it [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 11 00 00 [15:04:54]Write to MH i2c: E2 08 00 29 61 80 11 00 00 00 00 00 00 04 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 17 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 17 00 29 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 57 [15:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:54]wFMCommunicate OK [15:04:54]requested_item fd.num is exist - process it [15:04:54]SAM_PROTO_GetFieldsCounters [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 13 00 00 [15:04:54]Write to MH i2c: E2 08 00 2A 61 80 13 00 00 00 00 00 00 07 [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 62 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 62 00 2A 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_GetFieldsCounters done [15:04:55]requested_item shift.num is exist - process it [15:04:55]requested_item shift.opened is exist - process it [15:04:55]req_shift_opened [15:04:55]FM_GetShiftState [15:04:55]SAM_PROTO_GetShiftState [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 13 01 00 [15:04:55]Write to MH i2c: E2 08 00 2B 61 80 13 01 00 00 00 00 00 09 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 0E 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 0E 00 2B 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8A [15:04:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_GetShiftState done [15:04:55]FM_GetShiftState done [15:04:55]req_shift_opened done [15:04:55]requested_item shift.open_date is exist - process it [15:04:55]req_shift_open_date [15:04:55]req_shift_open_date done [15:04:55]produce_requested_data done [15:04:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103446,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:04:55]process_action_free close_receipt [15:04:55]json_value_free [15:04:55]json_value_free done [15:04:55]process_json_proto returns [15:04:55]Send response to host [15:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103446,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:04:55]free response buf [15:04:55]execute_script done [15:04:55]execute_script returns [15:04:55]free content buf [15:04:55]Sock 9.Close socket [15:04:55]Sock 9.Thread stoped [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:09]accept exits with 7 [15:05:09]New connection [15:05:09]New thread 3067084132 created [15:05:09]Thread 3067227492 joined [15:05:09]Waiting for new connection... [15:05:09] Sock 7.Parse request [15:05:09]Sock 7.Check first char [15:05:09]Sock 7.First char is OK [15:05:09]request: POST /json_proto HTTP/1.0 [15:05:09]Method: POST [15:05:09]URL: /json_proto [15:05:09]Method is POST - this is cgi request [15:05:09]url: /json_proto [15:05:09]query_string will be loaded in cgi processing [15:05:09]execute_cgi json_proto POST (null) [15:05:09]execute_cgi path=json_proto method=POST [15:05:09]POST find Content-Length [15:05:09]Host: 172.17.38.133:8080 [15:05:09]Content-Length: 677 [15:05:09]Content-Type: application/json [15:05:09] [15:05:09]POST finish read [15:05:09]Found Content-Length = 677 [15:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:09]execute_script... [15:05:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:09]POST & json_proto [15:05:09]process_json_proto [15:05:09]json parsed OK: [15:05:09]protocol is kg_v1.0 [15:05:09]action value=close_receipt [15:05:09]process_action close_receipt [15:05:09]cmd_close_receipt [15:05:09]MH_GetDate [15:05:09]Write to MH i2c: F0 00 00 2C 61 7C [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: F0 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: F0 09 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: F0 09 00 2C 61 00 2C A2 71 66 BD 8F 7C 64 56 [15:05:09]GetLastDocTimeStamp 1718723098 [15:05:09]current date 1718723116 [15:05:09]FM_GetShiftState [15:05:09]SAM_PROTO_GetShiftState [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 13 01 00 [15:05:09]Write to MH i2c: E2 08 00 2D 61 80 13 01 00 00 00 00 00 0B [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 2D 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8C [15:05:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_GetShiftState done [15:05:09]FM_GetShiftState done [15:05:09]opened in 1718670284 [15:05:09]opened+sec_in_day 1718756684 [15:05:09]quantity*price = 30012 [15:05:09]sum+1 = 30014 [15:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 131 18.06.2024 15:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103447 ФПД: 63510958666265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150516&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103447&fm=63510958666265&tin=02508201610067®Number=0000000000092785&sum=30000 [15:05:10]StoreToDocumentArchive [15:05:10]shift 352 fd 103447 [15:05:10]save to /storage/0352/doc_00103447 [15:05:10]save last doc name /storage/0352/doc_00103447 to /storage/kkm_last_doc_name [15:05:10]save OK [15:05:10]Clear old archive folders... [15:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:10]tlvbuf is 013E1AF0 [15:05:10]SAM_PROTO_ClearQueue [15:05:10]wFMCommunicate request_size=4 [15:05:10]MH_SAM_APDU [15:05:10]CAPDU: 80 09 00 00 [15:05:10]Write to MH i2c: E2 08 00 3A 61 80 09 00 00 00 00 00 00 0D [15:05:10]Write i2c OK [15:05:10]MH_I2C_Read... [15:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:10]Read from MH i2c: E2 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 3A 61 00 90 00 0F [15:05:10]RAPDU: 90 00 [15:05:10]wFMCommunicate OK [15:05:10]SAM_PROTO_ClearQueue done [15:05:10]KKMCreateOFDPacket [15:05:10]OFDProtocolAddRootSTLVToBuf [15:05:10]FM_MakeSignedData [15:05:10]FM_MakeSignedData [15:05:10]SAM_PROTO_SignData [15:05:10]wFMCommunicate request_size=4 [15:05:10]MH_SAM_APDU [15:05:10]CAPDU: 80 0D 01 02 [15:05:10]Write to MH i2c: E2 08 00 3B 61 80 0D 01 02 00 00 00 00 15 [15:05:10]Write i2c OK [15:05:10]MH_I2C_Read... [15:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:10]Read from MH i2c: E2 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 3B 61 00 90 00 10 [15:05:10]RAPDU: 90 00 [15:05:10]wFMCommunicate OK [15:05:10]wFMCommunicate request_size=255 [15:05:10]MH_SAM_APDU [15:05:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2C A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 94 01 00 35 04 06 00 39 [15:05:10]Write to MH i2c: E2 02 01 3C 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2C A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 94 01 00 35 04 06 00 39 00 00 DB [15:05:10]Write i2c OK [15:05:10]MH_I2C_Read... [15:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:10]Read from MH i2c: E2 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 [15:05:10]MH_I2C_Read... [15:05:10]Read from MH i2c: E2 03 00 3C 61 00 90 00 11 [15:05:10]RAPDU: 90 00 [15:05:10]wFMCommunicate OK [15:05:10]wFMCommunicate request_size=10 [15:05:10]MH_SAM_APDU [15:05:10]CAPDU: 80 0D 02 02 05 C3 4C 21 72 19 [15:05:10]Write to MH i2c: E2 0D 00 3D 61 80 0D 02 02 05 00 C3 4C 21 72 19 00 00 DD [15:05:10]Write i2c OK [15:05:10]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 03 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 03 00 3D 61 00 90 00 12 [15:05:11]RAPDU: 90 00 [15:05:11]wFMCommunicate OK [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 0D 03 02 [15:05:11]Write to MH i2c: E2 08 00 3E 61 80 0D 03 02 00 00 00 00 1A [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0B 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0B 00 3E 61 00 FE 7A B6 84 13 2A C4 34 90 00 02 [15:05:11]RAPDU: FE 7A B6 84 13 2A C4 34 90 00 [15:05:11]wFMCommunicate OK [15:05:11]SAM_PROTO_SignData done [15:05:11]FM_MakeSignedData done [15:05:11]CreateOFDProtocolMessage [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 11 00 00 [15:05:11]Write to MH i2c: E2 08 00 3F 61 80 11 00 00 00 00 00 00 1A [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 17 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 17 00 3F 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [15:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:05:11]wFMCommunicate OK [15:05:11]CreateOFDProtocolMessage done [15:05:11]OFDSenderStorePacket 103447 [15:05:11]StoreOFDPacket docnum=103447 [15:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C4 4F 07 01 7C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2C A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 94 01 00 35 04 06 00 39 C3 4C 21 72 19 FE 7A B6 84 13 2A C4 34 [15:05:11]CheckFolder [15:05:11]dirname=/storage/ofd_packets [15:05:11]CheckFolder done [15:05:11]ProducePacketName [15:05:11]name=ofd_packets/00103447 [15:05:11]NVStorageSaveData ofd_packets/00103447 [15:05:11]File name is /storage/ofd_packets/00103447 [15:05:11]Write 301 bytes [15:05:11]NVStorageSaveData done [15:05:11]OFDSenderStorePacket done [15:05:11]KKMCreateOFDPacket done [15:05:11]NVStorageSaveData kkm_last_timestamp [15:05:11]File name is /storage/kkm_last_timestamp [15:05:11]Write 4 bytes [15:05:11]NVStorageSaveData done [15:05:11]ExternCall_PrintAddStr [15:05:11]wPrintStart [15:05:11]Write to MH i2c: 01 00 00 40 61 A1 [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 07 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 07 00 40 61 00 00 00 00 00 FF 0F B6 [15:05:11]RasterBufferAndPrint [15:05:11]line Счет N : (1)672626 [15:05:11]line ИНН: 02508201610067 [15:05:11]line Контрольно-Кассовый Чек [15:05:11]line ПРОДАЖА [15:05:11]line ТРК (МРК, ГНК) : 32 [15:05:11]line Товар: 2710124130 [15:05:11]line Аи-92-К-5 [15:05:11]line 4.520 * 66.40 [15:05:11]line = 300.13 [15:05:11]line НДС 12% НСП 1% [15:05:11]line > о реализуемом товаре [15:05:11]line ОКРУГЛЕНИЕ: -0.13 [15:05:11]line ИТОГО: 300.00 [15:05:11]line Внесено: 300.00 [15:05:11]line СДАЧА: 0.00 [15:05:11]line НСП 1% : 2.66 [15:05:11]line НДС 12% : 31.87 [15:05:11]line Наличными: 300.00 [15:05:11]line Безнал.: 0.00 [15:05:11]line Место: АЗС № 120 "Партнер Нефть" [15:05:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:05:11]line СНО: Общий режим [15:05:11]line Чек 131 18.06.2024 15:05 [15:05:11]line Смена: 352 ФФД: 1.0 [15:05:11]line ЗНМ: 0300000164 [15:05:11]line РНМ: 0000000000092785 [15:05:11]line Версия ККМ: 001 [15:05:11]line ФМ: 0000000000875093 [15:05:11]line ФД: 103447 [15:05:11]line ФПД: 63510958666265 [15:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150516&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103447&fm=63510958666265&tin=02508201610067®Number=0000000000092785&sum=30000 [15:05:11]OFD Sender: Processing packet 103447 [packets to send 17, broken 16] [15:05:11]ProducePacketName [15:05:11]name=ofd_packets/00103447 [15:05:11]OFD Sender: To server: pG, [15:05:11]CommunicateWithHost lk.salyk.kg:30040 [15:05:11]ConnectInit lk.salyk.kg [15:05:11]written 0, free lines is 4095 [15:05:11]Connected sock=10 [15:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C4 4F 07 01 7C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 2C A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 94 01 00 35 04 06 00 39 C3 4C 21 72 19 FE 7A B6 84 13 2A C4 34 [15:05:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D3 BF 47 00 74 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 35 30 39 33 10 04 04 00 17 94 01 00 F4 03 04 00 B8 48 71 66 B6 04 01 00 00 B5 C7 83 46 97 7E E9 3F [15:05:11]CommunicateWithHost err = 0 [15:05:11]CheckOFDResponse [15:05:11]1017 (14) - 77093643461234 [15:05:11]1041 (16) - 0000000000875093 [15:05:11]1040 (4) - 103447 [15:05:11]1012 (4) - 18.06.2024 08:43 [15:05:11]1206 (1) - 0 [15:05:11]OFD Sender: Remove packet 103447 [15:05:11]ProducePacketName [15:05:11]name=ofd_packets/00103447 [15:05:11]NVStorageDeleteData [15:05:11]Write to MH i2c: 01 00 00 6B 61 CC [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 07 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: 01 07 00 6B 61 00 00 00 00 00 ED 0C CC [15:05:11]RasterBufferAndPrint [15:05:11]line [15:05:11]line [15:05:11]line [15:05:11]line [15:05:11]line [15:05:11]written 0, free lines is 3315 [15:05:11]MH_Cut [15:05:11]Write to MH i2c: D1 01 00 72 61 01 A5 [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: D1 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: D1 01 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: D1 01 00 72 61 00 A4 [15:05:11]Write to MH i2c: 01 00 00 73 61 D4 [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:12]OFD Sender: No OFD packet to send [15:05:12]*** Cut start [15:05:12]*** Partial cut [15:05:12]*** CUTSNS_PIN = 1 [15:05:12]*** CUTSNS_PIN = 0 [15:05:12]*** Brake cut motor [15:05:13]Read from MH i2c: 01 [15:05:13]MH_I2C_Read... [15:05:13]*** Stop cut motor [15:05:13]*** Cut end [15:05:13]Read from MH i2c: 01 07 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: 01 07 00 73 61 00 00 00 00 00 FF 0F E9 [15:05:13]process_action close_receipt done [15:05:13]requested_data is exist [15:05:13]produce_requested_data [15:05:13]requested_item fm.sn is exist - process it [15:05:13]wFMCommunicate request_size=4 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 11 00 00 [15:05:13]Write to MH i2c: E2 08 00 74 61 80 11 00 00 00 00 00 00 4F [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 17 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 17 00 74 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [15:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:05:13]wFMCommunicate OK [15:05:13]requested_item fd.num is exist - process it [15:05:13]SAM_PROTO_GetFieldsCounters [15:05:13]wFMCommunicate request_size=4 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 13 00 00 [15:05:13]Write to MH i2c: E2 08 00 75 61 80 13 00 00 00 00 00 00 52 [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 62 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 62 00 75 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [15:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:13]wFMCommunicate OK [15:05:13]SAM_PROTO_GetFieldsCounters done [15:05:13]requested_item shift.num is exist - process it [15:05:13]requested_item shift.opened is exist - process it [15:05:13]req_shift_opened [15:05:13]FM_GetShiftState [15:05:13]SAM_PROTO_GetShiftState [15:05:13]wFMCommunicate request_size=4 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 13 01 00 [15:05:13]Write to MH i2c: E2 08 00 76 61 80 13 01 00 00 00 00 00 54 [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 0E 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 0E 00 76 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D5 [15:05:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:05:13]wFMCommunicate OK [15:05:13]SAM_PROTO_GetShiftState done [15:05:13]FM_GetShiftState done [15:05:13]req_shift_opened done [15:05:13]requested_item shift.open_date is exist - process it [15:05:13]req_shift_open_date [15:05:13]req_shift_open_date done [15:05:13]produce_requested_data done [15:05:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103447,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:05:13]process_action_free close_receipt [15:05:13]json_value_free [15:05:13]json_value_free done [15:05:13]process_json_proto returns [15:05:13]Send response to host [15:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103447,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:05:13]free response buf [15:05:13]execute_script done [15:05:13]execute_script returns [15:05:13]free content buf [15:05:13]Sock 7.Close socket [15:05:13]Sock 7.Thread stoped [15:05:17]OFD Sender: No OFD packet to send [15:05:21]accept exits with 9 [15:05:21]New connection [15:05:21]New thread 3067227492 created [15:05:21]Thread 3067084132 joined [15:05:21]Waiting for new connection... [15:05:21] Sock 9.Parse request [15:05:21]Sock 9.Check first char [15:05:21]Sock 9.First char is OK [15:05:21]request: POST /json_proto HTTP/1.0 [15:05:21]Method: POST [15:05:21]URL: /json_proto [15:05:21]Method is POST - this is cgi request [15:05:21]url: /json_proto [15:05:21]query_string will be loaded in cgi processing [15:05:21]execute_cgi json_proto POST (null) [15:05:21]execute_cgi path=json_proto method=POST [15:05:21]POST find Content-Length [15:05:21]Host: 172.17.38.133:8080 [15:05:21]Content-Length: 808 [15:05:21]Content-Type: application/json [15:05:21] [15:05:21]POST finish read [15:05:21]Found Content-Length = 808 [15:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.340, "sum" : 3013.69, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3013.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]execute_script... [15:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.340, "sum" : 3013.69, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3013.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:21]POST & json_proto [15:05:21]process_json_proto [15:05:21]json parsed OK: [15:05:21]protocol is kg_v1.0 [15:05:21]action value=close_receipt [15:05:21]process_action close_receipt [15:05:21]cmd_close_receipt [15:05:21]MH_GetDate [15:05:21]Write to MH i2c: F0 00 00 77 61 C7 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: F0 09 00 77 61 00 38 A2 71 66 BD 8F 7C 64 AD [15:05:21]GetLastDocTimeStamp 1718723116 [15:05:21]current date 1718723128 [15:05:21]FM_GetShiftState [15:05:21]SAM_PROTO_GetShiftState [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 01 00 [15:05:21]Write to MH i2c: E2 08 00 78 61 80 13 01 00 00 00 00 00 56 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 78 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D7 [15:05:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]opened in 1718670284 [15:05:21]opened+sec_in_day 1718756684 [15:05:21]quantity*price = 301368 [15:05:21]sum+1 = 301370 [15:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3013.69 НСП 1% : 26.67 НДС 12% : 320.04 Наличными: 0.00 Безнал.: 3013.69 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 132 18.06.2024 15:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103448 ФПД: 155706161772231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103448&fm=155706161772231&tin=02508201610067®Number=0000000000092785&sum=301369 [15:05:22]StoreToDocumentArchive [15:05:22]shift 352 fd 103448 [15:05:22]save to /storage/0352/doc_00103448 [15:05:22]save last doc name /storage/0352/doc_00103448 to /storage/kkm_last_doc_name [15:05:22]save OK [15:05:22]Clear old archive folders... [15:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:05:22]tlvbuf is 013E1640 [15:05:22]SAM_PROTO_ClearQueue [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 09 00 00 [15:05:22]Write to MH i2c: E2 08 00 85 61 80 09 00 00 00 00 00 00 58 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 85 61 00 90 00 5A [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]SAM_PROTO_ClearQueue done [15:05:22]KKMCreateOFDPacket [15:05:22]OFDProtocolAddRootSTLVToBuf [15:05:22]FM_MakeSignedData [15:05:22]FM_MakeSignedData [15:05:22]SAM_PROTO_SignData [15:05:22]wFMCommunicate request_size=4 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 01 02 [15:05:22]Write to MH i2c: E2 08 00 86 61 80 0D 01 02 00 00 00 00 60 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 86 61 00 90 00 5B [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=255 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C A1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 39 99 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 99 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 7D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 99 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 38 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 94 01 00 35 04 06 00 [15:05:22]Write to MH i2c: E2 02 01 87 61 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C A1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 39 99 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 99 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 7D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 99 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 38 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 94 01 00 35 04 06 00 00 00 19 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:22]Read from MH i2c: E2 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 [15:05:22]MH_I2C_Read... [15:05:22]Read from MH i2c: E2 03 00 87 61 00 90 00 5C [15:05:22]RAPDU: 90 00 [15:05:22]wFMCommunicate OK [15:05:22]wFMCommunicate request_size=11 [15:05:22]MH_SAM_APDU [15:05:22]CAPDU: 80 0D 02 02 06 8D 9D 2A 76 36 C7 [15:05:22]Write to MH i2c: E2 0E 00 88 61 80 0D 02 02 06 00 8D 9D 2A 76 36 C7 00 00 36 [15:05:22]Write i2c OK [15:05:22]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 03 00 88 61 00 90 00 5D [15:05:23]RAPDU: 90 00 [15:05:23]wFMCommunicate OK [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 0D 03 02 [15:05:23]Write to MH i2c: E2 08 00 89 61 80 0D 03 02 00 00 00 00 65 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0B 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 0B 00 89 61 00 0A B6 E6 2D 1F 03 1F BE 90 00 38 [15:05:23]RAPDU: 0A B6 E6 2D 1F 03 1F BE 90 00 [15:05:23]wFMCommunicate OK [15:05:23]SAM_PROTO_SignData done [15:05:23]FM_MakeSignedData done [15:05:23]CreateOFDProtocolMessage [15:05:23]wFMCommunicate request_size=4 [15:05:23]MH_SAM_APDU [15:05:23]CAPDU: 80 11 00 00 [15:05:23]Write to MH i2c: E2 08 00 8A 61 80 11 00 00 00 00 00 00 65 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:23]Read from MH i2c: E2 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 17 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: E2 17 00 8A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [15:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:05:23]wFMCommunicate OK [15:05:23]CreateOFDProtocolMessage done [15:05:23]OFDSenderStorePacket 103448 [15:05:23]StoreOFDPacket docnum=103448 [15:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FF A1 08 01 30 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C A1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 39 99 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 99 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 7D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 99 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 38 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 94 01 00 35 04 06 00 8D 9D 2A 76 36 C7 0A B6 E6 2D 1F 03 1F BE [15:05:23]CheckFolder [15:05:23]dirname=/storage/ofd_packets [15:05:23]CheckFolder done [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00103448 [15:05:23]NVStorageSaveData ofd_packets/00103448 [15:05:23]File name is /storage/ofd_packets/00103448 [15:05:23]Write 302 bytes [15:05:23]NVStorageSaveData done [15:05:23]OFDSenderStorePacket done [15:05:23]KKMCreateOFDPacket done [15:05:23]NVStorageSaveData kkm_last_timestamp [15:05:23]File name is /storage/kkm_last_timestamp [15:05:23]Write 4 bytes [15:05:23]NVStorageSaveData done [15:05:23]ExternCall_PrintAddStr [15:05:23]wPrintStart [15:05:23]Write to MH i2c: 01 00 00 8B 61 EC [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 8B 61 00 00 00 00 00 FF 0F 01 [15:05:23]RasterBufferAndPrint [15:05:23]line Счет N : (1)672624 [15:05:23]line ИНН: 02508201610067 [15:05:23]line Контрольно-Кассовый Чек [15:05:23]line ПРОДАЖА [15:05:23]line ТРК (МРК, ГНК) : 21 [15:05:23]line Товар: 2710194210 [15:05:23]line ДТ(л)-К-5 [15:05:23]line 41.340 * 72.90 [15:05:23]line = 3013.69 [15:05:23]line НДС 12% НСП 1% [15:05:23]line > о реализуемом товаре [15:05:23]line ИТОГО: 3013.69 [15:05:23]line НСП 1% : 26.67 [15:05:23]line НДС 12% : 320.04 [15:05:23]line Наличными: 0.00 [15:05:23]line Безнал.: 3013.69 [15:05:23]line Место: АЗС № 120 "Партнер Нефть" [15:05:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:05:23]line СНО: Общий режим [15:05:23]line Чек 132 18.06.2024 15:05 [15:05:23]line Смена: 352 ФФД: 1.0 [15:05:23]line ЗНМ: 0300000164 [15:05:23]line РНМ: 0000000000092785 [15:05:23]line Версия ККМ: 001 [15:05:23]line Платежная система: O! деньги [15:05:23]line ФМ: 0000000000875093 [15:05:23]line ФД: 103448 [15:05:23]line ФПД: 155706161772231 [15:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103448&fm=155706161772231&tin=02508201610067®Number=0000000000092785&sum=301369 [15:05:23]written 0, free lines is 4095 [15:05:23]OFD Sender: Processing packet 103448 [packets to send 17, broken 16] [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00103448 [15:05:23]OFD Sender: To server: pG, [15:05:23]CommunicateWithHost lk.salyk.kg:30040 [15:05:23]ConnectInit lk.salyk.kg [15:05:23]Connected sock=10 [15:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FF A1 08 01 30 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C A1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 39 99 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 99 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 7D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 99 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 38 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 94 01 00 35 04 06 00 8D 9D 2A 76 36 C7 0A B6 E6 2D 1F 03 1F BE [15:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 37 02 47 00 2D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 94 01 00 F4 03 04 00 C4 48 71 66 B6 04 01 00 00 54 B0 64 DD 8D 7C F3 EC [15:05:23]CommunicateWithHost err = 0 [15:05:23]CheckOFDResponse [15:05:23]1017 (14) - 77093643461234 [15:05:23]1041 (16) - 0000000000875093 [15:05:23]1040 (4) - 103448 [15:05:23]1012 (4) - 18.06.2024 08:43 [15:05:23]1206 (1) - 0 [15:05:23]OFD Sender: Remove packet 103448 [15:05:23]ProducePacketName [15:05:23]name=ofd_packets/00103448 [15:05:23]NVStorageDeleteData [15:05:23]Write to MH i2c: 01 00 00 B5 61 16 [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: 01 07 00 B5 61 00 00 00 00 00 F2 0C 1B [15:05:23]RasterBufferAndPrint [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]line [15:05:23]written 0, free lines is 3320 [15:05:23]MH_Cut [15:05:23]Write to MH i2c: D1 01 00 BC 61 01 EF [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 [15:05:23]MH_I2C_Read... [15:05:23]Read from MH i2c: D1 01 00 BC 61 00 EE [15:05:23]Write to MH i2c: 01 00 00 BD 61 1E [15:05:23]Write i2c OK [15:05:23]MH_I2C_Read... [15:05:24]OFD Sender: No OFD packet to send [15:05:24]*** Cut start [15:05:24]*** Partial cut [15:05:24]*** CUTSNS_PIN = 1 [15:05:24]*** CUTSNS_PIN = 0 [15:05:24]*** Brake cut motor [15:05:25]Read from MH i2c: 01 [15:05:25]MH_I2C_Read... [15:05:25]*** Stop cut motor [15:05:25]*** Cut end [15:05:25]Read from MH i2c: 01 07 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: 01 07 00 BD 61 00 00 00 00 00 FF 0F 33 [15:05:25]process_action close_receipt done [15:05:25]requested_data is exist [15:05:25]produce_requested_data [15:05:25]requested_item fm.sn is exist - process it [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 11 00 00 [15:05:25]Write to MH i2c: E2 08 00 BE 61 80 11 00 00 00 00 00 00 99 [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 17 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 17 00 BE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [15:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:05:25]wFMCommunicate OK [15:05:25]requested_item fd.num is exist - process it [15:05:25]SAM_PROTO_GetFieldsCounters [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 00 00 [15:05:25]Write to MH i2c: E2 08 00 BF 61 80 13 00 00 00 00 00 00 9C [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 62 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 62 00 BF 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetFieldsCounters done [15:05:25]requested_item shift.num is exist - process it [15:05:25]requested_item shift.opened is exist - process it [15:05:25]req_shift_opened [15:05:25]FM_GetShiftState [15:05:25]SAM_PROTO_GetShiftState [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 01 00 [15:05:25]Write to MH i2c: E2 08 00 C0 61 80 13 01 00 00 00 00 00 9E [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 C0 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1F [15:05:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetShiftState done [15:05:25]FM_GetShiftState done [15:05:25]req_shift_opened done [15:05:25]requested_item shift.open_date is exist - process it [15:05:25]req_shift_open_date [15:05:25]req_shift_open_date done [15:05:25]produce_requested_data done [15:05:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103448,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:05:25]process_action_free close_receipt [15:05:25]json_value_free [15:05:25]json_value_free done [15:05:25]process_json_proto returns [15:05:25]Send response to host [15:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103448,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:05:25]free response buf [15:05:25]execute_script done [15:05:25]execute_script returns [15:05:25]free content buf [15:05:25]Sock 9.Close socket [15:05:25]Sock 9.Thread stoped [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:53]accept exits with 7 [15:06:53]New connection [15:06:53]New thread 3067084132 created [15:06:53]Thread 3067227492 joined [15:06:53]Waiting for new connection... [15:06:53] Sock 7.Parse request [15:06:53]Sock 7.Check first char [15:06:53]Sock 7.First char is OK [15:06:53]request: POST /json_proto HTTP/1.0 [15:06:53]Method: POST [15:06:53]URL: /json_proto [15:06:53]Method is POST - this is cgi request [15:06:53]url: /json_proto [15:06:53]query_string will be loaded in cgi processing [15:06:53]execute_cgi json_proto POST (null) [15:06:53]execute_cgi path=json_proto method=POST [15:06:53]POST find Content-Length [15:06:53]Host: 172.17.38.133:8080 [15:06:53]Content-Length: 678 [15:06:53]Content-Type: application/json [15:06:53] [15:06:53]POST finish read [15:06:53]Found Content-Length = 678 [15:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.350, "sum" : 886.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 886.00, "total" : 886.00, "payments": [ { "type": 0, "sum" : 886.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:53]execute_script... [15:06:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.350, "sum" : 886.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 886.00, "total" : 886.00, "payments": [ { "type": 0, "sum" : 886.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:53]POST & json_proto [15:06:53]process_json_proto [15:06:53]json parsed OK: [15:06:53]protocol is kg_v1.0 [15:06:53]action value=close_receipt [15:06:53]process_action close_receipt [15:06:53]cmd_close_receipt [15:06:53]MH_GetDate [15:06:53]Write to MH i2c: F0 00 00 C1 61 11 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 09 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 09 00 C1 61 00 94 A2 71 66 BD 8F 7C 64 53 [15:06:53]GetLastDocTimeStamp 1718723128 [15:06:53]current date 1718723220 [15:06:53]FM_GetShiftState [15:06:53]SAM_PROTO_GetShiftState [15:06:53]wFMCommunicate request_size=4 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 13 01 00 [15:06:53]Write to MH i2c: E2 08 00 C2 61 80 13 01 00 00 00 00 00 A0 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:53]Read from MH i2c: E2 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 0E 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 0E 00 C2 61 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 21 [15:06:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:06:53]wFMCommunicate OK [15:06:53]SAM_PROTO_GetShiftState done [15:06:53]FM_GetShiftState done [15:06:53]opened in 1718670284 [15:06:53]opened+sec_in_day 1718756684 [15:06:53]quantity*price = 88644 [15:06:53]sum+1 = 88645 [15:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 886.00 Внесено: 886.00 СДАЧА: 0.00 НСП 1% : 7.84 НДС 12% : 94.13 Наличными: 886.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 133 18.06.2024 15:07 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103449 ФПД: 179169431603913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150700&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103449&fm=179169431603913&tin=02508201610067®Number=0000000000092785&sum=88600 [15:06:54]StoreToDocumentArchive [15:06:54]shift 352 fd 103449 [15:06:54]save to /storage/0352/doc_00103449 [15:06:54]save last doc name /storage/0352/doc_00103449 to /storage/kkm_last_doc_name [15:06:54]save OK [15:06:54]Clear old archive folders... [15:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:54]tlvbuf is 0137F610 [15:06:54]SAM_PROTO_ClearQueue [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 09 00 00 [15:06:54]Write to MH i2c: E2 08 00 CF 61 80 09 00 00 00 00 00 00 A2 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 CF 61 00 90 00 A4 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_ClearQueue done [15:06:54]KKMCreateOFDPacket [15:06:54]OFDProtocolAddRootSTLVToBuf [15:06:54]FM_MakeSignedData [15:06:54]FM_MakeSignedData [15:06:54]SAM_PROTO_SignData [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 01 02 [15:06:54]Write to MH i2c: E2 08 00 D0 61 80 0D 01 02 00 00 00 00 AA [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 D0 61 00 90 00 A5 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=255 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 5A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 24 00 00 00 00 07 04 06 00 18 5A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 94 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 94 01 00 35 04 06 00 A2 [15:06:54]Write to MH i2c: E2 02 01 D1 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 5A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 24 00 00 00 00 07 04 06 00 18 5A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 94 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 94 01 00 35 04 06 00 A2 00 00 E1 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]OFD Sender: No OFD packet to send [15:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 D1 61 00 90 00 A6 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=10 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 02 02 05 F4 22 53 4A C9 [15:06:54]Write to MH i2c: E2 0D 00 D2 61 80 0D 02 02 05 00 F4 22 53 4A C9 00 00 33 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 D2 61 00 90 00 A7 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 03 02 [15:06:54]Write to MH i2c: E2 08 00 D3 61 80 0D 03 02 00 00 00 00 AF [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 D3 61 00 EF 84 3F 42 82 20 F0 16 90 00 4C [15:06:54]RAPDU: EF 84 3F 42 82 20 F0 16 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_SignData done [15:06:54]FM_MakeSignedData done [15:06:54]CreateOFDProtocolMessage [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 11 00 00 [15:06:54]Write to MH i2c: E2 08 00 D4 61 80 11 00 00 00 00 00 00 AF [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 D4 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [15:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:06:54]wFMCommunicate OK [15:06:54]CreateOFDProtocolMessage done [15:06:54]OFDSenderStorePacket 103449 [15:06:54]StoreOFDPacket docnum=103449 [15:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 53 07 01 58 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 5A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 24 00 00 00 00 07 04 06 00 18 5A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 94 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 94 01 00 35 04 06 00 A2 F4 22 53 4A C9 EF 84 3F 42 82 20 F0 16 [15:06:54]CheckFolder [15:06:54]dirname=/storage/ofd_packets [15:06:54]CheckFolder done [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00103449 [15:06:54]NVStorageSaveData ofd_packets/00103449 [15:06:54]File name is /storage/ofd_packets/00103449 [15:06:54]Write 301 bytes [15:06:54]NVStorageSaveData done [15:06:54]OFDSenderStorePacket done [15:06:54]KKMCreateOFDPacket done [15:06:54]NVStorageSaveData kkm_last_timestamp [15:06:54]File name is /storage/kkm_last_timestamp [15:06:54]Write 4 bytes [15:06:54]NVStorageSaveData done [15:06:54]ExternCall_PrintAddStr [15:06:54]wPrintStart [15:06:54]Write to MH i2c: 01 00 00 D5 61 36 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 D5 61 00 00 00 00 00 FF 0F 4B [15:06:54]RasterBufferAndPrint [15:06:54]line Счет N : (1)672628 [15:06:54]line ИНН: 02508201610067 [15:06:54]line Контрольно-Кассовый Чек [15:06:54]line ПРОДАЖА [15:06:54]line ТРК (МРК, ГНК) : 42 [15:06:54]line Товар: 2710124130 [15:06:54]line Аи-92-К-5 [15:06:54]line 13.350 * 66.40 [15:06:54]line = 886.44 [15:06:54]line НДС 12% НСП 1% [15:06:54]line > о реализуемом товаре [15:06:54]line ОКРУГЛЕНИЕ: -0.44 [15:06:54]line ИТОГО: 886.00 [15:06:54]line Внесено: 886.00 [15:06:54]line СДАЧА: 0.00 [15:06:54]line НСП 1% : 7.84 [15:06:54]line НДС 12% : 94.13 [15:06:54]line Наличными: 886.00 [15:06:54]line Безнал.: 0.00 [15:06:54]line Место: АЗС № 120 "Партнер Нефть" [15:06:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:06:54]line СНО: Общий режим [15:06:54]line Чек 133 18.06.2024 15:07 [15:06:54]line Смена: 352 ФФД: 1.0 [15:06:54]line ЗНМ: 0300000164 [15:06:54]line РНМ: 0000000000092785 [15:06:54]line Версия ККМ: 001 [15:06:54]line ФМ: 0000000000875093 [15:06:54]line ФД: 103449 [15:06:54]line ФПД: 179169431603913 [15:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150700&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103449&fm=179169431603913&tin=02508201610067®Number=0000000000092785&sum=88600 [15:06:55]OFD Sender: Processing packet 103449 [packets to send 17, broken 16] [15:06:55]ProducePacketName [15:06:55]name=ofd_packets/00103449 [15:06:55]OFD Sender: To server: pG, [15:06:55]CommunicateWithHost lk.salyk.kg:30040 [15:06:55]ConnectInit lk.salyk.kg [15:06:55]written 0, free lines is 4095 [15:06:55]Connected sock=10 [15:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 53 07 01 58 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 44 5A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 5A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 24 00 00 00 00 07 04 06 00 18 5A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 94 A2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 94 01 00 35 04 06 00 A2 F4 22 53 4A C9 EF 84 3F 42 82 20 F0 16 [15:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 66 63 47 00 43 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 94 01 00 F4 03 04 00 20 49 71 66 B6 04 01 00 00 60 ED E6 A3 8C B7 47 A9 [15:06:55]CommunicateWithHost err = 0 [15:06:55]CheckOFDResponse [15:06:55]1017 (14) - 77093643461234 [15:06:55]1041 (16) - 0000000000875093 [15:06:55]1040 (4) - 103449 [15:06:55]1012 (4) - 18.06.2024 08:45 [15:06:55]1206 (1) - 0 [15:06:55]OFD Sender: Remove packet 103449 [15:06:55]ProducePacketName [15:06:55]name=ofd_packets/00103449 [15:06:55]NVStorageDeleteData [15:06:55]Write to MH i2c: 01 00 00 00 62 62 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 07 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 07 00 00 62 00 00 00 00 00 DF 0C 54 [15:06:55]RasterBufferAndPrint [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]written 0, free lines is 3301 [15:06:55]MH_Cut [15:06:55]Write to MH i2c: D1 01 00 07 62 01 3B [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 01 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 01 00 07 62 00 3A [15:06:55]Write to MH i2c: 01 00 00 08 62 6A [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:56]OFD Sender: No OFD packet to send [15:06:56]*** Cut start [15:06:56]*** Partial cut [15:06:56]*** CUTSNS_PIN = 1 [15:06:56]*** CUTSNS_PIN = 0 [15:06:56]*** Brake cut motor [15:06:56]Read from MH i2c: 01 [15:06:57]MH_I2C_Read... [15:06:57]*** Stop cut motor [15:06:57]*** Cut end [15:06:57]Read from MH i2c: 01 07 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 08 62 00 00 00 00 00 FF 0F 7F [15:06:57]process_action close_receipt done [15:06:57]requested_data is exist [15:06:57]produce_requested_data [15:06:57]requested_item fm.sn is exist - process it [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 11 00 00 [15:06:57]Write to MH i2c: E2 08 00 09 62 80 11 00 00 00 00 00 00 E5 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 09 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [15:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:06:57]wFMCommunicate OK [15:06:57]requested_item fd.num is exist - process it [15:06:57]SAM_PROTO_GetFieldsCounters [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 13 00 00 [15:06:57]Write to MH i2c: E2 08 00 0A 62 80 13 00 00 00 00 00 00 E8 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 62 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 62 00 0A 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [15:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_GetFieldsCounters done [15:06:57]requested_item shift.num is exist - process it [15:06:57]requested_item shift.opened is exist - process it [15:06:57]req_shift_opened [15:06:57]FM_GetShiftState [15:06:57]SAM_PROTO_GetShiftState [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 13 01 00 [15:06:57]Write to MH i2c: E2 08 00 0B 62 80 13 01 00 00 00 00 00 EA [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0E 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0E 00 0B 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6B [15:06:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_GetShiftState done [15:06:57]FM_GetShiftState done [15:06:57]req_shift_opened done [15:06:57]requested_item shift.open_date is exist - process it [15:06:57]req_shift_open_date [15:06:57]req_shift_open_date done [15:06:57]produce_requested_data done [15:06:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103449,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:06:57]process_action_free close_receipt [15:06:57]json_value_free [15:06:57]json_value_free done [15:06:57]process_json_proto returns [15:06:57]Send response to host [15:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103449,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:06:57]free response buf [15:06:57]execute_script done [15:06:57]execute_script returns [15:06:57]free content buf [15:06:57]Sock 7.Close socket [15:06:57]Sock 7.Thread stoped [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:29]accept exits with 9 [15:15:29]New connection [15:15:29]New thread 3067227492 created [15:15:29]Thread 3067084132 joined [15:15:29]Waiting for new connection... [15:15:29] Sock 9.Parse request [15:15:29]Sock 9.Check first char [15:15:29]Sock 9.First char is OK [15:15:29]request: POST /json_proto HTTP/1.0 [15:15:29]Method: POST [15:15:29]URL: /json_proto [15:15:29]Method is POST - this is cgi request [15:15:29]url: /json_proto [15:15:29]query_string will be loaded in cgi processing [15:15:29]execute_cgi json_proto POST (null) [15:15:29]execute_cgi path=json_proto method=POST [15:15:29]POST find Content-Length [15:15:29]Host: 172.17.38.133:8080 [15:15:29]Content-Length: 803 [15:15:29]Content-Type: application/json [15:15:29] [15:15:29]POST finish read [15:15:29]Found Content-Length = 803 [15:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:29]execute_script... [15:15: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)672630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:29]POST & json_proto [15:15:29]process_json_proto [15:15:29]json parsed OK: [15:15:29]protocol is kg_v1.0 [15:15:29]action value=close_receipt [15:15:29]process_action close_receipt [15:15:29]cmd_close_receipt [15:15:29]MH_GetDate [15:15:29]Write to MH i2c: F0 00 00 0C 62 5D [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: F0 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: F0 09 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: F0 09 00 0C 62 00 98 A4 71 66 BD 8F 7C 64 A5 [15:15:29]GetLastDocTimeStamp 1718723220 [15:15:29]current date 1718723736 [15:15:29]FM_GetShiftState [15:15:29]SAM_PROTO_GetShiftState [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 13 01 00 [15:15:29]Write to MH i2c: E2 08 00 0D 62 80 13 01 00 00 00 00 00 EC [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 0E 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 0E 00 0D 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6D [15:15:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:15:29]wFMCommunicate OK [15:15:29]SAM_PROTO_GetShiftState done [15:15:29]FM_GetShiftState done [15:15:29]opened in 1718670284 [15:15:29]opened+sec_in_day 1718756684 [15:15:29]quantity*price = 200063 [15:15:29]sum+1 = 200064 [15:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 134 18.06.2024 15:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103450 ФПД: 59185303407554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103450&fm=59185303407554&tin=02508201610067®Number=0000000000092785&sum=200063 [15:15:30]StoreToDocumentArchive [15:15:30]shift 352 fd 103450 [15:15:30]save to /storage/0352/doc_00103450 [15:15:30]save last doc name /storage/0352/doc_00103450 to /storage/kkm_last_doc_name [15:15:30]save OK [15:15:30]Clear old archive folders... [15:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:30]tlvbuf is 0147BD00 [15:15:30]SAM_PROTO_ClearQueue [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 09 00 00 [15:15:30]Write to MH i2c: E2 08 00 1A 62 80 09 00 00 00 00 00 00 EE [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 1A 62 00 90 00 F0 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]SAM_PROTO_ClearQueue done [15:15:30]KKMCreateOFDPacket [15:15:30]OFDProtocolAddRootSTLVToBuf [15:15:30]FM_MakeSignedData [15:15:30]FM_MakeSignedData [15:15:30]SAM_PROTO_SignData [15:15:30]wFMCommunicate request_size=4 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 01 02 [15:15:30]Write to MH i2c: E2 08 00 1B 62 80 0D 01 02 00 00 00 00 F6 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:30]Read from MH i2c: E2 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 [15:15:30]MH_I2C_Read... [15:15:30]Read from MH i2c: E2 03 00 1B 62 00 90 00 F1 [15:15:30]RAPDU: 90 00 [15:15:30]wFMCommunicate OK [15:15:30]wFMCommunicate request_size=255 [15:15:30]MH_SAM_APDU [15:15:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 94 01 00 35 04 06 00 35 [15:15:30]Write to MH i2c: E2 02 01 1C 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 94 01 00 35 04 06 00 35 00 00 01 [15:15:30]Write i2c OK [15:15:30]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:31]Read from MH i2c: E2 03 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 03 00 1C 62 00 90 00 F2 [15:15:31]RAPDU: 90 00 [15:15:31]wFMCommunicate OK [15:15:31]wFMCommunicate request_size=10 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 0D 02 02 05 D4 26 FC 4B C2 [15:15:31]Write to MH i2c: E2 0D 00 1D 62 80 0D 02 02 05 00 D4 26 FC 4B C2 00 00 06 [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:31]Read from MH i2c: E2 03 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 03 00 1D 62 00 90 00 F3 [15:15:31]RAPDU: 90 00 [15:15:31]wFMCommunicate OK [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 0D 03 02 [15:15:31]Write to MH i2c: E2 08 00 1E 62 80 0D 03 02 00 00 00 00 FB [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0B 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0B 00 1E 62 00 DE EC F6 8B 3D 84 FD 87 90 00 8C [15:15:31]RAPDU: DE EC F6 8B 3D 84 FD 87 90 00 [15:15:31]wFMCommunicate OK [15:15:31]SAM_PROTO_SignData done [15:15:31]FM_MakeSignedData done [15:15:31]CreateOFDProtocolMessage [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 11 00 00 [15:15:31]Write to MH i2c: E2 08 00 1F 62 80 11 00 00 00 00 00 00 FB [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 17 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 17 00 1F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [15:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:15:31]wFMCommunicate OK [15:15:31]CreateOFDProtocolMessage done [15:15:31]OFDSenderStorePacket 103450 [15:15:31]StoreOFDPacket docnum=103450 [15:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE 44 07 01 66 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 94 01 00 35 04 06 00 35 D4 26 FC 4B C2 DE EC F6 8B 3D 84 FD 87 [15:15:31]CheckFolder [15:15:31]dirname=/storage/ofd_packets [15:15:31]CheckFolder done [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00103450 [15:15:31]NVStorageSaveData ofd_packets/00103450 [15:15:31]File name is /storage/ofd_packets/00103450 [15:15:31]Write 301 bytes [15:15:31]NVStorageSaveData done [15:15:31]OFDSenderStorePacket done [15:15:31]KKMCreateOFDPacket done [15:15:31]NVStorageSaveData kkm_last_timestamp [15:15:31]File name is /storage/kkm_last_timestamp [15:15:31]Write 4 bytes [15:15:31]NVStorageSaveData done [15:15:31]ExternCall_PrintAddStr [15:15:31]wPrintStart [15:15:31]Write to MH i2c: 01 00 00 20 62 82 [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 07 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: 01 07 00 20 62 00 00 00 00 00 FF 0F 97 [15:15:31]RasterBufferAndPrint [15:15:31]line Счет N : (1)672630 [15:15:31]line ИНН: 02508201610067 [15:15:31]line Контрольно-Кассовый Чек [15:15:31]line ПРОДАЖА [15:15:31]line ТРК (МРК, ГНК) : 42 [15:15:31]line Товар: 2710124130 [15:15:31]line Аи-92-К-5 [15:15:31]line 30.130 * 66.40 [15:15:31]line = 2000.63 [15:15:31]line НДС 12% НСП 1% [15:15:31]line > о реализуемом товаре [15:15:31]line ИТОГО: 2000.63 [15:15:31]line НСП 1% : 17.70 [15:15:31]line НДС 12% : 212.46 [15:15:31]line Наличными: 0.00 [15:15:31]line Безнал.: 2000.63 [15:15:31]line Место: АЗС № 120 "Партнер Нефть" [15:15:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:15:31]line СНО: Общий режим [15:15:31]line Чек 134 18.06.2024 15:15 [15:15:31]line Смена: 352 ФФД: 1.0 [15:15:31]line ЗНМ: 0300000164 [15:15:31]line РНМ: 0000000000092785 [15:15:31]line Версия ККМ: 001 [15:15:31]line Платежная система: O! деньги [15:15:31]line ФМ: 0000000000875093 [15:15:31]line ФД: 103450 [15:15:31]line ФПД: 59185303407554 [15:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103450&fm=59185303407554&tin=02508201610067®Number=0000000000092785&sum=200063 [15:15:31]written 0, free lines is 4095 [15:15:31]OFD Sender: Processing packet 103450 [packets to send 17, broken 16] [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00103450 [15:15:31]OFD Sender: To server: pG, [15:15:31]CommunicateWithHost lk.salyk.kg:30040 [15:15:31]ConnectInit lk.salyk.kg [15:15:31]Connected sock=10 [15:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE 44 07 01 66 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 98 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 94 01 00 35 04 06 00 35 D4 26 FC 4B C2 DE EC F6 8B 3D 84 FD 87 [15:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 34 31 47 00 11 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 94 01 00 F4 03 04 00 24 4B 71 66 B6 04 01 00 00 E2 1F D4 65 A2 DF 57 2E [15:15:31]CommunicateWithHost err = 0 [15:15:31]CheckOFDResponse [15:15:31]1017 (14) - 77093643461234 [15:15:31]1041 (16) - 0000000000875093 [15:15:31]1040 (4) - 103450 [15:15:31]1012 (4) - 18.06.2024 08:53 [15:15:31]1206 (1) - 0 [15:15:31]OFD Sender: Remove packet 103450 [15:15:31]ProducePacketName [15:15:31]name=ofd_packets/00103450 [15:15:31]NVStorageDeleteData [15:15:32]Write to MH i2c: 01 00 00 4A 62 AC [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 07 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: 01 07 00 4A 62 00 00 00 00 00 EF 0C AE [15:15:32]RasterBufferAndPrint [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]line [15:15:32]written 0, free lines is 3318 [15:15:32]MH_Cut [15:15:32]Write to MH i2c: D1 01 00 51 62 01 85 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 01 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: D1 01 00 51 62 00 84 [15:15:32]Write to MH i2c: 01 00 00 52 62 B4 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]OFD Sender: No OFD packet to send [15:15:32]*** Cut start [15:15:32]*** Partial cut [15:15:32]*** CUTSNS_PIN = 1 [15:15:32]*** CUTSNS_PIN = 0 [15:15:33]*** Brake cut motor [15:15:33]Read from MH i2c: 01 [15:15:33]MH_I2C_Read... [15:15:33]*** Stop cut motor [15:15:33]*** Cut end [15:15:33]Read from MH i2c: 01 07 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 52 62 00 00 00 00 00 FF 0F C9 [15:15:33]process_action close_receipt done [15:15:33]requested_data is exist [15:15:33]produce_requested_data [15:15:33]requested_item fm.sn is exist - process it [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 11 00 00 [15:15:33]Write to MH i2c: E2 08 00 53 62 80 11 00 00 00 00 00 00 2F [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 53 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [15:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:15:33]wFMCommunicate OK [15:15:33]requested_item fd.num is exist - process it [15:15:33]SAM_PROTO_GetFieldsCounters [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 13 00 00 [15:15:33]Write to MH i2c: E2 08 00 54 62 80 13 00 00 00 00 00 00 32 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 62 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 62 00 54 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_GetFieldsCounters done [15:15:33]requested_item shift.num is exist - process it [15:15:33]requested_item shift.opened is exist - process it [15:15:33]req_shift_opened [15:15:33]FM_GetShiftState [15:15:33]SAM_PROTO_GetShiftState [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 13 01 00 [15:15:33]Write to MH i2c: E2 08 00 55 62 80 13 01 00 00 00 00 00 34 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0E 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0E 00 55 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [15:15:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_GetShiftState done [15:15:33]FM_GetShiftState done [15:15:33]req_shift_opened done [15:15:33]requested_item shift.open_date is exist - process it [15:15:33]req_shift_open_date [15:15:33]req_shift_open_date done [15:15:33]produce_requested_data done [15:15:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103450,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:15:33]process_action_free close_receipt [15:15:33]json_value_free [15:15:33]json_value_free done [15:15:33]process_json_proto returns [15:15:33]Send response to host [15:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103450,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:15:33]free response buf [15:15:33]execute_script done [15:15:33]execute_script returns [15:15:33]free content buf [15:15:33]Sock 9.Close socket [15:15:33]Sock 9.Thread stoped [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:45]accept exits with 7 [15:15:45]New connection [15:15:45]New thread 3067084132 created [15:15:45]Thread 3067227492 joined [15:15:45]Waiting for new connection... [15:15:45] Sock 7.Parse request [15:15:45]Sock 7.Check first char [15:15:45]Sock 7.First char is OK [15:15:45]request: POST /json_proto HTTP/1.0 [15:15:45]Method: POST [15:15:45]URL: /json_proto [15:15:45]Method is POST - this is cgi request [15:15:45]url: /json_proto [15:15:45]query_string will be loaded in cgi processing [15:15:45]execute_cgi json_proto POST (null) [15:15:45]execute_cgi path=json_proto method=POST [15:15:45]POST find Content-Length [15:15:45]Host: 172.17.38.133:8080 [15:15:45]Content-Length: 811 [15:15:45]Content-Type: application/json [15:15:45] [15:15:45]POST finish read [15:15:45]Found Content-Length = 811 [15:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.900, "sum" : 11000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:45]execute_script... [15:15:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.900, "sum" : 11000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:45]POST & json_proto [15:15:45]process_json_proto [15:15:45]json parsed OK: [15:15:45]protocol is kg_v1.0 [15:15:45]action value=close_receipt [15:15:45]process_action close_receipt [15:15:45]cmd_close_receipt [15:15:45]MH_GetDate [15:15:45]Write to MH i2c: F0 00 00 56 62 A7 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 09 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: F0 09 00 56 62 00 A8 A4 71 66 BD 8F 7C 64 FF [15:15:45]GetLastDocTimeStamp 1718723736 [15:15:45]current date 1718723752 [15:15:45]FM_GetShiftState [15:15:45]SAM_PROTO_GetShiftState [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 13 01 00 [15:15:45]Write to MH i2c: E2 08 00 57 62 80 13 01 00 00 00 00 00 36 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 57 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [15:15:45]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_GetShiftState done [15:15:45]FM_GetShiftState done [15:15:45]opened in 1718670284 [15:15:45]opened+sec_in_day 1718756684 [15:15:45]quantity*price = 1100061 [15:15:45]sum+1 = 1100062 [15:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11000.61 НСП 1% : 97.35 НДС 12% : 1168.21 Наличными: 0.00 Безнал.: 11000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 135 18.06.2024 15:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103451 ФПД: 19436889786428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103451&fm=19436889786428&tin=02508201610067®Number=0000000000092785&sum=1100061 [15:15:46]StoreToDocumentArchive [15:15:46]shift 352 fd 103451 [15:15:46]save to /storage/0352/doc_00103451 [15:15:46]save last doc name /storage/0352/doc_00103451 to /storage/kkm_last_doc_name [15:15:46]save OK [15:15:46]Clear old archive folders... [15:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:15:46]tlvbuf is 0137F880 [15:15:46]SAM_PROTO_ClearQueue [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 09 00 00 [15:15:46]Write to MH i2c: E2 08 00 64 62 80 09 00 00 00 00 00 00 38 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 64 62 00 90 00 3A [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_ClearQueue done [15:15:46]KKMCreateOFDPacket [15:15:46]OFDProtocolAddRootSTLVToBuf [15:15:46]FM_MakeSignedData [15:15:46]FM_MakeSignedData [15:15:46]SAM_PROTO_SignData [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 0D 01 02 [15:15:46]Write to MH i2c: E2 08 00 65 62 80 0D 01 02 00 00 00 00 40 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 65 62 00 90 00 3B [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]wFMCommunicate request_size=255 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A8 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 94 01 00 35 04 06 00 [15:15:46]Write to MH i2c: E2 02 01 66 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A8 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 94 01 00 35 04 06 00 00 00 CC [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 66 62 00 90 00 3C [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]wFMCommunicate request_size=11 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 0D 02 02 06 11 AD 80 E9 48 3C [15:15:46]Write to MH i2c: E2 0E 00 67 62 80 0D 02 02 06 00 11 AD 80 E9 48 3C 00 00 FA [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 03 00 67 62 00 90 00 3D [15:15:46]RAPDU: 90 00 [15:15:46]wFMCommunicate OK [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 0D 03 02 [15:15:46]Write to MH i2c: E2 08 00 68 62 80 0D 03 02 00 00 00 00 45 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0B 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0B 00 68 62 00 1E 55 21 B0 BC 9A 1C 23 90 00 1F [15:15:46]RAPDU: 1E 55 21 B0 BC 9A 1C 23 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_SignData done [15:15:46]FM_MakeSignedData done [15:15:46]CreateOFDProtocolMessage [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 11 00 00 [15:15:46]Write to MH i2c: E2 08 00 69 62 80 11 00 00 00 00 00 00 45 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 69 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [15:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:15:46]wFMCommunicate OK [15:15:46]CreateOFDProtocolMessage done [15:15:46]OFDSenderStorePacket 103451 [15:15:46]StoreOFDPacket docnum=103451 [15:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7E B5 08 01 62 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A8 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 94 01 00 35 04 06 00 11 AD 80 E9 48 3C 1E 55 21 B0 BC 9A 1C 23 [15:15:46]CheckFolder [15:15:46]dirname=/storage/ofd_packets [15:15:46]CheckFolder done [15:15:46]ProducePacketName [15:15:46]name=ofd_packets/00103451 [15:15:46]NVStorageSaveData ofd_packets/00103451 [15:15:46]File name is /storage/ofd_packets/00103451 [15:15:46]Write 302 bytes [15:15:46]NVStorageSaveData done [15:15:46]OFDSenderStorePacket done [15:15:46]KKMCreateOFDPacket done [15:15:46]NVStorageSaveData kkm_last_timestamp [15:15:46]File name is /storage/kkm_last_timestamp [15:15:46]Write 4 bytes [15:15:46]NVStorageSaveData done [15:15:46]ExternCall_PrintAddStr [15:15:46]wPrintStart [15:15:46]Write to MH i2c: 01 00 00 6A 62 CC [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 6A 62 00 00 00 00 00 FF 0F E1 [15:15:46]RasterBufferAndPrint [15:15:46]line Счет N : (1)672627 [15:15:46]line ИНН: 02508201610067 [15:15:46]line Контрольно-Кассовый Чек [15:15:46]line ПРОДАЖА [15:15:46]line ТРК (МРК, ГНК) : 11 [15:15:46]line Товар: 2710194210 [15:15:46]line ДТ(л)-К-5 [15:15:46]line 150.900 * 72.90 [15:15:46]line = 11000.61 [15:15:46]line НДС 12% НСП 1% [15:15:46]line > о реализуемом товаре [15:15:46]line ИТОГО: 11000.61 [15:15:46]line НСП 1% : 97.35 [15:15:46]line НДС 12% : 1168.21 [15:15:46]line Наличными: 0.00 [15:15:46]line Безнал.: 11000.61 [15:15:46]line Место: АЗС № 120 "Партнер Нефть" [15:15:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:15:46]line СНО: Общий режим [15:15:46]line Чек 135 18.06.2024 15:15 [15:15:46]line Смена: 352 ФФД: 1.0 [15:15:46]line ЗНМ: 0300000164 [15:15:46]line РНМ: 0000000000092785 [15:15:46]line Версия ККМ: 001 [15:15:46]line Платежная система: O! деньги [15:15:46]line ФМ: 0000000000875093 [15:15:46]line ФД: 103451 [15:15:47]line ФПД: 19436889786428 [15:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103451&fm=19436889786428&tin=02508201610067®Number=0000000000092785&sum=1100061 [15:15:47]OFD Sender: Processing packet 103451 [packets to send 17, broken 16] [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00103451 [15:15:47]OFD Sender: To server: pG, [15:15:47]CommunicateWithHost lk.salyk.kg:30040 [15:15:47]ConnectInit lk.salyk.kg [15:15:47]written 0, free lines is 4095 [15:15:47]Connected sock=10 [15:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7E B5 08 01 62 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D C9 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C9 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A8 A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 94 01 00 35 04 06 00 11 AD 80 E9 48 3C 1E 55 21 B0 BC 9A 1C 23 [15:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 52 47 00 CF BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 94 01 00 F4 03 04 00 34 4B 71 66 B6 04 01 00 00 66 10 8F 8A C1 17 0D 85 [15:15:47]CommunicateWithHost err = 0 [15:15:47]CheckOFDResponse [15:15:47]1017 (14) - 77093643461234 [15:15:47]1041 (16) - 0000000000875093 [15:15:47]1040 (4) - 103451 [15:15:47]1012 (4) - 18.06.2024 08:54 [15:15:47]1206 (1) - 0 [15:15:47]OFD Sender: Remove packet 103451 [15:15:47]ProducePacketName [15:15:47]name=ofd_packets/00103451 [15:15:47]NVStorageDeleteData [15:15:47]Write to MH i2c: 01 00 00 94 62 F6 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 07 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 07 00 94 62 00 00 00 00 00 E6 0C EF [15:15:47]RasterBufferAndPrint [15:15:47]line [15:15:47]line [15:15:47]line [15:15:47]line [15:15:47]line [15:15:47]written 0, free lines is 3308 [15:15:47]MH_Cut [15:15:47]Write to MH i2c: D1 01 00 9B 62 01 CF [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: D1 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: D1 01 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: D1 01 00 9B 62 00 CE [15:15:47]Write to MH i2c: 01 00 00 9C 62 FE [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:48]OFD Sender: No OFD packet to send [15:15:48]*** Cut start [15:15:48]*** Partial cut [15:15:48]*** CUTSNS_PIN = 1 [15:15:48]*** CUTSNS_PIN = 0 [15:15:48]*** Brake cut motor [15:15:49]Read from MH i2c: 01 [15:15:49]MH_I2C_Read... [15:15:49]*** Stop cut motor [15:15:49]*** Cut end [15:15:49]Read from MH i2c: 01 07 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 9C 62 00 00 00 00 00 FF 0F 13 [15:15:49]process_action close_receipt done [15:15:49]requested_data is exist [15:15:49]produce_requested_data [15:15:49]requested_item fm.sn is exist - process it [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 11 00 00 [15:15:49]Write to MH i2c: E2 08 00 9D 62 80 11 00 00 00 00 00 00 79 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 9D 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [15:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:15:49]wFMCommunicate OK [15:15:49]requested_item fd.num is exist - process it [15:15:49]SAM_PROTO_GetFieldsCounters [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 00 00 [15:15:49]Write to MH i2c: E2 08 00 9E 62 80 13 00 00 00 00 00 00 7C [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 9E 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetFieldsCounters done [15:15:49]requested_item shift.num is exist - process it [15:15:49]requested_item shift.opened is exist - process it [15:15:49]req_shift_opened [15:15:49]FM_GetShiftState [15:15:49]SAM_PROTO_GetShiftState [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 01 00 [15:15:49]Write to MH i2c: E2 08 00 9F 62 80 13 01 00 00 00 00 00 7E [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0E 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0E 00 9F 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FF [15:15:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetShiftState done [15:15:49]FM_GetShiftState done [15:15:49]req_shift_opened done [15:15:49]requested_item shift.open_date is exist - process it [15:15:49]req_shift_open_date [15:15:49]req_shift_open_date done [15:15:49]produce_requested_data done [15:15:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103451,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:15:49]process_action_free close_receipt [15:15:49]json_value_free [15:15:49]json_value_free done [15:15:49]process_json_proto returns [15:15:49]Send response to host [15:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103451,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:15:49]free response buf [15:15:49]execute_script done [15:15:49]execute_script returns [15:15:49]free content buf [15:15:49]Sock 7.Close socket [15:15:49]Sock 7.Thread stoped [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:11]accept exits with 9 [15:17:11]New connection [15:17:11]New thread 3067227492 created [15:17:11]Thread 3067084132 joined [15:17:11]Waiting for new connection... [15:17:11] Sock 9.Parse request [15:17:11]Sock 9.Check first char [15:17:11]Sock 9.First char is OK [15:17:11]request: POST /json_proto HTTP/1.0 [15:17:11]Method: POST [15:17:11]URL: /json_proto [15:17:11]Method is POST - this is cgi request [15:17:11]url: /json_proto [15:17:11]query_string will be loaded in cgi processing [15:17:11]execute_cgi json_proto POST (null) [15:17:11]execute_cgi path=json_proto method=POST [15:17:11]POST find Content-Length [15:17:11]Host: 172.17.38.133:8080 [15:17:11]Content-Length: 811 [15:17:11]Content-Type: application/json [15:17:11] [15:17:11]POST finish read [15:17:11]Found Content-Length = 811 [15:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 159.300, "sum" : 11612.97, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11612.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:11]execute_script... [15:17:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 159.300, "sum" : 11612.97, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11612.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:11]POST & json_proto [15:17:11]process_json_proto [15:17:11]json parsed OK: [15:17:11]protocol is kg_v1.0 [15:17:11]action value=close_receipt [15:17:11]process_action close_receipt [15:17:11]cmd_close_receipt [15:17:11]MH_GetDate [15:17:11]Write to MH i2c: F0 00 00 A0 62 F1 [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: F0 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: F0 09 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: F0 09 00 A0 62 00 FE A4 71 66 BD 8F 7C 64 9F [15:17:11]GetLastDocTimeStamp 1718723752 [15:17:11]current date 1718723838 [15:17:11]FM_GetShiftState [15:17:11]SAM_PROTO_GetShiftState [15:17:11]wFMCommunicate request_size=4 [15:17:11]MH_SAM_APDU [15:17:11]CAPDU: 80 13 01 00 [15:17:11]Write to MH i2c: E2 08 00 A1 62 80 13 01 00 00 00 00 00 80 [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:11]Read from MH i2c: E2 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 0E 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 0E 00 A1 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 01 [15:17:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:17:11]wFMCommunicate OK [15:17:11]SAM_PROTO_GetShiftState done [15:17:11]FM_GetShiftState done [15:17:11]opened in 1718670284 [15:17:11]opened+sec_in_day 1718756684 [15:17:11]quantity*price = 1161297 [15:17:11]sum+1 = 1161298 [15:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11612.97 НСП 1% : 102.77 НДС 12% : 1233.24 Наличными: 0.00 Безнал.: 11612.97 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 136 18.06.2024 15:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103452 ФПД: 110643444792390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151718&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103452&fm=110643444792390&tin=02508201610067®Number=0000000000092785&sum=1161297 [15:17:12]StoreToDocumentArchive [15:17:12]shift 352 fd 103452 [15:17:12]save to /storage/0352/doc_00103452 [15:17:12]save last doc name /storage/0352/doc_00103452 to /storage/kkm_last_doc_name [15:17:12]save OK [15:17:12]Clear old archive folders... [15:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:17:12]tlvbuf is 01359100 [15:17:12]SAM_PROTO_ClearQueue [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 09 00 00 [15:17:12]Write to MH i2c: E2 08 00 AE 62 80 09 00 00 00 00 00 00 82 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 AE 62 00 90 00 84 [15:17:12]RAPDU: 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_ClearQueue done [15:17:12]KKMCreateOFDPacket [15:17:12]OFDProtocolAddRootSTLVToBuf [15:17:12]FM_MakeSignedData [15:17:12]FM_MakeSignedData [15:17:12]SAM_PROTO_SignData [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 0D 01 02 [15:17:12]Write to MH i2c: E2 08 00 AF 62 80 0D 01 02 00 00 00 00 8A [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 AF 62 00 90 00 85 [15:17:12]RAPDU: 90 00 [15:17:12]wFMCommunicate OK [15:17:12]wFMCommunicate request_size=255 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 6E 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 51 B8 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 B8 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 B8 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FE A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 94 01 00 35 04 06 00 [15:17:12]Write to MH i2c: E2 02 01 B0 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 6E 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 51 B8 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 B8 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 B8 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FE A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 94 01 00 35 04 06 00 00 00 6B [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:12]Read from MH i2c: E2 03 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 B0 62 00 90 00 86 [15:17:12]RAPDU: 90 00 [15:17:12]wFMCommunicate OK [15:17:12]wFMCommunicate request_size=11 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 0D 02 02 06 64 A1 2F 39 3C 46 [15:17:12]Write to MH i2c: E2 0E 00 B1 62 80 0D 02 02 06 00 64 A1 2F 39 3C 46 00 00 88 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 03 00 B1 62 00 90 00 87 [15:17:12]RAPDU: 90 00 [15:17:12]wFMCommunicate OK [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 0D 03 02 [15:17:12]Write to MH i2c: E2 08 00 B2 62 80 0D 03 02 00 00 00 00 8F [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 0B 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 0B 00 B2 62 00 D4 41 E5 BA 1B 35 E2 93 90 00 09 [15:17:13]RAPDU: D4 41 E5 BA 1B 35 E2 93 90 00 [15:17:13]wFMCommunicate OK [15:17:13]SAM_PROTO_SignData done [15:17:13]FM_MakeSignedData done [15:17:13]CreateOFDProtocolMessage [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 11 00 00 [15:17:13]Write to MH i2c: E2 08 00 B3 62 80 11 00 00 00 00 00 00 8F [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 17 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 17 00 B3 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [15:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:17:13]wFMCommunicate OK [15:17:13]CreateOFDProtocolMessage done [15:17:13]OFDSenderStorePacket 103452 [15:17:13]StoreOFDPacket docnum=103452 [15:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 82 C2 08 01 34 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 6E 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 51 B8 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 B8 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 B8 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FE A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 94 01 00 35 04 06 00 64 A1 2F 39 3C 46 D4 41 E5 BA 1B 35 E2 93 [15:17:13]CheckFolder [15:17:13]dirname=/storage/ofd_packets [15:17:13]CheckFolder done [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00103452 [15:17:13]NVStorageSaveData ofd_packets/00103452 [15:17:13]File name is /storage/ofd_packets/00103452 [15:17:13]Write 302 bytes [15:17:13]NVStorageSaveData done [15:17:13]OFDSenderStorePacket done [15:17:13]KKMCreateOFDPacket done [15:17:13]NVStorageSaveData kkm_last_timestamp [15:17:13]File name is /storage/kkm_last_timestamp [15:17:13]Write 4 bytes [15:17:13]NVStorageSaveData done [15:17:13]ExternCall_PrintAddStr [15:17:13]wPrintStart [15:17:13]Write to MH i2c: 01 00 00 B4 62 16 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 07 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 07 00 B4 62 00 00 00 00 00 FF 0F 2B [15:17:13]RasterBufferAndPrint [15:17:13]line Счет N : (1)672629 [15:17:13]line ИНН: 02508201610067 [15:17:13]line Контрольно-Кассовый Чек [15:17:13]line ПРОДАЖА [15:17:13]line ТРК (МРК, ГНК) : 21 [15:17:13]line Товар: 2710194210 [15:17:13]line ДТ(л)-К-5 [15:17:13]line 159.300 * 72.90 [15:17:13]line = 11612.97 [15:17:13]line НДС 12% НСП 1% [15:17:13]line > о реализуемом товаре [15:17:13]line ИТОГО: 11612.97 [15:17:13]line НСП 1% : 102.77 [15:17:13]line НДС 12% : 1233.24 [15:17:13]line Наличными: 0.00 [15:17:13]line Безнал.: 11612.97 [15:17:13]line Место: АЗС № 120 "Партнер Нефть" [15:17:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:17:13]line СНО: Общий режим [15:17:13]line Чек 136 18.06.2024 15:17 [15:17:13]line Смена: 352 ФФД: 1.0 [15:17:13]line ЗНМ: 0300000164 [15:17:13]line РНМ: 0000000000092785 [15:17:13]line Версия ККМ: 001 [15:17:13]line Платежная система: O! деньги [15:17:13]line ФМ: 0000000000875093 [15:17:13]line ФД: 103452 [15:17:13]line ФПД: 110643444792390 [15:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151718&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103452&fm=110643444792390&tin=02508201610067®Number=0000000000092785&sum=1161297 [15:17:13]OFD Sender: Processing packet 103452 [packets to send 17, broken 16] [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00103452 [15:17:13]OFD Sender: To server: pG, [15:17:13]CommunicateWithHost lk.salyk.kg:30040 [15:17:13]ConnectInit lk.salyk.kg [15:17:13]written 0, free lines is 4095 [15:17:13]Connected sock=10 [15:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 82 C2 08 01 34 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 6E 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 51 B8 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 51 B8 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 51 B8 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FE A4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 94 01 00 35 04 06 00 64 A1 2F 39 3C 46 D4 41 E5 BA 1B 35 E2 93 [15:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 78 41 47 00 0D 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 35 30 39 33 10 04 04 00 1C 94 01 00 F4 03 04 00 8A 4B 71 66 B6 04 01 00 00 19 22 6F 5B A9 8C AA 4A [15:17:13]CommunicateWithHost err = 0 [15:17:13]CheckOFDResponse [15:17:13]1017 (14) - 77093643461234 [15:17:13]1041 (16) - 0000000000875093 [15:17:13]1040 (4) - 103452 [15:17:13]1012 (4) - 18.06.2024 08:55 [15:17:13]1206 (1) - 0 [15:17:13]OFD Sender: Remove packet 103452 [15:17:13]ProducePacketName [15:17:13]name=ofd_packets/00103452 [15:17:13]NVStorageDeleteData [15:17:13]Write to MH i2c: 01 00 00 DE 62 40 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 07 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 07 00 DE 62 00 00 00 00 00 EF 0C 42 [15:17:13]RasterBufferAndPrint [15:17:13]line [15:17:13]line [15:17:13]line [15:17:13]line [15:17:13]line [15:17:13]written 0, free lines is 3317 [15:17:13]MH_Cut [15:17:13]Write to MH i2c: D1 01 00 E5 62 01 19 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: D1 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: D1 01 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: D1 01 00 E5 62 00 18 [15:17:13]Write to MH i2c: 01 00 00 E6 62 48 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:14]OFD Sender: No OFD packet to send [15:17:14]*** Cut start [15:17:14]*** Partial cut [15:17:14]*** CUTSNS_PIN = 1 [15:17:14]*** CUTSNS_PIN = 0 [15:17:14]*** Brake cut motor [15:17:15]Read from MH i2c: 01 [15:17:15]MH_I2C_Read... [15:17:15]*** Stop cut motor [15:17:15]*** Cut end [15:17:15]Read from MH i2c: 01 07 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: 01 07 00 E6 62 00 00 00 00 00 FF 0F 5D [15:17:15]process_action close_receipt done [15:17:15]requested_data is exist [15:17:15]produce_requested_data [15:17:15]requested_item fm.sn is exist - process it [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 11 00 00 [15:17:15]Write to MH i2c: E2 08 00 E7 62 80 11 00 00 00 00 00 00 C3 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 17 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 17 00 E7 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [15:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:17:15]wFMCommunicate OK [15:17:15]requested_item fd.num is exist - process it [15:17:15]SAM_PROTO_GetFieldsCounters [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 13 00 00 [15:17:15]Write to MH i2c: E2 08 00 E8 62 80 13 00 00 00 00 00 00 C6 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 62 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 62 00 E8 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:17:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:15]wFMCommunicate OK [15:17:15]SAM_PROTO_GetFieldsCounters done [15:17:15]requested_item shift.num is exist - process it [15:17:15]requested_item shift.opened is exist - process it [15:17:15]req_shift_opened [15:17:15]FM_GetShiftState [15:17:15]SAM_PROTO_GetShiftState [15:17:15]wFMCommunicate request_size=4 [15:17:15]MH_SAM_APDU [15:17:15]CAPDU: 80 13 01 00 [15:17:15]Write to MH i2c: E2 08 00 E9 62 80 13 01 00 00 00 00 00 C8 [15:17:15]Write i2c OK [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 [15:17:15]MH_I2C_Read... [15:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:15]Read from MH i2c: E2 0E 00 [15:17:15]MH_I2C_Read... [15:17:15]Read from MH i2c: E2 0E 00 E9 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 49 [15:17:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:17:15]wFMCommunicate OK [15:17:15]SAM_PROTO_GetShiftState done [15:17:15]FM_GetShiftState done [15:17:15]req_shift_opened done [15:17:15]requested_item shift.open_date is exist - process it [15:17:15]req_shift_open_date [15:17:15]req_shift_open_date done [15:17:15]produce_requested_data done [15:17:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103452,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:17:15]process_action_free close_receipt [15:17:15]json_value_free [15:17:15]json_value_free done [15:17:15]process_json_proto returns [15:17:15]Send response to host [15:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103452,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:17:15]free response buf [15:17:15]execute_script done [15:17:15]execute_script returns [15:17:15]free content buf [15:17:15]Sock 9.Close socket [15:17:15]Sock 9.Thread stoped [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:45]accept exits with 7 [15:20:45]New connection [15:20:45]New thread 3067084132 created [15:20:45]Thread 3067227492 joined [15:20:45]Waiting for new connection... [15:20:45] Sock 7.Parse request [15:20:45]Sock 7.Check first char [15:20:45]Sock 7.First char is OK [15:20:45]request: POST /json_proto HTTP/1.0 [15:20:45]Method: POST [15:20:45]URL: /json_proto [15:20:45]Method is POST - this is cgi request [15:20:45]url: /json_proto [15:20:45]query_string will be loaded in cgi processing [15:20:45]execute_cgi json_proto POST (null) [15:20:45]execute_cgi path=json_proto method=POST [15:20:45]POST find Content-Length [15:20:45]Host: 172.17.38.133:8080 [15:20:45]Content-Length: 687 [15:20:45]Content-Type: application/json [15:20:45] [15:20:45]POST finish read [15:20:45]Found Content-Length = 687 [15:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:45]execute_script... [15:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:45]POST & json_proto [15:20:45]process_json_proto [15:20:45]json parsed OK: [15:20:45]protocol is kg_v1.0 [15:20:45]action value=close_receipt [15:20:45]process_action close_receipt [15:20:45]cmd_close_receipt [15:20:45]MH_GetDate [15:20:45]Write to MH i2c: F0 00 00 EA 62 3B [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: F0 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: F0 09 00 [15:20:45]MH_I2C_Read... [15:20:45]Read from MH i2c: F0 09 00 EA 62 00 D5 A5 71 66 BD 8F 7C 64 C1 [15:20:45]GetLastDocTimeStamp 1718723838 [15:20:45]current date 1718724053 [15:20:45]FM_GetShiftState [15:20:45]SAM_PROTO_GetShiftState [15:20:45]wFMCommunicate request_size=4 [15:20:45]MH_SAM_APDU [15:20:45]CAPDU: 80 13 01 00 [15:20:45]Write to MH i2c: E2 08 00 EB 62 80 13 01 00 00 00 00 00 CA [15:20:45]Write i2c OK [15:20:45]MH_I2C_Read... [15:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:46]Read from MH i2c: E2 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: E2 0E 00 [15:20:46]MH_I2C_Read... [15:20:46]Read from MH i2c: E2 0E 00 EB 62 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4B [15:20:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:20:46]wFMCommunicate OK [15:20:46]SAM_PROTO_GetShiftState done [15:20:46]FM_GetShiftState done [15:20:46]opened in 1718670284 [15:20:46]opened+sec_in_day 1718756684 [15:20:46]quantity*price = 250047 [15:20:46]sum+1 = 250048 [15:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 137 18.06.2024 15:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103453 ФПД: 32969514175216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152053&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103453&fm=32969514175216&tin=02508201610067®Number=0000000000092785&sum=250000 [15:20:47]StoreToDocumentArchive [15:20:47]shift 352 fd 103453 [15:20:47]save to /storage/0352/doc_00103453 [15:20:47]save last doc name /storage/0352/doc_00103453 to /storage/kkm_last_doc_name [15:20:47]save OK [15:20:47]Clear old archive folders... [15:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:20:47]tlvbuf is 014E79B0 [15:20:47]SAM_PROTO_ClearQueue [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 09 00 00 [15:20:47]Write to MH i2c: E2 08 00 F8 62 80 09 00 00 00 00 00 00 CC [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:47]Read from MH i2c: E2 03 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 F8 62 00 90 00 CE [15:20:47]RAPDU: 90 00 [15:20:47]wFMCommunicate OK [15:20:47]SAM_PROTO_ClearQueue done [15:20:47]KKMCreateOFDPacket [15:20:47]OFDProtocolAddRootSTLVToBuf [15:20:47]FM_MakeSignedData [15:20:47]FM_MakeSignedData [15:20:47]SAM_PROTO_SignData [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 0D 01 02 [15:20:47]Write to MH i2c: E2 08 00 F9 62 80 0D 01 02 00 00 00 00 D4 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 F9 62 00 90 00 CF [15:20:47]RAPDU: 90 00 [15:20:47]wFMCommunicate OK [15:20:47]wFMCommunicate request_size=255 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 A5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 94 01 00 35 04 06 00 [15:20:47]Write to MH i2c: E2 02 01 FA 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 A5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 94 01 00 35 04 06 00 00 00 49 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 FA 62 00 90 00 D0 [15:20:47]RAPDU: 90 00 [15:20:47]wFMCommunicate OK [15:20:47]wFMCommunicate request_size=11 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 0D 02 02 06 1D FC 50 2E 4A F0 [15:20:47]Write to MH i2c: E2 0E 00 FB 62 80 0D 02 02 06 00 1D FC 50 2E 4A F0 00 00 B4 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 03 00 FB 62 00 90 00 D1 [15:20:47]RAPDU: 90 00 [15:20:47]wFMCommunicate OK [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 0D 03 02 [15:20:47]Write to MH i2c: E2 08 00 FC 62 80 0D 03 02 00 00 00 00 D9 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0B 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 0B 00 FC 62 00 DB E2 F1 1F 3A BC 88 5B 90 00 80 [15:20:47]RAPDU: DB E2 F1 1F 3A BC 88 5B 90 00 [15:20:47]wFMCommunicate OK [15:20:47]SAM_PROTO_SignData done [15:20:47]FM_MakeSignedData done [15:20:47]CreateOFDProtocolMessage [15:20:47]wFMCommunicate request_size=4 [15:20:47]MH_SAM_APDU [15:20:47]CAPDU: 80 11 00 00 [15:20:47]Write to MH i2c: E2 08 00 FD 62 80 11 00 00 00 00 00 00 D9 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:47]Read from MH i2c: E2 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 17 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: E2 17 00 FD 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2C [15:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:20:47]wFMCommunicate OK [15:20:47]CreateOFDProtocolMessage done [15:20:47]OFDSenderStorePacket 103453 [15:20:47]StoreOFDPacket docnum=103453 [15:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B7 A2 08 01 BB C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 A5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 94 01 00 35 04 06 00 1D FC 50 2E 4A F0 DB E2 F1 1F 3A BC 88 5B [15:20:47]CheckFolder [15:20:47]dirname=/storage/ofd_packets [15:20:47]CheckFolder done [15:20:47]ProducePacketName [15:20:47]name=ofd_packets/00103453 [15:20:47]NVStorageSaveData ofd_packets/00103453 [15:20:47]File name is /storage/ofd_packets/00103453 [15:20:47]Write 302 bytes [15:20:47]NVStorageSaveData done [15:20:47]OFDSenderStorePacket done [15:20:47]KKMCreateOFDPacket done [15:20:47]NVStorageSaveData kkm_last_timestamp [15:20:47]File name is /storage/kkm_last_timestamp [15:20:47]Write 4 bytes [15:20:47]NVStorageSaveData done [15:20:47]ExternCall_PrintAddStr [15:20:47]wPrintStart [15:20:47]Write to MH i2c: 01 00 00 FE 62 60 [15:20:47]Write i2c OK [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: 01 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: 01 07 00 [15:20:47]MH_I2C_Read... [15:20:47]Read from MH i2c: 01 07 00 FE 62 00 00 00 00 00 FF 0F 75 [15:20:47]RasterBufferAndPrint [15:20:47]line Счет N : (1)672631 [15:20:47]line ИНН: 02508201610067 [15:20:47]line Контрольно-Кассовый Чек [15:20:47]line ПРОДАЖА [15:20:47]line ТРК (МРК, ГНК) : 21 [15:20:47]line Товар: 2710194210 [15:20:47]line ДТ(л)-К-5 [15:20:47]line 34.300 * 72.90 [15:20:47]line = 2500.47 [15:20:47]line НДС 12% НСП 1% [15:20:47]line > о реализуемом товаре [15:20:47]line ОКРУГЛЕНИЕ: -0.47 [15:20:47]line ИТОГО: 2500.00 [15:20:47]line Внесено: 2500.00 [15:20:47]line СДАЧА: 0.00 [15:20:47]line НСП 1% : 22.13 [15:20:47]line НДС 12% : 265.54 [15:20:47]line Наличными: 2500.00 [15:20:47]line Безнал.: 0.00 [15:20:47]line Место: АЗС № 120 "Партнер Нефть" [15:20:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:20:47]line СНО: Общий режим [15:20:47]line Чек 137 18.06.2024 15:20 [15:20:47]line Смена: 352 ФФД: 1.0 [15:20:47]line ЗНМ: 0300000164 [15:20:47]line РНМ: 0000000000092785 [15:20:47]line Версия ККМ: 001 [15:20:47]line ФМ: 0000000000875093 [15:20:47]line ФД: 103453 [15:20:47]line ФПД: 32969514175216 [15:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152053&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103453&fm=32969514175216&tin=02508201610067®Number=0000000000092785&sum=250000 [15:20:48]OFD Sender: Processing packet 103453 [packets to send 17, broken 16] [15:20:48]ProducePacketName [15:20:48]name=ofd_packets/00103453 [15:20:48]OFD Sender: To server: pG, [15:20:48]CommunicateWithHost lk.salyk.kg:30040 [15:20:48]ConnectInit lk.salyk.kg [15:20:48]written 0, free lines is 4095 [15:20:48]Connected sock=10 [15:20:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B7 A2 08 01 BB C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D5 A5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 94 01 00 35 04 06 00 1D FC 50 2E 4A F0 DB E2 F1 1F 3A BC 88 5B [15:20:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 98 26 47 00 D9 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 35 30 39 33 10 04 04 00 1D 94 01 00 F4 03 04 00 61 4C 71 66 B6 04 01 00 00 99 2D B4 DC 72 81 1A 12 [15:20:48]CommunicateWithHost err = 0 [15:20:48]CheckOFDResponse [15:20:48]1017 (14) - 77093643461234 [15:20:48]1041 (16) - 0000000000875093 [15:20:48]1040 (4) - 103453 [15:20:48]1012 (4) - 18.06.2024 08:59 [15:20:48]1206 (1) - 0 [15:20:48]OFD Sender: Remove packet 103453 [15:20:48]ProducePacketName [15:20:48]name=ofd_packets/00103453 [15:20:48]NVStorageDeleteData [15:20:48]Write to MH i2c: 01 00 00 29 63 8C [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 07 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: 01 07 00 29 63 00 00 00 00 00 DC 0C 7B [15:20:48]RasterBufferAndPrint [15:20:48]line [15:20:48]line [15:20:48]line [15:20:48]line [15:20:48]line [15:20:48]written 0, free lines is 3298 [15:20:48]MH_Cut [15:20:48]Write to MH i2c: D1 01 00 30 63 01 65 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: D1 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: D1 01 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: D1 01 00 30 63 00 64 [15:20:48]Write to MH i2c: 01 00 00 31 63 94 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]OFD Sender: No OFD packet to send [15:20:49]*** Cut start [15:20:49]*** Partial cut [15:20:49]*** CUTSNS_PIN = 1 [15:20:49]*** CUTSNS_PIN = 0 [15:20:49]*** Brake cut motor [15:20:49]Read from MH i2c: 01 [15:20:49]MH_I2C_Read... [15:20:49]*** Stop cut motor [15:20:49]*** Cut end [15:20:49]Read from MH i2c: 01 07 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: 01 07 00 31 63 00 00 00 00 00 FF 0F A9 [15:20:49]process_action close_receipt done [15:20:49]requested_data is exist [15:20:49]produce_requested_data [15:20:49]requested_item fm.sn is exist - process it [15:20:49]wFMCommunicate request_size=4 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 11 00 00 [15:20:49]Write to MH i2c: E2 08 00 32 63 80 11 00 00 00 00 00 00 0F [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:49]Read from MH i2c: E2 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 17 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 17 00 32 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [15:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:20:49]wFMCommunicate OK [15:20:49]requested_item fd.num is exist - process it [15:20:49]SAM_PROTO_GetFieldsCounters [15:20:49]wFMCommunicate request_size=4 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 13 00 00 [15:20:49]Write to MH i2c: E2 08 00 33 63 80 13 00 00 00 00 00 00 12 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 62 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 62 00 33 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [15:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:50]wFMCommunicate OK [15:20:50]SAM_PROTO_GetFieldsCounters done [15:20:50]requested_item shift.num is exist - process it [15:20:50]requested_item shift.opened is exist - process it [15:20:50]req_shift_opened [15:20:50]FM_GetShiftState [15:20:50]SAM_PROTO_GetShiftState [15:20:50]wFMCommunicate request_size=4 [15:20:50]MH_SAM_APDU [15:20:50]CAPDU: 80 13 01 00 [15:20:50]Write to MH i2c: E2 08 00 34 63 80 13 01 00 00 00 00 00 14 [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 0E 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 0E 00 34 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 95 [15:20:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:20:50]wFMCommunicate OK [15:20:50]SAM_PROTO_GetShiftState done [15:20:50]FM_GetShiftState done [15:20:50]req_shift_opened done [15:20:50]requested_item shift.open_date is exist - process it [15:20:50]req_shift_open_date [15:20:50]req_shift_open_date done [15:20:50]produce_requested_data done [15:20:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:20:50]process_action_free close_receipt [15:20:50]json_value_free [15:20:50]json_value_free done [15:20:50]process_json_proto returns [15:20:50]Send response to host [15:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:20:50]free response buf [15:20:50]execute_script done [15:20:50]execute_script returns [15:20:50]free content buf [15:20:50]Sock 7.Close socket [15:20:50]Sock 7.Thread stoped [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:06]accept exits with 9 [15:21:06]New connection [15:21:06]New thread 3067227492 created [15:21:06]Thread 3067084132 joined [15:21:06]Waiting for new connection... [15:21:06] Sock 9.Parse request [15:21:06]Sock 9.Check first char [15:21:06]Sock 9.First char is OK [15:21:06]request: POST /json_proto HTTP/1.0 [15:21:06]Method: POST [15:21:06]URL: /json_proto [15:21:06]Method is POST - this is cgi request [15:21:06]url: /json_proto [15:21:06]query_string will be loaded in cgi processing [15:21:06]execute_cgi json_proto POST (null) [15:21:06]execute_cgi path=json_proto method=POST [15:21:06]POST find Content-Length [15:21:06]Host: 172.17.38.133:8080 [15:21:06]Content-Length: 1195 [15:21:06]Content-Type: application/json [15:21:06] [15:21:06]POST finish read [15:21:06]Found Content-Length = 1195 [15:21:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672632\u000A18.06.2024 14:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.830 x 66.40\u000A\u0418\u0422\u041E\u0413: 1648.71\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:06]execute_script... [15:21:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672632\u000A18.06.2024 14:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.830 x 66.40\u000A\u0418\u0422\u041E\u0413: 1648.71\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:06]POST & json_proto [15:21:06]process_json_proto [15:21:06]json parsed OK: [15:21:06]protocol is kg_v1.0 [15:21:06]action value=print_text [15:21:06]process_action print_text [15:21:06]cmd_print_text [15:21:06]ExternCall_PrintAddStr [15:21:06]wPrintStart [15:21:06]Write to MH i2c: 01 00 00 35 63 98 [15:21:06]Write i2c OK [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 07 00 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 07 00 35 63 00 00 00 00 00 FF 0F AD [15:21:06]RasterBufferAndPrint [15:21:06]line *****ТОВАРНЫЙ ЧЕК***** [15:21:06]line АЗС 120 [15:21:06]line Партнер нефть [15:21:06]line 02508201610067 [15:21:06]line Кассир : Асанбаев Н. [15:21:06]line Счет N : (1)672632 [15:21:06]line 18.06.2024 14:58 [15:21:06]line ПРОДАЖА [15:21:06]line ТРК (МРК, ГНК): 32 [15:21:06]line Вид ГСМ : 2710124130 [15:21:06]line Аи-92-К-5 [15:21:06]line 24.830 x 66.40 [15:21:06]line ИТОГ: 1648.71 [15:21:06]line Тип оплаты: Талоны: Топливная Карта [15:21:06]line 03082 [15:21:06]line ______________________ [15:21:06]line (подпись) [15:21:06]written 0, free lines is 4095 [15:21:06]Write to MH i2c: 01 00 00 49 63 AC [15:21:06]Write i2c OK [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 07 00 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: 01 07 00 49 63 00 00 00 00 00 11 0E D2 [15:21:06]RasterBufferAndPrint [15:21:06]line [15:21:06]line [15:21:06]line [15:21:06]line [15:21:06]line [15:21:06]written 0, free lines is 3602 [15:21:06]MH_Cut [15:21:06]Write to MH i2c: D1 01 00 50 63 01 85 [15:21:06]Write i2c OK [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: D1 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: D1 01 00 [15:21:06]MH_I2C_Read... [15:21:06]Read from MH i2c: D1 01 00 50 63 00 84 [15:21:06]Write to MH i2c: 01 00 00 51 63 B4 [15:21:06]Write i2c OK [15:21:06]MH_I2C_Read... [15:21:07]*** Cut start [15:21:07]*** Partial cut [15:21:07]*** CUTSNS_PIN = 1 [15:21:07]*** CUTSNS_PIN = 0 [15:21:07]*** Brake cut motor [15:21:07]Read from MH i2c: 01 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: 01 07 00 [15:21:07]MH_I2C_Read... [15:21:07]*** Stop cut motor [15:21:07]*** Cut end [15:21:07]Read from MH i2c: 01 07 00 51 63 00 00 00 00 00 FF 0F C9 [15:21:07]process_action print_text done [15:21:07]requested_data is exist [15:21:07]produce_requested_data [15:21:07]requested_item fm.sn is exist - process it [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 11 00 00 [15:21:07]Write to MH i2c: E2 08 00 52 63 80 11 00 00 00 00 00 00 2F [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 17 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 17 00 52 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [15:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:21:07]wFMCommunicate OK [15:21:07]requested_item fd.num is exist - process it [15:21:07]SAM_PROTO_GetFieldsCounters [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 13 00 00 [15:21:07]Write to MH i2c: E2 08 00 53 63 80 13 00 00 00 00 00 00 32 [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 62 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 62 00 53 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [15:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:07]wFMCommunicate OK [15:21:07]SAM_PROTO_GetFieldsCounters done [15:21:07]requested_item shift.num is exist - process it [15:21:07]requested_item shift.opened is exist - process it [15:21:07]req_shift_opened [15:21:07]FM_GetShiftState [15:21:07]SAM_PROTO_GetShiftState [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 13 01 00 [15:21:07]Write to MH i2c: E2 08 00 54 63 80 13 01 00 00 00 00 00 34 [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 54 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [15:21:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:21:07]wFMCommunicate OK [15:21:07]SAM_PROTO_GetShiftState done [15:21:07]FM_GetShiftState done [15:21:07]req_shift_opened done [15:21:07]requested_item shift.open_date is exist - process it [15:21:07]req_shift_open_date [15:21:07]req_shift_open_date done [15:21:07]produce_requested_data done [15:21:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:21:07]process_action_free print_text [15:21:07]json_value_free [15:21:07]json_value_free done [15:21:07]process_json_proto returns [15:21:07]Send response to host [15:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:21:07]free response buf [15:21:07]execute_script done [15:21:07]execute_script returns [15:21:07]free content buf [15:21:07]Sock 9.Close socket [15:21:07]Sock 9.Thread stoped [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:11]accept exits with 7 [15:27:11]New connection [15:27:11]New thread 3067084132 created [15:27:11]Thread 3067227492 joined [15:27:11]Waiting for new connection... [15:27:11] Sock 7.Parse request [15:27:11]Sock 7.Check first char [15:27:11]Sock 7.First char is OK [15:27:11]request: POST /json_proto HTTP/1.0 [15:27:11]Method: POST [15:27:11]URL: /json_proto [15:27:11]Method is POST - this is cgi request [15:27:11]url: /json_proto [15:27:11]query_string will be loaded in cgi processing [15:27:11]execute_cgi json_proto POST (null) [15:27:11]execute_cgi path=json_proto method=POST [15:27:11]POST find Content-Length [15:27:11]Host: 172.17.38.133:8080 [15:27:11]Content-Length: 1194 [15:27:11]Content-Type: application/json [15:27:11] [15:27:11]POST finish read [15:27:11]Found Content-Length = 1194 [15:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672633\u000A18.06.2024 15:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 739.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]execute_script... [15:27:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672633\u000A18.06.2024 15:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 739.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]POST & json_proto [15:27:11]process_json_proto [15:27:11]json parsed OK: [15:27:11]protocol is kg_v1.0 [15:27:11]action value=print_text [15:27:11]process_action print_text [15:27:11]cmd_print_text [15:27:11]ExternCall_PrintAddStr [15:27:11]wPrintStart [15:27:11]Write to MH i2c: 01 00 00 55 63 B8 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 55 63 00 00 00 00 00 FF 0F CD [15:27:11]RasterBufferAndPrint [15:27:11]line *****ТОВАРНЫЙ ЧЕК***** [15:27:11]line АЗС 120 [15:27:11]line Партнер нефть [15:27:11]line 02508201610067 [15:27:11]line Кассир : Асанбаев Н. [15:27:11]line Счет N : (1)672633 [15:27:11]line 18.06.2024 15:04 [15:27:11]line ПРОДАЖА [15:27:11]line ТРК (МРК, ГНК): 31 [15:27:11]line Вид ГСМ : 2710124500 [15:27:11]line Аи-95-К-5 [15:27:11]line 10.000 x 73.90 [15:27:11]line ИТОГ: 739.00 [15:27:11]line Тип оплаты: Талоны: Топливная Карта [15:27:11]line 32174 [15:27:11]line ______________________ [15:27:11]line (подпись) [15:27:11]written 0, free lines is 4095 [15:27:11]Write to MH i2c: 01 00 00 69 63 CC [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: 01 07 00 69 63 00 00 00 00 00 0E 0E EF [15:27:11]RasterBufferAndPrint [15:27:11]line [15:27:11]line [15:27:11]line [15:27:11]line [15:27:11]line [15:27:11]written 0, free lines is 3600 [15:27:11]MH_Cut [15:27:11]Write to MH i2c: D1 01 00 70 63 01 A5 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: D1 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: D1 01 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: D1 01 00 70 63 00 A4 [15:27:11]Write to MH i2c: 01 00 00 71 63 D4 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:12]*** Cut start [15:27:12]*** Partial cut [15:27:12]*** CUTSNS_PIN = 1 [15:27:12]*** CUTSNS_PIN = 0 [15:27:12]*** Brake cut motor [15:27:12]Read from MH i2c: 01 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: 01 07 00 [15:27:12]MH_I2C_Read... [15:27:12]*** Stop cut motor [15:27:12]*** Cut end [15:27:12]Read from MH i2c: 01 07 00 71 63 00 00 00 00 00 FF 0F E9 [15:27:12]process_action print_text done [15:27:12]requested_data is exist [15:27:12]produce_requested_data [15:27:12]requested_item fm.sn is exist - process it [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 11 00 00 [15:27:12]Write to MH i2c: E2 08 00 72 63 80 11 00 00 00 00 00 00 4F [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 17 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 17 00 72 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [15:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:27:12]wFMCommunicate OK [15:27:12]requested_item fd.num is exist - process it [15:27:12]SAM_PROTO_GetFieldsCounters [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 13 00 00 [15:27:12]Write to MH i2c: E2 08 00 73 63 80 13 00 00 00 00 00 00 52 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 62 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 62 00 73 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [15:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:13]wFMCommunicate OK [15:27:13]SAM_PROTO_GetFieldsCounters done [15:27:13]requested_item shift.num is exist - process it [15:27:13]requested_item shift.opened is exist - process it [15:27:13]req_shift_opened [15:27:13]FM_GetShiftState [15:27:13]SAM_PROTO_GetShiftState [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 13 01 00 [15:27:13]Write to MH i2c: E2 08 00 74 63 80 13 01 00 00 00 00 00 54 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0E 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0E 00 74 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D5 [15:27:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:27:13]wFMCommunicate OK [15:27:13]SAM_PROTO_GetShiftState done [15:27:13]FM_GetShiftState done [15:27:13]req_shift_opened done [15:27:13]requested_item shift.open_date is exist - process it [15:27:13]req_shift_open_date [15:27:13]req_shift_open_date done [15:27:13]produce_requested_data done [15:27:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:27:13]process_action_free print_text [15:27:13]json_value_free [15:27:13]json_value_free done [15:27:13]process_json_proto returns [15:27:13]Send response to host [15:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103453,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:27:13]free response buf [15:27:13]execute_script done [15:27:13]execute_script returns [15:27:13]free content buf [15:27:13]Sock 7.Close socket [15:27:13]Sock 7.Thread stoped [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:49]accept exits with 9 [15:28:49]New connection [15:28:49]New thread 3067227492 created [15:28:49]Thread 3067084132 joined [15:28:49]Waiting for new connection... [15:28:49] Sock 9.Parse request [15:28:49]Sock 9.Check first char [15:28:49]Sock 9.First char is OK [15:28:49]request: POST /json_proto HTTP/1.0 [15:28:49]Method: POST [15:28:49]URL: /json_proto [15:28:49]Method is POST - this is cgi request [15:28:49]url: /json_proto [15:28:49]query_string will be loaded in cgi processing [15:28:49]execute_cgi json_proto POST (null) [15:28:49]execute_cgi path=json_proto method=POST [15:28:49]POST find Content-Length [15:28:49]Host: 172.17.38.133:8080 [15:28:49]Content-Length: 682 [15:28:49]Content-Type: application/json [15:28:49] [15:28:49]POST finish read [15:28:49]Found Content-Length = 682 [15:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:49]execute_script... [15:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:49]POST & json_proto [15:28:49]process_json_proto [15:28:49]json parsed OK: [15:28:49]protocol is kg_v1.0 [15:28:49]action value=close_receipt [15:28:49]process_action close_receipt [15:28:49]cmd_close_receipt [15:28:49]MH_GetDate [15:28:49]Write to MH i2c: F0 00 00 75 63 C7 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 75 63 00 B8 A7 71 66 BD 8F 7C 64 32 [15:28:49]GetLastDocTimeStamp 1718724053 [15:28:49]current date 1718724536 [15:28:49]FM_GetShiftState [15:28:49]SAM_PROTO_GetShiftState [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 13 01 00 [15:28:49]Write to MH i2c: E2 08 00 76 63 80 13 01 00 00 00 00 00 56 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 76 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D7 [15:28:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:28:49]wFMCommunicate OK [15:28:49]SAM_PROTO_GetShiftState done [15:28:49]FM_GetShiftState done [15:28:49]opened in 1718670284 [15:28:49]opened+sec_in_day 1718756684 [15:28:49]quantity*price = 100064 [15:28:49]sum+1 = 100066 [15:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 138 18.06.2024 15:28 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103454 ФПД: 177433771616620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152856&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103454&fm=177433771616620&tin=02508201610067®Number=0000000000092785&sum=100000 [15:28:50]StoreToDocumentArchive [15:28:50]shift 352 fd 103454 [15:28:50]save to /storage/0352/doc_00103454 [15:28:50]save last doc name /storage/0352/doc_00103454 to /storage/kkm_last_doc_name [15:28:50]save OK [15:28:50]Clear old archive folders... [15:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:50]tlvbuf is 014E7B90 [15:28:50]SAM_PROTO_ClearQueue [15:28:50]wFMCommunicate request_size=4 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 09 00 00 [15:28:50]Write to MH i2c: E2 08 00 83 63 80 09 00 00 00 00 00 00 58 [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:50]Read from MH i2c: E2 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 83 63 00 90 00 5A [15:28:50]RAPDU: 90 00 [15:28:50]wFMCommunicate OK [15:28:50]SAM_PROTO_ClearQueue done [15:28:50]KKMCreateOFDPacket [15:28:50]OFDProtocolAddRootSTLVToBuf [15:28:50]FM_MakeSignedData [15:28:50]FM_MakeSignedData [15:28:50]SAM_PROTO_SignData [15:28:50]wFMCommunicate request_size=4 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 0D 01 02 [15:28:50]Write to MH i2c: E2 08 00 84 63 80 0D 01 02 00 00 00 00 60 [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:50]Read from MH i2c: E2 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 84 63 00 90 00 5B [15:28:50]RAPDU: 90 00 [15:28:50]wFMCommunicate OK [15:28:50]wFMCommunicate request_size=255 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B8 A7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 94 01 00 35 04 06 00 A1 [15:28:50]Write to MH i2c: E2 02 01 85 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B8 A7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 94 01 00 35 04 06 00 A1 00 00 DF [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:50]Read from MH i2c: E2 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 85 63 00 90 00 5C [15:28:50]RAPDU: 90 00 [15:28:50]wFMCommunicate OK [15:28:50]wFMCommunicate request_size=10 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 0D 02 02 05 60 04 ED A9 6C [15:28:50]Write to MH i2c: E2 0D 00 86 63 80 0D 02 02 05 00 60 04 ED A9 6C 00 00 D3 [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:50]Read from MH i2c: E2 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 86 63 00 90 00 5D [15:28:50]RAPDU: 90 00 [15:28:50]wFMCommunicate OK [15:28:50]wFMCommunicate request_size=4 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 0D 03 02 [15:28:50]Write to MH i2c: E2 08 00 87 63 80 0D 03 02 00 00 00 00 65 [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 87 63 00 94 47 41 43 70 C8 63 B8 90 00 18 [15:28:51]RAPDU: 94 47 41 43 70 C8 63 B8 90 00 [15:28:51]wFMCommunicate OK [15:28:51]SAM_PROTO_SignData done [15:28:51]FM_MakeSignedData done [15:28:51]CreateOFDProtocolMessage [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 11 00 00 [15:28:51]Write to MH i2c: E2 08 00 88 63 80 11 00 00 00 00 00 00 65 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 88 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [15:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:28:51]wFMCommunicate OK [15:28:51]CreateOFDProtocolMessage done [15:28:51]OFDSenderStorePacket 103454 [15:28:51]StoreOFDPacket docnum=103454 [15:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BF 64 07 01 98 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B8 A7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 94 01 00 35 04 06 00 A1 60 04 ED A9 6C 94 47 41 43 70 C8 63 B8 [15:28:51]CheckFolder [15:28:51]dirname=/storage/ofd_packets [15:28:51]CheckFolder done [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00103454 [15:28:51]NVStorageSaveData ofd_packets/00103454 [15:28:51]File name is /storage/ofd_packets/00103454 [15:28:51]Write 301 bytes [15:28:51]NVStorageSaveData done [15:28:51]OFDSenderStorePacket done [15:28:51]KKMCreateOFDPacket done [15:28:51]NVStorageSaveData kkm_last_timestamp [15:28:51]File name is /storage/kkm_last_timestamp [15:28:51]Write 4 bytes [15:28:51]NVStorageSaveData done [15:28:51]ExternCall_PrintAddStr [15:28:51]wPrintStart [15:28:51]Write to MH i2c: 01 00 00 89 63 EC [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 89 63 00 00 00 00 00 FF 0F 01 [15:28:51]RasterBufferAndPrint [15:28:51]line Счет N : (1)672634 [15:28:51]line ИНН: 02508201610067 [15:28:51]line Контрольно-Кассовый Чек [15:28:51]line ПРОДАЖА [15:28:51]line ТРК (МРК, ГНК) : 32 [15:28:51]line Товар: 2710124130 [15:28:51]line Аи-92-К-5 [15:28:51]line 15.070 * 66.40 [15:28:51]line = 1000.65 [15:28:51]line НДС 12% НСП 1% [15:28:51]line > о реализуемом товаре [15:28:51]line ОКРУГЛЕНИЕ: -0.65 [15:28:51]line ИТОГО: 1000.00 [15:28:51]line Внесено: 1000.00 [15:28:51]line СДАЧА: 0.00 [15:28:51]line НСП 1% : 8.85 [15:28:51]line НДС 12% : 106.26 [15:28:51]line Наличными: 1000.00 [15:28:51]line Безнал.: 0.00 [15:28:51]line Место: АЗС № 120 "Партнер Нефть" [15:28:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:28:51]line СНО: Общий режим [15:28:51]line Чек 138 18.06.2024 15:28 [15:28:51]line Смена: 352 ФФД: 1.0 [15:28:51]line ЗНМ: 0300000164 [15:28:51]line РНМ: 0000000000092785 [15:28:51]line Версия ККМ: 001 [15:28:51]line ФМ: 0000000000875093 [15:28:51]line ФД: 103454 [15:28:51]line ФПД: 177433771616620 [15:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152856&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103454&fm=177433771616620&tin=02508201610067®Number=0000000000092785&sum=100000 [15:28:51]OFD Sender: Processing packet 103454 [packets to send 17, broken 16] [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00103454 [15:28:51]OFD Sender: To server: pG, [15:28:51]CommunicateWithHost lk.salyk.kg:30040 [15:28:51]ConnectInit lk.salyk.kg [15:28:51]written 0, free lines is 4095 [15:28:51]Connected sock=11 [15:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BF 64 07 01 98 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 B8 A7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 94 01 00 35 04 06 00 A1 60 04 ED A9 6C 94 47 41 43 70 C8 63 B8 [15:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F6 E1 47 00 7F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 94 01 00 F4 03 04 00 44 4E 71 66 B6 04 01 00 00 9D 34 FD 1E 1C BF D0 A2 [15:28:51]CommunicateWithHost err = 0 [15:28:51]CheckOFDResponse [15:28:51]1017 (14) - 77093643461234 [15:28:51]1041 (16) - 0000000000875093 [15:28:51]1040 (4) - 103454 [15:28:51]1012 (4) - 18.06.2024 09:07 [15:28:51]1206 (1) - 0 [15:28:51]OFD Sender: Remove packet 103454 [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00103454 [15:28:51]NVStorageDeleteData [15:28:51]Write to MH i2c: 01 00 00 B4 63 17 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 B4 63 00 00 00 00 00 D6 0C 00 [15:28:51]RasterBufferAndPrint [15:28:51]line [15:28:51]line [15:28:51]line [15:28:51]line [15:28:51]line [15:28:51]written 0, free lines is 3293 [15:28:51]MH_Cut [15:28:51]Write to MH i2c: D1 01 00 BB 63 01 F0 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: D1 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: D1 01 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: D1 01 00 BB 63 00 EF [15:28:51]Write to MH i2c: 01 00 00 BC 63 1F [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:52]OFD Sender: No OFD packet to send [15:28:52]*** Cut start [15:28:52]*** Partial cut [15:28:52]*** CUTSNS_PIN = 1 [15:28:52]*** CUTSNS_PIN = 0 [15:28:52]*** Brake cut motor [15:28:53]Read from MH i2c: 01 [15:28:53]MH_I2C_Read... [15:28:53]*** Stop cut motor [15:28:53]*** Cut end [15:28:53]Read from MH i2c: 01 07 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: 01 07 00 BC 63 00 00 00 00 00 FF 0F 34 [15:28:53]process_action close_receipt done [15:28:53]requested_data is exist [15:28:53]produce_requested_data [15:28:53]requested_item fm.sn is exist - process it [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 11 00 00 [15:28:53]Write to MH i2c: E2 08 00 BD 63 80 11 00 00 00 00 00 00 9A [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 BD 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [15:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:28:53]wFMCommunicate OK [15:28:53]requested_item fd.num is exist - process it [15:28:53]SAM_PROTO_GetFieldsCounters [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 00 00 [15:28:53]Write to MH i2c: E2 08 00 BE 63 80 13 00 00 00 00 00 00 9D [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 BE 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetFieldsCounters done [15:28:53]requested_item shift.num is exist - process it [15:28:53]requested_item shift.opened is exist - process it [15:28:53]req_shift_opened [15:28:53]FM_GetShiftState [15:28:53]SAM_PROTO_GetShiftState [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 01 00 [15:28:53]Write to MH i2c: E2 08 00 BF 63 80 13 01 00 00 00 00 00 9F [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 BF 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 20 [15:28:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetShiftState done [15:28:53]FM_GetShiftState done [15:28:53]req_shift_opened done [15:28:53]requested_item shift.open_date is exist - process it [15:28:53]req_shift_open_date [15:28:53]req_shift_open_date done [15:28:53]produce_requested_data done [15:28:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103454,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:28:53]process_action_free close_receipt [15:28:53]json_value_free [15:28:53]json_value_free done [15:28:53]process_json_proto returns [15:28:53]Send response to host [15:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103454,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:28:53]free response buf [15:28:53]execute_script done [15:28:53]execute_script returns [15:28:53]free content buf [15:28:53]Sock 9.Close socket [15:28:53]Sock 9.Thread stoped [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:52]accept exits with 7 [15:34:52]New connection [15:34:52]New thread 3067084132 created [15:34:52]Thread 3067227492 joined [15:34:52]Waiting for new connection... [15:34:52] Sock 7.Parse request [15:34:52]Sock 7.Check first char [15:34:52]Sock 7.First char is OK [15:34:52]request: POST /json_proto HTTP/1.0 [15:34:52]Method: POST [15:34:52]URL: /json_proto [15:34:52]Method is POST - this is cgi request [15:34:52]url: /json_proto [15:34:52]query_string will be loaded in cgi processing [15:34:52]execute_cgi json_proto POST (null) [15:34:52]execute_cgi path=json_proto method=POST [15:34:52]POST find Content-Length [15:34:52]Host: 172.17.38.133:8080 [15:34:52]Content-Length: 682 [15:34:52]Content-Type: application/json [15:34:52] [15:34:52]POST finish read [15:34:52]Found Content-Length = 682 [15:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:52]execute_script... [15:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:52]POST & json_proto [15:34:52]process_json_proto [15:34:52]json parsed OK: [15:34:52]protocol is kg_v1.0 [15:34:52]action value=close_receipt [15:34:52]process_action close_receipt [15:34:52]cmd_close_receipt [15:34:52]MH_GetDate [15:34:52]Write to MH i2c: F0 00 00 C0 63 12 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: F0 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: F0 09 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: F0 09 00 C0 63 00 24 A9 71 66 BD 8F 7C 64 EB [15:34:52]GetLastDocTimeStamp 1718724536 [15:34:52]current date 1718724900 [15:34:52]FM_GetShiftState [15:34:52]SAM_PROTO_GetShiftState [15:34:52]wFMCommunicate request_size=4 [15:34:52]MH_SAM_APDU [15:34:52]CAPDU: 80 13 01 00 [15:34:52]Write to MH i2c: E2 08 00 C1 63 80 13 01 00 00 00 00 00 A1 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:52]Read from MH i2c: E2 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 0E 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: E2 0E 00 C1 63 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [15:34:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:34:52]wFMCommunicate OK [15:34:52]SAM_PROTO_GetShiftState done [15:34:52]FM_GetShiftState done [15:34:52]opened in 1718670284 [15:34:52]opened+sec_in_day 1718756684 [15:34:52]quantity*price = 200047 [15:34:52]sum+1 = 200048 [15:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 139 18.06.2024 15:35 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103455 ФПД: 190309812834635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103455&fm=190309812834635&tin=02508201610067®Number=0000000000092785&sum=200000 [15:34:53]StoreToDocumentArchive [15:34:53]shift 352 fd 103455 [15:34:53]save to /storage/0352/doc_00103455 [15:34:54]save last doc name /storage/0352/doc_00103455 to /storage/kkm_last_doc_name [15:34:54]save OK [15:34:54]Clear old archive folders... [15:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:54]tlvbuf is 014F3DD0 [15:34:54]SAM_PROTO_ClearQueue [15:34:54]wFMCommunicate request_size=4 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 09 00 00 [15:34:54]Write to MH i2c: E2 08 00 CE 63 80 09 00 00 00 00 00 00 A3 [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 CE 63 00 90 00 A5 [15:34:54]RAPDU: 90 00 [15:34:54]wFMCommunicate OK [15:34:54]SAM_PROTO_ClearQueue done [15:34:54]KKMCreateOFDPacket [15:34:54]OFDProtocolAddRootSTLVToBuf [15:34:54]FM_MakeSignedData [15:34:54]FM_MakeSignedData [15:34:54]SAM_PROTO_SignData [15:34:54]wFMCommunicate request_size=4 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 0D 01 02 [15:34:54]Write to MH i2c: E2 08 00 CF 63 80 0D 01 02 00 00 00 00 AB [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 CF 63 00 90 00 A6 [15:34:54]RAPDU: 90 00 [15:34:54]wFMCommunicate OK [15:34:54]wFMCommunicate request_size=255 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 8B 00 00 00 F4 03 04 00 24 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 94 01 00 35 04 06 00 AD [15:34:54]Write to MH i2c: E2 02 01 D0 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 8B 00 00 00 F4 03 04 00 24 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 94 01 00 35 04 06 00 AD 00 00 2E [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 D0 63 00 90 00 A7 [15:34:54]RAPDU: 90 00 [15:34:54]wFMCommunicate OK [15:34:54]wFMCommunicate request_size=10 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 0D 02 02 05 15 F4 CA 91 4B [15:34:54]Write to MH i2c: E2 0D 00 D1 63 80 0D 02 02 05 00 15 F4 CA 91 4B 00 00 67 [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 03 00 D1 63 00 90 00 A8 [15:34:54]RAPDU: 90 00 [15:34:54]wFMCommunicate OK [15:34:54]wFMCommunicate request_size=4 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 0D 03 02 [15:34:54]Write to MH i2c: E2 08 00 D2 63 80 0D 03 02 00 00 00 00 B0 [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 0B 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 0B 00 D2 63 00 16 0C A0 12 45 F0 8D 92 90 00 D9 [15:34:54]RAPDU: 16 0C A0 12 45 F0 8D 92 90 00 [15:34:54]wFMCommunicate OK [15:34:54]SAM_PROTO_SignData done [15:34:54]FM_MakeSignedData done [15:34:54]CreateOFDProtocolMessage [15:34:54]wFMCommunicate request_size=4 [15:34:54]MH_SAM_APDU [15:34:54]CAPDU: 80 11 00 00 [15:34:54]Write to MH i2c: E2 08 00 D3 63 80 11 00 00 00 00 00 00 B0 [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:54]Read from MH i2c: E2 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 17 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: E2 17 00 D3 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [15:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:34:54]wFMCommunicate OK [15:34:54]CreateOFDProtocolMessage done [15:34:54]OFDSenderStorePacket 103455 [15:34:54]StoreOFDPacket docnum=103455 [15:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3D D6 07 01 EC A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 8B 00 00 00 F4 03 04 00 24 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 94 01 00 35 04 06 00 AD 15 F4 CA 91 4B 16 0C A0 12 45 F0 8D 92 [15:34:54]CheckFolder [15:34:54]dirname=/storage/ofd_packets [15:34:54]CheckFolder done [15:34:54]ProducePacketName [15:34:54]name=ofd_packets/00103455 [15:34:54]NVStorageSaveData ofd_packets/00103455 [15:34:54]File name is /storage/ofd_packets/00103455 [15:34:54]Write 301 bytes [15:34:54]NVStorageSaveData done [15:34:54]OFDSenderStorePacket done [15:34:54]KKMCreateOFDPacket done [15:34:54]NVStorageSaveData kkm_last_timestamp [15:34:54]File name is /storage/kkm_last_timestamp [15:34:54]Write 4 bytes [15:34:54]NVStorageSaveData done [15:34:54]ExternCall_PrintAddStr [15:34:54]wPrintStart [15:34:54]Write to MH i2c: 01 00 00 D4 63 37 [15:34:54]Write i2c OK [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: 01 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: 01 07 00 [15:34:54]MH_I2C_Read... [15:34:54]Read from MH i2c: 01 07 00 D4 63 00 00 00 00 00 FF 0F 4C [15:34:54]RasterBufferAndPrint [15:34:54]line Счет N : (1)672635 [15:34:54]line ИНН: 02508201610067 [15:34:54]line Контрольно-Кассовый Чек [15:34:54]line ПРОДАЖА [15:34:54]line ТРК (МРК, ГНК) : 31 [15:34:54]line Товар: 2710124500 [15:34:54]line Аи-95-К-5 [15:34:54]line 27.070 * 73.90 [15:34:54]line = 2000.47 [15:34:54]line НДС 12% НСП 1% [15:34:54]line > о реализуемом товаре [15:34:54]line ОКРУГЛЕНИЕ: -0.47 [15:34:54]line ИТОГО: 2000.00 [15:34:54]line Внесено: 2000.00 [15:34:54]line СДАЧА: 0.00 [15:34:54]line НСП 1% : 17.70 [15:34:54]line НДС 12% : 212.44 [15:34:54]line Наличными: 2000.00 [15:34:54]line Безнал.: 0.00 [15:34:54]line Место: АЗС № 120 "Партнер Нефть" [15:34:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:34:54]line СНО: Общий режим [15:34:54]line Чек 139 18.06.2024 15:35 [15:34:54]line Смена: 352 ФФД: 1.0 [15:34:54]line ЗНМ: 0300000164 [15:34:54]line РНМ: 0000000000092785 [15:34:54]line Версия ККМ: 001 [15:34:54]line ФМ: 0000000000875093 [15:34:54]line ФД: 103455 [15:34:54]line ФПД: 190309812834635 [15:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103455&fm=190309812834635&tin=02508201610067®Number=0000000000092785&sum=200000 [15:34:54]OFD Sender: Processing packet 103455 [packets to send 17, broken 16] [15:34:54]ProducePacketName [15:34:54]name=ofd_packets/00103455 [15:34:54]OFD Sender: To server: pG, [15:34:54]CommunicateWithHost lk.salyk.kg:30040 [15:34:54]ConnectInit lk.salyk.kg [15:34:54]written 0, free lines is 4095 [15:34:54]Connected sock=10 [15:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3D D6 07 01 EC A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 8B 00 00 00 F4 03 04 00 24 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 94 01 00 35 04 06 00 AD 15 F4 CA 91 4B 16 0C A0 12 45 F0 8D 92 [15:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BD 28 47 00 66 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 35 30 39 33 10 04 04 00 1F 94 01 00 F4 03 04 00 B0 4F 71 66 B6 04 01 00 00 91 C6 E0 26 10 CA FA A3 [15:34:55]CommunicateWithHost err = 0 [15:34:55]CheckOFDResponse [15:34:55]1017 (14) - 77093643461234 [15:34:55]1041 (16) - 0000000000875093 [15:34:55]1040 (4) - 103455 [15:34:55]1012 (4) - 18.06.2024 09:13 [15:34:55]1206 (1) - 0 [15:34:55]OFD Sender: Remove packet 103455 [15:34:55]ProducePacketName [15:34:55]name=ofd_packets/00103455 [15:34:55]NVStorageDeleteData [15:34:55]Write to MH i2c: 01 00 00 FF 63 62 [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: 01 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: 01 07 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: 01 07 00 FF 63 00 00 00 00 00 E4 0C 59 [15:34:55]RasterBufferAndPrint [15:34:55]line [15:34:55]line [15:34:55]line [15:34:55]line [15:34:55]line [15:34:55]written 0, free lines is 3306 [15:34:55]MH_Cut [15:34:55]Write to MH i2c: D1 01 00 06 64 01 3C [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: D1 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: D1 01 00 [15:34:55]MH_I2C_Read... [15:34:55]Read from MH i2c: D1 01 00 06 64 00 3B [15:34:55]Write to MH i2c: 01 00 00 07 64 6B [15:34:55]Write i2c OK [15:34:55]MH_I2C_Read... [15:34:55]OFD Sender: No OFD packet to send [15:34:56]*** Cut start [15:34:56]*** Partial cut [15:34:56]*** CUTSNS_PIN = 1 [15:34:56]*** CUTSNS_PIN = 0 [15:34:56]*** Brake cut motor [15:34:56]Read from MH i2c: 01 [15:34:56]MH_I2C_Read... [15:34:56]*** Stop cut motor [15:34:56]*** Cut end [15:34:56]Read from MH i2c: 01 07 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: 01 07 00 07 64 00 00 00 00 00 FF 0F 80 [15:34:56]process_action close_receipt done [15:34:56]requested_data is exist [15:34:56]produce_requested_data [15:34:56]requested_item fm.sn is exist - process it [15:34:56]wFMCommunicate request_size=4 [15:34:56]MH_SAM_APDU [15:34:56]CAPDU: 80 11 00 00 [15:34:56]Write to MH i2c: E2 08 00 08 64 80 11 00 00 00 00 00 00 E6 [15:34:56]Write i2c OK [15:34:56]MH_I2C_Read... [15:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:56]Read from MH i2c: E2 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 17 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 17 00 08 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [15:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:34:56]wFMCommunicate OK [15:34:56]requested_item fd.num is exist - process it [15:34:56]SAM_PROTO_GetFieldsCounters [15:34:56]wFMCommunicate request_size=4 [15:34:56]MH_SAM_APDU [15:34:56]CAPDU: 80 13 00 00 [15:34:56]Write to MH i2c: E2 08 00 09 64 80 13 00 00 00 00 00 00 E9 [15:34:56]Write i2c OK [15:34:56]MH_I2C_Read... [15:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:56]Read from MH i2c: E2 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 62 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 62 00 09 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [15:34: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:56]wFMCommunicate OK [15:34:56]SAM_PROTO_GetFieldsCounters done [15:34:56]requested_item shift.num is exist - process it [15:34:56]requested_item shift.opened is exist - process it [15:34:56]req_shift_opened [15:34:56]FM_GetShiftState [15:34:56]SAM_PROTO_GetShiftState [15:34:56]wFMCommunicate request_size=4 [15:34:56]MH_SAM_APDU [15:34:56]CAPDU: 80 13 01 00 [15:34:56]Write to MH i2c: E2 08 00 0A 64 80 13 01 00 00 00 00 00 EB [15:34:56]Write i2c OK [15:34:56]MH_I2C_Read... [15:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:56]Read from MH i2c: E2 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 0E 00 [15:34:56]MH_I2C_Read... [15:34:56]Read from MH i2c: E2 0E 00 0A 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6C [15:34:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:34:56]wFMCommunicate OK [15:34:56]SAM_PROTO_GetShiftState done [15:34:56]FM_GetShiftState done [15:34:56]req_shift_opened done [15:34:56]requested_item shift.open_date is exist - process it [15:34:56]req_shift_open_date [15:34:56]req_shift_open_date done [15:34:56]produce_requested_data done [15:34:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103455,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:34:56]process_action_free close_receipt [15:34:56]json_value_free [15:34:56]json_value_free done [15:34:56]process_json_proto returns [15:34:56]Send response to host [15:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103455,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:34:56]free response buf [15:34:56]execute_script done [15:34:56]execute_script returns [15:34:56]free content buf [15:34:56]Sock 7.Close socket [15:34:56]Sock 7.Thread stoped [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:16]accept exits with 9 [15:37:16]New connection [15:37:16]New thread 3067227492 created [15:37:16]Thread 3067084132 joined [15:37:16]Waiting for new connection... [15:37:16] Sock 9.Parse request [15:37:16]Sock 9.Check first char [15:37:16]Sock 9.First char is OK [15:37:16]request: POST /json_proto HTTP/1.0 [15:37:16]Method: POST [15:37:16]URL: /json_proto [15:37:16]Method is POST - this is cgi request [15:37:16]url: /json_proto [15:37:16]query_string will be loaded in cgi processing [15:37:16]execute_cgi json_proto POST (null) [15:37:16]execute_cgi path=json_proto method=POST [15:37:16]POST find Content-Length [15:37:16]Host: 172.17.38.133:8080 [15:37:16]Content-Length: 677 [15:37:16]Content-Type: application/json [15:37:16] [15:37:16]POST finish read [15:37:16]Found Content-Length = 677 [15:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.070, "sum" : 670.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:16]execute_script... [15:37:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.070, "sum" : 670.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:16]POST & json_proto [15:37:16]process_json_proto [15:37:16]json parsed OK: [15:37:16]protocol is kg_v1.0 [15:37:16]action value=close_receipt [15:37:16]process_action close_receipt [15:37:16]cmd_close_receipt [15:37:16]MH_GetDate [15:37:16]Write to MH i2c: F0 00 00 0B 64 5E [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: F0 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: F0 09 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: F0 09 00 0B 64 00 B4 A9 71 66 BD 8F 7C 64 C7 [15:37:16]GetLastDocTimeStamp 1718724900 [15:37:16]current date 1718725044 [15:37:16]FM_GetShiftState [15:37:16]SAM_PROTO_GetShiftState [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 13 01 00 [15:37:16]Write to MH i2c: E2 08 00 0C 64 80 13 01 00 00 00 00 00 ED [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0E 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0E 00 0C 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [15:37:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:37:16]wFMCommunicate OK [15:37:16]SAM_PROTO_GetShiftState done [15:37:16]FM_GetShiftState done [15:37:16]opened in 1718670284 [15:37:16]opened+sec_in_day 1718756684 [15:37:16]quantity*price = 67027 [15:37:16]sum+1 = 67028 [15:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 140 18.06.2024 15:37 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103456 ФПД: 257338140051951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153724&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103456&fm=257338140051951&tin=02508201610067®Number=0000000000092785&sum=67000 [15:37:18]StoreToDocumentArchive [15:37:18]shift 352 fd 103456 [15:37:18]save to /storage/0352/doc_00103456 [15:37:18]save last doc name /storage/0352/doc_00103456 to /storage/kkm_last_doc_name [15:37:18]save OK [15:37:18]Clear old archive folders... [15:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:18]tlvbuf is 0132D390 [15:37:18]SAM_PROTO_ClearQueue [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 09 00 00 [15:37:18]Write to MH i2c: E2 08 00 19 64 80 09 00 00 00 00 00 00 EF [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 19 64 00 90 00 F1 [15:37:18]RAPDU: 90 00 [15:37:18]wFMCommunicate OK [15:37:18]SAM_PROTO_ClearQueue done [15:37:18]KKMCreateOFDPacket [15:37:18]OFDProtocolAddRootSTLVToBuf [15:37:18]FM_MakeSignedData [15:37:18]FM_MakeSignedData [15:37:18]SAM_PROTO_SignData [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 0D 01 02 [15:37:18]Write to MH i2c: E2 08 00 1A 64 80 0D 01 02 00 00 00 00 F7 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 1A 64 00 90 00 F2 [15:37:18]RAPDU: 90 00 [15:37:18]wFMCommunicate OK [15:37:18]wFMCommunicate request_size=255 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B4 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 94 01 00 35 04 06 00 EA [15:37:18]Write to MH i2c: E2 02 01 1B 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B4 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 94 01 00 35 04 06 00 EA 00 00 E7 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [15:37:18]RAPDU: 90 00 [15:37:18]wFMCommunicate OK [15:37:18]wFMCommunicate request_size=10 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 0D 02 02 05 0C 34 6C C9 EF [15:37:18]Write to MH i2c: E2 0D 00 1C 64 80 0D 02 02 05 00 0C 34 6C C9 EF 00 00 68 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [15:37:18]RAPDU: 90 00 [15:37:18]wFMCommunicate OK [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 0D 03 02 [15:37:18]Write to MH i2c: E2 08 00 1D 64 80 0D 03 02 00 00 00 00 FC [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 0B 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 0B 00 1D 64 00 D0 B7 04 4E 62 28 3A A8 90 00 42 [15:37:18]RAPDU: D0 B7 04 4E 62 28 3A A8 90 00 [15:37:18]wFMCommunicate OK [15:37:18]SAM_PROTO_SignData done [15:37:18]FM_MakeSignedData done [15:37:18]CreateOFDProtocolMessage [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 11 00 00 [15:37:18]Write to MH i2c: E2 08 00 1E 64 80 11 00 00 00 00 00 00 FC [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 17 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 17 00 1E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [15:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:37:18]wFMCommunicate OK [15:37:18]CreateOFDProtocolMessage done [15:37:18]OFDSenderStorePacket 103456 [15:37:18]StoreOFDPacket docnum=103456 [15:37:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 14 69 07 01 8B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B4 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 94 01 00 35 04 06 00 EA 0C 34 6C C9 EF D0 B7 04 4E 62 28 3A A8 [15:37:18]CheckFolder [15:37:18]dirname=/storage/ofd_packets [15:37:18]CheckFolder done [15:37:18]ProducePacketName [15:37:18]name=ofd_packets/00103456 [15:37:18]NVStorageSaveData ofd_packets/00103456 [15:37:18]File name is /storage/ofd_packets/00103456 [15:37:18]Write 301 bytes [15:37:18]NVStorageSaveData done [15:37:18]OFDSenderStorePacket done [15:37:18]KKMCreateOFDPacket done [15:37:18]NVStorageSaveData kkm_last_timestamp [15:37:18]File name is /storage/kkm_last_timestamp [15:37:18]Write 4 bytes [15:37:18]NVStorageSaveData done [15:37:18]ExternCall_PrintAddStr [15:37:18]wPrintStart [15:37:18]Write to MH i2c: 01 00 00 1F 64 83 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: 01 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: 01 07 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: 01 07 00 1F 64 00 00 00 00 00 FF 0F 98 [15:37:18]RasterBufferAndPrint [15:37:18]line Счет N : (1)672636 [15:37:18]line ИНН: 02508201610067 [15:37:18]line Контрольно-Кассовый Чек [15:37:18]line ПРОДАЖА [15:37:18]line ТРК (МРК, ГНК) : 41 [15:37:18]line Товар: 2710124500 [15:37:18]line Аи-95-К-5 [15:37:18]line 9.070 * 73.90 [15:37:18]line = 670.27 [15:37:18]line НДС 12% НСП 1% [15:37:18]line > о реализуемом товаре [15:37:18]line ОКРУГЛЕНИЕ: -0.27 [15:37:18]line ИТОГО: 670.00 [15:37:18]line Внесено: 670.00 [15:37:18]line СДАЧА: 0.00 [15:37:18]line НСП 1% : 5.93 [15:37:18]line НДС 12% : 71.18 [15:37:18]line Наличными: 670.00 [15:37:18]line Безнал.: 0.00 [15:37:18]line Место: АЗС № 120 "Партнер Нефть" [15:37:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:37:18]line СНО: Общий режим [15:37:18]line Чек 140 18.06.2024 15:37 [15:37:18]line Смена: 352 ФФД: 1.0 [15:37:18]line ЗНМ: 0300000164 [15:37:18]line РНМ: 0000000000092785 [15:37:18]line Версия ККМ: 001 [15:37:18]line ФМ: 0000000000875093 [15:37:18]line ФД: 103456 [15:37:18]line ФПД: 257338140051951 [15:37:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153724&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103456&fm=257338140051951&tin=02508201610067®Number=0000000000092785&sum=67000 [15:37:18]OFD Sender: Processing packet 103456 [packets to send 17, broken 16] [15:37:18]ProducePacketName [15:37:18]name=ofd_packets/00103456 [15:37:18]OFD Sender: To server: pG, [15:37:18]CommunicateWithHost lk.salyk.kg:30040 [15:37:18]ConnectInit lk.salyk.kg [15:37:18]written 0, free lines is 4095 [15:37:19]Connected sock=10 [15:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 14 69 07 01 8B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B4 A9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 94 01 00 35 04 06 00 EA 0C 34 6C C9 EF D0 B7 04 4E 62 28 3A A8 [15:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 82 96 47 00 DE 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 35 30 39 33 10 04 04 00 20 94 01 00 F4 03 04 00 40 50 71 66 B6 04 01 00 00 56 E0 78 21 A5 29 BD C7 [15:37:19]CommunicateWithHost err = 0 [15:37:19]CheckOFDResponse [15:37:19]1017 (14) - 77093643461234 [15:37:19]1041 (16) - 0000000000875093 [15:37:19]1040 (4) - 103456 [15:37:19]1012 (4) - 18.06.2024 09:15 [15:37:19]1206 (1) - 0 [15:37:19]OFD Sender: Remove packet 103456 [15:37:19]ProducePacketName [15:37:19]name=ofd_packets/00103456 [15:37:19]NVStorageDeleteData [15:37:19]Write to MH i2c: 01 00 00 4A 64 AE [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: 01 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: 01 07 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: 01 07 00 4A 64 00 00 00 00 00 E0 0C A1 [15:37:19]RasterBufferAndPrint [15:37:19]line [15:37:19]line [15:37:19]line [15:37:19]line [15:37:19]line [15:37:19]written 0, free lines is 3305 [15:37:19]MH_Cut [15:37:19]Write to MH i2c: D1 01 00 51 64 01 87 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: D1 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: D1 01 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: D1 01 00 51 64 00 86 [15:37:19]Write to MH i2c: 01 00 00 52 64 B6 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]OFD Sender: No OFD packet to send [15:37:20]*** Cut start [15:37:20]*** Partial cut [15:37:20]*** CUTSNS_PIN = 1 [15:37:20]*** CUTSNS_PIN = 0 [15:37:20]*** Brake cut motor [15:37:20]Read from MH i2c: 01 [15:37:20]MH_I2C_Read... [15:37:20]*** Stop cut motor [15:37:20]*** Cut end [15:37:20]Read from MH i2c: 01 07 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: 01 07 00 52 64 00 00 00 00 00 FF 0F CB [15:37:20]process_action close_receipt done [15:37:20]requested_data is exist [15:37:20]produce_requested_data [15:37:20]requested_item fm.sn is exist - process it [15:37:20]wFMCommunicate request_size=4 [15:37:20]MH_SAM_APDU [15:37:20]CAPDU: 80 11 00 00 [15:37:20]Write to MH i2c: E2 08 00 53 64 80 11 00 00 00 00 00 00 31 [15:37:20]Write i2c OK [15:37:20]MH_I2C_Read... [15:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:20]Read from MH i2c: E2 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 17 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 17 00 53 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [15:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:37:20]wFMCommunicate OK [15:37:20]requested_item fd.num is exist - process it [15:37:20]SAM_PROTO_GetFieldsCounters [15:37:20]wFMCommunicate request_size=4 [15:37:20]MH_SAM_APDU [15:37:20]CAPDU: 80 13 00 00 [15:37:20]Write to MH i2c: E2 08 00 54 64 80 13 00 00 00 00 00 00 34 [15:37:20]Write i2c OK [15:37:20]MH_I2C_Read... [15:37:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:20]Read from MH i2c: E2 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 62 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 62 00 54 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:37:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:20]wFMCommunicate OK [15:37:20]SAM_PROTO_GetFieldsCounters done [15:37:20]requested_item shift.num is exist - process it [15:37:20]requested_item shift.opened is exist - process it [15:37:20]req_shift_opened [15:37:20]FM_GetShiftState [15:37:20]SAM_PROTO_GetShiftState [15:37:20]wFMCommunicate request_size=4 [15:37:20]MH_SAM_APDU [15:37:20]CAPDU: 80 13 01 00 [15:37:20]Write to MH i2c: E2 08 00 55 64 80 13 01 00 00 00 00 00 36 [15:37:20]Write i2c OK [15:37:20]MH_I2C_Read... [15:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:20]Read from MH i2c: E2 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 0E 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 0E 00 55 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [15:37:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:37:20]wFMCommunicate OK [15:37:20]SAM_PROTO_GetShiftState done [15:37:20]FM_GetShiftState done [15:37:20]req_shift_opened done [15:37:20]requested_item shift.open_date is exist - process it [15:37:20]req_shift_open_date [15:37:20]req_shift_open_date done [15:37:20]produce_requested_data done [15:37:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103456,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:37:20]process_action_free close_receipt [15:37:20]json_value_free [15:37:20]json_value_free done [15:37:20]process_json_proto returns [15:37:20]Send response to host [15:37:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103456,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:37:20]free response buf [15:37:20]execute_script done [15:37:20]execute_script returns [15:37:20]free content buf [15:37:20]Sock 9.Close socket [15:37:20]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:49]accept exits with 7 [15:42:49]New connection [15:42:49]New thread 3067084132 created [15:42:49]Thread 3067227492 joined [15:42:49]Waiting for new connection... [15:42:49] Sock 7.Parse request [15:42:49]Sock 7.Check first char [15:42:49]Sock 7.First char is OK [15:42:49]request: POST /json_proto HTTP/1.0 [15:42:49]Method: POST [15:42:49]URL: /json_proto [15:42:49]Method is POST - this is cgi request [15:42:49]url: /json_proto [15:42:49]query_string will be loaded in cgi processing [15:42:49]execute_cgi json_proto POST (null) [15:42:49]execute_cgi path=json_proto method=POST [15:42:49]POST find Content-Length [15:42:49]Host: 172.17.38.133:8080 [15:42:49]Content-Length: 803 [15:42:49]Content-Type: application/json [15:42:49] [15:42:49]POST finish read [15:42:49]Found Content-Length = 803 [15:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:49]execute_script... [15:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:49]POST & json_proto [15:42:49]process_json_proto [15:42:49]json parsed OK: [15:42:49]protocol is kg_v1.0 [15:42:49]action value=close_receipt [15:42:49]process_action close_receipt [15:42:49]cmd_close_receipt [15:42:49]MH_GetDate [15:42:49]Write to MH i2c: F0 00 00 56 64 A9 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 56 64 00 01 AB 71 66 BD 8F 7C 64 61 [15:42:49]GetLastDocTimeStamp 1718725044 [15:42:49]current date 1718725377 [15:42:49]FM_GetShiftState [15:42:49]SAM_PROTO_GetShiftState [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 13 01 00 [15:42:49]Write to MH i2c: E2 08 00 57 64 80 13 01 00 00 00 00 00 38 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 57 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [15:42:49]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_GetShiftState done [15:42:49]FM_GetShiftState done [15:42:49]opened in 1718670284 [15:42:49]opened+sec_in_day 1718756684 [15:42:49]quantity*price = 300061 [15:42:49]sum+1 = 300063 [15:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.62 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.62 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 141 18.06.2024 15:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103457 ФПД: 163667092299390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103457&fm=163667092299390&tin=02508201610067®Number=0000000000092785&sum=300062 [15:42:50]StoreToDocumentArchive [15:42:50]shift 352 fd 103457 [15:42:50]save to /storage/0352/doc_00103457 [15:42:50]save last doc name /storage/0352/doc_00103457 to /storage/kkm_last_doc_name [15:42:50]save OK [15:42:50]Clear old archive folders... [15:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:50]tlvbuf is 014A3280 [15:42:50]SAM_PROTO_ClearQueue [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 09 00 00 [15:42:50]Write to MH i2c: E2 08 00 64 64 80 09 00 00 00 00 00 00 3A [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 64 64 00 90 00 3C [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_ClearQueue done [15:42:50]KKMCreateOFDPacket [15:42:50]OFDProtocolAddRootSTLVToBuf [15:42:50]FM_MakeSignedData [15:42:50]FM_MakeSignedData [15:42:50]SAM_PROTO_SignData [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 01 02 [15:42:50]Write to MH i2c: E2 08 00 65 64 80 0D 01 02 00 00 00 00 42 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 65 64 00 90 00 3D [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=255 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 94 01 00 35 04 06 00 94 [15:42:50]Write to MH i2c: E2 02 01 66 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 94 01 00 35 04 06 00 94 00 00 CC [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 66 64 00 90 00 3E [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=10 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 02 02 05 DA B6 E5 DE 7E [15:42:51]Write to MH i2c: E2 0D 00 67 64 80 0D 02 02 05 00 DA B6 E5 DE 7E 00 00 20 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 67 64 00 90 00 3F [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 03 02 [15:42:51]Write to MH i2c: E2 08 00 68 64 80 0D 03 02 00 00 00 00 47 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 68 64 00 1C 89 5C 9C 55 D0 8B E8 90 00 7D [15:42:51]RAPDU: 1C 89 5C 9C 55 D0 8B E8 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_SignData done [15:42:51]FM_MakeSignedData done [15:42:51]CreateOFDProtocolMessage [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 11 00 00 [15:42:51]Write to MH i2c: E2 08 00 69 64 80 11 00 00 00 00 00 00 47 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 69 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [15:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:42:51]wFMCommunicate OK [15:42:51]CreateOFDProtocolMessage done [15:42:51]OFDSenderStorePacket 103457 [15:42:51]StoreOFDPacket docnum=103457 [15:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B EC 07 01 89 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 94 01 00 35 04 06 00 94 DA B6 E5 DE 7E 1C 89 5C 9C 55 D0 8B E8 [15:42:51]CheckFolder [15:42:51]dirname=/storage/ofd_packets [15:42:51]CheckFolder done [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00103457 [15:42:51]NVStorageSaveData ofd_packets/00103457 [15:42:51]File name is /storage/ofd_packets/00103457 [15:42:51]Write 301 bytes [15:42:51]NVStorageSaveData done [15:42:51]OFDSenderStorePacket done [15:42:51]KKMCreateOFDPacket done [15:42:51]NVStorageSaveData kkm_last_timestamp [15:42:51]File name is /storage/kkm_last_timestamp [15:42:51]Write 4 bytes [15:42:51]NVStorageSaveData done [15:42:51]ExternCall_PrintAddStr [15:42:51]wPrintStart [15:42:51]Write to MH i2c: 01 00 00 6A 64 CE [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 6A 64 00 00 00 00 00 FF 0F E3 [15:42:51]RasterBufferAndPrint [15:42:51]line Счет N : (1)672637 [15:42:51]line ИНН: 02508201610067 [15:42:51]line Контрольно-Кассовый Чек [15:42:51]line ПРОДАЖА [15:42:51]line ТРК (МРК, ГНК) : 42 [15:42:51]line Товар: 2710124130 [15:42:51]line Аи-92-К-5 [15:42:51]line 45.190 * 66.40 [15:42:51]line = 3000.62 [15:42:51]line НДС 12% НСП 1% [15:42:51]line > о реализуемом товаре [15:42:51]line ИТОГО: 3000.62 [15:42:51]line НСП 1% : 26.55 [15:42:51]line НДС 12% : 318.65 [15:42:51]line Наличными: 0.00 [15:42:51]line Безнал.: 3000.62 [15:42:51]line Место: АЗС № 120 "Партнер Нефть" [15:42:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:42:51]line СНО: Общий режим [15:42:51]line Чек 141 18.06.2024 15:42 [15:42:51]line Смена: 352 ФФД: 1.0 [15:42:51]line ЗНМ: 0300000164 [15:42:51]line РНМ: 0000000000092785 [15:42:51]line Версия ККМ: 001 [15:42:51]line Платежная система: O! деньги [15:42:51]line ФМ: 0000000000875093 [15:42:51]line ФД: 103457 [15:42:51]line ФПД: 163667092299390 [15:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154257&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103457&fm=163667092299390&tin=02508201610067®Number=0000000000092785&sum=300062 [15:42:51]written 0, free lines is 4095 [15:42:51]OFD Sender: Processing packet 103457 [packets to send 17, broken 16] [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00103457 [15:42:51]OFD Sender: To server: pG, [15:42:51]CommunicateWithHost lk.salyk.kg:30040 [15:42:51]ConnectInit lk.salyk.kg [15:42:51]Connected sock=11 [15:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B EC 07 01 89 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 01 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 94 01 00 35 04 06 00 94 DA B6 E5 DE 7E 1C 89 5C 9C 55 D0 8B E8 [15:42:52]Write to MH i2c: 01 00 00 94 64 F8 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 94 64 00 00 00 00 00 F5 0C 00 [15:42:52]RasterBufferAndPrint [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]written 0, free lines is 3324 [15:42:52]MH_Cut [15:42:52]Write to MH i2c: D1 01 00 9B 64 01 D1 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 01 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 01 00 9B 64 00 D0 [15:42:52]Write to MH i2c: 01 00 00 9C 64 00 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 34 FB 47 00 14 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 94 01 00 F4 03 04 00 8D 51 71 66 B6 04 01 00 00 92 AD 3C FD 1C E4 42 93 [15:42:52]CommunicateWithHost err = 0 [15:42:52]CheckOFDResponse [15:42:52]1017 (14) - 77093643461234 [15:42:52]1041 (16) - 0000000000875093 [15:42:52]1040 (4) - 103457 [15:42:52]1012 (4) - 18.06.2024 09:21 [15:42:52]1206 (1) - 0 [15:42:52]OFD Sender: Remove packet 103457 [15:42:52]ProducePacketName [15:42:52]name=ofd_packets/00103457 [15:42:52]NVStorageDeleteData [15:42:52]OFD Sender: No OFD packet to send [15:42:52]*** Cut start [15:42:52]*** Partial cut [15:42:52]*** CUTSNS_PIN = 1 [15:42:52]*** CUTSNS_PIN = 0 [15:42:53]*** Brake cut motor [15:42:53]Read from MH i2c: 01 [15:42:53]MH_I2C_Read... [15:42:53]*** Stop cut motor [15:42:53]*** Cut end [15:42:53]Read from MH i2c: 01 07 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: 01 07 00 9C 64 00 00 00 00 00 FF 0F 15 [15:42:53]process_action close_receipt done [15:42:53]requested_data is exist [15:42:53]produce_requested_data [15:42:53]requested_item fm.sn is exist - process it [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 11 00 00 [15:42:53]Write to MH i2c: E2 08 00 9D 64 80 11 00 00 00 00 00 00 7B [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 17 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 17 00 9D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [15:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:42:53]wFMCommunicate OK [15:42:53]requested_item fd.num is exist - process it [15:42:53]SAM_PROTO_GetFieldsCounters [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 13 00 00 [15:42:53]Write to MH i2c: E2 08 00 9E 64 80 13 00 00 00 00 00 00 7E [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 62 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 62 00 9E 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [15:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_GetFieldsCounters done [15:42:53]requested_item shift.num is exist - process it [15:42:53]requested_item shift.opened is exist - process it [15:42:53]req_shift_opened [15:42:53]FM_GetShiftState [15:42:53]SAM_PROTO_GetShiftState [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 13 01 00 [15:42:53]Write to MH i2c: E2 08 00 9F 64 80 13 01 00 00 00 00 00 80 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0E 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0E 00 9F 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 01 [15:42:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_GetShiftState done [15:42:53]FM_GetShiftState done [15:42:53]req_shift_opened done [15:42:53]requested_item shift.open_date is exist - process it [15:42:53]req_shift_open_date [15:42:53]req_shift_open_date done [15:42:53]produce_requested_data done [15:42:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103457,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:42:53]process_action_free close_receipt [15:42:53]json_value_free [15:42:53]json_value_free done [15:42:53]process_json_proto returns [15:42:53]Send response to host [15:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103457,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:42:53]free response buf [15:42:53]execute_script done [15:42:53]execute_script returns [15:42:53]free content buf [15:42:53]Sock 7.Close socket [15:42:53]Sock 7.Thread stoped [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:03]accept exits with 9 [15:44:03]New connection [15:44:03]New thread 3067227492 created [15:44:03]Thread 3067084132 joined [15:44:03]Waiting for new connection... [15:44:03] Sock 9.Parse request [15:44:03]Sock 9.Check first char [15:44:03]Sock 9.First char is OK [15:44:03]request: POST /json_proto HTTP/1.0 [15:44:03]Method: POST [15:44:03]URL: /json_proto [15:44:03]Method is POST - this is cgi request [15:44:03]url: /json_proto [15:44:03]query_string will be loaded in cgi processing [15:44:03]execute_cgi json_proto POST (null) [15:44:03]execute_cgi path=json_proto method=POST [15:44:03]POST find Content-Length [15:44:03]Host: 172.17.38.133:8080 [15:44:03]Content-Length: 687 [15:44:03]Content-Type: application/json [15:44:03] [15:44:03]POST finish read [15:44:03]Found Content-Length = 687 [15:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]execute_script... [15:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]POST & json_proto [15:44:03]process_json_proto [15:44:03]json parsed OK: [15:44:03]protocol is kg_v1.0 [15:44:03]action value=close_receipt [15:44:03]process_action close_receipt [15:44:03]cmd_close_receipt [15:44:03]MH_GetDate [15:44:03]Write to MH i2c: F0 00 00 A0 64 F3 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 A0 64 00 4A AB 71 66 BD 8F 7C 64 F4 [15:44:03]GetLastDocTimeStamp 1718725377 [15:44:03]current date 1718725450 [15:44:03]FM_GetShiftState [15:44:03]SAM_PROTO_GetShiftState [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 13 01 00 [15:44:03]Write to MH i2c: E2 08 00 A1 64 80 13 01 00 00 00 00 00 82 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 A1 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 03 [15:44:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_GetShiftState done [15:44:03]FM_GetShiftState done [15:44:03]opened in 1718670284 [15:44:03]opened+sec_in_day 1718756684 [15:44:03]quantity*price = 120066 [15:44:03]sum+1 = 120067 [15:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 142 18.06.2024 15:44 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103458 ФПД: 174994014179371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103458&fm=174994014179371&tin=02508201610067®Number=0000000000092785&sum=120000 [15:44:04]StoreToDocumentArchive [15:44:04]shift 352 fd 103458 [15:44:04]save to /storage/0352/doc_00103458 [15:44:04]save last doc name /storage/0352/doc_00103458 to /storage/kkm_last_doc_name [15:44:04]save OK [15:44:04]Clear old archive folders... [15:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:44:04]tlvbuf is B6F9B660 [15:44:04]SAM_PROTO_ClearQueue [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 09 00 00 [15:44:04]Write to MH i2c: E2 08 00 AE 64 80 09 00 00 00 00 00 00 84 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 AE 64 00 90 00 86 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_ClearQueue done [15:44:04]KKMCreateOFDPacket [15:44:04]OFDProtocolAddRootSTLVToBuf [15:44:04]FM_MakeSignedData [15:44:04]FM_MakeSignedData [15:44:04]SAM_PROTO_SignData [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 01 02 [15:44:04]Write to MH i2c: E2 08 00 AF 64 80 0D 01 02 00 00 00 00 8C [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 AF 64 00 90 00 87 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=255 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 94 01 00 35 04 06 00 [15:44:04]Write to MH i2c: E2 02 01 B0 64 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 94 01 00 35 04 06 00 00 00 A0 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 B0 64 00 90 00 88 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=11 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 02 02 06 9F 27 F8 0D 90 2B [15:44:04]Write to MH i2c: E2 0E 00 B1 64 80 0D 02 02 06 00 9F 27 F8 0D 90 2B 00 00 21 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 B1 64 00 90 00 89 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 03 02 [15:44:04]Write to MH i2c: E2 08 00 B2 64 80 0D 03 02 00 00 00 00 91 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 B2 64 00 46 FC 0C 4E D6 74 0E AB 90 00 31 [15:44:04]RAPDU: 46 FC 0C 4E D6 74 0E AB 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_SignData done [15:44:04]FM_MakeSignedData done [15:44:04]CreateOFDProtocolMessage [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 11 00 00 [15:44:04]Write to MH i2c: E2 08 00 B3 64 80 11 00 00 00 00 00 00 91 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 B3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [15:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:44:04]wFMCommunicate OK [15:44:04]CreateOFDProtocolMessage done [15:44:04]OFDSenderStorePacket 103458 [15:44:04]StoreOFDPacket docnum=103458 [15:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 38 09 08 01 3B D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 94 01 00 35 04 06 00 9F 27 F8 0D 90 2B 46 FC 0C 4E D6 74 0E AB [15:44:04]CheckFolder [15:44:04]dirname=/storage/ofd_packets [15:44:04]CheckFolder done [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00103458 [15:44:04]NVStorageSaveData ofd_packets/00103458 [15:44:04]File name is /storage/ofd_packets/00103458 [15:44:04]Write 302 bytes [15:44:04]NVStorageSaveData done [15:44:04]OFDSenderStorePacket done [15:44:04]KKMCreateOFDPacket done [15:44:04]NVStorageSaveData kkm_last_timestamp [15:44:04]File name is /storage/kkm_last_timestamp [15:44:04]Write 4 bytes [15:44:04]NVStorageSaveData done [15:44:04]ExternCall_PrintAddStr [15:44:04]wPrintStart [15:44:04]Write to MH i2c: 01 00 00 B4 64 18 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 B4 64 00 00 00 00 00 FF 0F 2D [15:44:04]RasterBufferAndPrint [15:44:04]line Счет N : (1)672638 [15:44:04]line ИНН: 02508201610067 [15:44:04]line Контрольно-Кассовый Чек [15:44:04]line ПРОДАЖА [15:44:04]line ТРК (МРК, ГНК) : 21 [15:44:04]line Товар: 2710194210 [15:44:04]line ДТ(л)-К-5 [15:44:04]line 16.470 * 72.90 [15:44:04]line = 1200.66 [15:44:04]line НДС 12% НСП 1% [15:44:04]line > о реализуемом товаре [15:44:04]line ОКРУГЛЕНИЕ: -0.66 [15:44:04]line ИТОГО: 1200.00 [15:44:04]line Внесено: 1200.00 [15:44:04]line СДАЧА: 0.00 [15:44:04]line НСП 1% : 10.62 [15:44:04]line НДС 12% : 127.50 [15:44:04]line Наличными: 1200.00 [15:44:04]line Безнал.: 0.00 [15:44:04]line Место: АЗС № 120 "Партнер Нефть" [15:44:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:44:04]line СНО: Общий режим [15:44:04]line Чек 142 18.06.2024 15:44 [15:44:04]line Смена: 352 ФФД: 1.0 [15:44:04]line ЗНМ: 0300000164 [15:44:04]line РНМ: 0000000000092785 [15:44:04]line Версия ККМ: 001 [15:44:04]line ФМ: 0000000000875093 [15:44:04]line ФД: 103458 [15:44:04]line ФПД: 174994014179371 [15:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103458&fm=174994014179371&tin=02508201610067®Number=0000000000092785&sum=120000 [15:44:05]OFD Sender: Processing packet 103458 [packets to send 17, broken 16] [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00103458 [15:44:05]OFD Sender: To server: pG, [15:44:05]CommunicateWithHost lk.salyk.kg:30040 [15:44:05]ConnectInit lk.salyk.kg [15:44:05]written 0, free lines is 4095 [15:44:05]Connected sock=10 [15:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 38 09 08 01 3B D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4A AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 94 01 00 35 04 06 00 9F 27 F8 0D 90 2B 46 FC 0C 4E D6 74 0E AB [15:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FB D6 47 00 3F 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 94 01 00 F4 03 04 00 D6 51 71 66 B6 04 01 00 00 5B DE 89 F9 3A 87 9D 92 [15:44:05]CommunicateWithHost err = 0 [15:44:05]CheckOFDResponse [15:44:05]1017 (14) - 77093643461234 [15:44:05]1041 (16) - 0000000000875093 [15:44:05]1040 (4) - 103458 [15:44:05]1012 (4) - 18.06.2024 09:22 [15:44:05]1206 (1) - 0 [15:44:05]OFD Sender: Remove packet 103458 [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00103458 [15:44:05]NVStorageDeleteData [15:44:05]Write to MH i2c: 01 00 00 DF 64 43 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 DF 64 00 00 00 00 00 DC 0C 32 [15:44:05]RasterBufferAndPrint [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]written 0, free lines is 3302 [15:44:05]MH_Cut [15:44:05]Write to MH i2c: D1 01 00 E6 64 01 1C [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 E6 64 00 1B [15:44:05]Write to MH i2c: 01 00 00 E7 64 4B [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:06]OFD Sender: No OFD packet to send [15:44:06]*** Cut start [15:44:06]*** Partial cut [15:44:06]*** CUTSNS_PIN = 1 [15:44:06]*** CUTSNS_PIN = 0 [15:44:06]*** Brake cut motor [15:44:06]Read from MH i2c: 01 [15:44:07]MH_I2C_Read... [15:44:07]*** Stop cut motor [15:44:07]*** Cut end [15:44:07]Read from MH i2c: 01 07 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 07 00 E7 64 00 00 00 00 00 FF 0F 60 [15:44:07]process_action close_receipt done [15:44:07]requested_data is exist [15:44:07]produce_requested_data [15:44:07]requested_item fm.sn is exist - process it [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 11 00 00 [15:44:07]Write to MH i2c: E2 08 00 E8 64 80 11 00 00 00 00 00 00 C6 [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 E8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [15:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:44:07]wFMCommunicate OK [15:44:07]requested_item fd.num is exist - process it [15:44:07]SAM_PROTO_GetFieldsCounters [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 00 00 [15:44:07]Write to MH i2c: E2 08 00 E9 64 80 13 00 00 00 00 00 00 C9 [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 E9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetFieldsCounters done [15:44:07]requested_item shift.num is exist - process it [15:44:07]requested_item shift.opened is exist - process it [15:44:07]req_shift_opened [15:44:07]FM_GetShiftState [15:44:07]SAM_PROTO_GetShiftState [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 01 00 [15:44:07]Write to MH i2c: E2 08 00 EA 64 80 13 01 00 00 00 00 00 CB [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 EA 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4C [15:44:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetShiftState done [15:44:07]FM_GetShiftState done [15:44:07]req_shift_opened done [15:44:07]requested_item shift.open_date is exist - process it [15:44:07]req_shift_open_date [15:44:07]req_shift_open_date done [15:44:07]produce_requested_data done [15:44:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103458,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:44:07]process_action_free close_receipt [15:44:07]json_value_free [15:44:07]json_value_free done [15:44:07]process_json_proto returns [15:44:07]Send response to host [15:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103458,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:44:07]free response buf [15:44:07]execute_script done [15:44:07]execute_script returns [15:44:07]free content buf [15:44:07]Sock 9.Close socket [15:44:07]Sock 9.Thread stoped [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:34]accept exits with 7 [15:44:34]New connection [15:44:34]New thread 3067084132 created [15:44:34]Thread 3067227492 joined [15:44:34]Waiting for new connection... [15:44:34] Sock 7.Parse request [15:44:34]Sock 7.Check first char [15:44:34]Sock 7.First char is OK [15:44:34]request: POST /json_proto HTTP/1.0 [15:44:34]Method: POST [15:44:34]URL: /json_proto [15:44:34]Method is POST - this is cgi request [15:44:34]url: /json_proto [15:44:34]query_string will be loaded in cgi processing [15:44:34]execute_cgi json_proto POST (null) [15:44:34]execute_cgi path=json_proto method=POST [15:44:34]POST find Content-Length [15:44:34]Host: 172.17.38.133:8080 [15:44:34]Content-Length: 678 [15:44:34]Content-Type: application/json [15:44:34] [15:44:34]POST finish read [15:44:34]Found Content-Length = 678 [15:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.630, "sum" : 373.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 373.00, "payments": [ { "type": 0, "sum" : 373.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:34]execute_script... [15:44:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.630, "sum" : 373.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 373.00, "payments": [ { "type": 0, "sum" : 373.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:34]POST & json_proto [15:44:34]process_json_proto [15:44:34]json parsed OK: [15:44:34]protocol is kg_v1.0 [15:44:34]action value=close_receipt [15:44:34]process_action close_receipt [15:44:34]cmd_close_receipt [15:44:34]MH_GetDate [15:44:34]Write to MH i2c: F0 00 00 EB 64 3E [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: F0 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: F0 09 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: F0 09 00 EB 64 00 69 AB 71 66 BD 8F 7C 64 5E [15:44:34]GetLastDocTimeStamp 1718725450 [15:44:34]current date 1718725481 [15:44:34]FM_GetShiftState [15:44:34]SAM_PROTO_GetShiftState [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 13 01 00 [15:44:34]Write to MH i2c: E2 08 00 EC 64 80 13 01 00 00 00 00 00 CD [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0E 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0E 00 EC 64 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4E [15:44:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_GetShiftState done [15:44:34]FM_GetShiftState done [15:44:34]opened in 1718670284 [15:44:34]opened+sec_in_day 1718756684 [15:44:34]quantity*price = 37383 [15:44:34]sum+1 = 37384 [15:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 373.00 Внесено: 1000.00 СДАЧА: 627.00 НСП 1% : 3.31 НДС 12% : 39.70 Наличными: 373.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 143 18.06.2024 15:44 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103459 ФПД: 218332635977733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154441&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103459&fm=218332635977733&tin=02508201610067®Number=0000000000092785&sum=37300 [15:44:35]StoreToDocumentArchive [15:44:35]shift 352 fd 103459 [15:44:35]save to /storage/0352/doc_00103459 [15:44:35]save last doc name /storage/0352/doc_00103459 to /storage/kkm_last_doc_name [15:44:35]save OK [15:44:35]Clear old archive folders... [15:44:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:35]tlvbuf is 014AC1A0 [15:44:35]SAM_PROTO_ClearQueue [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 09 00 00 [15:44:35]Write to MH i2c: E2 08 00 F9 64 80 09 00 00 00 00 00 00 CF [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 F9 64 00 90 00 D1 [15:44:35]RAPDU: 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_ClearQueue done [15:44:35]KKMCreateOFDPacket [15:44:35]OFDProtocolAddRootSTLVToBuf [15:44:35]FM_MakeSignedData [15:44:35]FM_MakeSignedData [15:44:35]SAM_PROTO_SignData [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 0D 01 02 [15:44:35]Write to MH i2c: E2 08 00 FA 64 80 0D 01 02 00 00 00 00 D7 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 FA 64 00 90 00 D2 [15:44:35]RAPDU: 90 00 [15:44:35]wFMCommunicate OK [15:44:35]wFMCommunicate request_size=255 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 07 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0F 00 00 00 00 07 04 06 00 B4 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 69 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 94 01 00 35 04 06 00 C6 [15:44:35]Write to MH i2c: E2 02 01 FB 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 07 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0F 00 00 00 00 07 04 06 00 B4 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 69 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 94 01 00 35 04 06 00 C6 00 00 5C [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 FB 64 00 90 00 D3 [15:44:35]RAPDU: 90 00 [15:44:35]wFMCommunicate OK [15:44:35]wFMCommunicate request_size=10 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 0D 02 02 05 92 87 35 D8 05 [15:44:35]Write to MH i2c: E2 0D 00 FC 64 80 0D 02 02 05 00 92 87 35 D8 05 00 00 0F [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 03 00 FC 64 00 90 00 D4 [15:44:35]RAPDU: 90 00 [15:44:35]wFMCommunicate OK [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 0D 03 02 [15:44:35]Write to MH i2c: E2 08 00 FD 64 80 0D 03 02 00 00 00 00 DC [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0B 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0B 00 FD 64 00 EF 31 1C C4 2B DD 8F 2A 90 00 9E [15:44:35]RAPDU: EF 31 1C C4 2B DD 8F 2A 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_SignData done [15:44:35]FM_MakeSignedData done [15:44:35]CreateOFDProtocolMessage [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 11 00 00 [15:44:35]Write to MH i2c: E2 08 00 FE 64 80 11 00 00 00 00 00 00 DC [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 17 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 17 00 FE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [15:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:44:35]wFMCommunicate OK [15:44:35]CreateOFDProtocolMessage done [15:44:35]OFDSenderStorePacket 103459 [15:44:35]StoreOFDPacket docnum=103459 [15:44:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 02 07 01 8D C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 07 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0F 00 00 00 00 07 04 06 00 B4 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 69 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 94 01 00 35 04 06 00 C6 92 87 35 D8 05 EF 31 1C C4 2B DD 8F 2A [15:44:35]CheckFolder [15:44:35]dirname=/storage/ofd_packets [15:44:35]CheckFolder done [15:44:35]ProducePacketName [15:44:35]name=ofd_packets/00103459 [15:44:35]NVStorageSaveData ofd_packets/00103459 [15:44:35]File name is /storage/ofd_packets/00103459 [15:44:35]Write 301 bytes [15:44:35]NVStorageSaveData done [15:44:35]OFDSenderStorePacket done [15:44:35]KKMCreateOFDPacket done [15:44:35]NVStorageSaveData kkm_last_timestamp [15:44:35]File name is /storage/kkm_last_timestamp [15:44:35]Write 4 bytes [15:44:35]NVStorageSaveData done [15:44:35]ExternCall_PrintAddStr [15:44:35]wPrintStart [15:44:35]Write to MH i2c: 01 00 00 FF 64 63 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 FF 64 00 00 00 00 00 FF 0F 78 [15:44:35]RasterBufferAndPrint [15:44:35]line Счет N : (1)672639 [15:44:35]line ИНН: 02508201610067 [15:44:35]line Контрольно-Кассовый Чек [15:44:35]line ПРОДАЖА [15:44:35]line ТРК (МРК, ГНК) : 42 [15:44:35]line Товар: 2710124130 [15:44:35]line Аи-92-К-5 [15:44:35]line 5.630 * 66.40 [15:44:35]line = 373.83 [15:44:35]line НДС 12% НСП 1% [15:44:35]line > о реализуемом товаре [15:44:35]line ОКРУГЛЕНИЕ: -0.83 [15:44:35]line ИТОГО: 373.00 [15:44:35]line Внесено: 1000.00 [15:44:35]line СДАЧА: 627.00 [15:44:35]line НСП 1% : 3.31 [15:44:35]line НДС 12% : 39.70 [15:44:35]line Наличными: 373.00 [15:44:35]line Безнал.: 0.00 [15:44:35]line Место: АЗС № 120 "Партнер Нефть" [15:44:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:44:35]line СНО: Общий режим [15:44:35]line Чек 143 18.06.2024 15:44 [15:44:35]line Смена: 352 ФФД: 1.0 [15:44:35]line ЗНМ: 0300000164 [15:44:35]line РНМ: 0000000000092785 [15:44:35]line Версия ККМ: 001 [15:44:35]line ФМ: 0000000000875093 [15:44:35]line ФД: 103459 [15:44:35]line ФПД: 218332635977733 [15:44:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154441&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103459&fm=218332635977733&tin=02508201610067®Number=0000000000092785&sum=37300 [15:44:36]OFD Sender: Processing packet 103459 [packets to send 17, broken 16] [15:44:36]ProducePacketName [15:44:36]name=ofd_packets/00103459 [15:44:36]OFD Sender: To server: pG, [15:44:36]CommunicateWithHost lk.salyk.kg:30040 [15:44:36]ConnectInit lk.salyk.kg [15:44:36]written 0, free lines is 4095 [15:44:36]Connected sock=10 [15:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 02 07 01 8D C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 07 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 0F 00 00 00 00 07 04 06 00 B4 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 69 AB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 94 01 00 35 04 06 00 C6 92 87 35 D8 05 EF 31 1C C4 2B DD 8F 2A [15:44:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C3 BD 47 00 24 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 94 01 00 F4 03 04 00 F5 51 71 66 B6 04 01 00 00 E3 23 E3 52 DB BA 65 E8 [15:44:36]CommunicateWithHost err = 0 [15:44:36]CheckOFDResponse [15:44:36]1017 (14) - 77093643461234 [15:44:36]1041 (16) - 0000000000875093 [15:44:36]1040 (4) - 103459 [15:44:36]1012 (4) - 18.06.2024 09:23 [15:44:36]1206 (1) - 0 [15:44:36]OFD Sender: Remove packet 103459 [15:44:36]ProducePacketName [15:44:36]name=ofd_packets/00103459 [15:44:36]NVStorageDeleteData [15:44:36]Write to MH i2c: 01 00 00 2A 65 8F [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: 01 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: 01 07 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: 01 07 00 2A 65 00 00 00 00 00 E4 0C 86 [15:44:36]RasterBufferAndPrint [15:44:36]line [15:44:36]line [15:44:36]line [15:44:36]line [15:44:36]line [15:44:36]written 0, free lines is 3307 [15:44:36]MH_Cut [15:44:36]Write to MH i2c: D1 01 00 31 65 01 68 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: D1 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: D1 01 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: D1 01 00 31 65 00 67 [15:44:36]Write to MH i2c: 01 00 00 32 65 97 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:37]OFD Sender: No OFD packet to send [15:44:37]*** Cut start [15:44:37]*** Partial cut [15:44:37]*** CUTSNS_PIN = 1 [15:44:37]*** CUTSNS_PIN = 0 [15:44:37]*** Brake cut motor [15:44:38]Read from MH i2c: 01 [15:44:38]MH_I2C_Read... [15:44:38]*** Stop cut motor [15:44:38]*** Cut end [15:44:38]Read from MH i2c: 01 07 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 32 65 00 00 00 00 00 FF 0F AC [15:44:38]process_action close_receipt done [15:44:38]requested_data is exist [15:44:38]produce_requested_data [15:44:38]requested_item fm.sn is exist - process it [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 11 00 00 [15:44:38]Write to MH i2c: E2 08 00 33 65 80 11 00 00 00 00 00 00 12 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 33 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [15:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:44:38]wFMCommunicate OK [15:44:38]requested_item fd.num is exist - process it [15:44:38]SAM_PROTO_GetFieldsCounters [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 13 00 00 [15:44:38]Write to MH i2c: E2 08 00 34 65 80 13 00 00 00 00 00 00 15 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 62 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 62 00 34 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:44: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_GetFieldsCounters done [15:44:38]requested_item shift.num is exist - process it [15:44:38]requested_item shift.opened is exist - process it [15:44:38]req_shift_opened [15:44:38]FM_GetShiftState [15:44:38]SAM_PROTO_GetShiftState [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 13 01 00 [15:44:38]Write to MH i2c: E2 08 00 35 65 80 13 01 00 00 00 00 00 17 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0E 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0E 00 35 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [15:44:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_GetShiftState done [15:44:38]FM_GetShiftState done [15:44:38]req_shift_opened done [15:44:38]requested_item shift.open_date is exist - process it [15:44:38]req_shift_open_date [15:44:38]req_shift_open_date done [15:44:38]produce_requested_data done [15:44:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103459,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:44:38]process_action_free close_receipt [15:44:38]json_value_free [15:44:38]json_value_free done [15:44:38]process_json_proto returns [15:44:38]Send response to host [15:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103459,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:44:38]free response buf [15:44:38]execute_script done [15:44:38]execute_script returns [15:44:38]free content buf [15:44:38]Sock 7.Close socket [15:44:38]Sock 7.Thread stoped [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:14]accept exits with 9 [15:47:14]New connection [15:47:14]New thread 3067227492 created [15:47:14]Thread 3067084132 joined [15:47:14]Waiting for new connection... [15:47:14] Sock 9.Parse request [15:47:14]Sock 9.Check first char [15:47:14]Sock 9.First char is OK [15:47:14]request: POST /json_proto HTTP/1.0 [15:47:14]Method: POST [15:47:14]URL: /json_proto [15:47:14]Method is POST - this is cgi request [15:47:14]url: /json_proto [15:47:14]query_string will be loaded in cgi processing [15:47:14]execute_cgi json_proto POST (null) [15:47:14]execute_cgi path=json_proto method=POST [15:47:14]POST find Content-Length [15:47:14]Host: 172.17.38.133:8080 [15:47:14]Content-Length: 678 [15:47:14]Content-Type: application/json [15:47:14] [15:47:14]POST finish read [15:47:14]Found Content-Length = 678 [15:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:14]execute_script... [15:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:14]POST & json_proto [15:47:14]process_json_proto [15:47:14]json parsed OK: [15:47:14]protocol is kg_v1.0 [15:47:14]action value=close_receipt [15:47:14]process_action close_receipt [15:47:14]cmd_close_receipt [15:47:14]MH_GetDate [15:47:14]Write to MH i2c: F0 00 00 36 65 8A [15:47:14]Write i2c OK [15:47:14]MH_I2C_Read... [15:47:14]Read from MH i2c: F0 [15:47:14]MH_I2C_Read... [15:47:14]Read from MH i2c: F0 09 00 [15:47:14]MH_I2C_Read... [15:47:14]Read from MH i2c: F0 09 00 36 65 00 0A AC 71 66 BD 8F 7C 64 4C [15:47:14]GetLastDocTimeStamp 1718725481 [15:47:14]current date 1718725642 [15:47:14]FM_GetShiftState [15:47:14]SAM_PROTO_GetShiftState [15:47:14]wFMCommunicate request_size=4 [15:47:14]MH_SAM_APDU [15:47:14]CAPDU: 80 13 01 00 [15:47:14]Write to MH i2c: E2 08 00 37 65 80 13 01 00 00 00 00 00 19 [15:47:14]Write i2c OK [15:47:14]MH_I2C_Read... [15:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:14]Read from MH i2c: E2 [15:47:14]MH_I2C_Read... [15:47:14]Read from MH i2c: E2 0E 00 [15:47:14]MH_I2C_Read... [15:47:14]Read from MH i2c: E2 0E 00 37 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [15:47:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:47:14]wFMCommunicate OK [15:47:14]SAM_PROTO_GetShiftState done [15:47:14]FM_GetShiftState done [15:47:14]opened in 1718670284 [15:47:14]opened+sec_in_day 1718756684 [15:47:14]quantity*price = 70052 [15:47:14]sum+1 = 70053 [15:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 144 18.06.2024 15:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103460 ФПД: 36181245757844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154722&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103460&fm=36181245757844&tin=02508201610067®Number=0000000000092785&sum=70000 [15:47:15]StoreToDocumentArchive [15:47:15]shift 352 fd 103460 [15:47:15]save to /storage/0352/doc_00103460 [15:47:15]save last doc name /storage/0352/doc_00103460 to /storage/kkm_last_doc_name [15:47:15]save OK [15:47:15]Clear old archive folders... [15:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:15]tlvbuf is 013A21C0 [15:47:15]SAM_PROTO_ClearQueue [15:47:15]wFMCommunicate request_size=4 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 09 00 00 [15:47:15]Write to MH i2c: E2 08 00 44 65 80 09 00 00 00 00 00 00 1B [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:15]Read from MH i2c: E2 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 03 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 03 00 44 65 00 90 00 1D [15:47:15]RAPDU: 90 00 [15:47:15]wFMCommunicate OK [15:47:15]SAM_PROTO_ClearQueue done [15:47:15]KKMCreateOFDPacket [15:47:15]OFDProtocolAddRootSTLVToBuf [15:47:15]FM_MakeSignedData [15:47:15]FM_MakeSignedData [15:47:15]SAM_PROTO_SignData [15:47:15]wFMCommunicate request_size=4 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 0D 01 02 [15:47:15]Write to MH i2c: E2 08 00 45 65 80 0D 01 02 00 00 00 00 23 [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 [15:47:15]MH_I2C_Read... [15:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:15]Read from MH i2c: E2 03 00 [15:47:15]MH_I2C_Read... [15:47:15]Read from MH i2c: E2 03 00 45 65 00 90 00 1E [15:47:15]RAPDU: 90 00 [15:47:15]wFMCommunicate OK [15:47:15]wFMCommunicate request_size=255 [15:47:15]MH_SAM_APDU [15:47:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0A AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 94 01 00 35 04 06 00 20 [15:47:15]Write to MH i2c: E2 02 01 46 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0A AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 94 01 00 35 04 06 00 20 00 00 46 [15:47:15]Write i2c OK [15:47:15]MH_I2C_Read... [15:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:16]Read from MH i2c: E2 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 03 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 03 00 46 65 00 90 00 1F [15:47:16]RAPDU: 90 00 [15:47:16]wFMCommunicate OK [15:47:16]wFMCommunicate request_size=10 [15:47:16]MH_SAM_APDU [15:47:16]CAPDU: 80 0D 02 02 05 E8 1A 4D 09 94 [15:47:16]Write to MH i2c: E2 0D 00 47 65 80 0D 02 02 05 00 E8 1A 4D 09 94 00 00 1C [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:16]Read from MH i2c: E2 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 03 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 03 00 47 65 00 90 00 20 [15:47:16]RAPDU: 90 00 [15:47:16]wFMCommunicate OK [15:47:16]wFMCommunicate request_size=4 [15:47:16]MH_SAM_APDU [15:47:16]CAPDU: 80 0D 03 02 [15:47:16]Write to MH i2c: E2 08 00 48 65 80 0D 03 02 00 00 00 00 28 [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:16]Read from MH i2c: E2 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 0B 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 0B 00 48 65 00 43 A4 AA 31 A5 56 97 E9 90 00 66 [15:47:16]RAPDU: 43 A4 AA 31 A5 56 97 E9 90 00 [15:47:16]wFMCommunicate OK [15:47:16]SAM_PROTO_SignData done [15:47:16]FM_MakeSignedData done [15:47:16]CreateOFDProtocolMessage [15:47:16]wFMCommunicate request_size=4 [15:47:16]MH_SAM_APDU [15:47:16]CAPDU: 80 11 00 00 [15:47:16]Write to MH i2c: E2 08 00 49 65 80 11 00 00 00 00 00 00 28 [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:16]Read from MH i2c: E2 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 17 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: E2 17 00 49 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [15:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:47:16]wFMCommunicate OK [15:47:16]CreateOFDProtocolMessage done [15:47:16]OFDSenderStorePacket 103460 [15:47:16]StoreOFDPacket docnum=103460 [15:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D9 5E 07 01 D4 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0A AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 94 01 00 35 04 06 00 20 E8 1A 4D 09 94 43 A4 AA 31 A5 56 97 E9 [15:47:16]CheckFolder [15:47:16]dirname=/storage/ofd_packets [15:47:16]CheckFolder done [15:47:16]ProducePacketName [15:47:16]name=ofd_packets/00103460 [15:47:16]NVStorageSaveData ofd_packets/00103460 [15:47:16]File name is /storage/ofd_packets/00103460 [15:47:16]Write 301 bytes [15:47:16]NVStorageSaveData done [15:47:16]OFDSenderStorePacket done [15:47:16]KKMCreateOFDPacket done [15:47:16]NVStorageSaveData kkm_last_timestamp [15:47:16]File name is /storage/kkm_last_timestamp [15:47:16]Write 4 bytes [15:47:16]NVStorageSaveData done [15:47:16]ExternCall_PrintAddStr [15:47:16]wPrintStart [15:47:16]Write to MH i2c: 01 00 00 4A 65 AF [15:47:16]Write i2c OK [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: 01 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: 01 07 00 [15:47:16]MH_I2C_Read... [15:47:16]Read from MH i2c: 01 07 00 4A 65 00 00 00 00 00 FF 0F C4 [15:47:16]RasterBufferAndPrint [15:47:16]line Счет N : (1)672640 [15:47:16]line ИНН: 02508201610067 [15:47:16]line Контрольно-Кассовый Чек [15:47:16]line ПРОДАЖА [15:47:16]line ТРК (МРК, ГНК) : 32 [15:47:16]line Товар: 2710124130 [15:47:16]line Аи-92-К-5 [15:47:16]line 10.550 * 66.40 [15:47:16]line = 700.52 [15:47:16]line НДС 12% НСП 1% [15:47:16]line > о реализуемом товаре [15:47:16]line ОКРУГЛЕНИЕ: -0.52 [15:47:16]line ИТОГО: 700.00 [15:47:16]line Внесено: 700.00 [15:47:16]line СДАЧА: 0.00 [15:47:16]line НСП 1% : 6.20 [15:47:16]line НДС 12% : 74.39 [15:47:16]line Наличными: 700.00 [15:47:16]line Безнал.: 0.00 [15:47:16]line Место: АЗС № 120 "Партнер Нефть" [15:47:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:47:16]line СНО: Общий режим [15:47:16]line Чек 144 18.06.2024 15:47 [15:47:16]line Смена: 352 ФФД: 1.0 [15:47:16]line ЗНМ: 0300000164 [15:47:16]line РНМ: 0000000000092785 [15:47:16]line Версия ККМ: 001 [15:47:16]line ФМ: 0000000000875093 [15:47:16]line ФД: 103460 [15:47:16]line ФПД: 36181245757844 [15:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154722&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103460&fm=36181245757844&tin=02508201610067®Number=0000000000092785&sum=70000 [15:47:16]OFD Sender: Processing packet 103460 [packets to send 17, broken 16] [15:47:16]ProducePacketName [15:47:16]name=ofd_packets/00103460 [15:47:16]OFD Sender: To server: pG, [15:47:16]CommunicateWithHost lk.salyk.kg:30040 [15:47:16]ConnectInit lk.salyk.kg [15:47:16]written 0, free lines is 4095 [15:47:16]Connected sock=10 [15:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D9 5E 07 01 D4 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0A AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 94 01 00 35 04 06 00 20 E8 1A 4D 09 94 43 A4 AA 31 A5 56 97 E9 [15:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 10 83 47 00 FF B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 94 01 00 F4 03 04 00 95 52 71 66 B6 04 01 00 00 B2 44 B0 17 04 96 6C 83 [15:47:17]CommunicateWithHost err = 0 [15:47:17]CheckOFDResponse [15:47:17]1017 (14) - 77093643461234 [15:47:17]1041 (16) - 0000000000875093 [15:47:17]1040 (4) - 103460 [15:47:17]1012 (4) - 18.06.2024 09:25 [15:47:17]1206 (1) - 0 [15:47:17]OFD Sender: Remove packet 103460 [15:47:17]ProducePacketName [15:47:17]name=ofd_packets/00103460 [15:47:17]NVStorageDeleteData [15:47:17]Write to MH i2c: 01 00 00 75 65 DA [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 75 65 00 00 00 00 00 E8 0C D5 [15:47:17]RasterBufferAndPrint [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]written 0, free lines is 3311 [15:47:17]MH_Cut [15:47:17]Write to MH i2c: D1 01 00 7C 65 01 B3 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 01 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 01 00 7C 65 00 B2 [15:47:17]Write to MH i2c: 01 00 00 7D 65 E2 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]OFD Sender: No OFD packet to send [15:47:17]*** Cut start [15:47:17]*** Partial cut [15:47:17]*** CUTSNS_PIN = 1 [15:47:17]*** CUTSNS_PIN = 0 [15:47:18]*** Brake cut motor [15:47:18]Read from MH i2c: 01 [15:47:18]MH_I2C_Read... [15:47:18]*** Stop cut motor [15:47:18]*** Cut end [15:47:18]Read from MH i2c: 01 07 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: 01 07 00 7D 65 00 00 00 00 00 FF 0F F7 [15:47:18]process_action close_receipt done [15:47:18]requested_data is exist [15:47:18]produce_requested_data [15:47:18]requested_item fm.sn is exist - process it [15:47:18]wFMCommunicate request_size=4 [15:47:18]MH_SAM_APDU [15:47:18]CAPDU: 80 11 00 00 [15:47:18]Write to MH i2c: E2 08 00 7E 65 80 11 00 00 00 00 00 00 5D [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:18]Read from MH i2c: E2 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 17 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 17 00 7E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [15:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:47:18]wFMCommunicate OK [15:47:18]requested_item fd.num is exist - process it [15:47:18]SAM_PROTO_GetFieldsCounters [15:47:18]wFMCommunicate request_size=4 [15:47:18]MH_SAM_APDU [15:47:18]CAPDU: 80 13 00 00 [15:47:18]Write to MH i2c: E2 08 00 7F 65 80 13 00 00 00 00 00 00 60 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:18]Read from MH i2c: E2 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 62 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 62 00 7F 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [15:47:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:18]wFMCommunicate OK [15:47:18]SAM_PROTO_GetFieldsCounters done [15:47:18]requested_item shift.num is exist - process it [15:47:18]requested_item shift.opened is exist - process it [15:47:18]req_shift_opened [15:47:18]FM_GetShiftState [15:47:18]SAM_PROTO_GetShiftState [15:47:18]wFMCommunicate request_size=4 [15:47:18]MH_SAM_APDU [15:47:18]CAPDU: 80 13 01 00 [15:47:18]Write to MH i2c: E2 08 00 80 65 80 13 01 00 00 00 00 00 62 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:18]Read from MH i2c: E2 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 0E 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 0E 00 80 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E3 [15:47:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:47:18]wFMCommunicate OK [15:47:18]SAM_PROTO_GetShiftState done [15:47:18]FM_GetShiftState done [15:47:18]req_shift_opened done [15:47:18]requested_item shift.open_date is exist - process it [15:47:18]req_shift_open_date [15:47:18]req_shift_open_date done [15:47:18]produce_requested_data done [15:47:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103460,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:47:18]process_action_free close_receipt [15:47:18]json_value_free [15:47:18]json_value_free done [15:47:18]process_json_proto returns [15:47:18]Send response to host [15:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103460,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:47:18]free response buf [15:47:18]execute_script done [15:47:18]execute_script returns [15:47:18]free content buf [15:47:18]Sock 9.Close socket [15:47:18]Sock 9.Thread stoped [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47: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:10]accept exits with 7 [15:48:10]New connection [15:48:10]New thread 3067084132 created [15:48:10]Thread 3067227492 joined [15:48:10]Waiting for new connection... [15:48:10] Sock 7.Parse request [15:48:10]Sock 7.Check first char [15:48:10]Sock 7.First char is OK [15:48:10]request: POST /json_proto HTTP/1.0 [15:48:10]Method: POST [15:48:10]URL: /json_proto [15:48:10]Method is POST - this is cgi request [15:48:10]url: /json_proto [15:48:10]query_string will be loaded in cgi processing [15:48:10]execute_cgi json_proto POST (null) [15:48:10]execute_cgi path=json_proto method=POST [15:48:10]POST find Content-Length [15:48:10]Host: 172.17.38.133:8080 [15:48:10]Content-Length: 677 [15:48:10]Content-Type: application/json [15:48:10] [15:48:10]POST finish read [15:48:10]Found Content-Length = 677 [15:48:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:10]execute_script... [15:48:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:10]POST & json_proto [15:48:10]process_json_proto [15:48:10]json parsed OK: [15:48:10]protocol is kg_v1.0 [15:48:10]action value=close_receipt [15:48:10]process_action close_receipt [15:48:10]cmd_close_receipt [15:48:10]MH_GetDate [15:48:10]Write to MH i2c: F0 00 00 81 65 D5 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: F0 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: F0 09 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: F0 09 00 81 65 00 41 AC 71 66 BD 8F 7C 64 CE [15:48:10]GetLastDocTimeStamp 1718725642 [15:48:10]current date 1718725697 [15:48:10]FM_GetShiftState [15:48:10]SAM_PROTO_GetShiftState [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 13 01 00 [15:48:10]Write to MH i2c: E2 08 00 82 65 80 13 01 00 00 00 00 00 64 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0E 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0E 00 82 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [15:48:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_GetShiftState done [15:48:10]FM_GetShiftState done [15:48:10]opened in 1718670284 [15:48:10]opened+sec_in_day 1718756684 [15:48:10]quantity*price = 55055 [15:48:10]sum+1 = 55057 [15:48:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 145 18.06.2024 15:48 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103461 ФПД: 67113739225340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103461&fm=67113739225340&tin=02508201610067®Number=0000000000092785&sum=55000 [15:48:11]StoreToDocumentArchive [15:48:11]shift 352 fd 103461 [15:48:11]save to /storage/0352/doc_00103461 [15:48:11]save last doc name /storage/0352/doc_00103461 to /storage/kkm_last_doc_name [15:48:11]save OK [15:48:11]Clear old archive folders... [15:48:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:11]tlvbuf is 013A2280 [15:48:11]SAM_PROTO_ClearQueue [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 09 00 00 [15:48:11]Write to MH i2c: E2 08 00 8F 65 80 09 00 00 00 00 00 00 66 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 8F 65 00 90 00 68 [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_ClearQueue done [15:48:11]KKMCreateOFDPacket [15:48:11]OFDProtocolAddRootSTLVToBuf [15:48:11]FM_MakeSignedData [15:48:11]FM_MakeSignedData [15:48:11]SAM_PROTO_SignData [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 01 02 [15:48:11]Write to MH i2c: E2 08 00 90 65 80 0D 01 02 00 00 00 00 6E [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 90 65 00 90 00 69 [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]wFMCommunicate request_size=255 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 41 AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 94 01 00 35 04 06 00 3D [15:48:11]Write to MH i2c: E2 02 01 91 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 41 AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 94 01 00 35 04 06 00 3D 00 00 78 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 91 65 00 90 00 6A [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]wFMCommunicate request_size=10 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 02 02 05 0A 22 96 08 FC [15:48:11]Write to MH i2c: E2 0D 00 92 65 80 0D 02 02 05 00 0A 22 96 08 FC 00 00 41 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 92 65 00 90 00 6B [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 03 02 [15:48:11]Write to MH i2c: E2 08 00 93 65 80 0D 03 02 00 00 00 00 73 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0B 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0B 00 93 65 00 20 3A 82 AA 7E CC A7 B4 90 00 9F [15:48:11]RAPDU: 20 3A 82 AA 7E CC A7 B4 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_SignData done [15:48:11]FM_MakeSignedData done [15:48:11]CreateOFDProtocolMessage [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 11 00 00 [15:48:11]Write to MH i2c: E2 08 00 94 65 80 11 00 00 00 00 00 00 73 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 94 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [15:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:11]wFMCommunicate OK [15:48:11]CreateOFDProtocolMessage done [15:48:11]OFDSenderStorePacket 103461 [15:48:11]StoreOFDPacket docnum=103461 [15:48:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 24 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 41 AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 94 01 00 35 04 06 00 3D 0A 22 96 08 FC 20 3A 82 AA 7E CC A7 B4 [15:48:11]CheckFolder [15:48:11]dirname=/storage/ofd_packets [15:48:11]CheckFolder done [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00103461 [15:48:11]NVStorageSaveData ofd_packets/00103461 [15:48:11]File name is /storage/ofd_packets/00103461 [15:48:11]Write 301 bytes [15:48:11]NVStorageSaveData done [15:48:11]OFDSenderStorePacket done [15:48:11]KKMCreateOFDPacket done [15:48:11]NVStorageSaveData kkm_last_timestamp [15:48:11]File name is /storage/kkm_last_timestamp [15:48:11]Write 4 bytes [15:48:11]NVStorageSaveData done [15:48:11]ExternCall_PrintAddStr [15:48:11]wPrintStart [15:48:11]Write to MH i2c: 01 00 00 95 65 FA [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 95 65 00 00 00 00 00 FF 0F 0F [15:48:11]RasterBufferAndPrint [15:48:11]line Счет N : (1)672641 [15:48:11]line ИНН: 02508201610067 [15:48:11]line Контрольно-Кассовый Чек [15:48:11]line ПРОДАЖА [15:48:11]line ТРК (МРК, ГНК) : 41 [15:48:11]line Товар: 2710124500 [15:48:11]line Аи-95-К-5 [15:48:11]line 7.450 * 73.90 [15:48:11]line = 550.56 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line ОКРУГЛЕНИЕ: -0.56 [15:48:11]line ИТОГО: 550.00 [15:48:11]line Внесено: 550.00 [15:48:11]line СДАЧА: 0.00 [15:48:11]line НСП 1% : 4.87 [15:48:11]line НДС 12% : 58.47 [15:48:11]line Наличными: 550.00 [15:48:11]line Безнал.: 0.00 [15:48:11]line Место: АЗС № 120 "Партнер Нефть" [15:48:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:48:11]line СНО: Общий режим [15:48:11]line Чек 145 18.06.2024 15:48 [15:48:11]line Смена: 352 ФФД: 1.0 [15:48:11]line ЗНМ: 0300000164 [15:48:11]line РНМ: 0000000000092785 [15:48:11]line Версия ККМ: 001 [15:48:11]line ФМ: 0000000000875093 [15:48:11]line ФД: 103461 [15:48:11]line ФПД: 67113739225340 [15:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103461&fm=67113739225340&tin=02508201610067®Number=0000000000092785&sum=55000 [15:48:12]written 0, free lines is 4095 [15:48:12]OFD Sender: Processing packet 103461 [packets to send 17, broken 16] [15:48:12]ProducePacketName [15:48:12]name=ofd_packets/00103461 [15:48:12]OFD Sender: To server: pG, [15:48:12]CommunicateWithHost lk.salyk.kg:30040 [15:48:12]ConnectInit lk.salyk.kg [15:48:12]Connected sock=10 [15:48:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 24 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 41 AC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 94 01 00 35 04 06 00 3D 0A 22 96 08 FC 20 3A 82 AA 7E CC A7 B4 [15:48:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E5 A7 47 00 77 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 94 01 00 F4 03 04 00 CD 52 71 66 B6 04 01 00 00 8D A8 B6 77 C6 1D 54 75 [15:48:12]CommunicateWithHost err = 0 [15:48:12]CheckOFDResponse [15:48:12]1017 (14) - 77093643461234 [15:48:12]1041 (16) - 0000000000875093 [15:48:12]1040 (4) - 103461 [15:48:12]1012 (4) - 18.06.2024 09:26 [15:48:12]1206 (1) - 0 [15:48:12]OFD Sender: Remove packet 103461 [15:48:12]ProducePacketName [15:48:12]name=ofd_packets/00103461 [15:48:12]NVStorageDeleteData [15:48:12]Write to MH i2c: 01 00 00 C0 65 25 [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 07 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: 01 07 00 C0 65 00 00 00 00 00 D3 0C 0B [15:48:12]RasterBufferAndPrint [15:48:12]line [15:48:12]line [15:48:12]line [15:48:12]line [15:48:12]line [15:48:12]written 0, free lines is 3290 [15:48:12]MH_Cut [15:48:12]Write to MH i2c: D1 01 00 C7 65 01 FE [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: D1 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: D1 01 00 [15:48:12]MH_I2C_Read... [15:48:12]Read from MH i2c: D1 01 00 C7 65 00 FD [15:48:12]Write to MH i2c: 01 00 00 C8 65 2D [15:48:12]Write i2c OK [15:48:12]MH_I2C_Read... [15:48:13]OFD Sender: No OFD packet to send [15:48:13]*** Cut start [15:48:13]*** Partial cut [15:48:13]*** CUTSNS_PIN = 1 [15:48:13]*** CUTSNS_PIN = 0 [15:48:13]*** Brake cut motor [15:48:13]Read from MH i2c: 01 [15:48:13]MH_I2C_Read... [15:48:13]*** Stop cut motor [15:48:13]*** Cut end [15:48:13]Read from MH i2c: 01 07 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: 01 07 00 C8 65 00 00 00 00 00 FF 0F 42 [15:48:13]process_action close_receipt done [15:48:13]requested_data is exist [15:48:13]produce_requested_data [15:48:13]requested_item fm.sn is exist - process it [15:48:13]wFMCommunicate request_size=4 [15:48:13]MH_SAM_APDU [15:48:13]CAPDU: 80 11 00 00 [15:48:13]Write to MH i2c: E2 08 00 C9 65 80 11 00 00 00 00 00 00 A8 [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:13]Read from MH i2c: E2 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 17 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 17 00 C9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [15:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:13]wFMCommunicate OK [15:48:13]requested_item fd.num is exist - process it [15:48:13]SAM_PROTO_GetFieldsCounters [15:48:13]wFMCommunicate request_size=4 [15:48:13]MH_SAM_APDU [15:48:13]CAPDU: 80 13 00 00 [15:48:13]Write to MH i2c: E2 08 00 CA 65 80 13 00 00 00 00 00 00 AB [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:14]Read from MH i2c: E2 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 62 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 62 00 CA 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:48:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:14]wFMCommunicate OK [15:48:14]SAM_PROTO_GetFieldsCounters done [15:48:14]requested_item shift.num is exist - process it [15:48:14]requested_item shift.opened is exist - process it [15:48:14]req_shift_opened [15:48:14]FM_GetShiftState [15:48:14]SAM_PROTO_GetShiftState [15:48:14]wFMCommunicate request_size=4 [15:48:14]MH_SAM_APDU [15:48:14]CAPDU: 80 13 01 00 [15:48:14]Write to MH i2c: E2 08 00 CB 65 80 13 01 00 00 00 00 00 AD [15:48:14]Write i2c OK [15:48:14]MH_I2C_Read... [15:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:14]Read from MH i2c: E2 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 0E 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 0E 00 CB 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2E [15:48:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:48:14]wFMCommunicate OK [15:48:14]SAM_PROTO_GetShiftState done [15:48:14]FM_GetShiftState done [15:48:14]req_shift_opened done [15:48:14]requested_item shift.open_date is exist - process it [15:48:14]req_shift_open_date [15:48:14]req_shift_open_date done [15:48:14]produce_requested_data done [15:48:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103461,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:48:14]process_action_free close_receipt [15:48:14]json_value_free [15:48:14]json_value_free done [15:48:14]process_json_proto returns [15:48:14]Send response to host [15:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103461,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:48:14]free response buf [15:48:14]execute_script done [15:48:14]execute_script returns [15:48:14]free content buf [15:48:14]Sock 7.Close socket [15:48:14]Sock 7.Thread stoped [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:17]accept exits with 9 [15:55:17]New connection [15:55:17]New thread 3067227492 created [15:55:17]Thread 3067084132 joined [15:55:17]Waiting for new connection... [15:55:17] Sock 9.Parse request [15:55:17]Sock 9.Check first char [15:55:17]Sock 9.First char is OK [15:55:17]request: POST /json_proto HTTP/1.0 [15:55:17]Method: POST [15:55:17]URL: /json_proto [15:55:17]Method is POST - this is cgi request [15:55:17]url: /json_proto [15:55:17]query_string will be loaded in cgi processing [15:55:17]execute_cgi json_proto POST (null) [15:55:17]execute_cgi path=json_proto method=POST [15:55:17]POST find Content-Length [15:55:17]Host: 172.17.38.133:8080 [15:55:17]Content-Length: 800 [15:55:17]Content-Type: application/json [15:55:17] [15:55:17]POST finish read [15:55:17]Found Content-Length = 800 [15:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 660.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:17]execute_script... [15:55:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 660.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:17]POST & json_proto [15:55:17]process_json_proto [15:55:17]json parsed OK: [15:55:17]protocol is kg_v1.0 [15:55:17]action value=close_receipt [15:55:17]process_action close_receipt [15:55:17]cmd_close_receipt [15:55:17]MH_GetDate [15:55:17]Write to MH i2c: F0 00 00 CC 65 20 [15:55:17]Write i2c OK [15:55:17]MH_I2C_Read... [15:55:17]Read from MH i2c: F0 [15:55:17]MH_I2C_Read... [15:55:17]Read from MH i2c: F0 09 00 [15:55:17]MH_I2C_Read... [15:55:17]Read from MH i2c: F0 09 00 CC 65 00 ED AD 71 66 BD 8F 7C 64 C6 [15:55:17]GetLastDocTimeStamp 1718725697 [15:55:17]current date 1718726125 [15:55:17]FM_GetShiftState [15:55:17]SAM_PROTO_GetShiftState [15:55:17]wFMCommunicate request_size=4 [15:55:17]MH_SAM_APDU [15:55:17]CAPDU: 80 13 01 00 [15:55:17]Write to MH i2c: E2 08 00 CD 65 80 13 01 00 00 00 00 00 AF [15:55:17]Write i2c OK [15:55:17]MH_I2C_Read... [15:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:17]Read from MH i2c: E2 [15:55:17]MH_I2C_Read... [15:55:17]Read from MH i2c: E2 0E 00 [15:55:17]MH_I2C_Read... [15:55:17]Read from MH i2c: E2 0E 00 CD 65 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 30 [15:55:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:55:17]wFMCommunicate OK [15:55:17]SAM_PROTO_GetShiftState done [15:55:17]FM_GetShiftState done [15:55:17]opened in 1718670284 [15:55:17]opened+sec_in_day 1718756684 [15:55:17]quantity*price = 66001 [15:55:17]sum+1 = 66003 [15:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 660.02 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 0.00 Безнал.: 660.02 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 146 18.06.2024 15:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103462 ФПД: 41345730650666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103462&fm=41345730650666&tin=02508201610067®Number=0000000000092785&sum=66002 [15:55:19]StoreToDocumentArchive [15:55:19]shift 352 fd 103462 [15:55:19]save to /storage/0352/doc_00103462 [15:55:19]save last doc name /storage/0352/doc_00103462 to /storage/kkm_last_doc_name [15:55:19]save OK [15:55:19]Clear old archive folders... [15:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:19]tlvbuf is 014109D0 [15:55:19]SAM_PROTO_ClearQueue [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 09 00 00 [15:55:19]Write to MH i2c: E2 08 00 DA 65 80 09 00 00 00 00 00 00 B1 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 DA 65 00 90 00 B3 [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]SAM_PROTO_ClearQueue done [15:55:19]KKMCreateOFDPacket [15:55:19]OFDProtocolAddRootSTLVToBuf [15:55:19]FM_MakeSignedData [15:55:19]FM_MakeSignedData [15:55:19]SAM_PROTO_SignData [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 01 02 [15:55:19]Write to MH i2c: E2 08 00 DB 65 80 0D 01 02 00 00 00 00 B9 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 DB 65 00 90 00 B4 [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]wFMCommunicate request_size=255 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 ED AD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 94 01 00 35 04 06 00 25 [15:55:19]Write to MH i2c: E2 02 01 DC 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 ED AD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 94 01 00 35 04 06 00 25 00 00 52 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 DC 65 00 90 00 B5 [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]wFMCommunicate request_size=10 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 02 02 05 9A 8D 96 A2 2A [15:55:19]Write to MH i2c: E2 0D 00 DD 65 80 0D 02 02 05 00 9A 8D 96 A2 2A 00 00 4F [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 03 00 DD 65 00 90 00 B6 [15:55:19]RAPDU: 90 00 [15:55:19]wFMCommunicate OK [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 0D 03 02 [15:55:19]Write to MH i2c: E2 08 00 DE 65 80 0D 03 02 00 00 00 00 BE [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 0B 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 0B 00 DE 65 00 B6 D4 4F 02 03 0F D8 5F 90 00 E3 [15:55:19]RAPDU: B6 D4 4F 02 03 0F D8 5F 90 00 [15:55:19]wFMCommunicate OK [15:55:19]SAM_PROTO_SignData done [15:55:19]FM_MakeSignedData done [15:55:19]CreateOFDProtocolMessage [15:55:19]wFMCommunicate request_size=4 [15:55:19]MH_SAM_APDU [15:55:19]CAPDU: 80 11 00 00 [15:55:19]Write to MH i2c: E2 08 00 DF 65 80 11 00 00 00 00 00 00 BE [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:19]Read from MH i2c: E2 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 17 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: E2 17 00 DF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [15:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:55:19]wFMCommunicate OK [15:55:19]CreateOFDProtocolMessage done [15:55:19]OFDSenderStorePacket 103462 [15:55:19]StoreOFDPacket docnum=103462 [15:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A B5 07 01 8C 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 ED AD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 94 01 00 35 04 06 00 25 9A 8D 96 A2 2A B6 D4 4F 02 03 0F D8 5F [15:55:19]CheckFolder [15:55:19]dirname=/storage/ofd_packets [15:55:19]CheckFolder done [15:55:19]ProducePacketName [15:55:19]name=ofd_packets/00103462 [15:55:19]NVStorageSaveData ofd_packets/00103462 [15:55:19]File name is /storage/ofd_packets/00103462 [15:55:19]Write 301 bytes [15:55:19]NVStorageSaveData done [15:55:19]OFDSenderStorePacket done [15:55:19]KKMCreateOFDPacket done [15:55:19]NVStorageSaveData kkm_last_timestamp [15:55:19]File name is /storage/kkm_last_timestamp [15:55:19]Write 4 bytes [15:55:19]NVStorageSaveData done [15:55:19]ExternCall_PrintAddStr [15:55:19]wPrintStart [15:55:19]Write to MH i2c: 01 00 00 E0 65 45 [15:55:19]Write i2c OK [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: 01 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: 01 07 00 [15:55:19]MH_I2C_Read... [15:55:19]Read from MH i2c: 01 07 00 E0 65 00 00 00 00 00 FF 0F 5A [15:55:19]RasterBufferAndPrint [15:55:19]line Счет N : (1)672644 [15:55:19]line ИНН: 02508201610067 [15:55:19]line Контрольно-Кассовый Чек [15:55:19]line ПРОДАЖА [15:55:19]line ТРК (МРК, ГНК) : 42 [15:55:19]line Товар: 2710124130 [15:55:19]line Аи-92-К-5 [15:55:19]line 9.940 * 66.40 [15:55:19]line = 660.02 [15:55:19]line НДС 12% НСП 1% [15:55:19]line > о реализуемом товаре [15:55:19]line ИТОГО: 660.02 [15:55:19]line НСП 1% : 5.84 [15:55:19]line НДС 12% : 70.09 [15:55:19]line Наличными: 0.00 [15:55:19]line Безнал.: 660.02 [15:55:19]line Место: АЗС № 120 "Партнер Нефть" [15:55:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:55:19]line СНО: Общий режим [15:55:19]line Чек 146 18.06.2024 15:55 [15:55:19]line Смена: 352 ФФД: 1.0 [15:55:19]line ЗНМ: 0300000164 [15:55:19]line РНМ: 0000000000092785 [15:55:19]line Версия ККМ: 001 [15:55:19]line Платежная система: O! деньги [15:55:19]line ФМ: 0000000000875093 [15:55:19]line ФД: 103462 [15:55:19]line ФПД: 41345730650666 [15:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103462&fm=41345730650666&tin=02508201610067®Number=0000000000092785&sum=66002 [15:55:19]OFD Sender: Processing packet 103462 [packets to send 17, broken 16] [15:55:19]ProducePacketName [15:55:19]name=ofd_packets/00103462 [15:55:19]OFD Sender: To server: pG, [15:55:19]CommunicateWithHost lk.salyk.kg:30040 [15:55:19]ConnectInit lk.salyk.kg [15:55:19]written 0, free lines is 4095 [15:55:20]Connected sock=10 [15:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A B5 07 01 8C 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 ED AD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 94 01 00 35 04 06 00 25 9A 8D 96 A2 2A B6 D4 4F 02 03 0F D8 5F [15:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D1 EE 47 00 77 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 94 01 00 F4 03 04 00 79 54 71 66 B6 04 01 00 00 02 46 5E AD C9 4A AB 61 [15:55:20]CommunicateWithHost err = 0 [15:55:20]CheckOFDResponse [15:55:20]1017 (14) - 77093643461234 [15:55:20]1041 (16) - 0000000000875093 [15:55:20]1040 (4) - 103462 [15:55:20]1012 (4) - 18.06.2024 09:33 [15:55:20]1206 (1) - 0 [15:55:20]OFD Sender: Remove packet 103462 [15:55:20]ProducePacketName [15:55:20]name=ofd_packets/00103462 [15:55:20]NVStorageDeleteData [15:55:20]Write to MH i2c: 01 00 00 0A 66 70 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: 01 07 00 0A 66 00 00 00 00 00 EC 0C 6F [15:55:20]RasterBufferAndPrint [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]line [15:55:20]written 0, free lines is 3315 [15:55:20]MH_Cut [15:55:20]Write to MH i2c: D1 01 00 11 66 01 49 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 01 00 [15:55:20]MH_I2C_Read... [15:55:20]Read from MH i2c: D1 01 00 11 66 00 48 [15:55:20]Write to MH i2c: 01 00 00 12 66 78 [15:55:20]Write i2c OK [15:55:20]MH_I2C_Read... [15:55:20]OFD Sender: No OFD packet to send [15:55:21]*** Cut start [15:55:21]*** Partial cut [15:55:21]*** CUTSNS_PIN = 1 [15:55:21]*** CUTSNS_PIN = 0 [15:55:21]*** Brake cut motor [15:55:21]Read from MH i2c: 01 [15:55:21]MH_I2C_Read... [15:55:21]*** Stop cut motor [15:55:21]*** Cut end [15:55:21]Read from MH i2c: 01 07 00 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: 01 07 00 12 66 00 00 00 00 00 FF 0F 8D [15:55:21]process_action close_receipt done [15:55:21]requested_data is exist [15:55:21]produce_requested_data [15:55:21]requested_item fm.sn is exist - process it [15:55:21]wFMCommunicate request_size=4 [15:55:21]MH_SAM_APDU [15:55:21]CAPDU: 80 11 00 00 [15:55:21]Write to MH i2c: E2 08 00 13 66 80 11 00 00 00 00 00 00 F3 [15:55:21]Write i2c OK [15:55:21]MH_I2C_Read... [15:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:21]Read from MH i2c: E2 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 17 00 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 17 00 13 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 46 [15:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:55:21]wFMCommunicate OK [15:55:21]requested_item fd.num is exist - process it [15:55:21]SAM_PROTO_GetFieldsCounters [15:55:21]wFMCommunicate request_size=4 [15:55:21]MH_SAM_APDU [15:55:21]CAPDU: 80 13 00 00 [15:55:21]Write to MH i2c: E2 08 00 14 66 80 13 00 00 00 00 00 00 F6 [15:55:21]Write i2c OK [15:55:21]MH_I2C_Read... [15:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:21]Read from MH i2c: E2 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 62 00 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 62 00 14 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:21]wFMCommunicate OK [15:55:21]SAM_PROTO_GetFieldsCounters done [15:55:21]requested_item shift.num is exist - process it [15:55:21]requested_item shift.opened is exist - process it [15:55:21]req_shift_opened [15:55:21]FM_GetShiftState [15:55:21]SAM_PROTO_GetShiftState [15:55:21]wFMCommunicate request_size=4 [15:55:21]MH_SAM_APDU [15:55:21]CAPDU: 80 13 01 00 [15:55:21]Write to MH i2c: E2 08 00 15 66 80 13 01 00 00 00 00 00 F8 [15:55:21]Write i2c OK [15:55:21]MH_I2C_Read... [15:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:21]Read from MH i2c: E2 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 0E 00 [15:55:21]MH_I2C_Read... [15:55:21]Read from MH i2c: E2 0E 00 15 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 79 [15:55:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:55:21]wFMCommunicate OK [15:55:21]SAM_PROTO_GetShiftState done [15:55:21]FM_GetShiftState done [15:55:21]req_shift_opened done [15:55:21]requested_item shift.open_date is exist - process it [15:55:21]req_shift_open_date [15:55:21]req_shift_open_date done [15:55:21]produce_requested_data done [15:55:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103462,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:55:21]process_action_free close_receipt [15:55:21]json_value_free [15:55:21]json_value_free done [15:55:21]process_json_proto returns [15:55:21]Send response to host [15:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103462,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:55:21]free response buf [15:55:21]execute_script done [15:55:21]execute_script returns [15:55:21]free content buf [15:55:21]Sock 9.Close socket [15:55:21]Sock 9.Thread stoped [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:46]accept exits with 7 [15:55:46]New connection [15:55:46]New thread 3067084132 created [15:55:46]Thread 3067227492 joined [15:55:46]Waiting for new connection... [15:55:46] Sock 7.Parse request [15:55:46]Sock 7.Check first char [15:55:46]Sock 7.First char is OK [15:55:46]request: POST /json_proto HTTP/1.0 [15:55:46]Method: POST [15:55:46]URL: /json_proto [15:55:46]Method is POST - this is cgi request [15:55:46]url: /json_proto [15:55:46]query_string will be loaded in cgi processing [15:55:46]execute_cgi json_proto POST (null) [15:55:46]execute_cgi path=json_proto method=POST [15:55:46]POST find Content-Length [15:55:46]Host: 172.17.38.133:8080 [15:55:46]Content-Length: 819 [15:55:46]Content-Type: application/json [15:55:46] [15:55:46]POST finish read [15:55:46]Found Content-Length = 819 [15:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 26.540, "sum" : 1961.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1961.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:46]execute_script... [15:55:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 26.540, "sum" : 1961.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1961.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:46]POST & json_proto [15:55:46]process_json_proto [15:55:46]json parsed OK: [15:55:46]protocol is kg_v1.0 [15:55:46]action value=close_receipt [15:55:46]process_action close_receipt [15:55:46]cmd_close_receipt [15:55:46]MH_GetDate [15:55:46]Write to MH i2c: F0 00 00 16 66 6B [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: F0 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: F0 09 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: F0 09 00 16 66 00 09 AE 71 66 BD 8F 7C 64 2E [15:55:46]GetLastDocTimeStamp 1718726125 [15:55:46]current date 1718726153 [15:55:46]FM_GetShiftState [15:55:46]SAM_PROTO_GetShiftState [15:55:46]wFMCommunicate request_size=4 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 13 01 00 [15:55:46]Write to MH i2c: E2 08 00 17 66 80 13 01 00 00 00 00 00 FA [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 0E 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 0E 00 17 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7B [15:55:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:55:46]wFMCommunicate OK [15:55:46]SAM_PROTO_GetShiftState done [15:55:46]FM_GetShiftState done [15:55:46]opened in 1718670284 [15:55:46]opened+sec_in_day 1718756684 [15:55:46]quantity*price = 196130 [15:55:46]sum+1 = 196132 [15:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1961.31 НСП 1% : 17.36 НДС 12% : 208.28 Наличными: 0.00 Безнал.: 1961.31 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 147 18.06.2024 15:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103463 ФПД: 59103917444349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155553&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103463&fm=59103917444349&tin=02508201610067®Number=0000000000092785&sum=196131 [15:55:47]StoreToDocumentArchive [15:55:47]shift 352 fd 103463 [15:55:47]save to /storage/0352/doc_00103463 [15:55:47]save last doc name /storage/0352/doc_00103463 to /storage/kkm_last_doc_name [15:55:47]save OK [15:55:47]Clear old archive folders... [15:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:47]tlvbuf is B6DEBA50 [15:55:47]SAM_PROTO_ClearQueue [15:55:47]wFMCommunicate request_size=4 [15:55:47]MH_SAM_APDU [15:55:47]CAPDU: 80 09 00 00 [15:55:47]Write to MH i2c: E2 08 00 24 66 80 09 00 00 00 00 00 00 FC [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 [15:55:47]MH_I2C_Read... [15:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:47]Read from MH i2c: E2 03 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 24 66 00 90 00 FE [15:55:47]RAPDU: 90 00 [15:55:47]wFMCommunicate OK [15:55:47]SAM_PROTO_ClearQueue done [15:55:47]KKMCreateOFDPacket [15:55:47]OFDProtocolAddRootSTLVToBuf [15:55:47]FM_MakeSignedData [15:55:47]FM_MakeSignedData [15:55:47]SAM_PROTO_SignData [15:55:47]wFMCommunicate request_size=4 [15:55:47]MH_SAM_APDU [15:55:47]CAPDU: 80 0D 01 02 [15:55:47]Write to MH i2c: E2 08 00 25 66 80 0D 01 02 00 00 00 00 04 [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:47]Read from MH i2c: E2 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 25 66 00 90 00 FF [15:55:47]RAPDU: 90 00 [15:55:47]wFMCommunicate OK [15:55:47]wFMCommunicate request_size=255 [15:55:47]MH_SAM_APDU [15:55:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 23 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 09 AE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 94 01 00 35 04 06 00 35 [15:55:47]Write to MH i2c: E2 02 01 26 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 23 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 09 AE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 94 01 00 35 04 06 00 35 00 00 7C [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:47]Read from MH i2c: E2 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 26 66 00 90 00 00 [15:55:47]RAPDU: 90 00 [15:55:47]wFMCommunicate OK [15:55:47]wFMCommunicate request_size=10 [15:55:47]MH_SAM_APDU [15:55:47]CAPDU: 80 0D 02 02 05 C1 34 01 0C FD [15:55:47]Write to MH i2c: E2 0D 00 27 66 80 0D 02 02 05 00 C1 34 01 0C FD 00 00 10 [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:47]Read from MH i2c: E2 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: E2 03 00 27 66 00 90 00 01 [15:55:47]RAPDU: 90 00 [15:55:47]wFMCommunicate OK [15:55:47]wFMCommunicate request_size=4 [15:55:47]MH_SAM_APDU [15:55:47]CAPDU: 80 0D 03 02 [15:55:47]Write to MH i2c: E2 08 00 28 66 80 0D 03 02 00 00 00 00 09 [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:48]Read from MH i2c: E2 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 0B 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 0B 00 28 66 00 78 37 F3 EA 98 A1 49 BB 90 00 D3 [15:55:48]RAPDU: 78 37 F3 EA 98 A1 49 BB 90 00 [15:55:48]wFMCommunicate OK [15:55:48]SAM_PROTO_SignData done [15:55:48]FM_MakeSignedData done [15:55:48]CreateOFDProtocolMessage [15:55:48]wFMCommunicate request_size=4 [15:55:48]MH_SAM_APDU [15:55:48]CAPDU: 80 11 00 00 [15:55:48]Write to MH i2c: E2 08 00 29 66 80 11 00 00 00 00 00 00 09 [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:48]Read from MH i2c: E2 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 17 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 17 00 29 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [15:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:55:48]wFMCommunicate OK [15:55:48]CreateOFDProtocolMessage done [15:55:48]OFDSenderStorePacket 103463 [15:55:48]StoreOFDPacket docnum=103463 [15:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD 7A 07 01 D1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 23 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 09 AE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 94 01 00 35 04 06 00 35 C1 34 01 0C FD 78 37 F3 EA 98 A1 49 BB [15:55:48]CheckFolder [15:55:48]dirname=/storage/ofd_packets [15:55:48]CheckFolder done [15:55:48]ProducePacketName [15:55:48]name=ofd_packets/00103463 [15:55:48]NVStorageSaveData ofd_packets/00103463 [15:55:48]File name is /storage/ofd_packets/00103463 [15:55:48]Write 301 bytes [15:55:48]NVStorageSaveData done [15:55:48]OFDSenderStorePacket done [15:55:48]KKMCreateOFDPacket done [15:55:48]NVStorageSaveData kkm_last_timestamp [15:55:48]File name is /storage/kkm_last_timestamp [15:55:48]Write 4 bytes [15:55:48]NVStorageSaveData done [15:55:48]ExternCall_PrintAddStr [15:55:48]wPrintStart [15:55:48]Write to MH i2c: 01 00 00 2A 66 90 [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 2A 66 00 00 00 00 00 FF 0F A5 [15:55:48]RasterBufferAndPrint [15:55:48]line Счет N : (1)672643 [15:55:48]line ИНН: 02508201610067 [15:55:48]line Контрольно-Кассовый Чек [15:55:48]line ПРОДАЖА [15:55:48]line ТРК (МРК, ГНК) : 31 [15:55:48]line Товар: 2710124500 [15:55:48]line Аи-95-К-5 [15:55:48]line 26.540 * 73.90 [15:55:48]line = 1961.31 [15:55:48]line НДС 12% НСП 1% [15:55:48]line > о реализуемом товаре [15:55:48]line ИТОГО: 1961.31 [15:55:48]line НСП 1% : 17.36 [15:55:48]line НДС 12% : 208.28 [15:55:48]line Наличными: 0.00 [15:55:48]line Безнал.: 1961.31 [15:55:48]line Место: АЗС № 120 "Партнер Нефть" [15:55:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:55:48]line СНО: Общий режим [15:55:48]line Чек 147 18.06.2024 15:55 [15:55:48]line Смена: 352 ФФД: 1.0 [15:55:48]line ЗНМ: 0300000164 [15:55:48]line РНМ: 0000000000092785 [15:55:48]line Версия ККМ: 001 [15:55:48]line Платежная система: Бакай Банк [15:55:48]line ФМ: 0000000000875093 [15:55:48]line ФД: 103463 [15:55:48]line ФПД: 59103917444349 [15:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155553&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103463&fm=59103917444349&tin=02508201610067®Number=0000000000092785&sum=196131 [15:55:48]OFD Sender: Processing packet 103463 [packets to send 17, broken 16] [15:55:48]ProducePacketName [15:55:48]name=ofd_packets/00103463 [15:55:48]OFD Sender: To server: pG, [15:55:48]CommunicateWithHost lk.salyk.kg:30040 [15:55:48]ConnectInit lk.salyk.kg [15:55:48]written 0, free lines is 4095 [15:55:48]Connected sock=10 [15:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD 7A 07 01 D1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 23 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 09 AE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 94 01 00 35 04 06 00 35 C1 34 01 0C FD 78 37 F3 EA 98 A1 49 BB [15:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E2 F3 47 00 84 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 94 01 00 F4 03 04 00 95 54 71 66 B6 04 01 00 00 81 07 ED DC EF 17 A9 5B [15:55:48]CommunicateWithHost err = 0 [15:55:48]CheckOFDResponse [15:55:48]1017 (14) - 77093643461234 [15:55:48]1041 (16) - 0000000000875093 [15:55:48]1040 (4) - 103463 [15:55:48]1012 (4) - 18.06.2024 09:34 [15:55:48]1206 (1) - 0 [15:55:48]OFD Sender: Remove packet 103463 [15:55:48]ProducePacketName [15:55:48]name=ofd_packets/00103463 [15:55:48]NVStorageDeleteData [15:55:48]Write to MH i2c: 01 00 00 54 66 BA [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 54 66 00 00 00 00 00 01 0D CF [15:55:48]RasterBufferAndPrint [15:55:48]line [15:55:48]line [15:55:48]line [15:55:48]line [15:55:48]line [15:55:48]written 0, free lines is 3335 [15:55:48]MH_Cut [15:55:48]Write to MH i2c: D1 01 00 5B 66 01 93 [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: D1 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: D1 01 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: D1 01 00 5B 66 00 92 [15:55:48]Write to MH i2c: 01 00 00 5C 66 C2 [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:49]OFD Sender: No OFD packet to send [15:55:49]*** Cut start [15:55:49]*** Partial cut [15:55:49]*** CUTSNS_PIN = 1 [15:55:49]*** CUTSNS_PIN = 0 [15:55:49]*** Brake cut motor [15:55:50]Read from MH i2c: 01 [15:55:50]MH_I2C_Read... [15:55:50]*** Stop cut motor [15:55:50]*** Cut end [15:55:50]Read from MH i2c: 01 07 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: 01 07 00 5C 66 00 00 00 00 00 FF 0F D7 [15:55:50]process_action close_receipt done [15:55:50]requested_data is exist [15:55:50]produce_requested_data [15:55:50]requested_item fm.sn is exist - process it [15:55:50]wFMCommunicate request_size=4 [15:55:50]MH_SAM_APDU [15:55:50]CAPDU: 80 11 00 00 [15:55:50]Write to MH i2c: E2 08 00 5D 66 80 11 00 00 00 00 00 00 3D [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:50]Read from MH i2c: E2 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 17 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 17 00 5D 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [15:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:55:50]wFMCommunicate OK [15:55:50]requested_item fd.num is exist - process it [15:55:50]SAM_PROTO_GetFieldsCounters [15:55:50]wFMCommunicate request_size=4 [15:55:50]MH_SAM_APDU [15:55:50]CAPDU: 80 13 00 00 [15:55:50]Write to MH i2c: E2 08 00 5E 66 80 13 00 00 00 00 00 00 40 [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:50]Read from MH i2c: E2 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 62 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 62 00 5E 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:50]wFMCommunicate OK [15:55:50]SAM_PROTO_GetFieldsCounters done [15:55:50]requested_item shift.num is exist - process it [15:55:50]requested_item shift.opened is exist - process it [15:55:50]req_shift_opened [15:55:50]FM_GetShiftState [15:55:50]SAM_PROTO_GetShiftState [15:55:50]wFMCommunicate request_size=4 [15:55:50]MH_SAM_APDU [15:55:50]CAPDU: 80 13 01 00 [15:55:50]Write to MH i2c: E2 08 00 5F 66 80 13 01 00 00 00 00 00 42 [15:55:50]Write i2c OK [15:55:50]MH_I2C_Read... [15:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:50]Read from MH i2c: E2 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 0E 00 [15:55:50]MH_I2C_Read... [15:55:50]Read from MH i2c: E2 0E 00 5F 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C3 [15:55:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [15:55:50]wFMCommunicate OK [15:55:50]SAM_PROTO_GetShiftState done [15:55:50]FM_GetShiftState done [15:55:50]req_shift_opened done [15:55:50]requested_item shift.open_date is exist - process it [15:55:50]req_shift_open_date [15:55:50]req_shift_open_date done [15:55:50]produce_requested_data done [15:55:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103463,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [15:55:50]process_action_free close_receipt [15:55:50]json_value_free [15:55:50]json_value_free done [15:55:50]process_json_proto returns [15:55:50]Send response to host [15:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103463,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [15:55:50]free response buf [15:55:50]execute_script done [15:55:50]execute_script returns [15:55:50]free content buf [15:55:50]Sock 7.Close socket [15:55:50]Sock 7.Thread stoped [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:10]accept exits with 9 [16:00:10]New connection [16:00:10]New thread 3067227492 created [16:00:10]Thread 3067084132 joined [16:00:10]Waiting for new connection... [16:00:10] Sock 9.Parse request [16:00:10]Sock 9.Check first char [16:00:10]Sock 9.First char is OK [16:00:10]request: POST /json_proto HTTP/1.0 [16:00:10]Method: POST [16:00:10]URL: /json_proto [16:00:10]Method is POST - this is cgi request [16:00:10]url: /json_proto [16:00:10]query_string will be loaded in cgi processing [16:00:10]execute_cgi json_proto POST (null) [16:00:10]execute_cgi path=json_proto method=POST [16:00:10]POST find Content-Length [16:00:10]Host: 172.17.38.133:8080 [16:00:10]Content-Length: 808 [16:00:10]Content-Type: application/json [16:00:10] [16:00:10]POST finish read [16:00:10]Found Content-Length = 808 [16:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 49.800, "sum" : 3630.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3630.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:10]execute_script... [16:00:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 49.800, "sum" : 3630.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3630.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:10]POST & json_proto [16:00:10]process_json_proto [16:00:10]json parsed OK: [16:00:10]protocol is kg_v1.0 [16:00:10]action value=close_receipt [16:00:10]process_action close_receipt [16:00:10]cmd_close_receipt [16:00:10]MH_GetDate [16:00:10]Write to MH i2c: F0 00 00 60 66 B5 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: F0 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: F0 09 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: F0 09 00 60 66 00 11 AF 71 66 BD 8F 7C 64 81 [16:00:10]GetLastDocTimeStamp 1718726153 [16:00:10]current date 1718726417 [16:00:10]FM_GetShiftState [16:00:10]SAM_PROTO_GetShiftState [16:00:10]wFMCommunicate request_size=4 [16:00:10]MH_SAM_APDU [16:00:10]CAPDU: 80 13 01 00 [16:00:10]Write to MH i2c: E2 08 00 61 66 80 13 01 00 00 00 00 00 44 [16:00:10]Write i2c OK [16:00:10]MH_I2C_Read... [16:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:10]Read from MH i2c: E2 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 0E 00 [16:00:10]MH_I2C_Read... [16:00:10]Read from MH i2c: E2 0E 00 61 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C5 [16:00:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:00:10]wFMCommunicate OK [16:00:10]SAM_PROTO_GetShiftState done [16:00:10]FM_GetShiftState done [16:00:10]opened in 1718670284 [16:00:10]opened+sec_in_day 1718756684 [16:00:10]quantity*price = 363042 [16:00:10]sum+1 = 363043 [16:00:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3630.42 НСП 1% : 32.13 НДС 12% : 385.53 Наличными: 0.00 Безнал.: 3630.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 148 18.06.2024 16:00 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103464 ФПД: 53391397909522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160017&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103464&fm=53391397909522&tin=02508201610067®Number=0000000000092785&sum=363042 [16:00:11]StoreToDocumentArchive [16:00:11]shift 352 fd 103464 [16:00:11]save to /storage/0352/doc_00103464 [16:00:11]save last doc name /storage/0352/doc_00103464 to /storage/kkm_last_doc_name [16:00:11]save OK [16:00:11]Clear old archive folders... [16:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:00:11]tlvbuf is 0132CEC0 [16:00:11]SAM_PROTO_ClearQueue [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 09 00 00 [16:00:11]Write to MH i2c: E2 08 00 6E 66 80 09 00 00 00 00 00 00 46 [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 6E 66 00 90 00 48 [16:00:11]RAPDU: 90 00 [16:00:11]wFMCommunicate OK [16:00:11]SAM_PROTO_ClearQueue done [16:00:11]KKMCreateOFDPacket [16:00:11]OFDProtocolAddRootSTLVToBuf [16:00:11]FM_MakeSignedData [16:00:11]FM_MakeSignedData [16:00:11]SAM_PROTO_SignData [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 0D 01 02 [16:00:11]Write to MH i2c: E2 08 00 6F 66 80 0D 01 02 00 00 00 00 4E [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 6F 66 00 90 00 49 [16:00:11]RAPDU: 90 00 [16:00:11]wFMCommunicate OK [16:00:11]wFMCommunicate request_size=255 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 C2 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 8A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 11 AF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 94 01 00 35 04 06 00 [16:00:11]Write to MH i2c: E2 02 01 70 66 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 C2 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 8A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 11 AF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 94 01 00 35 04 06 00 00 00 9D [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 70 66 00 90 00 4A [16:00:11]RAPDU: 90 00 [16:00:11]wFMCommunicate OK [16:00:11]wFMCommunicate request_size=11 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 0D 02 02 06 30 8F 27 4E 74 12 [16:00:11]Write to MH i2c: E2 0E 00 71 66 80 0D 02 02 06 00 30 8F 27 4E 74 12 00 00 17 [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 03 00 71 66 00 90 00 4B [16:00:11]RAPDU: 90 00 [16:00:11]wFMCommunicate OK [16:00:11]wFMCommunicate request_size=4 [16:00:11]MH_SAM_APDU [16:00:11]CAPDU: 80 0D 03 02 [16:00:11]Write to MH i2c: E2 08 00 72 66 80 0D 03 02 00 00 00 00 53 [16:00:11]Write i2c OK [16:00:11]MH_I2C_Read... [16:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:11]Read from MH i2c: E2 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 0B 00 [16:00:11]MH_I2C_Read... [16:00:11]Read from MH i2c: E2 0B 00 72 66 00 4C 49 01 31 66 A9 9D 18 90 00 DF [16:00:12]RAPDU: 4C 49 01 31 66 A9 9D 18 90 00 [16:00:12]wFMCommunicate OK [16:00:12]SAM_PROTO_SignData done [16:00:12]FM_MakeSignedData done [16:00:12]CreateOFDProtocolMessage [16:00:12]wFMCommunicate request_size=4 [16:00:12]MH_SAM_APDU [16:00:12]CAPDU: 80 11 00 00 [16:00:12]Write to MH i2c: E2 08 00 73 66 80 11 00 00 00 00 00 00 53 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:12]Read from MH i2c: E2 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: E2 17 00 73 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [16:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:00:12]wFMCommunicate OK [16:00:12]CreateOFDProtocolMessage done [16:00:12]OFDSenderStorePacket 103464 [16:00:12]StoreOFDPacket docnum=103464 [16:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 78 EF 08 01 A6 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 C2 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 8A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 11 AF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 94 01 00 35 04 06 00 30 8F 27 4E 74 12 4C 49 01 31 66 A9 9D 18 [16:00:12]CheckFolder [16:00:12]dirname=/storage/ofd_packets [16:00:12]CheckFolder done [16:00:12]ProducePacketName [16:00:12]name=ofd_packets/00103464 [16:00:12]NVStorageSaveData ofd_packets/00103464 [16:00:12]File name is /storage/ofd_packets/00103464 [16:00:12]Write 302 bytes [16:00:12]NVStorageSaveData done [16:00:12]OFDSenderStorePacket done [16:00:12]KKMCreateOFDPacket done [16:00:12]NVStorageSaveData kkm_last_timestamp [16:00:12]File name is /storage/kkm_last_timestamp [16:00:12]Write 4 bytes [16:00:12]NVStorageSaveData done [16:00:12]ExternCall_PrintAddStr [16:00:12]wPrintStart [16:00:12]Write to MH i2c: 01 00 00 74 66 DA [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 74 66 00 00 00 00 00 FF 0F EF [16:00:12]RasterBufferAndPrint [16:00:12]line Счет N : (1)672646 [16:00:12]line ИНН: 02508201610067 [16:00:12]line Контрольно-Кассовый Чек [16:00:12]line ПРОДАЖА [16:00:12]line ТРК (МРК, ГНК) : 11 [16:00:12]line Товар: 2710194210 [16:00:12]line ДТ(л)-К-5 [16:00:12]line 49.800 * 72.90 [16:00:12]line = 3630.42 [16:00:12]line НДС 12% НСП 1% [16:00:12]line > о реализуемом товаре [16:00:12]line ИТОГО: 3630.42 [16:00:12]line НСП 1% : 32.13 [16:00:12]line НДС 12% : 385.53 [16:00:12]line Наличными: 0.00 [16:00:12]line Безнал.: 3630.42 [16:00:12]line Место: АЗС № 120 "Партнер Нефть" [16:00:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:00:12]line СНО: Общий режим [16:00:12]line Чек 148 18.06.2024 16:00 [16:00:12]line Смена: 352 ФФД: 1.0 [16:00:12]line ЗНМ: 0300000164 [16:00:12]line РНМ: 0000000000092785 [16:00:12]line Версия ККМ: 001 [16:00:12]line Платежная система: O! деньги [16:00:12]line ФМ: 0000000000875093 [16:00:12]line ФД: 103464 [16:00:12]line ФПД: 53391397909522 [16:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160017&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103464&fm=53391397909522&tin=02508201610067®Number=0000000000092785&sum=363042 [16:00:12]written 0, free lines is 4095 [16:00:12]OFD Sender: Processing packet 103464 [packets to send 17, broken 16] [16:00:12]ProducePacketName [16:00:12]name=ofd_packets/00103464 [16:00:12]OFD Sender: To server: pG, [16:00:12]CommunicateWithHost lk.salyk.kg:30040 [16:00:12]ConnectInit lk.salyk.kg [16:00:12]Connected sock=10 [16:00:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 78 EF 08 01 A6 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 C2 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 8A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 8A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 8A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 11 AF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 94 01 00 35 04 06 00 30 8F 27 4E 74 12 4C 49 01 31 66 A9 9D 18 [16:00:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4F 2C 47 00 8D 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 94 01 00 F4 03 04 00 9D 55 71 66 B6 04 01 00 00 81 BE D1 47 F5 16 E6 00 [16:00:12]CommunicateWithHost err = 0 [16:00:12]CheckOFDResponse [16:00:12]1017 (14) - 77093643461234 [16:00:12]1041 (16) - 0000000000875093 [16:00:12]1040 (4) - 103464 [16:00:12]1012 (4) - 18.06.2024 09:38 [16:00:12]1206 (1) - 0 [16:00:12]OFD Sender: Remove packet 103464 [16:00:12]ProducePacketName [16:00:12]name=ofd_packets/00103464 [16:00:12]NVStorageDeleteData [16:00:12]Write to MH i2c: 01 00 00 9E 66 04 [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: 01 07 00 9E 66 00 00 00 00 00 09 0D 21 [16:00:12]RasterBufferAndPrint [16:00:12]line [16:00:12]line [16:00:12]line [16:00:12]line [16:00:12]line [16:00:12]written 0, free lines is 3343 [16:00:12]MH_Cut [16:00:12]Write to MH i2c: D1 01 00 A5 66 01 DD [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: D1 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: D1 01 00 [16:00:12]MH_I2C_Read... [16:00:12]Read from MH i2c: D1 01 00 A5 66 00 DC [16:00:12]Write to MH i2c: 01 00 00 A6 66 0C [16:00:12]Write i2c OK [16:00:12]MH_I2C_Read... [16:00:13]OFD Sender: No OFD packet to send [16:00:13]*** Cut start [16:00:13]*** Partial cut [16:00:13]*** CUTSNS_PIN = 1 [16:00:13]*** CUTSNS_PIN = 0 [16:00:13]*** Brake cut motor [16:00:14]Read from MH i2c: 01 [16:00:14]MH_I2C_Read... [16:00:14]*** Stop cut motor [16:00:14]*** Cut end [16:00:14]Read from MH i2c: 01 07 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: 01 07 00 A6 66 00 00 00 00 00 FF 0F 21 [16:00:14]process_action close_receipt done [16:00:14]requested_data is exist [16:00:14]produce_requested_data [16:00:14]requested_item fm.sn is exist - process it [16:00:14]wFMCommunicate request_size=4 [16:00:14]MH_SAM_APDU [16:00:14]CAPDU: 80 11 00 00 [16:00:14]Write to MH i2c: E2 08 00 A7 66 80 11 00 00 00 00 00 00 87 [16:00:14]Write i2c OK [16:00:14]MH_I2C_Read... [16:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:14]Read from MH i2c: E2 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 17 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 17 00 A7 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [16:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:00:14]wFMCommunicate OK [16:00:14]requested_item fd.num is exist - process it [16:00:14]SAM_PROTO_GetFieldsCounters [16:00:14]wFMCommunicate request_size=4 [16:00:14]MH_SAM_APDU [16:00:14]CAPDU: 80 13 00 00 [16:00:14]Write to MH i2c: E2 08 00 A8 66 80 13 00 00 00 00 00 00 8A [16:00:14]Write i2c OK [16:00:14]MH_I2C_Read... [16:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:14]Read from MH i2c: E2 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 62 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 62 00 A8 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:00:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:14]wFMCommunicate OK [16:00:14]SAM_PROTO_GetFieldsCounters done [16:00:14]requested_item shift.num is exist - process it [16:00:14]requested_item shift.opened is exist - process it [16:00:14]req_shift_opened [16:00:14]FM_GetShiftState [16:00:14]SAM_PROTO_GetShiftState [16:00:14]wFMCommunicate request_size=4 [16:00:14]MH_SAM_APDU [16:00:14]CAPDU: 80 13 01 00 [16:00:14]Write to MH i2c: E2 08 00 A9 66 80 13 01 00 00 00 00 00 8C [16:00:14]Write i2c OK [16:00:14]MH_I2C_Read... [16:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:14]Read from MH i2c: E2 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 0E 00 [16:00:14]MH_I2C_Read... [16:00:14]Read from MH i2c: E2 0E 00 A9 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0D [16:00:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:00:14]wFMCommunicate OK [16:00:14]SAM_PROTO_GetShiftState done [16:00:14]FM_GetShiftState done [16:00:14]req_shift_opened done [16:00:14]requested_item shift.open_date is exist - process it [16:00:14]req_shift_open_date [16:00:14]req_shift_open_date done [16:00:14]produce_requested_data done [16:00:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103464,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:00:14]process_action_free close_receipt [16:00:14]json_value_free [16:00:14]json_value_free done [16:00:14]process_json_proto returns [16:00:14]Send response to host [16:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103464,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:00:14]free response buf [16:00:14]execute_script done [16:00:14]execute_script returns [16:00:14]free content buf [16:00:14]Sock 9.Close socket [16:00:14]Sock 9.Thread stoped [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:11]accept exits with 7 [16:06:11]New connection [16:06:11]New thread 3067084132 created [16:06:11]Thread 3067227492 joined [16:06:11]Waiting for new connection... [16:06:11] Sock 7.Parse request [16:06:11]Sock 7.Check first char [16:06:11]Sock 7.First char is OK [16:06:11]request: POST /json_proto HTTP/1.0 [16:06:11]Method: POST [16:06:11]URL: /json_proto [16:06:11]Method is POST - this is cgi request [16:06:11]url: /json_proto [16:06:11]query_string will be loaded in cgi processing [16:06:11]execute_cgi json_proto POST (null) [16:06:11]execute_cgi path=json_proto method=POST [16:06:11]POST find Content-Length [16:06:11]Host: 172.17.38.133:8080 [16:06:11]Content-Length: 800 [16:06:11]Content-Type: application/json [16:06:11] [16:06:11]POST finish read [16:06:11]Found Content-Length = 800 [16:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:11]execute_script... [16:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:11]POST & json_proto [16:06:11]process_json_proto [16:06:11]json parsed OK: [16:06:11]protocol is kg_v1.0 [16:06:11]action value=close_receipt [16:06:11]process_action close_receipt [16:06:11]cmd_close_receipt [16:06:11]MH_GetDate [16:06:11]Write to MH i2c: F0 00 00 AA 66 FF [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: F0 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: F0 09 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: F0 09 00 AA 66 00 7A B0 71 66 BD 8F 7C 64 35 [16:06:11]GetLastDocTimeStamp 1718726417 [16:06:11]current date 1718726778 [16:06:11]FM_GetShiftState [16:06:11]SAM_PROTO_GetShiftState [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 13 01 00 [16:06:11]Write to MH i2c: E2 08 00 AB 66 80 13 01 00 00 00 00 00 8E [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0E 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0E 00 AB 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0F [16:06:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_GetShiftState done [16:06:11]FM_GetShiftState done [16:06:11]opened in 1718670284 [16:06:11]opened+sec_in_day 1718756684 [16:06:11]quantity*price = 20052 [16:06:11]sum+1 = 20054 [16:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 149 18.06.2024 16:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103465 ФПД: 67897902406059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103465&fm=67897902406059&tin=02508201610067®Number=0000000000092785&sum=20053 [16:06:12]StoreToDocumentArchive [16:06:12]shift 352 fd 103465 [16:06:12]save to /storage/0352/doc_00103465 [16:06:12]save last doc name /storage/0352/doc_00103465 to /storage/kkm_last_doc_name [16:06:12]save OK [16:06:12]Clear old archive folders... [16:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:12]tlvbuf is 01358C40 [16:06:12]SAM_PROTO_ClearQueue [16:06:12]wFMCommunicate request_size=4 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 09 00 00 [16:06:12]Write to MH i2c: E2 08 00 B8 66 80 09 00 00 00 00 00 00 90 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 B8 66 00 90 00 92 [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]SAM_PROTO_ClearQueue done [16:06:12]KKMCreateOFDPacket [16:06:12]OFDProtocolAddRootSTLVToBuf [16:06:12]FM_MakeSignedData [16:06:12]FM_MakeSignedData [16:06:12]SAM_PROTO_SignData [16:06:12]wFMCommunicate request_size=4 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 01 02 [16:06:12]Write to MH i2c: E2 08 00 B9 66 80 0D 01 02 00 00 00 00 98 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 B9 66 00 90 00 93 [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=255 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7A B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 94 01 00 35 04 06 00 3D [16:06:12]Write to MH i2c: E2 02 01 BA 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7A B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 94 01 00 35 04 06 00 3D 00 00 6D [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 BA 66 00 90 00 94 [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=10 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 02 02 05 C0 B6 5A 99 AB [16:06:12]Write to MH i2c: E2 0D 00 BB 66 80 0D 02 02 05 00 C0 B6 5A 99 AB 00 00 B9 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 03 00 BB 66 00 90 00 95 [16:06:12]RAPDU: 90 00 [16:06:12]wFMCommunicate OK [16:06:12]wFMCommunicate request_size=4 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 0D 03 02 [16:06:12]Write to MH i2c: E2 08 00 BC 66 80 0D 03 02 00 00 00 00 9D [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 0B 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 0B 00 BC 66 00 BD 39 8D 00 35 3D 63 6B 90 00 61 [16:06:12]RAPDU: BD 39 8D 00 35 3D 63 6B 90 00 [16:06:12]wFMCommunicate OK [16:06:12]SAM_PROTO_SignData done [16:06:12]FM_MakeSignedData done [16:06:12]CreateOFDProtocolMessage [16:06:12]wFMCommunicate request_size=4 [16:06:12]MH_SAM_APDU [16:06:12]CAPDU: 80 11 00 00 [16:06:12]Write to MH i2c: E2 08 00 BD 66 80 11 00 00 00 00 00 00 9D [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:12]Read from MH i2c: E2 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 17 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: E2 17 00 BD 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [16:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:06:12]wFMCommunicate OK [16:06:12]CreateOFDProtocolMessage done [16:06:12]OFDSenderStorePacket 103465 [16:06:12]StoreOFDPacket docnum=103465 [16:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 5F 07 01 2A A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7A B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 94 01 00 35 04 06 00 3D C0 B6 5A 99 AB BD 39 8D 00 35 3D 63 6B [16:06:12]CheckFolder [16:06:12]dirname=/storage/ofd_packets [16:06:12]CheckFolder done [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00103465 [16:06:12]NVStorageSaveData ofd_packets/00103465 [16:06:12]File name is /storage/ofd_packets/00103465 [16:06:12]Write 301 bytes [16:06:12]NVStorageSaveData done [16:06:12]OFDSenderStorePacket done [16:06:12]KKMCreateOFDPacket done [16:06:12]NVStorageSaveData kkm_last_timestamp [16:06:12]File name is /storage/kkm_last_timestamp [16:06:12]Write 4 bytes [16:06:12]NVStorageSaveData done [16:06:12]ExternCall_PrintAddStr [16:06:12]wPrintStart [16:06:12]Write to MH i2c: 01 00 00 BE 66 24 [16:06:12]OFD Sender: Processing packet 103465 [packets to send 17, broken 16] [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00103465 [16:06:12]OFD Sender: To server: pG, [16:06:12]CommunicateWithHost lk.salyk.kg:30040 [16:06:12]ConnectInit lk.salyk.kg [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 BE 66 00 00 00 00 00 FF 0F 39 [16:06:12]RasterBufferAndPrint [16:06:12]line Счет N : (1)672648 [16:06:12]line ИНН: 02508201610067 [16:06:12]line Контрольно-Кассовый Чек [16:06:12]line ПРОДАЖА [16:06:12]line ТРК (МРК, ГНК) : 32 [16:06:12]line Товар: 2710124130 [16:06:12]line Аи-92-К-5 [16:06:12]line 3.020 * 66.40 [16:06:12]line = 200.53 [16:06:12]line НДС 12% НСП 1% [16:06:12]line > о реализуемом товаре [16:06:12]line ИТОГО: 200.53 [16:06:12]line НСП 1% : 1.77 [16:06:12]line НДС 12% : 21.29 [16:06:12]line Наличными: 0.00 [16:06:12]line Безнал.: 200.53 [16:06:12]line Место: АЗС № 120 "Партнер Нефть" [16:06:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:06:12]line СНО: Общий режим [16:06:12]line Чек 149 18.06.2024 16:06 [16:06:12]line Смена: 352 ФФД: 1.0 [16:06:12]line ЗНМ: 0300000164 [16:06:12]line РНМ: 0000000000092785 [16:06:12]line Версия ККМ: 001 [16:06:12]line Платежная система: O! деньги [16:06:12]line ФМ: 0000000000875093 [16:06:12]line ФД: 103465 [16:06:12]line ФПД: 67897902406059 [16:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103465&fm=67897902406059&tin=02508201610067®Number=0000000000092785&sum=20053 [16:06:13]Connected sock=9 [16:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 5F 07 01 2A A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 7A B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 94 01 00 35 04 06 00 3D C0 B6 5A 99 AB BD 39 8D 00 35 3D 63 6B [16:06:13]written 0, free lines is 4095 [16:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 51 01 47 00 6A 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 94 01 00 F4 03 04 00 06 57 71 66 B6 04 01 00 00 2B E1 59 66 3B BF FD 74 [16:06:13]CommunicateWithHost err = 0 [16:06:13]CheckOFDResponse [16:06:13]1017 (14) - 77093643461234 [16:06:13]1041 (16) - 0000000000875093 [16:06:13]1040 (4) - 103465 [16:06:13]1012 (4) - 18.06.2024 09:44 [16:06:13]1206 (1) - 0 [16:06:13]OFD Sender: Remove packet 103465 [16:06:13]ProducePacketName [16:06:13]name=ofd_packets/00103465 [16:06:13]NVStorageDeleteData [16:06:13]Write to MH i2c: 01 00 00 E8 66 4E [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 E8 66 00 00 00 00 00 F0 0C 51 [16:06:13]RasterBufferAndPrint [16:06:13]line [16:06:13]line [16:06:13]line [16:06:13]line [16:06:13]line [16:06:13]written 0, free lines is 3319 [16:06:13]MH_Cut [16:06:13]Write to MH i2c: D1 01 00 EF 66 01 27 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: D1 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: D1 01 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: D1 01 00 EF 66 00 26 [16:06:13]Write to MH i2c: 01 00 00 F0 66 56 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:13]OFD Sender: No OFD packet to send [16:06:14]*** Cut start [16:06:14]*** Partial cut [16:06:14]*** CUTSNS_PIN = 1 [16:06:14]*** CUTSNS_PIN = 0 [16:06:14]*** Brake cut motor [16:06:14]Read from MH i2c: 01 [16:06:14]MH_I2C_Read... [16:06:14]*** Stop cut motor [16:06:14]*** Cut end [16:06:14]Read from MH i2c: 01 07 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 07 00 F0 66 00 00 00 00 00 FF 0F 6B [16:06:14]process_action close_receipt done [16:06:14]requested_data is exist [16:06:14]produce_requested_data [16:06:14]requested_item fm.sn is exist - process it [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 11 00 00 [16:06:14]Write to MH i2c: E2 08 00 F1 66 80 11 00 00 00 00 00 00 D1 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 F1 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [16:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:06:14]wFMCommunicate OK [16:06:14]requested_item fd.num is exist - process it [16:06:14]SAM_PROTO_GetFieldsCounters [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 00 00 [16:06:14]Write to MH i2c: E2 08 00 F2 66 80 13 00 00 00 00 00 00 D4 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:15]Read from MH i2c: E2 [16:06:15]MH_I2C_Read... [16:06:15]Read from MH i2c: E2 62 00 [16:06:15]MH_I2C_Read... [16:06:15]Read from MH i2c: E2 62 00 F2 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:15]wFMCommunicate OK [16:06:15]SAM_PROTO_GetFieldsCounters done [16:06:15]requested_item shift.num is exist - process it [16:06:15]requested_item shift.opened is exist - process it [16:06:15]req_shift_opened [16:06:15]FM_GetShiftState [16:06:15]SAM_PROTO_GetShiftState [16:06:15]wFMCommunicate request_size=4 [16:06:15]MH_SAM_APDU [16:06:15]CAPDU: 80 13 01 00 [16:06:15]Write to MH i2c: E2 08 00 F3 66 80 13 01 00 00 00 00 00 D6 [16:06:15]Write i2c OK [16:06:15]MH_I2C_Read... [16:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:15]Read from MH i2c: E2 [16:06:15]MH_I2C_Read... [16:06:15]Read from MH i2c: E2 0E 00 [16:06:15]MH_I2C_Read... [16:06:15]Read from MH i2c: E2 0E 00 F3 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 57 [16:06:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:06:15]wFMCommunicate OK [16:06:15]SAM_PROTO_GetShiftState done [16:06:15]FM_GetShiftState done [16:06:15]req_shift_opened done [16:06:15]requested_item shift.open_date is exist - process it [16:06:15]req_shift_open_date [16:06:15]req_shift_open_date done [16:06:15]produce_requested_data done [16:06:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103465,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:06:15]process_action_free close_receipt [16:06:15]json_value_free [16:06:15]json_value_free done [16:06:15]process_json_proto returns [16:06:15]Send response to host [16:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103465,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:06:15]free response buf [16:06:15]execute_script done [16:06:15]execute_script returns [16:06:15]free content buf [16:06:15]Sock 7.Close socket [16:06:15]Sock 7.Thread stoped [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:25]accept exits with 10 [16:07:25]New connection [16:07:25]New thread 3067227492 created [16:07:25]Thread 3067084132 joined [16:07:25]Waiting for new connection... [16:07:25] Sock 10.Parse request [16:07:25]Sock 10.Check first char [16:07:25]Sock 10.First char is OK [16:07:25]request: POST /json_proto HTTP/1.0 [16:07:25]Method: POST [16:07:25]URL: /json_proto [16:07:25]Method is POST - this is cgi request [16:07:25]url: /json_proto [16:07:25]query_string will be loaded in cgi processing [16:07:25]execute_cgi json_proto POST (null) [16:07:25]execute_cgi path=json_proto method=POST [16:07:25]POST find Content-Length [16:07:25]Host: 172.17.38.133:8080 [16:07:25]Content-Length: 682 [16:07:25]Content-Type: application/json [16:07:25] [16:07:25]POST finish read [16:07:25]Found Content-Length = 682 [16:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.950, "sum" : 1457.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1457.00, "payments": [ { "type": 0, "sum" : 1457.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:25]execute_script... [16:07: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)672649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.950, "sum" : 1457.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1457.00, "payments": [ { "type": 0, "sum" : 1457.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:25]POST & json_proto [16:07:25]process_json_proto [16:07:25]json parsed OK: [16:07:25]protocol is kg_v1.0 [16:07:25]action value=close_receipt [16:07:25]process_action close_receipt [16:07:25]cmd_close_receipt [16:07:25]MH_GetDate [16:07:25]Write to MH i2c: F0 00 00 F4 66 49 [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 09 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 09 00 F4 66 00 C5 B0 71 66 BD 8F 7C 64 CA [16:07:25]GetLastDocTimeStamp 1718726778 [16:07:25]current date 1718726853 [16:07:25]FM_GetShiftState [16:07:25]SAM_PROTO_GetShiftState [16:07:25]wFMCommunicate request_size=4 [16:07:25]MH_SAM_APDU [16:07:25]CAPDU: 80 13 01 00 [16:07:25]Write to MH i2c: E2 08 00 F5 66 80 13 01 00 00 00 00 00 D8 [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:25]Read from MH i2c: E2 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: E2 0E 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: E2 0E 00 F5 66 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 59 [16:07:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:07:25]wFMCommunicate OK [16:07:25]SAM_PROTO_GetShiftState done [16:07:25]FM_GetShiftState done [16:07:25]opened in 1718670284 [16:07:25]opened+sec_in_day 1718756684 [16:07:25]quantity*price = 145748 [16:07:25]sum+1 = 145749 [16:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1457.00 Внесено: 1470.00 СДАЧА: 13.00 НСП 1% : 12.90 НДС 12% : 154.78 Наличными: 1457.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 150 18.06.2024 16:07 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103466 ФПД: 197734628391064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103466&fm=197734628391064&tin=02508201610067®Number=0000000000092785&sum=145700 [16:07:26]StoreToDocumentArchive [16:07:26]shift 352 fd 103466 [16:07:26]save to /storage/0352/doc_00103466 [16:07:26]save last doc name /storage/0352/doc_00103466 to /storage/kkm_last_doc_name [16:07:26]save OK [16:07:26]Clear old archive folders... [16:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:26]tlvbuf is 0148B840 [16:07:26]SAM_PROTO_ClearQueue [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 09 00 00 [16:07:26]Write to MH i2c: E2 08 00 02 67 80 09 00 00 00 00 00 00 DB [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 02 67 00 90 00 DD [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]SAM_PROTO_ClearQueue done [16:07:26]KKMCreateOFDPacket [16:07:26]OFDProtocolAddRootSTLVToBuf [16:07:26]FM_MakeSignedData [16:07:26]FM_MakeSignedData [16:07:26]SAM_PROTO_SignData [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 01 02 [16:07:26]Write to MH i2c: E2 08 00 03 67 80 0D 01 02 00 00 00 00 E3 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 03 67 00 90 00 DE [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]wFMCommunicate request_size=255 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 54 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 3C 00 00 00 00 07 04 06 00 24 39 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C5 B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 94 01 00 35 04 06 00 B3 [16:07:26]Write to MH i2c: E2 02 01 04 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 54 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 3C 00 00 00 00 07 04 06 00 24 39 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C5 B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 94 01 00 35 04 06 00 B3 00 00 D2 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:27]Read from MH i2c: E2 03 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 03 00 04 67 00 90 00 DF [16:07:27]RAPDU: 90 00 [16:07:27]wFMCommunicate OK [16:07:27]wFMCommunicate request_size=10 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 0D 02 02 05 D6 AE 48 F8 98 [16:07:27]Write to MH i2c: E2 0D 00 05 67 80 0D 02 02 05 00 D6 AE 48 F8 98 00 00 4C [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 03 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 03 00 05 67 00 90 00 E0 [16:07:27]RAPDU: 90 00 [16:07:27]wFMCommunicate OK [16:07:27]wFMCommunicate request_size=4 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 0D 03 02 [16:07:27]Write to MH i2c: E2 08 00 06 67 80 0D 03 02 00 00 00 00 E8 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0B 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0B 00 06 67 00 B4 4E 99 79 4E B5 EA 11 90 00 FB [16:07:27]RAPDU: B4 4E 99 79 4E B5 EA 11 90 00 [16:07:27]wFMCommunicate OK [16:07:27]SAM_PROTO_SignData done [16:07:27]FM_MakeSignedData done [16:07:27]CreateOFDProtocolMessage [16:07:27]wFMCommunicate request_size=4 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 11 00 00 [16:07:27]Write to MH i2c: E2 08 00 07 67 80 11 00 00 00 00 00 00 E8 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 07 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [16:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:07:27]wFMCommunicate OK [16:07:27]CreateOFDProtocolMessage done [16:07:27]OFDSenderStorePacket 103466 [16:07:27]StoreOFDPacket docnum=103466 [16:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 40 20 07 01 C8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 54 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 3C 00 00 00 00 07 04 06 00 24 39 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C5 B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 94 01 00 35 04 06 00 B3 D6 AE 48 F8 98 B4 4E 99 79 4E B5 EA 11 [16:07:27]CheckFolder [16:07:27]dirname=/storage/ofd_packets [16:07:27]CheckFolder done [16:07:27]ProducePacketName [16:07:27]name=ofd_packets/00103466 [16:07:27]NVStorageSaveData ofd_packets/00103466 [16:07:27]File name is /storage/ofd_packets/00103466 [16:07:27]Write 301 bytes [16:07:27]NVStorageSaveData done [16:07:27]OFDSenderStorePacket done [16:07:27]KKMCreateOFDPacket done [16:07:27]NVStorageSaveData kkm_last_timestamp [16:07:27]File name is /storage/kkm_last_timestamp [16:07:27]Write 4 bytes [16:07:27]NVStorageSaveData done [16:07:27]ExternCall_PrintAddStr [16:07:27]wPrintStart [16:07:27]Write to MH i2c: 01 00 00 08 67 6F [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 08 67 00 00 00 00 00 FF 0F 84 [16:07:27]RasterBufferAndPrint [16:07:27]line Счет N : (1)672649 [16:07:27]line ИНН: 02508201610067 [16:07:27]line Контрольно-Кассовый Чек [16:07:27]line ПРОДАЖА [16:07:27]line ТРК (МРК, ГНК) : 32 [16:07:27]line Товар: 2710124130 [16:07:27]line Аи-92-К-5 [16:07:27]line 21.950 * 66.40 [16:07:27]line = 1457.48 [16:07:27]line НДС 12% НСП 1% [16:07:27]line > о реализуемом товаре [16:07:27]line ОКРУГЛЕНИЕ: -0.48 [16:07:27]line ИТОГО: 1457.00 [16:07:27]line Внесено: 1470.00 [16:07:27]line СДАЧА: 13.00 [16:07:27]line НСП 1% : 12.90 [16:07:27]line НДС 12% : 154.78 [16:07:27]line Наличными: 1457.00 [16:07:27]line Безнал.: 0.00 [16:07:27]line Место: АЗС № 120 "Партнер Нефть" [16:07:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:07:27]line СНО: Общий режим [16:07:27]line Чек 150 18.06.2024 16:07 [16:07:27]line Смена: 352 ФФД: 1.0 [16:07:27]line ЗНМ: 0300000164 [16:07:27]line РНМ: 0000000000092785 [16:07:27]line Версия ККМ: 001 [16:07:27]line ФМ: 0000000000875093 [16:07:27]line ФД: 103466 [16:07:27]line ФПД: 197734628391064 [16:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103466&fm=197734628391064&tin=02508201610067®Number=0000000000092785&sum=145700 [16:07:27]OFD Sender: Processing packet 103466 [packets to send 17, broken 16] [16:07:27]ProducePacketName [16:07:27]name=ofd_packets/00103466 [16:07:27]OFD Sender: To server: pG, [16:07:27]CommunicateWithHost lk.salyk.kg:30040 [16:07:27]ConnectInit lk.salyk.kg [16:07:27]written 0, free lines is 4095 [16:07:27]Connected sock=9 [16:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 40 20 07 01 C8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 54 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 3C 00 00 00 00 07 04 06 00 24 39 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C5 B0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 94 01 00 35 04 06 00 B3 D6 AE 48 F8 98 B4 4E 99 79 4E B5 EA 11 [16:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AE 75 47 00 C9 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 35 30 39 33 10 04 04 00 2A 94 01 00 F4 03 04 00 50 57 71 66 B6 04 01 00 00 1B 35 25 48 75 76 4E 48 [16:07:28]CommunicateWithHost err = 0 [16:07:28]CheckOFDResponse [16:07:28]1017 (14) - 77093643461234 [16:07:28]1041 (16) - 0000000000875093 [16:07:28]1040 (4) - 103466 [16:07:28]1012 (4) - 18.06.2024 09:45 [16:07:28]1206 (1) - 0 [16:07:28]OFD Sender: Remove packet 103466 [16:07:28]ProducePacketName [16:07:28]name=ofd_packets/00103466 [16:07:28]NVStorageDeleteData [16:07:28]Write to MH i2c: 01 00 00 33 67 9A [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: 01 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: 01 07 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: 01 07 00 33 67 00 00 00 00 00 DE 0C 8B [16:07:28]RasterBufferAndPrint [16:07:28]line [16:07:28]line [16:07:28]line [16:07:28]line [16:07:28]line [16:07:28]written 0, free lines is 3300 [16:07:28]MH_Cut [16:07:28]Write to MH i2c: D1 01 00 3A 67 01 73 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: D1 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: D1 01 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: D1 01 00 3A 67 00 72 [16:07:28]Write to MH i2c: 01 00 00 3B 67 A2 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]OFD Sender: No OFD packet to send [16:07:28]*** Cut start [16:07:28]*** Partial cut [16:07:28]*** CUTSNS_PIN = 1 [16:07:28]*** CUTSNS_PIN = 0 [16:07:29]*** Brake cut motor [16:07:29]Read from MH i2c: 01 [16:07:29]MH_I2C_Read... [16:07:29]*** Stop cut motor [16:07:29]*** Cut end [16:07:29]Read from MH i2c: 01 07 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: 01 07 00 3B 67 00 00 00 00 00 FF 0F B7 [16:07:29]process_action close_receipt done [16:07:29]requested_data is exist [16:07:29]produce_requested_data [16:07:29]requested_item fm.sn is exist - process it [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 11 00 00 [16:07:29]Write to MH i2c: E2 08 00 3C 67 80 11 00 00 00 00 00 00 1D [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 17 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 17 00 3C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [16:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:07:29]wFMCommunicate OK [16:07:29]requested_item fd.num is exist - process it [16:07:29]SAM_PROTO_GetFieldsCounters [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 13 00 00 [16:07:29]Write to MH i2c: E2 08 00 3D 67 80 13 00 00 00 00 00 00 20 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 62 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 62 00 3D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_GetFieldsCounters done [16:07:29]requested_item shift.num is exist - process it [16:07:29]requested_item shift.opened is exist - process it [16:07:29]req_shift_opened [16:07:29]FM_GetShiftState [16:07:29]SAM_PROTO_GetShiftState [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 13 01 00 [16:07:29]Write to MH i2c: E2 08 00 3E 67 80 13 01 00 00 00 00 00 22 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 3E 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A3 [16:07:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_GetShiftState done [16:07:29]FM_GetShiftState done [16:07:29]req_shift_opened done [16:07:29]requested_item shift.open_date is exist - process it [16:07:29]req_shift_open_date [16:07:29]req_shift_open_date done [16:07:29]produce_requested_data done [16:07:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103466,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:07:29]process_action_free close_receipt [16:07:29]json_value_free [16:07:29]json_value_free done [16:07:29]process_json_proto returns [16:07:29]Send response to host [16:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103466,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:07:29]free response buf [16:07:29]execute_script done [16:07:29]execute_script returns [16:07:29]free content buf [16:07:29]Sock 10.Close socket [16:07:29]Sock 10.Thread stoped [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:45]accept exits with 7 [16:10:45]New connection [16:10:45]New thread 3067084132 created [16:10:45]Thread 3067227492 joined [16:10:45]Waiting for new connection... [16:10:45] Sock 7.Parse request [16:10:45]Sock 7.Check first char [16:10:45]Sock 7.First char is OK [16:10:45]request: POST /json_proto HTTP/1.0 [16:10:45]Method: POST [16:10:45]URL: /json_proto [16:10:45]Method is POST - this is cgi request [16:10:45]url: /json_proto [16:10:45]query_string will be loaded in cgi processing [16:10:45]execute_cgi json_proto POST (null) [16:10:45]execute_cgi path=json_proto method=POST [16:10:45]POST find Content-Length [16:10:45]Host: 172.17.38.133:8080 [16:10:45]Content-Length: 1194 [16:10:45]Content-Type: application/json [16:10:45] [16:10:45]POST finish read [16:10:45]Found Content-Length = 1194 [16:10:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672650\u000A18.06.2024 15:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.060 x 66.40\u000A\u0418\u0422\u041E\u0413: 999.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43468\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:45]execute_script... [16:10:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672650\u000A18.06.2024 15:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.060 x 66.40\u000A\u0418\u0422\u041E\u0413: 999.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43468\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:45]POST & json_proto [16:10:45]process_json_proto [16:10:45]json parsed OK: [16:10:45]protocol is kg_v1.0 [16:10:45]action value=print_text [16:10:45]process_action print_text [16:10:45]cmd_print_text [16:10:45]ExternCall_PrintAddStr [16:10:45]wPrintStart [16:10:45]Write to MH i2c: 01 00 00 3F 67 A6 [16:10:45]Write i2c OK [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 [16:10:45]MH_I2C_Read... [16:10:45]Read from MH i2c: 01 07 00 3F 67 00 00 00 00 00 FF 0F BB [16:10:45]RasterBufferAndPrint [16:10:45]line *****ТОВАРНЫЙ ЧЕК***** [16:10:45]line АЗС 120 [16:10:45]line Партнер нефть [16:10:45]line 02508201610067 [16:10:45]line Кассир : Асанбаев Н. [16:10:45]line Счет N : (1)672650 [16:10:45]line 18.06.2024 15:48 [16:10:45]line ПРОДАЖА [16:10:45]line ТРК (МРК, ГНК): 42 [16:10:45]line Вид ГСМ : 2710124130 [16:10:45]line Аи-92-К-5 [16:10:45]line 15.060 x 66.40 [16:10:45]line ИТОГ: 999.98 [16:10:45]line Тип оплаты: Талоны: Топливная Карта [16:10:45]line 43468 [16:10:45]line ______________________ [16:10:45]line (подпись) [16:10:45]written 0, free lines is 4095 [16:10:46]Write to MH i2c: 01 00 00 53 67 BA [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: 01 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: 01 07 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: 01 07 00 53 67 00 00 00 00 00 11 0E E0 [16:10:46]RasterBufferAndPrint [16:10:46]line [16:10:46]line [16:10:46]line [16:10:46]line [16:10:46]line [16:10:46]written 0, free lines is 3602 [16:10:46]MH_Cut [16:10:46]Write to MH i2c: D1 01 00 5A 67 01 93 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: D1 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: D1 01 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: D1 01 00 5A 67 00 92 [16:10:46]Write to MH i2c: 01 00 00 5B 67 C2 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]*** Cut start [16:10:46]*** Partial cut [16:10:46]*** CUTSNS_PIN = 1 [16:10:46]*** CUTSNS_PIN = 0 [16:10:46]*** Brake cut motor [16:10:47]Read from MH i2c: 01 [16:10:47]MH_I2C_Read... [16:10:47]*** Stop cut motor [16:10:47]*** Cut end [16:10:47]Read from MH i2c: 01 07 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 07 00 5B 67 00 00 00 00 00 FF 0F D7 [16:10:47]process_action print_text done [16:10:47]requested_data is exist [16:10:47]produce_requested_data [16:10:47]requested_item fm.sn is exist - process it [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 11 00 00 [16:10:47]Write to MH i2c: E2 08 00 5C 67 80 11 00 00 00 00 00 00 3D [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 5C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [16:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:10:47]wFMCommunicate OK [16:10:47]requested_item fd.num is exist - process it [16:10:47]SAM_PROTO_GetFieldsCounters [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 13 00 00 [16:10:47]Write to MH i2c: E2 08 00 5D 67 80 13 00 00 00 00 00 00 40 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 62 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 62 00 5D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:10: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_GetFieldsCounters done [16:10:47]requested_item shift.num is exist - process it [16:10:47]requested_item shift.opened is exist - process it [16:10:47]req_shift_opened [16:10:47]FM_GetShiftState [16:10:47]SAM_PROTO_GetShiftState [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 13 01 00 [16:10:47]Write to MH i2c: E2 08 00 5E 67 80 13 01 00 00 00 00 00 42 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0E 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0E 00 5E 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C3 [16:10:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_GetShiftState done [16:10:47]FM_GetShiftState done [16:10:47]req_shift_opened done [16:10:47]requested_item shift.open_date is exist - process it [16:10:47]req_shift_open_date [16:10:47]req_shift_open_date done [16:10:47]produce_requested_data done [16:10:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103466,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:10:47]process_action_free print_text [16:10:47]json_value_free [16:10:47]json_value_free done [16:10:47]process_json_proto returns [16:10:47]Send response to host [16:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103466,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:10:47]free response buf [16:10:47]execute_script done [16:10:47]execute_script returns [16:10:47]free content buf [16:10:47]Sock 7.Close socket [16:10:47]Sock 7.Thread stoped [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:17]accept exits with 9 [16:16:17]New connection [16:16:17]New thread 3067227492 created [16:16:17]Thread 3067084132 joined [16:16:17]Waiting for new connection... [16:16:17] Sock 9.Parse request [16:16:17]Sock 9.Check first char [16:16:17]Sock 9.First char is OK [16:16:17]request: POST /json_proto HTTP/1.0 [16:16:17]Method: POST [16:16:17]URL: /json_proto [16:16:17]Method is POST - this is cgi request [16:16:17]url: /json_proto [16:16:17]query_string will be loaded in cgi processing [16:16:17]execute_cgi json_proto POST (null) [16:16:17]execute_cgi path=json_proto method=POST [16:16:17]POST find Content-Length [16:16:17]Host: 172.17.38.133:8080 [16:16:17]Content-Length: 682 [16:16:17]Content-Type: application/json [16:16:17] [16:16:17]POST finish read [16:16:17]Found Content-Length = 682 [16:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.010, "sum" : 1395.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1395.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:17]execute_script... [16:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.010, "sum" : 1395.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1395.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:17]POST & json_proto [16:16:17]process_json_proto [16:16:17]json parsed OK: [16:16:17]protocol is kg_v1.0 [16:16:17]action value=close_receipt [16:16:17]process_action close_receipt [16:16:17]cmd_close_receipt [16:16:17]MH_GetDate [16:16:17]Write to MH i2c: F0 00 00 5F 67 B5 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: F0 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: F0 09 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: F0 09 00 5F 67 00 D8 B2 71 66 BD 8F 7C 64 4B [16:16:17]GetLastDocTimeStamp 1718726853 [16:16:17]current date 1718727384 [16:16:17]FM_GetShiftState [16:16:17]SAM_PROTO_GetShiftState [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 13 01 00 [16:16:17]Write to MH i2c: E2 08 00 60 67 80 13 01 00 00 00 00 00 44 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 0E 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 0E 00 60 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C5 [16:16:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:16:17]wFMCommunicate OK [16:16:17]SAM_PROTO_GetShiftState done [16:16:17]FM_GetShiftState done [16:16:17]opened in 1718670284 [16:16:17]opened+sec_in_day 1718756684 [16:16:17]quantity*price = 139506 [16:16:17]sum+1 = 139507 [16:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1395.00 Внесено: 1395.00 СДАЧА: 0.00 НСП 1% : 12.35 НДС 12% : 148.15 Наличными: 1395.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 151 18.06.2024 16:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103467 ФПД: 280290861393886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161625&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103467&fm=280290861393886&tin=02508201610067®Number=0000000000092785&sum=139500 [16:16:18]StoreToDocumentArchive [16:16:18]shift 352 fd 103467 [16:16:18]save to /storage/0352/doc_00103467 [16:16:18]save last doc name /storage/0352/doc_00103467 to /storage/kkm_last_doc_name [16:16:18]save OK [16:16:18]Clear old archive folders... [16:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:18]tlvbuf is 01394FB0 [16:16:18]SAM_PROTO_ClearQueue [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 09 00 00 [16:16:18]Write to MH i2c: E2 08 00 6D 67 80 09 00 00 00 00 00 00 46 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 6D 67 00 90 00 48 [16:16:18]RAPDU: 90 00 [16:16:18]wFMCommunicate OK [16:16:18]SAM_PROTO_ClearQueue done [16:16:18]KKMCreateOFDPacket [16:16:18]OFDProtocolAddRootSTLVToBuf [16:16:18]FM_MakeSignedData [16:16:18]FM_MakeSignedData [16:16:18]SAM_PROTO_SignData [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 0D 01 02 [16:16:18]Write to MH i2c: E2 08 00 6E 67 80 0D 01 02 00 00 00 00 4E [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 6E 67 00 90 00 49 [16:16:18]RAPDU: 90 00 [16:16:18]wFMCommunicate OK [16:16:18]wFMCommunicate request_size=255 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 20 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D9 B2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 94 01 00 35 04 06 00 FE [16:16:18]Write to MH i2c: E2 02 01 6F 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 20 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D9 B2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 94 01 00 35 04 06 00 FE 00 00 02 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 6F 67 00 90 00 4A [16:16:18]RAPDU: 90 00 [16:16:18]wFMCommunicate OK [16:16:18]wFMCommunicate request_size=10 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 0D 02 02 05 EC 4D 3A 27 DE [16:16:18]Write to MH i2c: E2 0D 00 70 67 80 0D 02 02 05 00 EC 4D 3A 27 DE 00 00 D3 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:18]Read from MH i2c: E2 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: E2 03 00 70 67 00 90 00 4B [16:16:18]RAPDU: 90 00 [16:16:18]wFMCommunicate OK [16:16:18]wFMCommunicate request_size=4 [16:16:18]MH_SAM_APDU [16:16:18]CAPDU: 80 0D 03 02 [16:16:18]Write to MH i2c: E2 08 00 71 67 80 0D 03 02 00 00 00 00 53 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:19]OFD Sender: No OFD packet to send [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 0B 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 0B 00 71 67 00 34 BD 3A B7 78 D0 92 84 90 00 94 [16:16:19]RAPDU: 34 BD 3A B7 78 D0 92 84 90 00 [16:16:19]wFMCommunicate OK [16:16:19]SAM_PROTO_SignData done [16:16:19]FM_MakeSignedData done [16:16:19]CreateOFDProtocolMessage [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 11 00 00 [16:16:19]Write to MH i2c: E2 08 00 72 67 80 11 00 00 00 00 00 00 53 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 17 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 17 00 72 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [16:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:16:19]wFMCommunicate OK [16:16:19]CreateOFDProtocolMessage done [16:16:19]OFDSenderStorePacket 103467 [16:16:19]StoreOFDPacket docnum=103467 [16:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FB 9B 07 01 F1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 20 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D9 B2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 94 01 00 35 04 06 00 FE EC 4D 3A 27 DE 34 BD 3A B7 78 D0 92 84 [16:16:19]CheckFolder [16:16:19]dirname=/storage/ofd_packets [16:16:19]CheckFolder done [16:16:19]ProducePacketName [16:16:19]name=ofd_packets/00103467 [16:16:19]NVStorageSaveData ofd_packets/00103467 [16:16:19]File name is /storage/ofd_packets/00103467 [16:16:19]Write 301 bytes [16:16:19]NVStorageSaveData done [16:16:19]OFDSenderStorePacket done [16:16:19]KKMCreateOFDPacket done [16:16:19]NVStorageSaveData kkm_last_timestamp [16:16:19]File name is /storage/kkm_last_timestamp [16:16:19]Write 4 bytes [16:16:19]NVStorageSaveData done [16:16:19]ExternCall_PrintAddStr [16:16:19]wPrintStart [16:16:19]Write to MH i2c: 01 00 00 73 67 DA [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 73 67 00 00 00 00 00 FF 0F EF [16:16:19]RasterBufferAndPrint [16:16:19]line Счет N : (1)672652 [16:16:19]line ИНН: 02508201610067 [16:16:19]line Контрольно-Кассовый Чек [16:16:19]line ПРОДАЖА [16:16:19]line ТРК (МРК, ГНК) : 42 [16:16:19]line Товар: 2710124130 [16:16:19]line Аи-92-К-5 [16:16:19]line 21.010 * 66.40 [16:16:19]line = 1395.06 [16:16:19]line НДС 12% НСП 1% [16:16:19]line > о реализуемом товаре [16:16:19]line ОКРУГЛЕНИЕ: -0.06 [16:16:19]line ИТОГО: 1395.00 [16:16:19]line Внесено: 1395.00 [16:16:19]line СДАЧА: 0.00 [16:16:19]line НСП 1% : 12.35 [16:16:19]line НДС 12% : 148.15 [16:16:19]line Наличными: 1395.00 [16:16:19]line Безнал.: 0.00 [16:16:19]line Место: АЗС № 120 "Партнер Нефть" [16:16:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:16:19]line СНО: Общий режим [16:16:19]line Чек 151 18.06.2024 16:16 [16:16:19]line Смена: 352 ФФД: 1.0 [16:16:19]line ЗНМ: 0300000164 [16:16:19]line РНМ: 0000000000092785 [16:16:19]line Версия ККМ: 001 [16:16:19]line ФМ: 0000000000875093 [16:16:19]line ФД: 103467 [16:16:19]line ФПД: 280290861393886 [16:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161625&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103467&fm=280290861393886&tin=02508201610067®Number=0000000000092785&sum=139500 [16:16:19]OFD Sender: Processing packet 103467 [packets to send 17, broken 16] [16:16:19]ProducePacketName [16:16:19]name=ofd_packets/00103467 [16:16:19]OFD Sender: To server: pG, [16:16:19]CommunicateWithHost lk.salyk.kg:30040 [16:16:19]ConnectInit lk.salyk.kg [16:16:19]written 0, free lines is 4095 [16:16:19]Connected sock=10 [16:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FB 9B 07 01 F1 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 20 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 39 00 00 00 00 07 04 06 00 EC 20 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D9 B2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 94 01 00 35 04 06 00 FE EC 4D 3A 27 DE 34 BD 3A B7 78 D0 92 84 [16:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 47 E8 47 00 2A 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 35 30 39 33 10 04 04 00 2B 94 01 00 F4 03 04 00 64 59 71 66 B6 04 01 00 00 0B 66 43 A6 B0 BB 67 83 [16:16:19]CommunicateWithHost err = 0 [16:16:19]CheckOFDResponse [16:16:19]1017 (14) - 77093643461234 [16:16:19]1041 (16) - 0000000000875093 [16:16:19]1040 (4) - 103467 [16:16:19]1012 (4) - 18.06.2024 09:54 [16:16:19]1206 (1) - 0 [16:16:19]OFD Sender: Remove packet 103467 [16:16:19]ProducePacketName [16:16:19]name=ofd_packets/00103467 [16:16:19]NVStorageDeleteData [16:16:19]Write to MH i2c: 01 00 00 9E 67 05 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 9E 67 00 00 00 00 00 DC 0C F4 [16:16:19]RasterBufferAndPrint [16:16:19]line [16:16:19]line [16:16:19]line [16:16:19]line [16:16:19]line [16:16:19]written 0, free lines is 3302 [16:16:19]MH_Cut [16:16:19]Write to MH i2c: D1 01 00 A5 67 01 DE [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: D1 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: D1 01 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: D1 01 00 A5 67 00 DD [16:16:19]Write to MH i2c: 01 00 00 A6 67 0D [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:20]OFD Sender: No OFD packet to send [16:16:20]*** Cut start [16:16:20]*** Partial cut [16:16:20]*** CUTSNS_PIN = 1 [16:16:20]*** CUTSNS_PIN = 0 [16:16:20]*** Brake cut motor [16:16:21]Read from MH i2c: 01 [16:16:21]MH_I2C_Read... [16:16:21]*** Stop cut motor [16:16:21]*** Cut end [16:16:21]Read from MH i2c: 01 07 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: 01 07 00 A6 67 00 00 00 00 00 FF 0F 22 [16:16:21]process_action close_receipt done [16:16:21]requested_data is exist [16:16:21]produce_requested_data [16:16:21]requested_item fm.sn is exist - process it [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 11 00 00 [16:16:21]Write to MH i2c: E2 08 00 A7 67 80 11 00 00 00 00 00 00 88 [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 17 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 17 00 A7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [16:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:16:21]wFMCommunicate OK [16:16:21]requested_item fd.num is exist - process it [16:16:21]SAM_PROTO_GetFieldsCounters [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 13 00 00 [16:16:21]Write to MH i2c: E2 08 00 A8 67 80 13 00 00 00 00 00 00 8B [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 62 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 62 00 A8 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:21]wFMCommunicate OK [16:16:21]SAM_PROTO_GetFieldsCounters done [16:16:21]requested_item shift.num is exist - process it [16:16:21]requested_item shift.opened is exist - process it [16:16:21]req_shift_opened [16:16:21]FM_GetShiftState [16:16:21]SAM_PROTO_GetShiftState [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 13 01 00 [16:16:21]Write to MH i2c: E2 08 00 A9 67 80 13 01 00 00 00 00 00 8D [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 A9 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0E [16:16:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:16:21]wFMCommunicate OK [16:16:21]SAM_PROTO_GetShiftState done [16:16:21]FM_GetShiftState done [16:16:21]req_shift_opened done [16:16:21]requested_item shift.open_date is exist - process it [16:16:21]req_shift_open_date [16:16:21]req_shift_open_date done [16:16:21]produce_requested_data done [16:16:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103467,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:16:21]process_action_free close_receipt [16:16:21]json_value_free [16:16:21]json_value_free done [16:16:21]process_json_proto returns [16:16:21]Send response to host [16:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103467,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:16:21]free response buf [16:16:21]execute_script done [16:16:21]execute_script returns [16:16:21]free content buf [16:16:21]Sock 9.Close socket [16:16:21]Sock 9.Thread stoped [16:16:25]OFD Sender: No OFD packet to send [16:16:26]int [16:16:26]Write to MH i2c: 01 00 00 AA 67 11 [16:16:26]*** FLAG_PRN_PAP1 set [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 AA 67 00 01 00 00 00 FF 0F 27 [16:16:26]state=0 [16:16:26]No paper [16:16:26]int [16:16:26]Write to MH i2c: 01 00 00 AB 67 12 [16:16:26]*** FLAG_PRN_PAP2 set [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: 01 07 00 AB 67 00 03 00 00 00 FF 0F 2A [16:16:26]state=0 [16:16:26]No paper [16:16:26]Cover opened [16:16:29]int [16:16:29]Write to MH i2c: 01 00 00 AC 67 13 [16:16:29]*** FLAG_PRN_PAP1 reset [16:16:29]*** FLAG_PRN_PAP2 reset [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 AC 67 00 00 00 00 00 FF 0F 28 [16:16:29]state=3 [16:16:29]Cover closed [16:16:30]int [16:16:30]Write to MH i2c: 01 00 00 AD 67 14 [16:16:30]*** FLAG_PRN_KEY set [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 AD 67 00 08 00 00 00 FF 0F 31 [16:16:30]state=0 [16:16:30]Key pressed [16:16:30]Feed [16:16:30]Write to MH i2c: D8 00 00 AE 67 EC [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: D8 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: D8 01 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: D8 01 00 AE 67 00 ED [16:16:30]int [16:16:30]Write to MH i2c: 01 00 00 AF 67 16 [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 AF 67 00 48 00 00 00 3C 00 A1 [16:16:30]state=2 [16:16:30]Key pressed [16:16:30]OFD Sender: No OFD packet to send [16:16:30]int [16:16:30]Write to MH i2c: 01 00 00 B0 67 17 [16:16:30]*** FLAG_PRN_KEY reset [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 B0 67 00 00 00 00 00 FF 0F 2C [16:16:30]state=2 [16:16:30]Stop feed [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:25]accept exits with 7 [16:19:25]New connection [16:19:25]New thread 3067084132 created [16:19:25]Thread 3067227492 joined [16:19:25]Waiting for new connection... [16:19:25] Sock 7.Parse request [16:19:25]Sock 7.Check first char [16:19:25]Sock 7.First char is OK [16:19:25]request: POST /json_proto HTTP/1.0 [16:19:25]Method: POST [16:19:25]URL: /json_proto [16:19:25]Method is POST - this is cgi request [16:19:25]url: /json_proto [16:19:25]query_string will be loaded in cgi processing [16:19:25]execute_cgi json_proto POST (null) [16:19:25]execute_cgi path=json_proto method=POST [16:19:25]POST find Content-Length [16:19:25]Host: 172.17.38.133:8080 [16:19:25]Content-Length: 677 [16:19:25]Content-Type: application/json [16:19:25] [16:19:25]POST finish read [16:19:25]Found Content-Length = 677 [16:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:25]execute_script... [16:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:25]POST & json_proto [16:19:25]process_json_proto [16:19:25]json parsed OK: [16:19:25]protocol is kg_v1.0 [16:19:25]action value=close_receipt [16:19:25]process_action close_receipt [16:19:25]cmd_close_receipt [16:19:25]MH_GetDate [16:19:25]Write to MH i2c: F0 00 00 B1 67 07 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: F0 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: F0 09 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: F0 09 00 B1 67 00 95 B3 71 66 BD 8F 7C 64 5B [16:19:25]GetLastDocTimeStamp 1718727385 [16:19:25]current date 1718727573 [16:19:25]FM_GetShiftState [16:19:25]SAM_PROTO_GetShiftState [16:19:25]wFMCommunicate request_size=4 [16:19:25]MH_SAM_APDU [16:19:25]CAPDU: 80 13 01 00 [16:19:25]Write to MH i2c: E2 08 00 B2 67 80 13 01 00 00 00 00 00 96 [16:19:25]Write i2c OK [16:19:25]MH_I2C_Read... [16:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:25]Read from MH i2c: E2 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0E 00 [16:19:25]MH_I2C_Read... [16:19:25]Read from MH i2c: E2 0E 00 B2 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 17 [16:19:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:19:25]wFMCommunicate OK [16:19:25]SAM_PROTO_GetShiftState done [16:19:25]FM_GetShiftState done [16:19:25]opened in 1718670284 [16:19:25]opened+sec_in_day 1718756684 [16:19:25]quantity*price = 25032 [16:19:25]sum+1 = 25034 [16:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 152 18.06.2024 16:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103468 ФПД: 50303470830946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161933&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103468&fm=50303470830946&tin=02508201610067®Number=0000000000092785&sum=25000 [16:19:26]StoreToDocumentArchive [16:19:26]shift 352 fd 103468 [16:19:26]save to /storage/0352/doc_00103468 [16:19:26]save last doc name /storage/0352/doc_00103468 to /storage/kkm_last_doc_name [16:19:26]save OK [16:19:26]Clear old archive folders... [16:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:26]tlvbuf is 013881D0 [16:19:26]SAM_PROTO_ClearQueue [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 09 00 00 [16:19:26]Write to MH i2c: E2 08 00 BF 67 80 09 00 00 00 00 00 00 98 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 BF 67 00 90 00 9A [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_ClearQueue done [16:19:26]KKMCreateOFDPacket [16:19:26]OFDProtocolAddRootSTLVToBuf [16:19:26]FM_MakeSignedData [16:19:26]FM_MakeSignedData [16:19:26]SAM_PROTO_SignData [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 01 02 [16:19:26]Write to MH i2c: E2 08 00 C0 67 80 0D 01 02 00 00 00 00 A0 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 03 00 C0 67 00 90 00 9B [16:19:26]RAPDU: 90 00 [16:19:26]wFMCommunicate OK [16:19:26]wFMCommunicate request_size=255 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 95 B3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 94 01 00 35 04 06 00 2D [16:19:26]Write to MH i2c: E2 02 01 C1 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 95 B3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 94 01 00 35 04 06 00 2D 00 00 0C [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 C1 67 00 90 00 9C [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=10 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 02 02 05 C0 30 82 85 62 [16:19:27]Write to MH i2c: E2 0D 00 C2 67 80 0D 02 02 05 00 C0 30 82 85 62 00 00 06 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 C2 67 00 90 00 9D [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 03 02 [16:19:27]Write to MH i2c: E2 08 00 C3 67 80 0D 03 02 00 00 00 00 A5 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 C3 67 00 A7 AD 8C 58 89 1A 7B BE 90 00 BA [16:19:27]RAPDU: A7 AD 8C 58 89 1A 7B BE 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_SignData done [16:19:27]FM_MakeSignedData done [16:19:27]CreateOFDProtocolMessage [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 11 00 00 [16:19:27]Write to MH i2c: E2 08 00 C4 67 80 11 00 00 00 00 00 00 A5 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 17 00 C4 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [16:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:19:27]wFMCommunicate OK [16:19:27]CreateOFDProtocolMessage done [16:19:27]OFDSenderStorePacket 103468 [16:19:27]StoreOFDPacket docnum=103468 [16:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 31 E0 07 01 DB 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 95 B3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 94 01 00 35 04 06 00 2D C0 30 82 85 62 A7 AD 8C 58 89 1A 7B BE [16:19:27]CheckFolder [16:19:27]dirname=/storage/ofd_packets [16:19:27]CheckFolder done [16:19:27]ProducePacketName [16:19:27]name=ofd_packets/00103468 [16:19:27]NVStorageSaveData ofd_packets/00103468 [16:19:27]File name is /storage/ofd_packets/00103468 [16:19:27]Write 301 bytes [16:19:27]NVStorageSaveData done [16:19:27]OFDSenderStorePacket done [16:19:27]KKMCreateOFDPacket done [16:19:27]NVStorageSaveData kkm_last_timestamp [16:19:27]File name is /storage/kkm_last_timestamp [16:19:27]Write 4 bytes [16:19:27]NVStorageSaveData done [16:19:27]ExternCall_PrintAddStr [16:19:27]wPrintStart [16:19:27]Write to MH i2c: 01 00 00 C5 67 2C [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 07 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: 01 07 00 C5 67 00 00 00 00 00 FF 0F 41 [16:19:27]RasterBufferAndPrint [16:19:27]line Счет N : (1)672653 [16:19:27]line ИНН: 02508201610067 [16:19:27]line Контрольно-Кассовый Чек [16:19:27]line ПРОДАЖА [16:19:27]line ТРК (МРК, ГНК) : 42 [16:19:27]line Товар: 2710124130 [16:19:27]line Аи-92-К-5 [16:19:27]line 3.770 * 66.40 [16:19:27]line = 250.33 [16:19:27]line НДС 12% НСП 1% [16:19:27]line > о реализуемом товаре [16:19:27]line ОКРУГЛЕНИЕ: -0.33 [16:19:27]line ИТОГО: 250.00 [16:19:27]line Внесено: 250.00 [16:19:27]line СДАЧА: 0.00 [16:19:27]line НСП 1% : 2.21 [16:19:27]line НДС 12% : 26.58 [16:19:27]line Наличными: 250.00 [16:19:27]line Безнал.: 0.00 [16:19:27]line Место: АЗС № 120 "Партнер Нефть" [16:19:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:19:27]line СНО: Общий режим [16:19:27]line Чек 152 18.06.2024 16:19 [16:19:27]line Смена: 352 ФФД: 1.0 [16:19:27]line ЗНМ: 0300000164 [16:19:27]line РНМ: 0000000000092785 [16:19:27]line Версия ККМ: 001 [16:19:27]line ФМ: 0000000000875093 [16:19:27]line ФД: 103468 [16:19:27]line ФПД: 50303470830946 [16:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161933&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103468&fm=50303470830946&tin=02508201610067®Number=0000000000092785&sum=25000 [16:19:27]written 0, free lines is 4095 [16:19:27]OFD Sender: Processing packet 103468 [packets to send 17, broken 16] [16:19:27]ProducePacketName [16:19:27]name=ofd_packets/00103468 [16:19:27]OFD Sender: To server: pG, [16:19:27]CommunicateWithHost lk.salyk.kg:30040 [16:19:27]ConnectInit lk.salyk.kg [16:19:27]Connected sock=10 [16:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 31 E0 07 01 DB 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 95 B3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 94 01 00 35 04 06 00 2D C0 30 82 85 62 A7 AD 8C 58 89 1A 7B BE [16:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 46 DA 47 00 C4 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 94 01 00 F4 03 04 00 20 5A 71 66 B6 04 01 00 00 06 5E A9 98 5A 29 6B 26 [16:19:28]CommunicateWithHost err = 0 [16:19:28]CheckOFDResponse [16:19:28]1017 (14) - 77093643461234 [16:19:28]1041 (16) - 0000000000875093 [16:19:28]1040 (4) - 103468 [16:19:28]1012 (4) - 18.06.2024 09:57 [16:19:28]1206 (1) - 0 [16:19:28]OFD Sender: Remove packet 103468 [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00103468 [16:19:28]NVStorageDeleteData [16:19:28]Write to MH i2c: 01 00 00 F0 67 57 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 F0 67 00 00 00 00 00 E9 0C 53 [16:19:28]RasterBufferAndPrint [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]written 0, free lines is 3311 [16:19:28]MH_Cut [16:19:28]Write to MH i2c: D1 01 00 F7 67 01 30 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 F7 67 00 2F [16:19:28]Write to MH i2c: 01 00 00 F8 67 5F [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]OFD Sender: No OFD packet to send [16:19:28]*** Cut start [16:19:28]*** Partial cut [16:19:28]*** CUTSNS_PIN = 1 [16:19:28]*** CUTSNS_PIN = 0 [16:19:29]*** Brake cut motor [16:19:29]Read from MH i2c: 01 [16:19:29]MH_I2C_Read... [16:19:29]*** Stop cut motor [16:19:29]*** Cut end [16:19:29]Read from MH i2c: 01 07 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 F8 67 00 00 00 00 00 FF 0F 74 [16:19:29]process_action close_receipt done [16:19:29]requested_data is exist [16:19:29]produce_requested_data [16:19:29]requested_item fm.sn is exist - process it [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 11 00 00 [16:19:29]Write to MH i2c: E2 08 00 F9 67 80 11 00 00 00 00 00 00 DA [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 F9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [16:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:19:29]wFMCommunicate OK [16:19:29]requested_item fd.num is exist - process it [16:19:29]SAM_PROTO_GetFieldsCounters [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 13 00 00 [16:19:29]Write to MH i2c: E2 08 00 FA 67 80 13 00 00 00 00 00 00 DD [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 62 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 62 00 FA 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:29]wFMCommunicate OK [16:19:29]SAM_PROTO_GetFieldsCounters done [16:19:29]requested_item shift.num is exist - process it [16:19:29]requested_item shift.opened is exist - process it [16:19:29]req_shift_opened [16:19:29]FM_GetShiftState [16:19:29]SAM_PROTO_GetShiftState [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 13 01 00 [16:19:29]Write to MH i2c: E2 08 00 FB 67 80 13 01 00 00 00 00 00 DF [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0E 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0E 00 FB 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 60 [16:19:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:19:29]wFMCommunicate OK [16:19:29]SAM_PROTO_GetShiftState done [16:19:29]FM_GetShiftState done [16:19:29]req_shift_opened done [16:19:29]requested_item shift.open_date is exist - process it [16:19:29]req_shift_open_date [16:19:29]req_shift_open_date done [16:19:29]produce_requested_data done [16:19:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103468,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:19:29]process_action_free close_receipt [16:19:29]json_value_free [16:19:29]json_value_free done [16:19:29]process_json_proto returns [16:19:29]Send response to host [16:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103468,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:19:29]free response buf [16:19:29]execute_script done [16:19:29]execute_script returns [16:19:29]free content buf [16:19:29]Sock 7.Close socket [16:19:29]Sock 7.Thread stoped [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:18]accept exits with 9 [16:22:18]New connection [16:22:18]New thread 3067227492 created [16:22:18]Thread 3067084132 joined [16:22:18]Waiting for new connection... [16:22:18] Sock 9.Parse request [16:22:18]Sock 9.Check first char [16:22:18]Sock 9.First char is OK [16:22:18]request: POST /json_proto HTTP/1.0 [16:22:18]Method: POST [16:22:18]URL: /json_proto [16:22:18]Method is POST - this is cgi request [16:22:18]url: /json_proto [16:22:18]query_string will be loaded in cgi processing [16:22:18]execute_cgi json_proto POST (null) [16:22:18]execute_cgi path=json_proto method=POST [16:22:18]POST find Content-Length [16:22:18]Host: 172.17.38.133:8080 [16:22:18]Content-Length: 817 [16:22:18]Content-Type: application/json [16:22:18] [16:22:18]POST finish read [16:22:18]Found Content-Length = 817 [16:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:18]execute_script... [16:22: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)672654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:18]POST & json_proto [16:22:18]process_json_proto [16:22:18]json parsed OK: [16:22:18]protocol is kg_v1.0 [16:22:18]action value=close_receipt [16:22:18]process_action close_receipt [16:22:18]cmd_close_receipt [16:22:18]MH_GetDate [16:22:18]Write to MH i2c: F0 00 00 FC 67 52 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: F0 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: F0 09 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: F0 09 00 FC 67 00 42 B4 71 66 BD 8F 7C 64 54 [16:22:18]GetLastDocTimeStamp 1718727573 [16:22:18]current date 1718727746 [16:22:18]FM_GetShiftState [16:22:18]SAM_PROTO_GetShiftState [16:22:18]wFMCommunicate request_size=4 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 13 01 00 [16:22:18]Write to MH i2c: E2 08 00 FD 67 80 13 01 00 00 00 00 00 E1 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 0E 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 0E 00 FD 67 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 62 [16:22:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:22:18]wFMCommunicate OK [16:22:18]SAM_PROTO_GetShiftState done [16:22:18]FM_GetShiftState done [16:22:18]opened in 1718670284 [16:22:18]opened+sec_in_day 1718756684 [16:22:18]quantity*price = 66400 [16:22:18]sum+1 = 66401 [16:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 153 18.06.2024 16:22 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103469 ФПД: 136604678152750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103469&fm=136604678152750&tin=02508201610067®Number=0000000000092785&sum=66400 [16:22:20]StoreToDocumentArchive [16:22:20]shift 352 fd 103469 [16:22:20]save to /storage/0352/doc_00103469 [16:22:20]save last doc name /storage/0352/doc_00103469 to /storage/kkm_last_doc_name [16:22:20]save OK [16:22:20]Clear old archive folders... [16:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:20]tlvbuf is 013EBE50 [16:22:20]SAM_PROTO_ClearQueue [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 09 00 00 [16:22:20]Write to MH i2c: E2 08 00 0A 68 80 09 00 00 00 00 00 00 E4 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 0A 68 00 90 00 E6 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]SAM_PROTO_ClearQueue done [16:22:20]KKMCreateOFDPacket [16:22:20]OFDProtocolAddRootSTLVToBuf [16:22:20]FM_MakeSignedData [16:22:20]FM_MakeSignedData [16:22:20]SAM_PROTO_SignData [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 01 02 [16:22:20]Write to MH i2c: E2 08 00 0B 68 80 0D 01 02 00 00 00 00 EC [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 0B 68 00 90 00 E7 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=255 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 42 B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 94 01 00 35 04 06 00 7C [16:22:20]Write to MH i2c: E2 02 01 0C 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 42 B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 94 01 00 35 04 06 00 7C 00 00 61 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 0C 68 00 90 00 E8 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=10 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 02 02 05 3D C1 50 E2 2E [16:22:20]Write to MH i2c: E2 0D 00 0D 68 80 0D 02 02 05 00 3D C1 50 E2 2E 00 00 57 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 0D 68 00 90 00 E9 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 03 02 [16:22:20]Write to MH i2c: E2 08 00 0E 68 80 0D 03 02 00 00 00 00 F1 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 0B 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 0B 00 0E 68 00 FC AB 99 33 C1 D3 08 B3 90 00 B4 [16:22:20]RAPDU: FC AB 99 33 C1 D3 08 B3 90 00 [16:22:20]wFMCommunicate OK [16:22:20]SAM_PROTO_SignData done [16:22:20]FM_MakeSignedData done [16:22:20]CreateOFDProtocolMessage [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 11 00 00 [16:22:20]Write to MH i2c: E2 08 00 0F 68 80 11 00 00 00 00 00 00 F1 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 17 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 17 00 0F 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [16:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:20]wFMCommunicate OK [16:22:20]CreateOFDProtocolMessage done [16:22:20]OFDSenderStorePacket 103469 [16:22:20]StoreOFDPacket docnum=103469 [16:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EF 62 07 01 CC 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 42 B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 94 01 00 35 04 06 00 7C 3D C1 50 E2 2E FC AB 99 33 C1 D3 08 B3 [16:22:20]CheckFolder [16:22:20]dirname=/storage/ofd_packets [16:22:20]CheckFolder done [16:22:20]ProducePacketName [16:22:20]name=ofd_packets/00103469 [16:22:20]NVStorageSaveData ofd_packets/00103469 [16:22:20]File name is /storage/ofd_packets/00103469 [16:22:20]Write 301 bytes [16:22:20]NVStorageSaveData done [16:22:20]OFDSenderStorePacket done [16:22:20]KKMCreateOFDPacket done [16:22:20]NVStorageSaveData kkm_last_timestamp [16:22:20]File name is /storage/kkm_last_timestamp [16:22:20]Write 4 bytes [16:22:20]NVStorageSaveData done [16:22:20]ExternCall_PrintAddStr [16:22:20]wPrintStart [16:22:20]Write to MH i2c: 01 00 00 10 68 78 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 07 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 07 00 10 68 00 00 00 00 00 FF 0F 8D [16:22:20]RasterBufferAndPrint [16:22:20]line Счет N : (1)672654 [16:22:20]line ИНН: 02508201610067 [16:22:20]line Контрольно-Кассовый Чек [16:22:20]line ПРОДАЖА [16:22:20]line ТРК (МРК, ГНК) : 32 [16:22:20]line Товар: 2710124130 [16:22:20]line Аи-92-К-5 [16:22:20]line 10.000 * 66.40 [16:22:20]line = 664.00 [16:22:20]line НДС 12% НСП 1% [16:22:20]line > о реализуемом товаре [16:22:20]line ИТОГО: 664.00 [16:22:20]line НСП 1% : 5.88 [16:22:20]line НДС 12% : 70.51 [16:22:20]line Наличными: 0.00 [16:22:20]line Безнал.: 664.00 [16:22:20]line Место: АЗС № 120 "Партнер Нефть" [16:22:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:22:20]line СНО: Общий режим [16:22:20]line Чек 153 18.06.2024 16:22 [16:22:20]line Смена: 352 ФФД: 1.0 [16:22:20]line ЗНМ: 0300000164 [16:22:20]line РНМ: 0000000000092785 [16:22:20]line Версия ККМ: 001 [16:22:20]line Платежная система: Бакай Банк [16:22:20]line ФМ: 0000000000875093 [16:22:20]line ФД: 103469 [16:22:20]line ФПД: 136604678152750 [16:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103469&fm=136604678152750&tin=02508201610067®Number=0000000000092785&sum=66400 [16:22:20]written 0, free lines is 4095 [16:22:20]OFD Sender: Processing packet 103469 [packets to send 17, broken 16] [16:22:20]ProducePacketName [16:22:20]name=ofd_packets/00103469 [16:22:20]OFD Sender: To server: pG, [16:22:20]CommunicateWithHost lk.salyk.kg:30040 [16:22:20]ConnectInit lk.salyk.kg [16:22:21]Connected sock=10 [16:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EF 62 07 01 CC 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 42 B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 94 01 00 35 04 06 00 7C 3D C1 50 E2 2E FC AB 99 33 C1 D3 08 B3 [16:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 69 D4 47 00 A2 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 94 01 00 F4 03 04 00 CE 5A 71 66 B6 04 01 00 00 14 81 28 9D 8A 5D BD A6 [16:22:21]CommunicateWithHost err = 0 [16:22:21]CheckOFDResponse [16:22:21]1017 (14) - 77093643461234 [16:22:21]1041 (16) - 0000000000875093 [16:22:21]1040 (4) - 103469 [16:22:21]1012 (4) - 18.06.2024 10:00 [16:22:21]1206 (1) - 0 [16:22:21]OFD Sender: Remove packet 103469 [16:22:21]ProducePacketName [16:22:21]name=ofd_packets/00103469 [16:22:21]NVStorageDeleteData [16:22:21]Write to MH i2c: 01 00 00 3A 68 A2 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 3A 68 00 00 00 00 00 EC 0C A1 [16:22:21]RasterBufferAndPrint [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]written 0, free lines is 3317 [16:22:21]MH_Cut [16:22:21]Write to MH i2c: D1 01 00 41 68 01 7B [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 01 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 01 00 41 68 00 7A [16:22:21]Write to MH i2c: 01 00 00 42 68 AA [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]OFD Sender: No OFD packet to send [16:22:22]*** Cut start [16:22:22]*** Partial cut [16:22:22]*** CUTSNS_PIN = 1 [16:22:22]*** CUTSNS_PIN = 0 [16:22:22]*** Brake cut motor [16:22:22]Read from MH i2c: 01 [16:22:22]MH_I2C_Read... [16:22:22]*** Stop cut motor [16:22:22]*** Cut end [16:22:22]Read from MH i2c: 01 07 00 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: 01 07 00 42 68 00 00 00 00 00 FF 0F BF [16:22:22]process_action close_receipt done [16:22:22]requested_data is exist [16:22:22]produce_requested_data [16:22:22]requested_item fm.sn is exist - process it [16:22:22]wFMCommunicate request_size=4 [16:22:22]MH_SAM_APDU [16:22:22]CAPDU: 80 11 00 00 [16:22:22]Write to MH i2c: E2 08 00 43 68 80 11 00 00 00 00 00 00 25 [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:22]Read from MH i2c: E2 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: E2 17 00 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: E2 17 00 43 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [16:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:22]wFMCommunicate OK [16:22:22]requested_item fd.num is exist - process it [16:22:22]SAM_PROTO_GetFieldsCounters [16:22:22]wFMCommunicate request_size=4 [16:22:22]MH_SAM_APDU [16:22:22]CAPDU: 80 13 00 00 [16:22:22]Write to MH i2c: E2 08 00 44 68 80 13 00 00 00 00 00 00 28 [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:22]Read from MH i2c: E2 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: E2 62 00 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: E2 62 00 44 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [16:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:22]wFMCommunicate OK [16:22:22]SAM_PROTO_GetFieldsCounters done [16:22:22]requested_item shift.num is exist - process it [16:22:22]requested_item shift.opened is exist - process it [16:22:22]req_shift_opened [16:22:22]FM_GetShiftState [16:22:22]SAM_PROTO_GetShiftState [16:22:22]wFMCommunicate request_size=4 [16:22:22]MH_SAM_APDU [16:22:22]CAPDU: 80 13 01 00 [16:22:22]Write to MH i2c: E2 08 00 45 68 80 13 01 00 00 00 00 00 2A [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 45 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AB [16:22:23]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:22:23]wFMCommunicate OK [16:22:23]SAM_PROTO_GetShiftState done [16:22:23]FM_GetShiftState done [16:22:23]req_shift_opened done [16:22:23]requested_item shift.open_date is exist - process it [16:22:23]req_shift_open_date [16:22:23]req_shift_open_date done [16:22:23]produce_requested_data done [16:22:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103469,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:22:23]process_action_free close_receipt [16:22:23]json_value_free [16:22:23]json_value_free done [16:22:23]process_json_proto returns [16:22:23]Send response to host [16:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103469,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:22:23]free response buf [16:22:23]execute_script done [16:22:23]execute_script returns [16:22:23]free content buf [16:22:23]Sock 9.Close socket [16:22:23]Sock 9.Thread stoped [16:22:26]OFD Sender: No OFD packet to send [16:22:28]accept exits with 7 [16:22:28]New connection [16:22:28]New thread 3067084132 created [16:22:28]Thread 3067227492 joined [16:22:28]Waiting for new connection... [16:22:28] Sock 7.Parse request [16:22:28]Sock 7.Check first char [16:22:28]Sock 7.First char is OK [16:22:28]request: POST /json_proto HTTP/1.0 [16:22:28]Method: POST [16:22:28]URL: /json_proto [16:22:28]Method is POST - this is cgi request [16:22:28]url: /json_proto [16:22:28]query_string will be loaded in cgi processing [16:22:28]execute_cgi json_proto POST (null) [16:22:28]execute_cgi path=json_proto method=POST [16:22:28]POST find Content-Length [16:22:28]Host: 172.17.38.133:8080 [16:22:28]Content-Length: 677 [16:22:28]Content-Type: application/json [16:22:28] [16:22:28]POST finish read [16:22:28]Found Content-Length = 677 [16:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:28]execute_script... [16:22:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:28]POST & json_proto [16:22:28]process_json_proto [16:22:28]json parsed OK: [16:22:28]protocol is kg_v1.0 [16:22:28]action value=close_receipt [16:22:28]process_action close_receipt [16:22:28]cmd_close_receipt [16:22:28]MH_GetDate [16:22:28]Write to MH i2c: F0 00 00 46 68 9D [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: F0 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: F0 09 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: F0 09 00 46 68 00 4C B4 71 66 BD 8F 7C 64 A9 [16:22:28]GetLastDocTimeStamp 1718727746 [16:22:28]current date 1718727756 [16:22:28]FM_GetShiftState [16:22:28]SAM_PROTO_GetShiftState [16:22:28]wFMCommunicate request_size=4 [16:22:28]MH_SAM_APDU [16:22:28]CAPDU: 80 13 01 00 [16:22:28]Write to MH i2c: E2 08 00 47 68 80 13 01 00 00 00 00 00 2C [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:28]Read from MH i2c: E2 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 0E 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: E2 0E 00 47 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 AD [16:22:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:22:28]wFMCommunicate OK [16:22:28]SAM_PROTO_GetShiftState done [16:22:28]FM_GetShiftState done [16:22:28]opened in 1718670284 [16:22:28]opened+sec_in_day 1718756684 [16:22:28]quantity*price = 50065 [16:22:28]sum+1 = 50067 [16:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 154 18.06.2024 16:22 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103470 ФПД: 276096514452213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162236&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103470&fm=276096514452213&tin=02508201610067®Number=0000000000092785&sum=50000 [16:22:29]StoreToDocumentArchive [16:22:29]shift 352 fd 103470 [16:22:29]save to /storage/0352/doc_00103470 [16:22:29]save last doc name /storage/0352/doc_00103470 to /storage/kkm_last_doc_name [16:22:29]save OK [16:22:29]Clear old archive folders... [16:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:29]tlvbuf is 0145E4D0 [16:22:29]SAM_PROTO_ClearQueue [16:22:29]wFMCommunicate request_size=4 [16:22:29]MH_SAM_APDU [16:22:29]CAPDU: 80 09 00 00 [16:22:29]Write to MH i2c: E2 08 00 54 68 80 09 00 00 00 00 00 00 2E [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 54 68 00 90 00 30 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_ClearQueue done [16:22:30]KKMCreateOFDPacket [16:22:30]OFDProtocolAddRootSTLVToBuf [16:22:30]FM_MakeSignedData [16:22:30]FM_MakeSignedData [16:22:30]SAM_PROTO_SignData [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 01 02 [16:22:30]Write to MH i2c: E2 08 00 55 68 80 0D 01 02 00 00 00 00 36 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 55 68 00 90 00 31 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]wFMCommunicate request_size=255 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 4C B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 94 01 00 35 04 06 00 FB [16:22:30]Write to MH i2c: E2 02 01 56 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 4C B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 94 01 00 35 04 06 00 FB 00 00 80 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 56 68 00 90 00 32 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]wFMCommunicate request_size=10 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 02 02 05 1B BA AA EA F5 [16:22:30]Write to MH i2c: E2 0D 00 57 68 80 0D 02 02 05 00 1B BA AA EA F5 00 00 A1 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 03 00 57 68 00 90 00 33 [16:22:30]RAPDU: 90 00 [16:22:30]wFMCommunicate OK [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 0D 03 02 [16:22:30]Write to MH i2c: E2 08 00 58 68 80 0D 03 02 00 00 00 00 3B [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0B 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0B 00 58 68 00 6E 5C 35 16 52 EC C7 17 90 00 6D [16:22:30]RAPDU: 6E 5C 35 16 52 EC C7 17 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_SignData done [16:22:30]FM_MakeSignedData done [16:22:30]CreateOFDProtocolMessage [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 11 00 00 [16:22:30]Write to MH i2c: E2 08 00 59 68 80 11 00 00 00 00 00 00 3B [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 17 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 17 00 59 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [16:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:30]wFMCommunicate OK [16:22:30]CreateOFDProtocolMessage done [16:22:30]OFDSenderStorePacket 103470 [16:22:30]StoreOFDPacket docnum=103470 [16:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0C 09 07 01 B1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 4C B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 94 01 00 35 04 06 00 FB 1B BA AA EA F5 6E 5C 35 16 52 EC C7 17 [16:22:30]CheckFolder [16:22:30]dirname=/storage/ofd_packets [16:22:30]CheckFolder done [16:22:30]ProducePacketName [16:22:30]name=ofd_packets/00103470 [16:22:30]NVStorageSaveData ofd_packets/00103470 [16:22:30]File name is /storage/ofd_packets/00103470 [16:22:30]Write 301 bytes [16:22:30]NVStorageSaveData done [16:22:30]OFDSenderStorePacket done [16:22:30]KKMCreateOFDPacket done [16:22:30]NVStorageSaveData kkm_last_timestamp [16:22:30]File name is /storage/kkm_last_timestamp [16:22:30]Write 4 bytes [16:22:30]NVStorageSaveData done [16:22:30]ExternCall_PrintAddStr [16:22:30]wPrintStart [16:22:30]Write to MH i2c: 01 00 00 5A 68 C2 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: 01 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: 01 07 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: 01 07 00 5A 68 00 00 00 00 00 FF 0F D7 [16:22:30]RasterBufferAndPrint [16:22:30]line Счет N : (1)672655 [16:22:30]line ИНН: 02508201610067 [16:22:30]line Контрольно-Кассовый Чек [16:22:30]line ПРОДАЖА [16:22:30]line ТРК (МРК, ГНК) : 42 [16:22:30]line Товар: 2710124130 [16:22:30]line Аи-92-К-5 [16:22:30]line 7.540 * 66.40 [16:22:30]line = 500.66 [16:22:30]line НДС 12% НСП 1% [16:22:30]line > о реализуемом товаре [16:22:30]line ОКРУГЛЕНИЕ: -0.66 [16:22:30]line ИТОГО: 500.00 [16:22:30]line Внесено: 500.00 [16:22:30]line СДАЧА: 0.00 [16:22:30]line НСП 1% : 4.43 [16:22:30]line НДС 12% : 53.17 [16:22:30]line Наличными: 500.00 [16:22:30]line Безнал.: 0.00 [16:22:30]line Место: АЗС № 120 "Партнер Нефть" [16:22:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:22:30]line СНО: Общий режим [16:22:30]line Чек 154 18.06.2024 16:22 [16:22:30]line Смена: 352 ФФД: 1.0 [16:22:30]line ЗНМ: 0300000164 [16:22:30]line РНМ: 0000000000092785 [16:22:30]line Версия ККМ: 001 [16:22:30]line ФМ: 0000000000875093 [16:22:30]line ФД: 103470 [16:22:30]line ФПД: 276096514452213 [16:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162236&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103470&fm=276096514452213&tin=02508201610067®Number=0000000000092785&sum=50000 [16:22:30]OFD Sender: Processing packet 103470 [packets to send 17, broken 16] [16:22:30]ProducePacketName [16:22:30]name=ofd_packets/00103470 [16:22:30]OFD Sender: To server: pG, [16:22:30]CommunicateWithHost lk.salyk.kg:30040 [16:22:30]ConnectInit lk.salyk.kg [16:22:30]written 0, free lines is 4095 [16:22:30]Connected sock=9 [16:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0C 09 07 01 B1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 4C B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 94 01 00 35 04 06 00 FB 1B BA AA EA F5 6E 5C 35 16 52 EC C7 17 [16:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F3 B7 47 00 AA A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 94 01 00 F4 03 04 00 D7 5A 71 66 B6 04 01 00 00 35 C8 4C 30 47 5B 7A BD [16:22:30]CommunicateWithHost err = 0 [16:22:30]CheckOFDResponse [16:22:30]1017 (14) - 77093643461234 [16:22:30]1041 (16) - 0000000000875093 [16:22:30]1040 (4) - 103470 [16:22:30]1012 (4) - 18.06.2024 10:00 [16:22:30]1206 (1) - 0 [16:22:30]OFD Sender: Remove packet 103470 [16:22:30]ProducePacketName [16:22:30]name=ofd_packets/00103470 [16:22:30]NVStorageDeleteData [16:22:31]Write to MH i2c: 01 00 00 85 68 ED [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: 01 07 00 85 68 00 00 00 00 00 F2 0C F2 [16:22:31]RasterBufferAndPrint [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]line [16:22:31]written 0, free lines is 3327 [16:22:31]MH_Cut [16:22:31]Write to MH i2c: D1 01 00 8C 68 01 C6 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 01 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: D1 01 00 8C 68 00 C5 [16:22:31]Write to MH i2c: 01 00 00 8D 68 F5 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]OFD Sender: No OFD packet to send [16:22:31]*** Cut start [16:22:31]*** Partial cut [16:22:31]*** CUTSNS_PIN = 1 [16:22:31]*** CUTSNS_PIN = 0 [16:22:31]*** Brake cut motor [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]*** Stop cut motor [16:22:32]*** Cut end [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 8D 68 00 00 00 00 00 FF 0F 0A [16:22:32]process_action close_receipt done [16:22:32]requested_data is exist [16:22:32]produce_requested_data [16:22:32]requested_item fm.sn is exist - process it [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 8E 68 80 11 00 00 00 00 00 00 70 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 8E 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:32]wFMCommunicate OK [16:22:32]requested_item fd.num is exist - process it [16:22:32]SAM_PROTO_GetFieldsCounters [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 13 00 00 [16:22:32]Write to MH i2c: E2 08 00 8F 68 80 13 00 00 00 00 00 00 73 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 62 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 62 00 8F 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_GetFieldsCounters done [16:22:32]requested_item shift.num is exist - process it [16:22:32]requested_item shift.opened is exist - process it [16:22:32]req_shift_opened [16:22:32]FM_GetShiftState [16:22:32]SAM_PROTO_GetShiftState [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 13 01 00 [16:22:32]Write to MH i2c: E2 08 00 90 68 80 13 01 00 00 00 00 00 75 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0E 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0E 00 90 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F6 [16:22:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_GetShiftState done [16:22:32]FM_GetShiftState done [16:22:32]req_shift_opened done [16:22:32]requested_item shift.open_date is exist - process it [16:22:32]req_shift_open_date [16:22:32]req_shift_open_date done [16:22:32]produce_requested_data done [16:22:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103470,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:22:32]process_action_free close_receipt [16:22:32]json_value_free [16:22:32]json_value_free done [16:22:32]process_json_proto returns [16:22:32]Send response to host [16:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103470,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:22:32]free response buf [16:22:32]execute_script done [16:22:32]execute_script returns [16:22:32]free content buf [16:22:32]Sock 7.Close socket [16:22:32]Sock 7.Thread stoped [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:38]accept exits with 10 [16:24:38]New connection [16:24:38]New thread 3067227492 created [16:24:38]Thread 3067084132 joined [16:24:38]Waiting for new connection... [16:24:38] Sock 10.Parse request [16:24:38]Sock 10.Check first char [16:24:38]Sock 10.First char is OK [16:24:38]request: POST /json_proto HTTP/1.0 [16:24:38]Method: POST [16:24:38]URL: /json_proto [16:24:38]Method is POST - this is cgi request [16:24:38]url: /json_proto [16:24:38]query_string will be loaded in cgi processing [16:24:38]execute_cgi json_proto POST (null) [16:24:38]execute_cgi path=json_proto method=POST [16:24:38]POST find Content-Length [16:24:38]Host: 172.17.38.133:8080 [16:24:38]Content-Length: 677 [16:24:38]Content-Type: application/json [16:24:38] [16:24:38]POST finish read [16:24:38]Found Content-Length = 677 [16:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.040, "sum" : 520.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:38]execute_script... [16:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.040, "sum" : 520.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:38]POST & json_proto [16:24:38]process_json_proto [16:24:38]json parsed OK: [16:24:38]protocol is kg_v1.0 [16:24:38]action value=close_receipt [16:24:38]process_action close_receipt [16:24:38]cmd_close_receipt [16:24:38]MH_GetDate [16:24:38]Write to MH i2c: F0 00 00 91 68 E8 [16:24:38]Write i2c OK [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: F0 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: F0 09 00 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: F0 09 00 91 68 00 CE B4 71 66 BD 8F 7C 64 76 [16:24:38]GetLastDocTimeStamp 1718727756 [16:24:38]current date 1718727886 [16:24:38]FM_GetShiftState [16:24:38]SAM_PROTO_GetShiftState [16:24:38]wFMCommunicate request_size=4 [16:24:38]MH_SAM_APDU [16:24:38]CAPDU: 80 13 01 00 [16:24:38]Write to MH i2c: E2 08 00 92 68 80 13 01 00 00 00 00 00 77 [16:24:38]Write i2c OK [16:24:38]MH_I2C_Read... [16:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:38]Read from MH i2c: E2 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: E2 0E 00 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: E2 0E 00 92 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F8 [16:24:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:24:38]wFMCommunicate OK [16:24:38]SAM_PROTO_GetShiftState done [16:24:38]FM_GetShiftState done [16:24:38]opened in 1718670284 [16:24:38]opened+sec_in_day 1718756684 [16:24:38]quantity*price = 52025 [16:24:38]sum+1 = 52027 [16:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.25 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 155 18.06.2024 16:24 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103471 ФПД: 238916213661957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103471&fm=238916213661957&tin=02508201610067®Number=0000000000092785&sum=52000 [16:24:39]StoreToDocumentArchive [16:24:39]shift 352 fd 103471 [16:24:39]save to /storage/0352/doc_00103471 [16:24:39]save last doc name /storage/0352/doc_00103471 to /storage/kkm_last_doc_name [16:24:39]save OK [16:24:39]Clear old archive folders... [16:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:39]tlvbuf is 01394F10 [16:24:39]SAM_PROTO_ClearQueue [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 09 00 00 [16:24:39]Write to MH i2c: E2 08 00 9F 68 80 09 00 00 00 00 00 00 79 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 9F 68 00 90 00 7B [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]SAM_PROTO_ClearQueue done [16:24:39]KKMCreateOFDPacket [16:24:39]OFDProtocolAddRootSTLVToBuf [16:24:39]FM_MakeSignedData [16:24:39]FM_MakeSignedData [16:24:39]SAM_PROTO_SignData [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 01 02 [16:24:39]Write to MH i2c: E2 08 00 A0 68 80 0D 01 02 00 00 00 00 81 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 A0 68 00 90 00 7C [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=255 [16:24:39]MH_SAM_APDU [16:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 80 1B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CE B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 94 01 00 35 04 06 00 D9 [16:24:39]Write to MH i2c: E2 02 01 A1 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 80 1B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CE B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 94 01 00 35 04 06 00 D9 00 00 6E [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:40]Read from MH i2c: E2 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 03 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 03 00 A1 68 00 90 00 7D [16:24:40]RAPDU: 90 00 [16:24:40]wFMCommunicate OK [16:24:40]wFMCommunicate request_size=10 [16:24:40]MH_SAM_APDU [16:24:40]CAPDU: 80 0D 02 02 05 4B 04 0B E1 05 [16:24:40]Write to MH i2c: E2 0D 00 A2 68 80 0D 02 02 05 00 4B 04 0B E1 05 00 00 CE [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:40]Read from MH i2c: E2 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 03 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 03 00 A2 68 00 90 00 7E [16:24:40]RAPDU: 90 00 [16:24:40]wFMCommunicate OK [16:24:40]wFMCommunicate request_size=4 [16:24:40]MH_SAM_APDU [16:24:40]CAPDU: 80 0D 03 02 [16:24:40]Write to MH i2c: E2 08 00 A3 68 80 0D 03 02 00 00 00 00 86 [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:40]Read from MH i2c: E2 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 0B 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 0B 00 A3 68 00 64 3D E4 D3 AE F8 38 21 90 00 DE [16:24:40]RAPDU: 64 3D E4 D3 AE F8 38 21 90 00 [16:24:40]wFMCommunicate OK [16:24:40]SAM_PROTO_SignData done [16:24:40]FM_MakeSignedData done [16:24:40]CreateOFDProtocolMessage [16:24:40]wFMCommunicate request_size=4 [16:24:40]MH_SAM_APDU [16:24:40]CAPDU: 80 11 00 00 [16:24:40]Write to MH i2c: E2 08 00 A4 68 80 11 00 00 00 00 00 00 86 [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:40]Read from MH i2c: E2 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 17 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: E2 17 00 A4 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [16:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:40]wFMCommunicate OK [16:24:40]CreateOFDProtocolMessage done [16:24:40]OFDSenderStorePacket 103471 [16:24:40]StoreOFDPacket docnum=103471 [16:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6A E1 07 01 08 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 80 1B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CE B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 94 01 00 35 04 06 00 D9 4B 04 0B E1 05 64 3D E4 D3 AE F8 38 21 [16:24:40]CheckFolder [16:24:40]dirname=/storage/ofd_packets [16:24:40]CheckFolder done [16:24:40]ProducePacketName [16:24:40]name=ofd_packets/00103471 [16:24:40]NVStorageSaveData ofd_packets/00103471 [16:24:40]File name is /storage/ofd_packets/00103471 [16:24:40]Write 301 bytes [16:24:40]NVStorageSaveData done [16:24:40]OFDSenderStorePacket done [16:24:40]KKMCreateOFDPacket done [16:24:40]NVStorageSaveData kkm_last_timestamp [16:24:40]File name is /storage/kkm_last_timestamp [16:24:40]Write 4 bytes [16:24:40]NVStorageSaveData done [16:24:40]ExternCall_PrintAddStr [16:24:40]wPrintStart [16:24:40]Write to MH i2c: 01 00 00 A5 68 0D [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 A5 68 00 00 00 00 00 FF 0F 22 [16:24:40]RasterBufferAndPrint [16:24:40]line Счет N : (1)672656 [16:24:40]line ИНН: 02508201610067 [16:24:40]line Контрольно-Кассовый Чек [16:24:40]line ПРОДАЖА [16:24:40]line ТРК (МРК, ГНК) : 31 [16:24:40]line Товар: 2710124500 [16:24:40]line Аи-95-К-5 [16:24:40]line 7.040 * 73.90 [16:24:40]line = 520.26 [16:24:40]line НДС 12% НСП 1% [16:24:40]line > о реализуемом товаре [16:24:40]line ОКРУГЛЕНИЕ: -0.26 [16:24:40]line ИТОГО: 520.00 [16:24:40]line Внесено: 520.00 [16:24:40]line СДАЧА: 0.00 [16:24:40]line НСП 1% : 4.60 [16:24:40]line НДС 12% : 55.25 [16:24:40]line Наличными: 520.00 [16:24:40]line Безнал.: 0.00 [16:24:40]line Место: АЗС № 120 "Партнер Нефть" [16:24:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:24:40]line СНО: Общий режим [16:24:40]line Чек 155 18.06.2024 16:24 [16:24:40]line Смена: 352 ФФД: 1.0 [16:24:40]line ЗНМ: 0300000164 [16:24:40]line РНМ: 0000000000092785 [16:24:40]line Версия ККМ: 001 [16:24:40]line ФМ: 0000000000875093 [16:24:40]line ФД: 103471 [16:24:40]line ФПД: 238916213661957 [16:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103471&fm=238916213661957&tin=02508201610067®Number=0000000000092785&sum=52000 [16:24:40]OFD Sender: Processing packet 103471 [packets to send 17, broken 16] [16:24:40]ProducePacketName [16:24:40]name=ofd_packets/00103471 [16:24:40]OFD Sender: To server: pG, [16:24:40]CommunicateWithHost lk.salyk.kg:30040 [16:24:40]ConnectInit lk.salyk.kg [16:24:40]written 0, free lines is 4095 [16:24:40]Connected sock=9 [16:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6A E1 07 01 08 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 80 1B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 CE B4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 94 01 00 35 04 06 00 D9 4B 04 0B E1 05 64 3D E4 D3 AE F8 38 21 [16:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DB 53 47 00 EC BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 94 01 00 F4 03 04 00 59 5B 71 66 B6 04 01 00 00 B9 0D 97 65 53 D2 AC F0 [16:24:41]CommunicateWithHost err = 0 [16:24:41]CheckOFDResponse [16:24:41]1017 (14) - 77093643461234 [16:24:41]1041 (16) - 0000000000875093 [16:24:41]1040 (4) - 103471 [16:24:41]1012 (4) - 18.06.2024 10:03 [16:24:41]1206 (1) - 0 [16:24:41]OFD Sender: Remove packet 103471 [16:24:41]ProducePacketName [16:24:41]name=ofd_packets/00103471 [16:24:41]NVStorageDeleteData [16:24:41]Write to MH i2c: 01 00 00 D0 68 38 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: 01 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: 01 07 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: 01 07 00 D0 68 00 00 00 00 00 E0 0C 2B [16:24:41]RasterBufferAndPrint [16:24:41]line [16:24:41]line [16:24:41]line [16:24:41]line [16:24:41]line [16:24:41]written 0, free lines is 3305 [16:24:41]MH_Cut [16:24:41]Write to MH i2c: D1 01 00 D7 68 01 11 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: D1 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: D1 01 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: D1 01 00 D7 68 00 10 [16:24:41]Write to MH i2c: 01 00 00 D8 68 40 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]OFD Sender: No OFD packet to send [16:24:41]*** Cut start [16:24:41]*** Partial cut [16:24:41]*** CUTSNS_PIN = 1 [16:24:41]*** CUTSNS_PIN = 0 [16:24:42]*** Brake cut motor [16:24:42]Read from MH i2c: 01 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: 01 07 00 [16:24:42]MH_I2C_Read... [16:24:42]*** Stop cut motor [16:24:42]*** Cut end [16:24:42]Read from MH i2c: 01 07 00 D8 68 00 00 00 00 00 FF 0F 55 [16:24:42]process_action close_receipt done [16:24:42]requested_data is exist [16:24:42]produce_requested_data [16:24:42]requested_item fm.sn is exist - process it [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 11 00 00 [16:24:42]Write to MH i2c: E2 08 00 D9 68 80 11 00 00 00 00 00 00 BB [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 17 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 17 00 D9 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [16:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:42]wFMCommunicate OK [16:24:42]requested_item fd.num is exist - process it [16:24:42]SAM_PROTO_GetFieldsCounters [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 13 00 00 [16:24:42]Write to MH i2c: E2 08 00 DA 68 80 13 00 00 00 00 00 00 BE [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 62 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 62 00 DA 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:42]wFMCommunicate OK [16:24:42]SAM_PROTO_GetFieldsCounters done [16:24:42]requested_item shift.num is exist - process it [16:24:42]requested_item shift.opened is exist - process it [16:24:42]req_shift_opened [16:24:42]FM_GetShiftState [16:24:42]SAM_PROTO_GetShiftState [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 13 01 00 [16:24:42]Write to MH i2c: E2 08 00 DB 68 80 13 01 00 00 00 00 00 C0 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 0E 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 0E 00 DB 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 41 [16:24:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:24:42]wFMCommunicate OK [16:24:42]SAM_PROTO_GetShiftState done [16:24:42]FM_GetShiftState done [16:24:42]req_shift_opened done [16:24:42]requested_item shift.open_date is exist - process it [16:24:42]req_shift_open_date [16:24:42]req_shift_open_date done [16:24:42]produce_requested_data done [16:24:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103471,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:24:42]process_action_free close_receipt [16:24:42]json_value_free [16:24:42]json_value_free done [16:24:42]process_json_proto returns [16:24:42]Send response to host [16:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103471,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:24:42]free response buf [16:24:42]execute_script done [16:24:42]execute_script returns [16:24:42]free content buf [16:24:42]Sock 10.Close socket [16:24:42]Sock 10.Thread stoped [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:24]accept exits with 7 [16:30:24]New connection [16:30:24]New thread 3067084132 created [16:30:24]Thread 3067227492 joined [16:30:24]Waiting for new connection... [16:30:24] Sock 7.Parse request [16:30:24]Sock 7.Check first char [16:30:24]Sock 7.First char is OK [16:30:24]request: POST /json_proto HTTP/1.0 [16:30:24]Method: POST [16:30:24]URL: /json_proto [16:30:24]Method is POST - this is cgi request [16:30:24]url: /json_proto [16:30:24]query_string will be loaded in cgi processing [16:30:24]execute_cgi json_proto POST (null) [16:30:24]execute_cgi path=json_proto method=POST [16:30:24]POST find Content-Length [16:30:24]Host: 172.17.38.133:8080 [16:30:24]Content-Length: 682 [16:30:24]Content-Type: application/json [16:30:24] [16:30:24]POST finish read [16:30:24]Found Content-Length = 682 [16:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:30:24]execute_script... [16:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:30:24]POST & json_proto [16:30:24]process_json_proto [16:30:24]json parsed OK: [16:30:24]protocol is kg_v1.0 [16:30:24]action value=close_receipt [16:30:24]process_action close_receipt [16:30:24]cmd_close_receipt [16:30:24]MH_GetDate [16:30:24]Write to MH i2c: F0 00 00 DC 68 33 [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: F0 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: F0 09 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: F0 09 00 DC 68 00 27 B6 71 66 BD 8F 7C 64 1C [16:30:24]GetLastDocTimeStamp 1718727886 [16:30:24]current date 1718728231 [16:30:24]FM_GetShiftState [16:30:24]SAM_PROTO_GetShiftState [16:30:24]wFMCommunicate request_size=4 [16:30:24]MH_SAM_APDU [16:30:24]CAPDU: 80 13 01 00 [16:30:24]Write to MH i2c: E2 08 00 DD 68 80 13 01 00 00 00 00 00 C2 [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:24]Read from MH i2c: E2 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 0E 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 0E 00 DD 68 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 43 [16:30:24]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:30:24]wFMCommunicate OK [16:30:24]SAM_PROTO_GetShiftState done [16:30:24]FM_GetShiftState done [16:30:24]opened in 1718670284 [16:30:24]opened+sec_in_day 1718756684 [16:30:24]quantity*price = 100064 [16:30:24]sum+1 = 100066 [16:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 156 18.06.2024 16:30 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103472 ФПД: 145582986476382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163031&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103472&fm=145582986476382&tin=02508201610067®Number=0000000000092785&sum=100000 [16:30:25]StoreToDocumentArchive [16:30:25]shift 352 fd 103472 [16:30:25]save to /storage/0352/doc_00103472 [16:30:25]save last doc name /storage/0352/doc_00103472 to /storage/kkm_last_doc_name [16:30:25]save OK [16:30:25]Clear old archive folders... [16:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:25]tlvbuf is 0137F190 [16:30:25]SAM_PROTO_ClearQueue [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 09 00 00 [16:30:25]Write to MH i2c: E2 08 00 EA 68 80 09 00 00 00 00 00 00 C4 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 EA 68 00 90 00 C6 [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_ClearQueue done [16:30:25]KKMCreateOFDPacket [16:30:25]OFDProtocolAddRootSTLVToBuf [16:30:25]FM_MakeSignedData [16:30:25]FM_MakeSignedData [16:30:25]SAM_PROTO_SignData [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 01 02 [16:30:25]Write to MH i2c: E2 08 00 EB 68 80 0D 01 02 00 00 00 00 CC [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 EB 68 00 90 00 C7 [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]wFMCommunicate request_size=255 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 27 B6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 94 01 00 35 04 06 00 84 [16:30:25]Write to MH i2c: E2 02 01 EC 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 27 B6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 94 01 00 35 04 06 00 84 00 00 D0 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 EC 68 00 90 00 C8 [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]wFMCommunicate request_size=10 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 02 02 05 68 2E 31 BB 5E [16:30:25]Write to MH i2c: E2 0D 00 ED 68 80 0D 02 02 05 00 68 2E 31 BB 5E 00 00 B9 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 ED 68 00 90 00 C9 [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 03 02 [16:30:25]Write to MH i2c: E2 08 00 EE 68 80 0D 03 02 00 00 00 00 D1 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0B 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0B 00 EE 68 00 D1 CE F8 0B EA B5 A5 5A 90 00 12 [16:30:25]RAPDU: D1 CE F8 0B EA B5 A5 5A 90 00 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_SignData done [16:30:25]FM_MakeSignedData done [16:30:25]CreateOFDProtocolMessage [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 11 00 00 [16:30:25]Write to MH i2c: E2 08 00 EF 68 80 11 00 00 00 00 00 00 D1 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 17 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 17 00 EF 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [16:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:30:25]wFMCommunicate OK [16:30:25]CreateOFDProtocolMessage done [16:30:25]OFDSenderStorePacket 103472 [16:30:25]StoreOFDPacket docnum=103472 [16:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 66 39 07 01 6B CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 27 B6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 94 01 00 35 04 06 00 84 68 2E 31 BB 5E D1 CE F8 0B EA B5 A5 5A [16:30:25]CheckFolder [16:30:25]dirname=/storage/ofd_packets [16:30:25]CheckFolder done [16:30:25]ProducePacketName [16:30:25]name=ofd_packets/00103472 [16:30:25]NVStorageSaveData ofd_packets/00103472 [16:30:25]File name is /storage/ofd_packets/00103472 [16:30:25]Write 301 bytes [16:30:25]NVStorageSaveData done [16:30:25]OFDSenderStorePacket done [16:30:25]KKMCreateOFDPacket done [16:30:25]NVStorageSaveData kkm_last_timestamp [16:30:25]File name is /storage/kkm_last_timestamp [16:30:25]Write 4 bytes [16:30:25]NVStorageSaveData done [16:30:25]ExternCall_PrintAddStr [16:30:25]wPrintStart [16:30:25]Write to MH i2c: 01 00 00 F0 68 58 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: 01 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: 01 07 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: 01 07 00 F0 68 00 00 00 00 00 FF 0F 6D [16:30:25]RasterBufferAndPrint [16:30:25]line Счет N : (1)672659 [16:30:25]line ИНН: 02508201610067 [16:30:25]line Контрольно-Кассовый Чек [16:30:25]line ПРОДАЖА [16:30:25]line ТРК (МРК, ГНК) : 42 [16:30:25]line Товар: 2710124130 [16:30:25]line Аи-92-К-5 [16:30:25]line 15.070 * 66.40 [16:30:25]line = 1000.65 [16:30:25]line НДС 12% НСП 1% [16:30:25]line > о реализуемом товаре [16:30:25]line ОКРУГЛЕНИЕ: -0.65 [16:30:25]line ИТОГО: 1000.00 [16:30:25]line Внесено: 1000.00 [16:30:25]line СДАЧА: 0.00 [16:30:25]line НСП 1% : 8.85 [16:30:25]line НДС 12% : 106.26 [16:30:25]line Наличными: 1000.00 [16:30:25]line Безнал.: 0.00 [16:30:25]line Место: АЗС № 120 "Партнер Нефть" [16:30:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:30:25]line СНО: Общий режим [16:30:25]line Чек 156 18.06.2024 16:30 [16:30:25]line Смена: 352 ФФД: 1.0 [16:30:25]line ЗНМ: 0300000164 [16:30:25]line РНМ: 0000000000092785 [16:30:25]line Версия ККМ: 001 [16:30:25]line ФМ: 0000000000875093 [16:30:25]line ФД: 103472 [16:30:25]line ФПД: 145582986476382 [16:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163031&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103472&fm=145582986476382&tin=02508201610067®Number=0000000000092785&sum=100000 [16:30:26]OFD Sender: Processing packet 103472 [packets to send 17, broken 16] [16:30:26]ProducePacketName [16:30:26]name=ofd_packets/00103472 [16:30:26]OFD Sender: To server: pG, [16:30:26]CommunicateWithHost lk.salyk.kg:30040 [16:30:26]ConnectInit lk.salyk.kg [16:30:26]written 0, free lines is 4095 [16:30:26]Connected sock=10 [16:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 66 39 07 01 6B CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 27 B6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 94 01 00 35 04 06 00 84 68 2E 31 BB 5E D1 CE F8 0B EA B5 A5 5A [16:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 96 D8 47 00 CC FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 94 01 00 F4 03 04 00 B3 5C 71 66 B6 04 01 00 00 95 A9 AD 02 69 9C 7F 1A [16:30:26]CommunicateWithHost err = 0 [16:30:26]CheckOFDResponse [16:30:26]1017 (14) - 77093643461234 [16:30:26]1041 (16) - 0000000000875093 [16:30:26]1040 (4) - 103472 [16:30:26]1012 (4) - 18.06.2024 10:08 [16:30:26]1206 (1) - 0 [16:30:26]OFD Sender: Remove packet 103472 [16:30:26]ProducePacketName [16:30:26]name=ofd_packets/00103472 [16:30:26]NVStorageDeleteData [16:30:26]Write to MH i2c: 01 00 00 1B 69 84 [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 07 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 07 00 1B 69 00 00 00 00 00 E5 0C 7C [16:30:26]RasterBufferAndPrint [16:30:26]line [16:30:26]line [16:30:26]line [16:30:26]line [16:30:26]line [16:30:26]written 0, free lines is 3307 [16:30:26]MH_Cut [16:30:26]Write to MH i2c: D1 01 00 22 69 01 5D [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: D1 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: D1 01 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: D1 01 00 22 69 00 5C [16:30:26]Write to MH i2c: 01 00 00 23 69 8C [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:27]OFD Sender: No OFD packet to send [16:30:27]*** Cut start [16:30:27]*** Partial cut [16:30:27]*** CUTSNS_PIN = 1 [16:30:27]*** CUTSNS_PIN = 0 [16:30:27]*** Brake cut motor [16:30:27]Read from MH i2c: 01 [16:30:27]MH_I2C_Read... [16:30:27]*** Stop cut motor [16:30:27]*** Cut end [16:30:27]Read from MH i2c: 01 07 00 [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: 01 07 00 23 69 00 00 00 00 00 FF 0F A1 [16:30:27]process_action close_receipt done [16:30:27]requested_data is exist [16:30:27]produce_requested_data [16:30:27]requested_item fm.sn is exist - process it [16:30:27]wFMCommunicate request_size=4 [16:30:27]MH_SAM_APDU [16:30:27]CAPDU: 80 11 00 00 [16:30:27]Write to MH i2c: E2 08 00 24 69 80 11 00 00 00 00 00 00 07 [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 17 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 17 00 24 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [16:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:30:28]wFMCommunicate OK [16:30:28]requested_item fd.num is exist - process it [16:30:28]SAM_PROTO_GetFieldsCounters [16:30:28]wFMCommunicate request_size=4 [16:30:28]MH_SAM_APDU [16:30:28]CAPDU: 80 13 00 00 [16:30:28]Write to MH i2c: E2 08 00 25 69 80 13 00 00 00 00 00 00 0A [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 62 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 62 00 25 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:28]wFMCommunicate OK [16:30:28]SAM_PROTO_GetFieldsCounters done [16:30:28]requested_item shift.num is exist - process it [16:30:28]requested_item shift.opened is exist - process it [16:30:28]req_shift_opened [16:30:28]FM_GetShiftState [16:30:28]SAM_PROTO_GetShiftState [16:30:28]wFMCommunicate request_size=4 [16:30:28]MH_SAM_APDU [16:30:28]CAPDU: 80 13 01 00 [16:30:28]Write to MH i2c: E2 08 00 26 69 80 13 01 00 00 00 00 00 0C [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 0E 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 0E 00 26 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8D [16:30:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:30:28]wFMCommunicate OK [16:30:28]SAM_PROTO_GetShiftState done [16:30:28]FM_GetShiftState done [16:30:28]req_shift_opened done [16:30:28]requested_item shift.open_date is exist - process it [16:30:28]req_shift_open_date [16:30:28]req_shift_open_date done [16:30:28]produce_requested_data done [16:30:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103472,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:30:28]process_action_free close_receipt [16:30:28]json_value_free [16:30:28]json_value_free done [16:30:28]process_json_proto returns [16:30:28]Send response to host [16:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103472,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:30:28]free response buf [16:30:28]execute_script done [16:30:28]execute_script returns [16:30:28]free content buf [16:30:28]Sock 7.Close socket [16:30:28]Sock 7.Thread stoped [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:02]accept exits with 9 [16:34:02]New connection [16:34:02]New thread 3067227492 created [16:34:02]Thread 3067084132 joined [16:34:02]Waiting for new connection... [16:34:02] Sock 9.Parse request [16:34:02]Sock 9.Check first char [16:34:02]Sock 9.First char is OK [16:34:02]request: POST /json_proto HTTP/1.0 [16:34:02]Method: POST [16:34:02]URL: /json_proto [16:34:02]Method is POST - this is cgi request [16:34:02]url: /json_proto [16:34:02]query_string will be loaded in cgi processing [16:34:02]execute_cgi json_proto POST (null) [16:34:02]execute_cgi path=json_proto method=POST [16:34:02]POST find Content-Length [16:34:02]Host: 172.17.38.133:8080 [16:34:02]Content-Length: 682 [16:34:02]Content-Type: application/json [16:34:02] [16:34:02]POST finish read [16:34:02]Found Content-Length = 682 [16:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [16:34:02]execute_script... [16:34:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [16:34:02]POST & json_proto [16:34:02]process_json_proto [16:34:02]json parsed OK: [16:34:02]protocol is kg_v1.0 [16:34:02]action value=close_receipt [16:34:02]process_action close_receipt [16:34:02]cmd_close_receipt [16:34:02]MH_GetDate [16:34:02]Write to MH i2c: F0 00 00 27 69 7F [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 09 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: F0 09 00 27 69 00 02 B7 71 66 BD 8F 7C 64 44 [16:34:02]GetLastDocTimeStamp 1718728231 [16:34:02]current date 1718728450 [16:34:02]FM_GetShiftState [16:34:02]SAM_PROTO_GetShiftState [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 13 01 00 [16:34:02]Write to MH i2c: E2 08 00 28 69 80 13 01 00 00 00 00 00 0E [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0E 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0E 00 28 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8F [16:34:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:34:02]wFMCommunicate OK [16:34:02]SAM_PROTO_GetShiftState done [16:34:02]FM_GetShiftState done [16:34:02]opened in 1718670284 [16:34:02]opened+sec_in_day 1718756684 [16:34:02]quantity*price = 200063 [16:34:02]sum+1 = 200064 [16:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 157 18.06.2024 16:34 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103473 ФПД: 129197538640269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103473&fm=129197538640269&tin=02508201610067®Number=0000000000092785&sum=200000 [16:34:03]StoreToDocumentArchive [16:34:03]shift 352 fd 103473 [16:34:03]save to /storage/0352/doc_00103473 [16:34:03]save last doc name /storage/0352/doc_00103473 to /storage/kkm_last_doc_name [16:34:03]save OK [16:34:03]Clear old archive folders... [16:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:03]tlvbuf is 01576500 [16:34:03]SAM_PROTO_ClearQueue [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 09 00 00 [16:34:03]Write to MH i2c: E2 08 00 35 69 80 09 00 00 00 00 00 00 10 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:03]Read from MH i2c: E2 03 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 03 00 35 69 00 90 00 12 [16:34:03]RAPDU: 90 00 [16:34:03]wFMCommunicate OK [16:34:03]SAM_PROTO_ClearQueue done [16:34:03]KKMCreateOFDPacket [16:34:03]OFDProtocolAddRootSTLVToBuf [16:34:03]FM_MakeSignedData [16:34:03]FM_MakeSignedData [16:34:03]SAM_PROTO_SignData [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 0D 01 02 [16:34:03]Write to MH i2c: E2 08 00 36 69 80 0D 01 02 00 00 00 00 18 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 03 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 03 00 36 69 00 90 00 13 [16:34:03]RAPDU: 90 00 [16:34:03]wFMCommunicate OK [16:34:03]wFMCommunicate request_size=255 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 9D 00 00 00 F4 03 04 00 02 B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 94 01 00 35 04 06 00 75 [16:34:03]Write to MH i2c: E2 02 01 37 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 9D 00 00 00 F4 03 04 00 02 B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 94 01 00 35 04 06 00 75 00 00 90 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 37 69 00 90 00 14 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]wFMCommunicate request_size=10 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 02 02 05 81 25 65 81 8D [16:34:04]Write to MH i2c: E2 0D 00 38 69 80 0D 02 02 05 00 81 25 65 81 8D 00 00 3E [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 03 00 38 69 00 90 00 15 [16:34:04]RAPDU: 90 00 [16:34:04]wFMCommunicate OK [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 0D 03 02 [16:34:04]Write to MH i2c: E2 08 00 39 69 80 0D 03 02 00 00 00 00 1D [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0B 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0B 00 39 69 00 E0 C8 49 D4 29 5C 4F 0E 90 00 C5 [16:34:04]RAPDU: E0 C8 49 D4 29 5C 4F 0E 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_SignData done [16:34:04]FM_MakeSignedData done [16:34:04]CreateOFDProtocolMessage [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 11 00 00 [16:34:04]Write to MH i2c: E2 08 00 3A 69 80 11 00 00 00 00 00 00 1D [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 17 00 3A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [16:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:04]wFMCommunicate OK [16:34:04]CreateOFDProtocolMessage done [16:34:04]OFDSenderStorePacket 103473 [16:34:04]StoreOFDPacket docnum=103473 [16:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 96 03 07 01 E5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 9D 00 00 00 F4 03 04 00 02 B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 94 01 00 35 04 06 00 75 81 25 65 81 8D E0 C8 49 D4 29 5C 4F 0E [16:34:04]CheckFolder [16:34:04]dirname=/storage/ofd_packets [16:34:04]CheckFolder done [16:34:04]ProducePacketName [16:34:04]name=ofd_packets/00103473 [16:34:04]NVStorageSaveData ofd_packets/00103473 [16:34:04]File name is /storage/ofd_packets/00103473 [16:34:04]Write 301 bytes [16:34:04]NVStorageSaveData done [16:34:04]OFDSenderStorePacket done [16:34:04]KKMCreateOFDPacket done [16:34:04]NVStorageSaveData kkm_last_timestamp [16:34:04]File name is /storage/kkm_last_timestamp [16:34:04]Write 4 bytes [16:34:04]NVStorageSaveData done [16:34:04]ExternCall_PrintAddStr [16:34:04]wPrintStart [16:34:04]Write to MH i2c: 01 00 00 3B 69 A4 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 3B 69 00 00 00 00 00 FF 0F B9 [16:34:04]RasterBufferAndPrint [16:34:04]line Счет N : (1)672660 [16:34:04]line ИНН: 02508201610067 [16:34:04]line Контрольно-Кассовый Чек [16:34:04]line ПРОДАЖА [16:34:04]line ТРК (МРК, ГНК) : 32 [16:34:04]line Товар: 2710124130 [16:34:04]line Аи-92-К-5 [16:34:04]line 30.130 * 66.40 [16:34:04]line = 2000.63 [16:34:04]line НДС 12% НСП 1% [16:34:04]line > о реализуемом товаре [16:34:04]line ОКРУГЛЕНИЕ: -0.63 [16:34:04]line ИТОГО: 2000.00 [16:34:04]line Внесено: 2000.00 [16:34:04]line СДАЧА: 0.00 [16:34:04]line НСП 1% : 17.70 [16:34:04]line НДС 12% : 212.46 [16:34:04]line Наличными: 2000.00 [16:34:04]line Безнал.: 0.00 [16:34:04]line Место: АЗС № 120 "Партнер Нефть" [16:34:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:34:04]line СНО: Общий режим [16:34:04]line Чек 157 18.06.2024 16:34 [16:34:04]line Смена: 352 ФФД: 1.0 [16:34:04]line ЗНМ: 0300000164 [16:34:04]line РНМ: 0000000000092785 [16:34:04]line Версия ККМ: 001 [16:34:04]line ФМ: 0000000000875093 [16:34:04]line ФД: 103473 [16:34:04]line ФПД: 129197538640269 [16:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103473&fm=129197538640269&tin=02508201610067®Number=0000000000092785&sum=200000 [16:34:04]OFD Sender: Processing packet 103473 [packets to send 17, broken 16] [16:34:04]ProducePacketName [16:34:04]name=ofd_packets/00103473 [16:34:04]OFD Sender: To server: pG, [16:34:04]CommunicateWithHost lk.salyk.kg:30040 [16:34:04]ConnectInit lk.salyk.kg [16:34:04]written 0, free lines is 4095 [16:34:04]Connected sock=10 [16:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 96 03 07 01 E5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 9D 00 00 00 F4 03 04 00 02 B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 94 01 00 35 04 06 00 75 81 25 65 81 8D E0 C8 49 D4 29 5C 4F 0E [16:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 06 69 47 00 4B 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 94 01 00 F4 03 04 00 8D 5D 71 66 B6 04 01 00 00 B3 99 6F CA C3 FC C1 C0 [16:34:05]CommunicateWithHost err = 0 [16:34:05]CheckOFDResponse [16:34:05]1017 (14) - 77093643461234 [16:34:05]1041 (16) - 0000000000875093 [16:34:05]1040 (4) - 103473 [16:34:05]1012 (4) - 18.06.2024 10:12 [16:34:05]1206 (1) - 0 [16:34:05]OFD Sender: Remove packet 103473 [16:34:05]ProducePacketName [16:34:05]name=ofd_packets/00103473 [16:34:05]NVStorageDeleteData [16:34:05]Write to MH i2c: 01 00 00 66 69 CF [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 66 69 00 00 00 00 00 D8 0C BA [16:34:05]RasterBufferAndPrint [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]line [16:34:05]written 0, free lines is 3297 [16:34:05]MH_Cut [16:34:05]Write to MH i2c: D1 01 00 6D 69 01 A8 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: D1 01 00 6D 69 00 A7 [16:34:05]Write to MH i2c: 01 00 00 6E 69 D7 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]OFD Sender: No OFD packet to send [16:34:05]*** Cut start [16:34:05]*** Partial cut [16:34:05]*** CUTSNS_PIN = 1 [16:34:05]*** CUTSNS_PIN = 0 [16:34:06]*** Brake cut motor [16:34:06]Read from MH i2c: 01 [16:34:06]MH_I2C_Read... [16:34:06]*** Stop cut motor [16:34:06]*** Cut end [16:34:06]Read from MH i2c: 01 07 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: 01 07 00 6E 69 00 00 00 00 00 FF 0F EC [16:34:06]process_action close_receipt done [16:34:06]requested_data is exist [16:34:06]produce_requested_data [16:34:06]requested_item fm.sn is exist - process it [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 11 00 00 [16:34:06]Write to MH i2c: E2 08 00 6F 69 80 11 00 00 00 00 00 00 52 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 6F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [16:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:06]wFMCommunicate OK [16:34:06]requested_item fd.num is exist - process it [16:34:06]SAM_PROTO_GetFieldsCounters [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 13 00 00 [16:34:06]Write to MH i2c: E2 08 00 70 69 80 13 00 00 00 00 00 00 55 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 62 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 62 00 70 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [16:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:06]wFMCommunicate OK [16:34:06]SAM_PROTO_GetFieldsCounters done [16:34:06]requested_item shift.num is exist - process it [16:34:06]requested_item shift.opened is exist - process it [16:34:06]req_shift_opened [16:34:06]FM_GetShiftState [16:34:06]SAM_PROTO_GetShiftState [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 13 01 00 [16:34:06]Write to MH i2c: E2 08 00 71 69 80 13 01 00 00 00 00 00 57 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0E 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0E 00 71 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D8 [16:34:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:34:06]wFMCommunicate OK [16:34:06]SAM_PROTO_GetShiftState done [16:34:06]FM_GetShiftState done [16:34:06]req_shift_opened done [16:34:06]requested_item shift.open_date is exist - process it [16:34:06]req_shift_open_date [16:34:06]req_shift_open_date done [16:34:06]produce_requested_data done [16:34:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103473,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:34:06]process_action_free close_receipt [16:34:06]json_value_free [16:34:06]json_value_free done [16:34:06]process_json_proto returns [16:34:06]Send response to host [16:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103473,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:34:06]free response buf [16:34:06]execute_script done [16:34:06]execute_script returns [16:34:06]free content buf [16:34:06]Sock 9.Close socket [16:34:06]Sock 9.Thread stoped [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:37:58]accept exits with 7 [16:37:58]New connection [16:37:58]New thread 3067084132 created [16:37:58]Thread 3067227492 joined [16:37:58]Waiting for new connection... [16:37:58] Sock 7.Parse request [16:37:58]Sock 7.Check first char [16:37:58]Sock 7.First char is OK [16:37:58]request: POST /json_proto HTTP/1.0 [16:37:58]Method: POST [16:37:58]URL: /json_proto [16:37:58]Method is POST - this is cgi request [16:37:58]url: /json_proto [16:37:58]query_string will be loaded in cgi processing [16:37:58]execute_cgi json_proto POST (null) [16:37:58]execute_cgi path=json_proto method=POST [16:37:58]POST find Content-Length [16:37:58]Host: 172.17.38.133:8080 [16:37:58]Content-Length: 678 [16:37:58]Content-Type: application/json [16:37:58] [16:37:58]POST finish read [16:37:58]Found Content-Length = 678 [16:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:58]execute_script... [16:37:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.830, "sum" : 800.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:58]POST & json_proto [16:37:58]process_json_proto [16:37:58]json parsed OK: [16:37:58]protocol is kg_v1.0 [16:37:58]action value=close_receipt [16:37:58]process_action close_receipt [16:37:58]cmd_close_receipt [16:37:58]MH_GetDate [16:37:58]Write to MH i2c: F0 00 00 72 69 CA [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 09 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 09 00 72 69 00 EE B7 71 66 BD 8F 7C 64 7B [16:37:58]GetLastDocTimeStamp 1718728450 [16:37:58]current date 1718728686 [16:37:58]FM_GetShiftState [16:37:58]SAM_PROTO_GetShiftState [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 13 01 00 [16:37:58]Write to MH i2c: E2 08 00 73 69 80 13 01 00 00 00 00 00 59 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 73 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DA [16:37:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_GetShiftState done [16:37:58]FM_GetShiftState done [16:37:58]opened in 1718670284 [16:37:58]opened+sec_in_day 1718756684 [16:37:58]quantity*price = 80033 [16:37:58]sum+1 = 80035 [16:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 158 18.06.2024 16:38 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103474 ФПД: 196179268299744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163806&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103474&fm=196179268299744&tin=02508201610067®Number=0000000000092785&sum=80000 [16:37:59]StoreToDocumentArchive [16:37:59]shift 352 fd 103474 [16:37:59]save to /storage/0352/doc_00103474 [16:37:59]save last doc name /storage/0352/doc_00103474 to /storage/kkm_last_doc_name [16:37:59]save OK [16:37:59]Clear old archive folders... [16:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:59]tlvbuf is 014A34D0 [16:37:59]SAM_PROTO_ClearQueue [16:37:59]wFMCommunicate request_size=4 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 09 00 00 [16:37:59]Write to MH i2c: E2 08 00 80 69 80 09 00 00 00 00 00 00 5B [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:59]Read from MH i2c: E2 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 80 69 00 90 00 5D [16:37:59]RAPDU: 90 00 [16:37:59]wFMCommunicate OK [16:37:59]SAM_PROTO_ClearQueue done [16:37:59]KKMCreateOFDPacket [16:37:59]OFDProtocolAddRootSTLVToBuf [16:37:59]FM_MakeSignedData [16:37:59]FM_MakeSignedData [16:37:59]SAM_PROTO_SignData [16:37:59]wFMCommunicate request_size=4 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 0D 01 02 [16:37:59]Write to MH i2c: E2 08 00 81 69 80 0D 01 02 00 00 00 00 63 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:59]Read from MH i2c: E2 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 81 69 00 90 00 5E [16:37:59]RAPDU: 90 00 [16:37:59]wFMCommunicate OK [16:37:59]wFMCommunicate request_size=255 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EE B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 94 01 00 35 04 06 00 B2 [16:37:59]Write to MH i2c: E2 02 01 82 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EE B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 94 01 00 35 04 06 00 B2 00 00 44 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 82 69 00 90 00 5F [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=10 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 02 02 05 6C 8B 99 6B E0 [16:38:00]Write to MH i2c: E2 0D 00 83 69 80 0D 02 02 05 00 6C 8B 99 6B E0 00 00 4B [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 83 69 00 90 00 60 [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 03 02 [16:38:00]Write to MH i2c: E2 08 00 84 69 80 0D 03 02 00 00 00 00 68 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 84 69 00 7A 5A AC 8A E9 E5 4B EB 90 00 77 [16:38:00]RAPDU: 7A 5A AC 8A E9 E5 4B EB 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_SignData done [16:38:00]FM_MakeSignedData done [16:38:00]CreateOFDProtocolMessage [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 11 00 00 [16:38:00]Write to MH i2c: E2 08 00 85 69 80 11 00 00 00 00 00 00 68 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 85 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [16:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:38:00]wFMCommunicate OK [16:38:00]CreateOFDProtocolMessage done [16:38:00]OFDSenderStorePacket 103474 [16:38:00]StoreOFDPacket docnum=103474 [16:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 37 07 01 6C 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EE B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 94 01 00 35 04 06 00 B2 6C 8B 99 6B E0 7A 5A AC 8A E9 E5 4B EB [16:38:00]CheckFolder [16:38:00]dirname=/storage/ofd_packets [16:38:00]CheckFolder done [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00103474 [16:38:00]NVStorageSaveData ofd_packets/00103474 [16:38:00]File name is /storage/ofd_packets/00103474 [16:38:00]Write 301 bytes [16:38:00]NVStorageSaveData done [16:38:00]OFDSenderStorePacket done [16:38:00]KKMCreateOFDPacket done [16:38:00]NVStorageSaveData kkm_last_timestamp [16:38:00]File name is /storage/kkm_last_timestamp [16:38:00]Write 4 bytes [16:38:00]NVStorageSaveData done [16:38:00]ExternCall_PrintAddStr [16:38:00]wPrintStart [16:38:00]Write to MH i2c: 01 00 00 86 69 EF [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 86 69 00 00 00 00 00 FF 0F 04 [16:38:00]RasterBufferAndPrint [16:38:00]line Счет N : (1)672662 [16:38:00]line ИНН: 02508201610067 [16:38:00]line Контрольно-Кассовый Чек [16:38:00]line ПРОДАЖА [16:38:00]line ТРК (МРК, ГНК) : 31 [16:38:00]line Товар: 2710124500 [16:38:00]line Аи-95-К-5 [16:38:00]line 10.830 * 73.90 [16:38:00]line = 800.34 [16:38:00]line НДС 12% НСП 1% [16:38:00]line > о реализуемом товаре [16:38:00]line ОКРУГЛЕНИЕ: -0.34 [16:38:00]line ИТОГО: 800.00 [16:38:00]line Внесено: 800.00 [16:38:00]line СДАЧА: 0.00 [16:38:00]line НСП 1% : 7.08 [16:38:00]line НДС 12% : 84.99 [16:38:00]line Наличными: 800.00 [16:38:00]line Безнал.: 0.00 [16:38:00]line Место: АЗС № 120 "Партнер Нефть" [16:38:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:38:00]line СНО: Общий режим [16:38:00]line Чек 158 18.06.2024 16:38 [16:38:00]line Смена: 352 ФФД: 1.0 [16:38:00]line ЗНМ: 0300000164 [16:38:00]line РНМ: 0000000000092785 [16:38:00]line Версия ККМ: 001 [16:38:00]line ФМ: 0000000000875093 [16:38:00]line ФД: 103474 [16:38:00]line ФПД: 196179268299744 [16:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163806&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103474&fm=196179268299744&tin=02508201610067®Number=0000000000092785&sum=80000 [16:38:00]OFD Sender: Processing packet 103474 [packets to send 17, broken 16] [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00103474 [16:38:00]OFD Sender: To server: pG, [16:38:00]CommunicateWithHost lk.salyk.kg:30040 [16:38:00]ConnectInit lk.salyk.kg [16:38:00]written 0, free lines is 4095 [16:38:00]Connected sock=10 [16:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 37 07 01 6C 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EE B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 94 01 00 35 04 06 00 B2 6C 8B 99 6B E0 7A 5A AC 8A E9 E5 4B EB [16:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 18 27 47 00 80 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 94 01 00 F4 03 04 00 79 5E 71 66 B6 04 01 00 00 70 B9 B9 E8 06 CD EC 0F [16:38:00]CommunicateWithHost err = 0 [16:38:00]CheckOFDResponse [16:38:00]1017 (14) - 77093643461234 [16:38:00]1041 (16) - 0000000000875093 [16:38:00]1040 (4) - 103474 [16:38:00]1012 (4) - 18.06.2024 10:16 [16:38:00]1206 (1) - 0 [16:38:00]OFD Sender: Remove packet 103474 [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00103474 [16:38:00]NVStorageDeleteData [16:38:01]Write to MH i2c: 01 00 00 B1 69 1A [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 B1 69 00 00 00 00 00 E9 0C 16 [16:38:01]RasterBufferAndPrint [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]written 0, free lines is 3311 [16:38:01]MH_Cut [16:38:01]Write to MH i2c: D1 01 00 B8 69 01 F3 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 B8 69 00 F2 [16:38:01]Write to MH i2c: 01 00 00 B9 69 22 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]OFD Sender: No OFD packet to send [16:38:01]*** Cut start [16:38:01]*** Partial cut [16:38:01]*** CUTSNS_PIN = 1 [16:38:01]*** CUTSNS_PIN = 0 [16:38:02]*** Brake cut motor [16:38:02]Read from MH i2c: 01 [16:38:02]MH_I2C_Read... [16:38:02]*** Stop cut motor [16:38:02]*** Cut end [16:38:02]Read from MH i2c: 01 07 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 B9 69 00 00 00 00 00 FF 0F 37 [16:38:02]process_action close_receipt done [16:38:02]requested_data is exist [16:38:02]produce_requested_data [16:38:02]requested_item fm.sn is exist - process it [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 11 00 00 [16:38:02]Write to MH i2c: E2 08 00 BA 69 80 11 00 00 00 00 00 00 9D [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 BA 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [16:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:38:02]wFMCommunicate OK [16:38:02]requested_item fd.num is exist - process it [16:38:02]SAM_PROTO_GetFieldsCounters [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 00 00 [16:38:02]Write to MH i2c: E2 08 00 BB 69 80 13 00 00 00 00 00 00 A0 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 62 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 62 00 BB 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetFieldsCounters done [16:38:02]requested_item shift.num is exist - process it [16:38:02]requested_item shift.opened is exist - process it [16:38:02]req_shift_opened [16:38:02]FM_GetShiftState [16:38:02]SAM_PROTO_GetShiftState [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 01 00 [16:38:02]Write to MH i2c: E2 08 00 BC 69 80 13 01 00 00 00 00 00 A2 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:02]Read from MH i2c: E2 0E 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 BC 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 23 [16:38:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetShiftState done [16:38:02]FM_GetShiftState done [16:38:02]req_shift_opened done [16:38:02]requested_item shift.open_date is exist - process it [16:38:02]req_shift_open_date [16:38:02]req_shift_open_date done [16:38:02]produce_requested_data done [16:38:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103474,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:38:02]process_action_free close_receipt [16:38:02]json_value_free [16:38:02]json_value_free done [16:38:02]process_json_proto returns [16:38:02]Send response to host [16:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103474,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:38:02]free response buf [16:38:02]execute_script done [16:38:02]execute_script returns [16:38:02]free content buf [16:38:02]Sock 7.Close socket [16:38:02]Sock 7.Thread stoped [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:12]accept exits with 9 [16:38:12]New connection [16:38:12]New thread 3067227492 created [16:38:12]Thread 3067084132 joined [16:38:12]Waiting for new connection... [16:38:12] Sock 9.Parse request [16:38:12]Sock 9.Check first char [16:38:12]Sock 9.First char is OK [16:38:12]request: POST /json_proto HTTP/1.0 [16:38:12]Method: POST [16:38:12]URL: /json_proto [16:38:12]Method is POST - this is cgi request [16:38:12]url: /json_proto [16:38:12]query_string will be loaded in cgi processing [16:38:12]execute_cgi json_proto POST (null) [16:38:12]execute_cgi path=json_proto method=POST [16:38:12]POST find Content-Length [16:38:12]Host: 172.17.38.133:8080 [16:38:12]Content-Length: 663 [16:38:12]Content-Type: application/json [16:38:12] [16:38:12]POST finish read [16:38:12]Found Content-Length = 663 [16:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.000, "sum" : 2656.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 2656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:12]execute_script... [16:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.000, "sum" : 2656.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 2656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:12]POST & json_proto [16:38:12]process_json_proto [16:38:12]json parsed OK: [16:38:12]protocol is kg_v1.0 [16:38:12]action value=close_receipt [16:38:12]process_action close_receipt [16:38:12]cmd_close_receipt [16:38:12]MH_GetDate [16:38:12]Write to MH i2c: F0 00 00 BD 69 15 [16:38:12]Write i2c OK [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 09 00 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 09 00 BD 69 00 FB B7 71 66 BD 8F 7C 64 D3 [16:38:12]GetLastDocTimeStamp 1718728686 [16:38:12]current date 1718728699 [16:38:12]FM_GetShiftState [16:38:12]SAM_PROTO_GetShiftState [16:38:12]wFMCommunicate request_size=4 [16:38:12]MH_SAM_APDU [16:38:12]CAPDU: 80 13 01 00 [16:38:12]Write to MH i2c: E2 08 00 BE 69 80 13 01 00 00 00 00 00 A4 [16:38:12]Write i2c OK [16:38:12]MH_I2C_Read... [16:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:12]Read from MH i2c: E2 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: E2 0E 00 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: E2 0E 00 BE 69 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 25 [16:38:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:38:12]wFMCommunicate OK [16:38:12]SAM_PROTO_GetShiftState done [16:38:12]FM_GetShiftState done [16:38:12]opened in 1718670284 [16:38:12]opened+sec_in_day 1718756684 [16:38:12]quantity*price = 265600 [16:38:12]sum+1 = 265601 [16:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2656.00 Внесено: 5000.00 СДАЧА: 2344.00 НСП 1% : 23.50 НДС 12% : 282.05 Наличными: 2656.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 159 18.06.2024 16:38 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103475 ФПД: 56551970508342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103475&fm=56551970508342&tin=02508201610067®Number=0000000000092785&sum=265600 [16:38:13]StoreToDocumentArchive [16:38:13]shift 352 fd 103475 [16:38:13]save to /storage/0352/doc_00103475 [16:38:13]save last doc name /storage/0352/doc_00103475 to /storage/kkm_last_doc_name [16:38:13]save OK [16:38:13]Clear old archive folders... [16:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:13]tlvbuf is 014ABC90 [16:38:13]SAM_PROTO_ClearQueue [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 09 00 00 [16:38:13]Write to MH i2c: E2 08 00 CB 69 80 09 00 00 00 00 00 00 A6 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 CB 69 00 90 00 A8 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]SAM_PROTO_ClearQueue done [16:38:13]KKMCreateOFDPacket [16:38:13]OFDProtocolAddRootSTLVToBuf [16:38:13]FM_MakeSignedData [16:38:13]FM_MakeSignedData [16:38:13]SAM_PROTO_SignData [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 01 02 [16:38:13]Write to MH i2c: E2 08 00 CC 69 80 0D 01 02 00 00 00 00 AE [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 CC 69 00 90 00 A9 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=255 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 80 0D 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 94 01 00 35 04 06 00 33 [16:38:13]Write to MH i2c: E2 02 01 CD 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 80 0D 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 94 01 00 35 04 06 00 33 00 00 AC [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 CD 69 00 90 00 AA [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=10 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 02 02 05 6F 08 1D 0E 36 [16:38:13]Write to MH i2c: E2 0D 00 CE 69 80 0D 02 02 05 00 6F 08 1D 0E 36 00 00 93 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 CE 69 00 90 00 AB [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 03 02 [16:38:13]Write to MH i2c: E2 08 00 CF 69 80 0D 03 02 00 00 00 00 B3 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 0B 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 0B 00 CF 69 00 17 41 99 5C 10 C2 61 51 90 00 85 [16:38:13]RAPDU: 17 41 99 5C 10 C2 61 51 90 00 [16:38:13]wFMCommunicate OK [16:38:13]SAM_PROTO_SignData done [16:38:13]FM_MakeSignedData done [16:38:13]CreateOFDProtocolMessage [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 11 00 00 [16:38:13]Write to MH i2c: E2 08 00 D0 69 80 11 00 00 00 00 00 00 B3 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 17 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 17 00 D0 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [16:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:38:13]wFMCommunicate OK [16:38:13]CreateOFDProtocolMessage done [16:38:13]OFDSenderStorePacket 103475 [16:38:13]StoreOFDPacket docnum=103475 [16:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AE 45 07 01 3B 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 80 0D 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 94 01 00 35 04 06 00 33 6F 08 1D 0E 36 17 41 99 5C 10 C2 61 51 [16:38:13]CheckFolder [16:38:13]dirname=/storage/ofd_packets [16:38:13]CheckFolder done [16:38:13]ProducePacketName [16:38:13]name=ofd_packets/00103475 [16:38:13]NVStorageSaveData ofd_packets/00103475 [16:38:13]File name is /storage/ofd_packets/00103475 [16:38:13]Write 301 bytes [16:38:13]NVStorageSaveData done [16:38:13]OFDSenderStorePacket done [16:38:13]KKMCreateOFDPacket done [16:38:13]NVStorageSaveData kkm_last_timestamp [16:38:13]File name is /storage/kkm_last_timestamp [16:38:13]Write 4 bytes [16:38:13]NVStorageSaveData done [16:38:13]ExternCall_PrintAddStr [16:38:13]wPrintStart [16:38:13]Write to MH i2c: 01 00 00 D1 69 3A [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 07 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 07 00 D1 69 00 00 00 00 00 FF 0F 4F [16:38:13]RasterBufferAndPrint [16:38:13]line Счет N : (1)672663 [16:38:13]line ИНН: 02508201610067 [16:38:13]line Контрольно-Кассовый Чек [16:38:13]line ПРОДАЖА [16:38:13]line ТРК (МРК, ГНК) : 42 [16:38:13]line Товар: 2710124130 [16:38:13]line Аи-92-К-5 [16:38:13]line 40.000 * 66.40 [16:38:13]line = 2656.00 [16:38:13]line НДС 12% НСП 1% [16:38:13]line > о реализуемом товаре [16:38:13]line ИТОГО: 2656.00 [16:38:13]line Внесено: 5000.00 [16:38:13]line СДАЧА: 2344.00 [16:38:13]line НСП 1% : 23.50 [16:38:13]line НДС 12% : 282.05 [16:38:13]line Наличными: 2656.00 [16:38:13]line Безнал.: 0.00 [16:38:13]line Место: АЗС № 120 "Партнер Нефть" [16:38:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:38:13]line СНО: Общий режим [16:38:13]line Чек 159 18.06.2024 16:38 [16:38:13]line Смена: 352 ФФД: 1.0 [16:38:13]line ЗНМ: 0300000164 [16:38:13]line РНМ: 0000000000092785 [16:38:13]line Версия ККМ: 001 [16:38:13]line ФМ: 0000000000875093 [16:38:13]line ФД: 103475 [16:38:13]line ФПД: 56551970508342 [16:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T163819&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103475&fm=56551970508342&tin=02508201610067®Number=0000000000092785&sum=265600 [16:38:14]written 0, free lines is 4095 [16:38:14]OFD Sender: Processing packet 103475 [packets to send 17, broken 16] [16:38:14]ProducePacketName [16:38:14]name=ofd_packets/00103475 [16:38:14]OFD Sender: To server: pG, [16:38:14]CommunicateWithHost lk.salyk.kg:30040 [16:38:14]ConnectInit lk.salyk.kg [16:38:14]Connected sock=10 [16:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AE 45 07 01 3B 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 80 0D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 6E 00 00 00 00 07 04 06 00 80 0D 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB B7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 94 01 00 35 04 06 00 33 6F 08 1D 0E 36 17 41 99 5C 10 C2 61 51 [16:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 18 7B 47 00 4A CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 94 01 00 F4 03 04 00 87 5E 71 66 B6 04 01 00 00 27 4F 19 1C 6D 63 ED 5F [16:38:14]CommunicateWithHost err = 0 [16:38:14]CheckOFDResponse [16:38:14]1017 (14) - 77093643461234 [16:38:14]1041 (16) - 0000000000875093 [16:38:14]1040 (4) - 103475 [16:38:14]1012 (4) - 18.06.2024 10:16 [16:38:14]1206 (1) - 0 [16:38:14]OFD Sender: Remove packet 103475 [16:38:14]ProducePacketName [16:38:14]name=ofd_packets/00103475 [16:38:14]NVStorageDeleteData [16:38:14]Write to MH i2c: 01 00 00 FB 69 64 [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 07 00 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 07 00 FB 69 00 00 00 00 00 F2 0C 69 [16:38:14]RasterBufferAndPrint [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]written 0, free lines is 3324 [16:38:14]MH_Cut [16:38:14]Write to MH i2c: D1 01 00 02 6A 01 3E [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 01 00 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 01 00 02 6A 00 3D [16:38:14]Write to MH i2c: 01 00 00 03 6A 6D [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:14]OFD Sender: No OFD packet to send [16:38:15]*** Cut start [16:38:15]*** Partial cut [16:38:15]*** CUTSNS_PIN = 1 [16:38:15]*** CUTSNS_PIN = 0 [16:38:15]*** Brake cut motor [16:38:15]Read from MH i2c: 01 [16:38:15]MH_I2C_Read... [16:38:15]*** Stop cut motor [16:38:15]*** Cut end [16:38:15]Read from MH i2c: 01 07 00 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: 01 07 00 03 6A 00 00 00 00 00 FF 0F 82 [16:38:15]process_action close_receipt done [16:38:15]requested_data is exist [16:38:15]produce_requested_data [16:38:15]requested_item fm.sn is exist - process it [16:38:15]wFMCommunicate request_size=4 [16:38:15]MH_SAM_APDU [16:38:15]CAPDU: 80 11 00 00 [16:38:15]Write to MH i2c: E2 08 00 04 6A 80 11 00 00 00 00 00 00 E8 [16:38:15]Write i2c OK [16:38:15]MH_I2C_Read... [16:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:15]Read from MH i2c: E2 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: E2 17 00 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: E2 17 00 04 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [16:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:38:15]wFMCommunicate OK [16:38:15]requested_item fd.num is exist - process it [16:38:15]SAM_PROTO_GetFieldsCounters [16:38:15]wFMCommunicate request_size=4 [16:38:15]MH_SAM_APDU [16:38:15]CAPDU: 80 13 00 00 [16:38:15]Write to MH i2c: E2 08 00 05 6A 80 13 00 00 00 00 00 00 EB [16:38:15]Write i2c OK [16:38:15]MH_I2C_Read... [16:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:16]Read from MH i2c: E2 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 62 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 62 00 05 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [16:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:16]wFMCommunicate OK [16:38:16]SAM_PROTO_GetFieldsCounters done [16:38:16]requested_item shift.num is exist - process it [16:38:16]requested_item shift.opened is exist - process it [16:38:16]req_shift_opened [16:38:16]FM_GetShiftState [16:38:16]SAM_PROTO_GetShiftState [16:38:16]wFMCommunicate request_size=4 [16:38:16]MH_SAM_APDU [16:38:16]CAPDU: 80 13 01 00 [16:38:16]Write to MH i2c: E2 08 00 06 6A 80 13 01 00 00 00 00 00 ED [16:38:16]Write i2c OK [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 [16:38:16]MH_I2C_Read... [16:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:16]Read from MH i2c: E2 0E 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 0E 00 06 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [16:38:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:38:16]wFMCommunicate OK [16:38:16]SAM_PROTO_GetShiftState done [16:38:16]FM_GetShiftState done [16:38:16]req_shift_opened done [16:38:16]requested_item shift.open_date is exist - process it [16:38:16]req_shift_open_date [16:38:16]req_shift_open_date done [16:38:16]produce_requested_data done [16:38:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103475,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:38:16]process_action_free close_receipt [16:38:16]json_value_free [16:38:16]json_value_free done [16:38:16]process_json_proto returns [16:38:16]Send response to host [16:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103475,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:38:16]free response buf [16:38:16]execute_script done [16:38:16]execute_script returns [16:38:16]free content buf [16:38:16]Sock 9.Close socket [16:38:16]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:53]accept exits with 7 [16:40:53]New connection [16:40:53]New thread 3067084132 created [16:40:53]Thread 3067227492 joined [16:40:53]Waiting for new connection... [16:40:53] Sock 7.Parse request [16:40:53]Sock 7.Check first char [16:40:53]Sock 7.First char is OK [16:40:53]request: POST /json_proto HTTP/1.0 [16:40:53]Method: POST [16:40:53]URL: /json_proto [16:40:53]Method is POST - this is cgi request [16:40:53]url: /json_proto [16:40:53]query_string will be loaded in cgi processing [16:40:53]execute_cgi json_proto POST (null) [16:40:53]execute_cgi path=json_proto method=POST [16:40:53]POST find Content-Length [16:40:53]Host: 172.17.38.133:8080 [16:40:53]Content-Length: 678 [16:40:53]Content-Type: application/json [16:40:53] [16:40:53]POST finish read [16:40:53]Found Content-Length = 678 [16:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]execute_script... [16:40:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]POST & json_proto [16:40:53]process_json_proto [16:40:53]json parsed OK: [16:40:53]protocol is kg_v1.0 [16:40:53]action value=close_receipt [16:40:53]process_action close_receipt [16:40:53]cmd_close_receipt [16:40:53]MH_GetDate [16:40:53]Write to MH i2c: F0 00 00 07 6A 60 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 07 6A 00 9D B8 71 66 BD 8F 7C 64 C1 [16:40:53]GetLastDocTimeStamp 1718728699 [16:40:53]current date 1718728861 [16:40:53]FM_GetShiftState [16:40:53]SAM_PROTO_GetShiftState [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 13 01 00 [16:40:53]Write to MH i2c: E2 08 00 08 6A 80 13 01 00 00 00 00 00 EF [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 08 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 70 [16:40:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetShiftState done [16:40:53]FM_GetShiftState done [16:40:53]opened in 1718670284 [16:40:53]opened+sec_in_day 1718756684 [16:40:53]quantity*price = 67064 [16:40:53]sum+1 = 67065 [16:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 160 18.06.2024 16:41 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103476 ФПД: 59343382981033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164101&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103476&fm=59343382981033&tin=02508201610067®Number=0000000000092785&sum=67000 [16:40:54]StoreToDocumentArchive [16:40:54]shift 352 fd 103476 [16:40:54]save to /storage/0352/doc_00103476 [16:40:54]save last doc name /storage/0352/doc_00103476 to /storage/kkm_last_doc_name [16:40:54]save OK [16:40:54]Clear old archive folders... [16:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:54]tlvbuf is 0144D470 [16:40:54]SAM_PROTO_ClearQueue [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 09 00 00 [16:40:54]Write to MH i2c: E2 08 00 15 6A 80 09 00 00 00 00 00 00 F1 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 15 6A 00 90 00 F3 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_ClearQueue done [16:40:54]KKMCreateOFDPacket [16:40:54]OFDProtocolAddRootSTLVToBuf [16:40:54]FM_MakeSignedData [16:40:54]FM_MakeSignedData [16:40:54]SAM_PROTO_SignData [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 01 02 [16:40:54]Write to MH i2c: E2 08 00 16 6A 80 0D 01 02 00 00 00 00 F9 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 16 6A 00 90 00 F4 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=255 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 94 01 00 35 04 06 00 35 [16:40:54]Write to MH i2c: E2 02 01 17 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 94 01 00 35 04 06 00 35 00 00 92 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 17 6A 00 90 00 F5 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=10 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 02 02 05 F8 F5 43 29 A9 [16:40:55]Write to MH i2c: E2 0D 00 18 6A 80 0D 02 02 05 00 F8 F5 43 29 A9 00 00 08 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 03 00 18 6A 00 90 00 F6 [16:40:55]RAPDU: 90 00 [16:40:55]wFMCommunicate OK [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 0D 03 02 [16:40:55]Write to MH i2c: E2 08 00 19 6A 80 0D 03 02 00 00 00 00 FE [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]OFD Sender: No OFD packet to send [16:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 0B 00 19 6A 00 E3 18 A2 0B C0 6D 03 1D 90 00 F4 [16:40:55]RAPDU: E3 18 A2 0B C0 6D 03 1D 90 00 [16:40:55]wFMCommunicate OK [16:40:55]SAM_PROTO_SignData done [16:40:55]FM_MakeSignedData done [16:40:55]CreateOFDProtocolMessage [16:40:55]wFMCommunicate request_size=4 [16:40:55]MH_SAM_APDU [16:40:55]CAPDU: 80 11 00 00 [16:40:55]Write to MH i2c: E2 08 00 1A 6A 80 11 00 00 00 00 00 00 FE [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:55]Read from MH i2c: E2 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: E2 17 00 1A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [16:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:40:55]wFMCommunicate OK [16:40:55]CreateOFDProtocolMessage done [16:40:55]OFDSenderStorePacket 103476 [16:40:55]StoreOFDPacket docnum=103476 [16:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7D 78 07 01 81 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 94 01 00 35 04 06 00 35 F8 F5 43 29 A9 E3 18 A2 0B C0 6D 03 1D [16:40:55]CheckFolder [16:40:55]dirname=/storage/ofd_packets [16:40:55]CheckFolder done [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00103476 [16:40:55]NVStorageSaveData ofd_packets/00103476 [16:40:55]File name is /storage/ofd_packets/00103476 [16:40:55]Write 301 bytes [16:40:55]NVStorageSaveData done [16:40:55]OFDSenderStorePacket done [16:40:55]KKMCreateOFDPacket done [16:40:55]NVStorageSaveData kkm_last_timestamp [16:40:55]File name is /storage/kkm_last_timestamp [16:40:55]Write 4 bytes [16:40:55]NVStorageSaveData done [16:40:55]ExternCall_PrintAddStr [16:40:55]wPrintStart [16:40:55]Write to MH i2c: 01 00 00 1B 6A 85 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 1B 6A 00 00 00 00 00 FF 0F 9A [16:40:55]RasterBufferAndPrint [16:40:55]line Счет N : (1)672664 [16:40:55]line ИНН: 02508201610067 [16:40:55]line Контрольно-Кассовый Чек [16:40:55]line ПРОДАЖА [16:40:55]line ТРК (МРК, ГНК) : 32 [16:40:55]line Товар: 2710124130 [16:40:55]line Аи-92-К-5 [16:40:55]line 10.100 * 66.40 [16:40:55]line = 670.64 [16:40:55]line НДС 12% НСП 1% [16:40:55]line > о реализуемом товаре [16:40:55]line ОКРУГЛЕНИЕ: -0.64 [16:40:55]line ИТОГО: 670.00 [16:40:55]line Внесено: 670.00 [16:40:55]line СДАЧА: 0.00 [16:40:55]line НСП 1% : 5.93 [16:40:55]line НДС 12% : 71.22 [16:40:55]line Наличными: 670.00 [16:40:55]line Безнал.: 0.00 [16:40:55]line Место: АЗС № 120 "Партнер Нефть" [16:40:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:40:55]line СНО: Общий режим [16:40:55]line Чек 160 18.06.2024 16:41 [16:40:55]line Смена: 352 ФФД: 1.0 [16:40:55]line ЗНМ: 0300000164 [16:40:55]line РНМ: 0000000000092785 [16:40:55]line Версия ККМ: 001 [16:40:55]line ФМ: 0000000000875093 [16:40:55]line ФД: 103476 [16:40:55]line ФПД: 59343382981033 [16:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164101&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103476&fm=59343382981033&tin=02508201610067®Number=0000000000092785&sum=67000 [16:40:55]OFD Sender: Processing packet 103476 [packets to send 17, broken 16] [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00103476 [16:40:55]OFD Sender: To server: pG, [16:40:55]CommunicateWithHost lk.salyk.kg:30040 [16:40:55]ConnectInit lk.salyk.kg [16:40:55]written 0, free lines is 4095 [16:40:55]Connected sock=11 [16:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7D 78 07 01 81 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 94 01 00 35 04 06 00 35 F8 F5 43 29 A9 E3 18 A2 0B C0 6D 03 1D [16:40:56]Write to MH i2c: 01 00 00 46 6A B0 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 46 6A 00 00 00 00 00 D9 0C 9C [16:40:56]RasterBufferAndPrint [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]line [16:40:56]written 0, free lines is 3296 [16:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BE 33 47 00 46 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 35 30 39 33 10 04 04 00 34 94 01 00 F4 03 04 00 28 5F 71 66 B6 04 01 00 00 2A 8F FE 4C 4F BB A1 47 [16:40:56]CommunicateWithHost err = 0 [16:40:56]CheckOFDResponse [16:40:56]1017 (14) - 77093643461234 [16:40:56]1041 (16) - 0000000000875093 [16:40:56]1040 (4) - 103476 [16:40:56]1012 (4) - 18.06.2024 10:19 [16:40:56]1206 (1) - 0 [16:40:56]OFD Sender: Remove packet 103476 [16:40:56]ProducePacketName [16:40:56]name=ofd_packets/00103476 [16:40:56]NVStorageDeleteData [16:40:56]MH_Cut [16:40:56]Write to MH i2c: D1 01 00 4D 6A 01 89 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: D1 01 00 4D 6A 00 88 [16:40:56]Write to MH i2c: 01 00 00 4E 6A B8 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]OFD Sender: No OFD packet to send [16:40:56]*** Cut start [16:40:56]*** Partial cut [16:40:56]*** CUTSNS_PIN = 1 [16:40:56]*** CUTSNS_PIN = 0 [16:40:56]*** Brake cut motor [16:40:57]Read from MH i2c: 01 [16:40:57]MH_I2C_Read... [16:40:57]*** Stop cut motor [16:40:57]*** Cut end [16:40:57]Read from MH i2c: 01 07 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: 01 07 00 4E 6A 00 00 00 00 00 FF 0F CD [16:40:57]process_action close_receipt done [16:40:57]requested_data is exist [16:40:57]produce_requested_data [16:40:57]requested_item fm.sn is exist - process it [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 11 00 00 [16:40:57]Write to MH i2c: E2 08 00 4F 6A 80 11 00 00 00 00 00 00 33 [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 17 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 17 00 4F 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [16:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:40:57]wFMCommunicate OK [16:40:57]requested_item fd.num is exist - process it [16:40:57]SAM_PROTO_GetFieldsCounters [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 00 00 [16:40:57]Write to MH i2c: E2 08 00 50 6A 80 13 00 00 00 00 00 00 36 [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 62 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 62 00 50 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [16:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetFieldsCounters done [16:40:57]requested_item shift.num is exist - process it [16:40:57]requested_item shift.opened is exist - process it [16:40:57]req_shift_opened [16:40:57]FM_GetShiftState [16:40:57]SAM_PROTO_GetShiftState [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 01 00 [16:40:57]Write to MH i2c: E2 08 00 51 6A 80 13 01 00 00 00 00 00 38 [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 51 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [16:40:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetShiftState done [16:40:57]FM_GetShiftState done [16:40:57]req_shift_opened done [16:40:57]requested_item shift.open_date is exist - process it [16:40:57]req_shift_open_date [16:40:57]req_shift_open_date done [16:40:57]produce_requested_data done [16:40:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103476,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:40:57]process_action_free close_receipt [16:40:57]json_value_free [16:40:57]json_value_free done [16:40:57]process_json_proto returns [16:40:57]Send response to host [16:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103476,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:40:57]free response buf [16:40:57]execute_script done [16:40:57]execute_script returns [16:40:57]free content buf [16:40:57]Sock 7.Close socket [16:40:57]Sock 7.Thread stoped [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:22]accept exits with 9 [16:42:22]New connection [16:42:22]New thread 3067227492 created [16:42:22]Thread 3067084132 joined [16:42:22]Waiting for new connection... [16:42:22] Sock 9.Parse request [16:42:22]Sock 9.Check first char [16:42:22]Sock 9.First char is OK [16:42:22]request: POST /json_proto HTTP/1.0 [16:42:22]Method: POST [16:42:22]URL: /json_proto [16:42:22]Method is POST - this is cgi request [16:42:22]url: /json_proto [16:42:22]query_string will be loaded in cgi processing [16:42:22]execute_cgi json_proto POST (null) [16:42:22]execute_cgi path=json_proto method=POST [16:42:22]POST find Content-Length [16:42:22]Host: 172.17.38.133:8080 [16:42:22]Content-Length: 682 [16:42:22]Content-Type: application/json [16:42:22] [16:42:22]POST finish read [16:42:22]Found Content-Length = 682 [16:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:22]execute_script... [16:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:22]POST & json_proto [16:42:22]process_json_proto [16:42:22]json parsed OK: [16:42:22]protocol is kg_v1.0 [16:42:22]action value=close_receipt [16:42:22]process_action close_receipt [16:42:22]cmd_close_receipt [16:42:22]MH_GetDate [16:42:22]Write to MH i2c: F0 00 00 52 6A AB [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 09 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 09 00 52 6A 00 F6 B8 71 66 BD 8F 7C 64 65 [16:42:22]GetLastDocTimeStamp 1718728861 [16:42:22]current date 1718728950 [16:42:22]FM_GetShiftState [16:42:22]SAM_PROTO_GetShiftState [16:42:22]wFMCommunicate request_size=4 [16:42:22]MH_SAM_APDU [16:42:22]CAPDU: 80 13 01 00 [16:42:22]Write to MH i2c: E2 08 00 53 6A 80 13 01 00 00 00 00 00 3A [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:22]Read from MH i2c: E2 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 0E 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 0E 00 53 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [16:42:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:42:22]wFMCommunicate OK [16:42:22]SAM_PROTO_GetShiftState done [16:42:22]FM_GetShiftState done [16:42:22]opened in 1718670284 [16:42:22]opened+sec_in_day 1718756684 [16:42:22]quantity*price = 70056 [16:42:22]sum+1 = 70058 [16:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 161 18.06.2024 16:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103477 ФПД: 9757125060011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164230&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103477&fm=9757125060011&tin=02508201610067®Number=0000000000092785&sum=70000 [16:42:23]StoreToDocumentArchive [16:42:23]shift 352 fd 103477 [16:42:23]save to /storage/0352/doc_00103477 [16:42:23]save last doc name /storage/0352/doc_00103477 to /storage/kkm_last_doc_name [16:42:23]save OK [16:42:23]Clear old archive folders... [16:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:42:23]tlvbuf is 013589F0 [16:42:23]SAM_PROTO_ClearQueue [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 09 00 00 [16:42:23]Write to MH i2c: E2 08 00 60 6A 80 09 00 00 00 00 00 00 3C [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 60 6A 00 90 00 3E [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_ClearQueue done [16:42:23]KKMCreateOFDPacket [16:42:23]OFDProtocolAddRootSTLVToBuf [16:42:23]FM_MakeSignedData [16:42:23]FM_MakeSignedData [16:42:23]SAM_PROTO_SignData [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 01 02 [16:42:23]Write to MH i2c: E2 08 00 61 6A 80 0D 01 02 00 00 00 00 44 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 61 6A 00 90 00 3F [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=255 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 94 01 00 35 04 06 00 [16:42:23]Write to MH i2c: E2 02 01 62 6A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 94 01 00 35 04 06 00 00 00 7F [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 62 6A 00 90 00 40 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=11 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 02 02 06 08 DF C1 F9 25 AB [16:42:23]Write to MH i2c: E2 0E 00 63 6A 80 0D 02 02 06 00 08 DF C1 F9 25 AB 00 00 C4 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 63 6A 00 90 00 41 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 03 02 [16:42:23]Write to MH i2c: E2 08 00 64 6A 80 0D 03 02 00 00 00 00 49 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0B 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0B 00 64 6A 00 BA EC D9 09 A8 2E DA B7 90 00 39 [16:42:23]RAPDU: BA EC D9 09 A8 2E DA B7 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_SignData done [16:42:23]FM_MakeSignedData done [16:42:23]CreateOFDProtocolMessage [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 11 00 00 [16:42:23]Write to MH i2c: E2 08 00 65 6A 80 11 00 00 00 00 00 00 49 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 65 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [16:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:24]wFMCommunicate OK [16:42:24]CreateOFDProtocolMessage done [16:42:24]OFDSenderStorePacket 103477 [16:42:24]StoreOFDPacket docnum=103477 [16:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FD F0 08 01 41 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 94 01 00 35 04 06 00 08 DF C1 F9 25 AB BA EC D9 09 A8 2E DA B7 [16:42:24]CheckFolder [16:42:24]dirname=/storage/ofd_packets [16:42:24]CheckFolder done [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00103477 [16:42:24]NVStorageSaveData ofd_packets/00103477 [16:42:24]File name is /storage/ofd_packets/00103477 [16:42:24]Write 302 bytes [16:42:24]NVStorageSaveData done [16:42:24]OFDSenderStorePacket done [16:42:24]KKMCreateOFDPacket done [16:42:24]NVStorageSaveData kkm_last_timestamp [16:42:24]File name is /storage/kkm_last_timestamp [16:42:24]Write 4 bytes [16:42:24]NVStorageSaveData done [16:42:24]ExternCall_PrintAddStr [16:42:24]wPrintStart [16:42:24]Write to MH i2c: 01 00 00 66 6A D0 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 66 6A 00 00 00 00 00 FF 0F E5 [16:42:24]RasterBufferAndPrint [16:42:24]line Счет N : (1)672665 [16:42:24]line ИНН: 02508201610067 [16:42:24]line Контрольно-Кассовый Чек [16:42:24]line ПРОДАЖА [16:42:24]line ТРК (МРК, ГНК) : 11 [16:42:24]line Товар: 2710194210 [16:42:24]line ДТ(л)-К-5 [16:42:24]line 9.610 * 72.90 [16:42:24]line = 700.57 [16:42:24]line НДС 12% НСП 1% [16:42:24]line > о реализуемом товаре [16:42:24]line ОКРУГЛЕНИЕ: -0.57 [16:42:24]line ИТОГО: 700.00 [16:42:24]line Внесено: 700.00 [16:42:24]line СДАЧА: 0.00 [16:42:24]line НСП 1% : 6.20 [16:42:24]line НДС 12% : 74.40 [16:42:24]line Наличными: 700.00 [16:42:24]line Безнал.: 0.00 [16:42:24]line Место: АЗС № 120 "Партнер Нефть" [16:42:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:42:24]line СНО: Общий режим [16:42:24]line Чек 161 18.06.2024 16:42 [16:42:24]line Смена: 352 ФФД: 1.0 [16:42:24]line ЗНМ: 0300000164 [16:42:24]line РНМ: 0000000000092785 [16:42:24]line Версия ККМ: 001 [16:42:24]line ФМ: 0000000000875093 [16:42:24]line ФД: 103477 [16:42:24]line ФПД: 9757125060011 [16:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164230&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103477&fm=9757125060011&tin=02508201610067®Number=0000000000092785&sum=70000 [16:42:24]OFD Sender: Processing packet 103477 [packets to send 17, broken 16] [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00103477 [16:42:24]OFD Sender: To server: pG, [16:42:24]CommunicateWithHost lk.salyk.kg:30040 [16:42:24]ConnectInit lk.salyk.kg [16:42:24]written 0, free lines is 4095 [16:42:24]Connected sock=10 [16:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FD F0 08 01 41 58 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 F6 B8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 94 01 00 35 04 06 00 08 DF C1 F9 25 AB BA EC D9 09 A8 2E DA B7 [16:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0B 01 47 00 16 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 94 01 00 F4 03 04 00 81 5F 71 66 B6 04 01 00 00 D3 81 94 5E A2 E6 68 2D [16:42:24]CommunicateWithHost err = 0 [16:42:24]CheckOFDResponse [16:42:24]1017 (14) - 77093643461234 [16:42:24]1041 (16) - 0000000000875093 [16:42:24]1040 (4) - 103477 [16:42:24]1012 (4) - 18.06.2024 10:20 [16:42:24]1206 (1) - 0 [16:42:24]OFD Sender: Remove packet 103477 [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00103477 [16:42:24]NVStorageDeleteData [16:42:24]Write to MH i2c: 01 00 00 91 6A FB [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 91 6A 00 00 00 00 00 D4 0C E2 [16:42:24]RasterBufferAndPrint [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]written 0, free lines is 3292 [16:42:24]MH_Cut [16:42:24]Write to MH i2c: D1 01 00 98 6A 01 D4 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 01 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 01 00 98 6A 00 D3 [16:42:24]Write to MH i2c: 01 00 00 99 6A 03 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:25]OFD Sender: No OFD packet to send [16:42:25]*** Cut start [16:42:25]*** Partial cut [16:42:25]*** CUTSNS_PIN = 1 [16:42:25]*** CUTSNS_PIN = 0 [16:42:25]*** Brake cut motor [16:42:26]Read from MH i2c: 01 [16:42:26]MH_I2C_Read... [16:42:26]*** Stop cut motor [16:42:26]*** Cut end [16:42:26]Read from MH i2c: 01 07 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 99 6A 00 00 00 00 00 FF 0F 18 [16:42:26]process_action close_receipt done [16:42:26]requested_data is exist [16:42:26]produce_requested_data [16:42:26]requested_item fm.sn is exist - process it [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 11 00 00 [16:42:26]Write to MH i2c: E2 08 00 9A 6A 80 11 00 00 00 00 00 00 7E [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 9A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [16:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:26]wFMCommunicate OK [16:42:26]requested_item fd.num is exist - process it [16:42:26]SAM_PROTO_GetFieldsCounters [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 13 00 00 [16:42:26]Write to MH i2c: E2 08 00 9B 6A 80 13 00 00 00 00 00 00 81 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 62 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 62 00 9B 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_GetFieldsCounters done [16:42:26]requested_item shift.num is exist - process it [16:42:26]requested_item shift.opened is exist - process it [16:42:26]req_shift_opened [16:42:26]FM_GetShiftState [16:42:26]SAM_PROTO_GetShiftState [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 13 01 00 [16:42:26]Write to MH i2c: E2 08 00 9C 6A 80 13 01 00 00 00 00 00 83 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 9C 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [16:42:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_GetShiftState done [16:42:26]FM_GetShiftState done [16:42:26]req_shift_opened done [16:42:26]requested_item shift.open_date is exist - process it [16:42:26]req_shift_open_date [16:42:26]req_shift_open_date done [16:42:26]produce_requested_data done [16:42:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103477,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:42:26]process_action_free close_receipt [16:42:26]json_value_free [16:42:26]json_value_free done [16:42:26]process_json_proto returns [16:42:26]Send response to host [16:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103477,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:42:26]free response buf [16:42:26]execute_script done [16:42:26]execute_script returns [16:42:26]free content buf [16:42:26]Sock 9.Close socket [16:42:26]Sock 9.Thread stoped [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:52]accept exits with 7 [16:42:52]New connection [16:42:52]New thread 3067084132 created [16:42:52]Thread 3067227492 joined [16:42:52]Waiting for new connection... [16:42:52] Sock 7.Parse request [16:42:52]Sock 7.Check first char [16:42:52]Sock 7.First char is OK [16:42:52]request: POST /json_proto HTTP/1.0 [16:42:52]Method: POST [16:42:52]URL: /json_proto [16:42:52]Method is POST - this is cgi request [16:42:52]url: /json_proto [16:42:52]query_string will be loaded in cgi processing [16:42:52]execute_cgi json_proto POST (null) [16:42:52]execute_cgi path=json_proto method=POST [16:42:52]POST find Content-Length [16:42:52]Host: 172.17.38.133:8080 [16:42:52]Content-Length: 682 [16:42:52]Content-Type: application/json [16:42:52] [16:42:52]POST finish read [16:42:52]Found Content-Length = 682 [16:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 14.750, "sum" : 1090.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:52]execute_script... [16:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 14.750, "sum" : 1090.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:52]POST & json_proto [16:42:52]process_json_proto [16:42:52]json parsed OK: [16:42:52]protocol is kg_v1.0 [16:42:52]action value=close_receipt [16:42:52]process_action close_receipt [16:42:52]cmd_close_receipt [16:42:52]MH_GetDate [16:42:52]Write to MH i2c: F0 00 00 9D 6A F6 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: F0 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: F0 09 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: F0 09 00 9D 6A 00 14 B9 71 66 BD 8F 7C 64 CF [16:42:52]GetLastDocTimeStamp 1718728950 [16:42:52]current date 1718728980 [16:42:52]FM_GetShiftState [16:42:52]SAM_PROTO_GetShiftState [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 13 01 00 [16:42:52]Write to MH i2c: E2 08 00 9E 6A 80 13 01 00 00 00 00 00 85 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0E 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0E 00 9E 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 06 [16:42:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:42:52]wFMCommunicate OK [16:42:52]SAM_PROTO_GetShiftState done [16:42:52]FM_GetShiftState done [16:42:52]opened in 1718670284 [16:42:52]opened+sec_in_day 1718756684 [16:42:52]quantity*price = 109002 [16:42:52]sum+1 = 109004 [16:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1090.00 Внесено: 1090.00 СДАЧА: 0.00 НСП 1% : 9.65 НДС 12% : 115.75 Наличными: 1090.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 162 18.06.2024 16:43 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103478 ФПД: 199771271882248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164300&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103478&fm=199771271882248&tin=02508201610067®Number=0000000000092785&sum=109000 [16:42:53]StoreToDocumentArchive [16:42:53]shift 352 fd 103478 [16:42:53]save to /storage/0352/doc_00103478 [16:42:53]save last doc name /storage/0352/doc_00103478 to /storage/kkm_last_doc_name [16:42:53]save OK [16:42:53]Clear old archive folders... [16:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:53]tlvbuf is 01369580 [16:42:53]SAM_PROTO_ClearQueue [16:42:53]wFMCommunicate request_size=4 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 09 00 00 [16:42:53]Write to MH i2c: E2 08 00 AB 6A 80 09 00 00 00 00 00 00 87 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 AB 6A 00 90 00 89 [16:42:53]RAPDU: 90 00 [16:42:53]wFMCommunicate OK [16:42:53]SAM_PROTO_ClearQueue done [16:42:53]KKMCreateOFDPacket [16:42:53]OFDProtocolAddRootSTLVToBuf [16:42:53]FM_MakeSignedData [16:42:53]FM_MakeSignedData [16:42:53]SAM_PROTO_SignData [16:42:53]wFMCommunicate request_size=4 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 0D 01 02 [16:42:53]Write to MH i2c: E2 08 00 AC 6A 80 0D 01 02 00 00 00 00 8F [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 AC 6A 00 90 00 8A [16:42:53]RAPDU: 90 00 [16:42:53]wFMCommunicate OK [16:42:53]wFMCommunicate request_size=255 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 14 B9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 94 01 00 35 04 06 00 B5 [16:42:53]Write to MH i2c: E2 02 01 AD 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 14 B9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 94 01 00 35 04 06 00 B5 00 00 20 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 AD 6A 00 90 00 8B [16:42:53]RAPDU: 90 00 [16:42:53]wFMCommunicate OK [16:42:53]wFMCommunicate request_size=10 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 0D 02 02 05 B0 DF B2 66 08 [16:42:53]Write to MH i2c: E2 0D 00 AE 6A 80 0D 02 02 05 00 B0 DF B2 66 08 00 00 4B [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 03 00 AE 6A 00 90 00 8C [16:42:53]RAPDU: 90 00 [16:42:53]wFMCommunicate OK [16:42:53]wFMCommunicate request_size=4 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 0D 03 02 [16:42:53]Write to MH i2c: E2 08 00 AF 6A 80 0D 03 02 00 00 00 00 94 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:53]Read from MH i2c: E2 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 0B 00 [16:42:53]MH_I2C_Read... [16:42:53]Read from MH i2c: E2 0B 00 AF 6A 00 02 E9 F5 BB 4F 19 D5 E0 90 00 4D [16:42:53]RAPDU: 02 E9 F5 BB 4F 19 D5 E0 90 00 [16:42:53]wFMCommunicate OK [16:42:53]SAM_PROTO_SignData done [16:42:53]FM_MakeSignedData done [16:42:53]CreateOFDProtocolMessage [16:42:53]wFMCommunicate request_size=4 [16:42:53]MH_SAM_APDU [16:42:53]CAPDU: 80 11 00 00 [16:42:53]Write to MH i2c: E2 08 00 B0 6A 80 11 00 00 00 00 00 00 94 [16:42:53]Write i2c OK [16:42:53]MH_I2C_Read... [16:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:54]Read from MH i2c: E2 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: E2 17 00 B0 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [16:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:54]wFMCommunicate OK [16:42:54]CreateOFDProtocolMessage done [16:42:54]OFDSenderStorePacket 103478 [16:42:54]StoreOFDPacket docnum=103478 [16:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A2 FE 07 01 8E 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 14 B9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 94 01 00 35 04 06 00 B5 B0 DF B2 66 08 02 E9 F5 BB 4F 19 D5 E0 [16:42:54]CheckFolder [16:42:54]dirname=/storage/ofd_packets [16:42:54]CheckFolder done [16:42:54]ProducePacketName [16:42:54]name=ofd_packets/00103478 [16:42:54]NVStorageSaveData ofd_packets/00103478 [16:42:54]File name is /storage/ofd_packets/00103478 [16:42:54]Write 301 bytes [16:42:54]NVStorageSaveData done [16:42:54]OFDSenderStorePacket done [16:42:54]KKMCreateOFDPacket done [16:42:54]NVStorageSaveData kkm_last_timestamp [16:42:54]File name is /storage/kkm_last_timestamp [16:42:54]Write 4 bytes [16:42:54]NVStorageSaveData done [16:42:54]ExternCall_PrintAddStr [16:42:54]wPrintStart [16:42:54]Write to MH i2c: 01 00 00 B1 6A 1B [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 07 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 07 00 B1 6A 00 00 00 00 00 FF 0F 30 [16:42:54]RasterBufferAndPrint [16:42:54]line Счет N : (1)672666 [16:42:54]line ИНН: 02508201610067 [16:42:54]line Контрольно-Кассовый Чек [16:42:54]line ПРОДАЖА [16:42:54]line ТРК (МРК, ГНК) : 41 [16:42:54]line Товар: 2710124500 [16:42:54]line Аи-95-К-5 [16:42:54]line 14.750 * 73.90 [16:42:54]line = 1090.03 [16:42:54]line НДС 12% НСП 1% [16:42:54]line > о реализуемом товаре [16:42:54]line ОКРУГЛЕНИЕ: -0.03 [16:42:54]line ИТОГО: 1090.00 [16:42:54]line Внесено: 1090.00 [16:42:54]line СДАЧА: 0.00 [16:42:54]line НСП 1% : 9.65 [16:42:54]line НДС 12% : 115.75 [16:42:54]line Наличными: 1090.00 [16:42:54]line Безнал.: 0.00 [16:42:54]line Место: АЗС № 120 "Партнер Нефть" [16:42:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:42:54]line СНО: Общий режим [16:42:54]line Чек 162 18.06.2024 16:43 [16:42:54]line Смена: 352 ФФД: 1.0 [16:42:54]line ЗНМ: 0300000164 [16:42:54]line РНМ: 0000000000092785 [16:42:54]line Версия ККМ: 001 [16:42:54]line ФМ: 0000000000875093 [16:42:54]line ФД: 103478 [16:42:54]line ФПД: 199771271882248 [16:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164300&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103478&fm=199771271882248&tin=02508201610067®Number=0000000000092785&sum=109000 [16:42:54]OFD Sender: Processing packet 103478 [packets to send 17, broken 16] [16:42:54]ProducePacketName [16:42:54]name=ofd_packets/00103478 [16:42:54]OFD Sender: To server: pG, [16:42:54]CommunicateWithHost lk.salyk.kg:30040 [16:42:54]ConnectInit lk.salyk.kg [16:42:54]written 0, free lines is 4095 [16:42:54]Connected sock=10 [16:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A2 FE 07 01 8E 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 14 B9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 94 01 00 35 04 06 00 B5 B0 DF B2 66 08 02 E9 F5 BB 4F 19 D5 E0 [16:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 58 6E 47 00 66 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 94 01 00 F4 03 04 00 9F 5F 71 66 B6 04 01 00 00 F6 96 C3 E3 D7 59 86 AF [16:42:54]CommunicateWithHost err = 0 [16:42:54]CheckOFDResponse [16:42:54]1017 (14) - 77093643461234 [16:42:54]1041 (16) - 0000000000875093 [16:42:54]1040 (4) - 103478 [16:42:54]1012 (4) - 18.06.2024 10:21 [16:42:54]1206 (1) - 0 [16:42:54]OFD Sender: Remove packet 103478 [16:42:54]ProducePacketName [16:42:54]name=ofd_packets/00103478 [16:42:54]NVStorageDeleteData [16:42:54]Write to MH i2c: 01 00 00 DC 6A 46 [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 07 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: 01 07 00 DC 6A 00 00 00 00 00 DD 0C 36 [16:42:54]RasterBufferAndPrint [16:42:54]line [16:42:54]line [16:42:54]line [16:42:54]line [16:42:54]line [16:42:54]written 0, free lines is 3299 [16:42:54]MH_Cut [16:42:54]Write to MH i2c: D1 01 00 E3 6A 01 1F [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: D1 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: D1 01 00 [16:42:54]MH_I2C_Read... [16:42:54]Read from MH i2c: D1 01 00 E3 6A 00 1E [16:42:54]Write to MH i2c: 01 00 00 E4 6A 4E [16:42:54]Write i2c OK [16:42:54]MH_I2C_Read... [16:42:55]OFD Sender: No OFD packet to send [16:42:55]*** Cut start [16:42:55]*** Partial cut [16:42:55]*** CUTSNS_PIN = 1 [16:42:55]*** CUTSNS_PIN = 0 [16:42:55]*** Brake cut motor [16:42:56]Read from MH i2c: 01 [16:42:56]MH_I2C_Read... [16:42:56]*** Stop cut motor [16:42:56]*** Cut end [16:42:56]Read from MH i2c: 01 07 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: 01 07 00 E4 6A 00 00 00 00 00 FF 0F 63 [16:42:56]process_action close_receipt done [16:42:56]requested_data is exist [16:42:56]produce_requested_data [16:42:56]requested_item fm.sn is exist - process it [16:42:56]wFMCommunicate request_size=4 [16:42:56]MH_SAM_APDU [16:42:56]CAPDU: 80 11 00 00 [16:42:56]Write to MH i2c: E2 08 00 E5 6A 80 11 00 00 00 00 00 00 C9 [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:56]Read from MH i2c: E2 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 17 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 17 00 E5 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [16:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:56]wFMCommunicate OK [16:42:56]requested_item fd.num is exist - process it [16:42:56]SAM_PROTO_GetFieldsCounters [16:42:56]wFMCommunicate request_size=4 [16:42:56]MH_SAM_APDU [16:42:56]CAPDU: 80 13 00 00 [16:42:56]Write to MH i2c: E2 08 00 E6 6A 80 13 00 00 00 00 00 00 CC [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:56]Read from MH i2c: E2 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 62 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 62 00 E6 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [16:42: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:56]wFMCommunicate OK [16:42:56]SAM_PROTO_GetFieldsCounters done [16:42:56]requested_item shift.num is exist - process it [16:42:56]requested_item shift.opened is exist - process it [16:42:56]req_shift_opened [16:42:56]FM_GetShiftState [16:42:56]SAM_PROTO_GetShiftState [16:42:56]wFMCommunicate request_size=4 [16:42:56]MH_SAM_APDU [16:42:56]CAPDU: 80 13 01 00 [16:42:56]Write to MH i2c: E2 08 00 E7 6A 80 13 01 00 00 00 00 00 CE [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:56]Read from MH i2c: E2 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 0E 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 0E 00 E7 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [16:42:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:42:56]wFMCommunicate OK [16:42:56]SAM_PROTO_GetShiftState done [16:42:56]FM_GetShiftState done [16:42:56]req_shift_opened done [16:42:56]requested_item shift.open_date is exist - process it [16:42:56]req_shift_open_date [16:42:56]req_shift_open_date done [16:42:56]produce_requested_data done [16:42:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103478,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:42:56]process_action_free close_receipt [16:42:56]json_value_free [16:42:56]json_value_free done [16:42:56]process_json_proto returns [16:42:56]Send response to host [16:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103478,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:42:56]free response buf [16:42:56]execute_script done [16:42:56]execute_script returns [16:42:56]free content buf [16:42:56]Sock 7.Close socket [16:42:56]Sock 7.Thread stoped [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:26]accept exits with 9 [16:47:26]New connection [16:47:26]New thread 3067227492 created [16:47:26]Thread 3067084132 joined [16:47:26]Waiting for new connection... [16:47:26] Sock 9.Parse request [16:47:26]Sock 9.Check first char [16:47:26]Sock 9.First char is OK [16:47:26]request: POST /json_proto HTTP/1.0 [16:47:26]Method: POST [16:47:26]URL: /json_proto [16:47:26]Method is POST - this is cgi request [16:47:26]url: /json_proto [16:47:26]query_string will be loaded in cgi processing [16:47:26]execute_cgi json_proto POST (null) [16:47:26]execute_cgi path=json_proto method=POST [16:47:26]POST find Content-Length [16:47:26]Host: 172.17.38.133:8080 [16:47:26]Content-Length: 677 [16:47:26]Content-Type: application/json [16:47:26] [16:47:26]POST finish read [16:47:26]Found Content-Length = 677 [16:47:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:26]execute_script... [16:47:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:26]POST & json_proto [16:47:26]process_json_proto [16:47:26]json parsed OK: [16:47:26]protocol is kg_v1.0 [16:47:26]action value=close_receipt [16:47:26]process_action close_receipt [16:47:26]cmd_close_receipt [16:47:26]MH_GetDate [16:47:26]Write to MH i2c: F0 00 00 E8 6A 41 [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: F0 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: F0 09 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: F0 09 00 E8 6A 00 25 BA 71 66 BD 8F 7C 64 2C [16:47:26]GetLastDocTimeStamp 1718728980 [16:47:26]current date 1718729253 [16:47:26]FM_GetShiftState [16:47:26]SAM_PROTO_GetShiftState [16:47:26]wFMCommunicate request_size=4 [16:47:26]MH_SAM_APDU [16:47:26]CAPDU: 80 13 01 00 [16:47:26]Write to MH i2c: E2 08 00 E9 6A 80 13 01 00 00 00 00 00 D0 [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:26]Read from MH i2c: E2 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 0E 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 0E 00 E9 6A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 51 [16:47:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:47:26]wFMCommunicate OK [16:47:26]SAM_PROTO_GetShiftState done [16:47:26]FM_GetShiftState done [16:47:26]opened in 1718670284 [16:47:26]opened+sec_in_day 1718756684 [16:47:26]quantity*price = 50065 [16:47:26]sum+1 = 50067 [16:47:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 163 18.06.2024 16:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103479 ФПД: 239654430047029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103479&fm=239654430047029&tin=02508201610067®Number=0000000000092785&sum=50000 [16:47:27]StoreToDocumentArchive [16:47:27]shift 352 fd 103479 [16:47:27]save to /storage/0352/doc_00103479 [16:47:27]save last doc name /storage/0352/doc_00103479 to /storage/kkm_last_doc_name [16:47:27]save OK [16:47:27]Clear old archive folders... [16:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:27]tlvbuf is B6F98640 [16:47:27]SAM_PROTO_ClearQueue [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 09 00 00 [16:47:27]Write to MH i2c: E2 08 00 F6 6A 80 09 00 00 00 00 00 00 D2 [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 F6 6A 00 90 00 D4 [16:47:27]RAPDU: 90 00 [16:47:27]wFMCommunicate OK [16:47:27]SAM_PROTO_ClearQueue done [16:47:27]KKMCreateOFDPacket [16:47:27]OFDProtocolAddRootSTLVToBuf [16:47:27]FM_MakeSignedData [16:47:27]FM_MakeSignedData [16:47:27]SAM_PROTO_SignData [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 0D 01 02 [16:47:27]Write to MH i2c: E2 08 00 F7 6A 80 0D 01 02 00 00 00 00 DA [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 F7 6A 00 90 00 D5 [16:47:27]RAPDU: 90 00 [16:47:27]wFMCommunicate OK [16:47:27]wFMCommunicate request_size=255 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 25 BA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 94 01 00 35 04 06 00 D9 [16:47:27]Write to MH i2c: E2 02 01 F8 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 25 BA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 94 01 00 35 04 06 00 D9 00 00 F3 [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 F8 6A 00 90 00 D6 [16:47:27]RAPDU: 90 00 [16:47:27]wFMCommunicate OK [16:47:27]wFMCommunicate request_size=10 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 0D 02 02 05 F6 E5 2B FB 35 [16:47:27]Write to MH i2c: E2 0D 00 F9 6A 80 0D 02 02 05 00 F6 E5 2B FB 35 00 00 1D [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 03 00 F9 6A 00 90 00 D7 [16:47:27]RAPDU: 90 00 [16:47:27]wFMCommunicate OK [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 0D 03 02 [16:47:27]Write to MH i2c: E2 08 00 FA 6A 80 0D 03 02 00 00 00 00 DF [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 0B 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 0B 00 FA 6A 00 2A 99 35 F3 05 70 5B D8 90 00 73 [16:47:27]RAPDU: 2A 99 35 F3 05 70 5B D8 90 00 [16:47:27]wFMCommunicate OK [16:47:27]SAM_PROTO_SignData done [16:47:27]FM_MakeSignedData done [16:47:27]CreateOFDProtocolMessage [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 11 00 00 [16:47:27]Write to MH i2c: E2 08 00 FB 6A 80 11 00 00 00 00 00 00 DF [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 17 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 17 00 FB 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [16:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:47:27]wFMCommunicate OK [16:47:27]CreateOFDProtocolMessage done [16:47:27]OFDSenderStorePacket 103479 [16:47:27]StoreOFDPacket docnum=103479 [16:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 08 07 01 15 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 25 BA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 94 01 00 35 04 06 00 D9 F6 E5 2B FB 35 2A 99 35 F3 05 70 5B D8 [16:47:27]CheckFolder [16:47:27]dirname=/storage/ofd_packets [16:47:27]CheckFolder done [16:47:27]ProducePacketName [16:47:27]name=ofd_packets/00103479 [16:47:27]NVStorageSaveData ofd_packets/00103479 [16:47:27]File name is /storage/ofd_packets/00103479 [16:47:27]Write 301 bytes [16:47:27]NVStorageSaveData done [16:47:27]OFDSenderStorePacket done [16:47:27]KKMCreateOFDPacket done [16:47:27]NVStorageSaveData kkm_last_timestamp [16:47:27]File name is /storage/kkm_last_timestamp [16:47:27]Write 4 bytes [16:47:27]NVStorageSaveData done [16:47:27]ExternCall_PrintAddStr [16:47:27]wPrintStart [16:47:27]Write to MH i2c: 01 00 00 FC 6A 66 [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: 01 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: 01 07 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: 01 07 00 FC 6A 00 00 00 00 00 FF 0F 7B [16:47:27]RasterBufferAndPrint [16:47:27]line Счет N : (1)672667 [16:47:27]line ИНН: 02508201610067 [16:47:27]line Контрольно-Кассовый Чек [16:47:27]line ПРОДАЖА [16:47:27]line ТРК (МРК, ГНК) : 32 [16:47:27]line Товар: 2710124130 [16:47:27]line Аи-92-К-5 [16:47:27]line 7.540 * 66.40 [16:47:27]line = 500.66 [16:47:27]line НДС 12% НСП 1% [16:47:27]line > о реализуемом товаре [16:47:27]line ОКРУГЛЕНИЕ: -0.66 [16:47:27]line ИТОГО: 500.00 [16:47:27]line Внесено: 500.00 [16:47:27]line СДАЧА: 0.00 [16:47:27]line НСП 1% : 4.43 [16:47:27]line НДС 12% : 53.17 [16:47:27]line Наличными: 500.00 [16:47:27]line Безнал.: 0.00 [16:47:27]line Место: АЗС № 120 "Партнер Нефть" [16:47:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:47:27]line СНО: Общий режим [16:47:27]line Чек 163 18.06.2024 16:47 [16:47:27]line Смена: 352 ФФД: 1.0 [16:47:27]line ЗНМ: 0300000164 [16:47:27]line РНМ: 0000000000092785 [16:47:27]line Версия ККМ: 001 [16:47:27]line ФМ: 0000000000875093 [16:47:27]line ФД: 103479 [16:47:27]line ФПД: 239654430047029 [16:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103479&fm=239654430047029&tin=02508201610067®Number=0000000000092785&sum=50000 [16:47:27]written 0, free lines is 4095 [16:47:27]OFD Sender: Processing packet 103479 [packets to send 17, broken 16] [16:47:27]ProducePacketName [16:47:27]name=ofd_packets/00103479 [16:47:27]OFD Sender: To server: pG, [16:47:27]CommunicateWithHost lk.salyk.kg:30040 [16:47:27]ConnectInit lk.salyk.kg [16:47:28]Connected sock=10 [16:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 08 07 01 15 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 25 BA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 94 01 00 35 04 06 00 D9 F6 E5 2B FB 35 2A 99 35 F3 05 70 5B D8 [16:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 32 23 47 00 F9 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 94 01 00 F4 03 04 00 B1 60 71 66 B6 04 01 00 00 1D 93 CA DA 88 56 F0 E0 [16:47:28]CommunicateWithHost err = 0 [16:47:28]CheckOFDResponse [16:47:28]1017 (14) - 77093643461234 [16:47:28]1041 (16) - 0000000000875093 [16:47:28]1040 (4) - 103479 [16:47:28]1012 (4) - 18.06.2024 10:25 [16:47:28]1206 (1) - 0 [16:47:28]OFD Sender: Remove packet 103479 [16:47:28]ProducePacketName [16:47:28]name=ofd_packets/00103479 [16:47:28]NVStorageDeleteData [16:47:28]Write to MH i2c: 01 00 00 27 6B 92 [16:47:28]Write i2c OK [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: 01 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: 01 07 00 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: 01 07 00 27 6B 00 00 00 00 00 E1 0C 86 [16:47:28]RasterBufferAndPrint [16:47:28]line [16:47:28]line [16:47:28]line [16:47:28]line [16:47:28]line [16:47:28]written 0, free lines is 3303 [16:47:28]MH_Cut [16:47:28]Write to MH i2c: D1 01 00 2E 6B 01 6B [16:47:28]Write i2c OK [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: D1 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: D1 01 00 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: D1 01 00 2E 6B 00 6A [16:47:28]Write to MH i2c: 01 00 00 2F 6B 9A [16:47:28]Write i2c OK [16:47:28]MH_I2C_Read... [16:47:28]OFD Sender: No OFD packet to send [16:47:29]*** Cut start [16:47:29]*** Partial cut [16:47:29]*** CUTSNS_PIN = 1 [16:47:29]*** CUTSNS_PIN = 0 [16:47:29]*** Brake cut motor [16:47:29]Read from MH i2c: 01 [16:47:29]MH_I2C_Read... [16:47:29]*** Stop cut motor [16:47:29]*** Cut end [16:47:29]Read from MH i2c: 01 07 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: 01 07 00 2F 6B 00 00 00 00 00 FF 0F AF [16:47:29]process_action close_receipt done [16:47:29]requested_data is exist [16:47:29]produce_requested_data [16:47:29]requested_item fm.sn is exist - process it [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 11 00 00 [16:47:29]Write to MH i2c: E2 08 00 30 6B 80 11 00 00 00 00 00 00 15 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 17 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 17 00 30 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [16:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:47:29]wFMCommunicate OK [16:47:29]requested_item fd.num is exist - process it [16:47:29]SAM_PROTO_GetFieldsCounters [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 13 00 00 [16:47:29]Write to MH i2c: E2 08 00 31 6B 80 13 00 00 00 00 00 00 18 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 62 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 62 00 31 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [16:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:29]wFMCommunicate OK [16:47:29]SAM_PROTO_GetFieldsCounters done [16:47:29]requested_item shift.num is exist - process it [16:47:29]requested_item shift.opened is exist - process it [16:47:29]req_shift_opened [16:47:29]FM_GetShiftState [16:47:29]SAM_PROTO_GetShiftState [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 13 01 00 [16:47:29]Write to MH i2c: E2 08 00 32 6B 80 13 01 00 00 00 00 00 1A [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 0E 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 0E 00 32 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9B [16:47:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:47:29]wFMCommunicate OK [16:47:29]SAM_PROTO_GetShiftState done [16:47:29]FM_GetShiftState done [16:47:29]req_shift_opened done [16:47:29]requested_item shift.open_date is exist - process it [16:47:29]req_shift_open_date [16:47:29]req_shift_open_date done [16:47:29]produce_requested_data done [16:47:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103479,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:47:29]process_action_free close_receipt [16:47:29]json_value_free [16:47:29]json_value_free done [16:47:29]process_json_proto returns [16:47:29]Send response to host [16:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103479,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:47:29]free response buf [16:47:29]execute_script done [16:47:29]execute_script returns [16:47:29]free content buf [16:47:29]Sock 9.Close socket [16:47:29]Sock 9.Thread stoped [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51: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:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:06]accept exits with 7 [16:55:06]New connection [16:55:06]New thread 3067084132 created [16:55:06]Thread 3067227492 joined [16:55:06]Waiting for new connection... [16:55:06] Sock 7.Parse request [16:55:06]Sock 7.Check first char [16:55:06]Sock 7.First char is OK [16:55:06]request: POST /json_proto HTTP/1.0 [16:55:06]Method: POST [16:55:06]URL: /json_proto [16:55:06]Method is POST - this is cgi request [16:55:06]url: /json_proto [16:55:06]query_string will be loaded in cgi processing [16:55:06]execute_cgi json_proto POST (null) [16:55:06]execute_cgi path=json_proto method=POST [16:55:06]POST find Content-Length [16:55:06]Host: 172.17.38.133:8080 [16:55:06]Content-Length: 808 [16:55:06]Content-Type: application/json [16:55:06] [16:55:06]POST finish read [16:55:06]Found Content-Length = 808 [16:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:06]execute_script... [16:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:06]POST & json_proto [16:55:06]process_json_proto [16:55:06]json parsed OK: [16:55:06]protocol is kg_v1.0 [16:55:06]action value=close_receipt [16:55:06]process_action close_receipt [16:55:06]cmd_close_receipt [16:55:06]MH_GetDate [16:55:06]Write to MH i2c: F0 00 00 33 6B 8D [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: F0 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: F0 09 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: F0 09 00 33 6B 00 F1 BB 71 66 BD 8F 7C 64 45 [16:55:06]GetLastDocTimeStamp 1718729253 [16:55:06]current date 1718729713 [16:55:06]FM_GetShiftState [16:55:06]SAM_PROTO_GetShiftState [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 13 01 00 [16:55:06]Write to MH i2c: E2 08 00 34 6B 80 13 01 00 00 00 00 00 1C [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0E 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 0E 00 34 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9D [16:55:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:55:06]wFMCommunicate OK [16:55:06]SAM_PROTO_GetShiftState done [16:55:06]FM_GetShiftState done [16:55:06]opened in 1718670284 [16:55:06]opened+sec_in_day 1718756684 [16:55:06]quantity*price = 300056 [16:55:06]sum+1 = 300057 [16:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 164 18.06.2024 16:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103480 ФПД: 279187621005140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165514&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103480&fm=279187621005140&tin=02508201610067®Number=0000000000092785&sum=300056 [16:55:07]StoreToDocumentArchive [16:55:07]shift 352 fd 103480 [16:55:07]save to /storage/0352/doc_00103480 [16:55:07]save last doc name /storage/0352/doc_00103480 to /storage/kkm_last_doc_name [16:55:07]save OK [16:55:07]Clear old archive folders... [16:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:55:07]tlvbuf is 01410B00 [16:55:07]SAM_PROTO_ClearQueue [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 09 00 00 [16:55:07]Write to MH i2c: E2 08 00 41 6B 80 09 00 00 00 00 00 00 1E [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 41 6B 00 90 00 20 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]SAM_PROTO_ClearQueue done [16:55:07]KKMCreateOFDPacket [16:55:07]OFDProtocolAddRootSTLVToBuf [16:55:07]FM_MakeSignedData [16:55:07]FM_MakeSignedData [16:55:07]SAM_PROTO_SignData [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 01 02 [16:55:07]Write to MH i2c: E2 08 00 42 6B 80 0D 01 02 00 00 00 00 26 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 42 6B 00 90 00 21 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=255 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F2 BB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 94 01 00 35 04 06 00 [16:55:07]Write to MH i2c: E2 02 01 43 6B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F2 BB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 94 01 00 35 04 06 00 00 00 32 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 43 6B 00 90 00 22 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=11 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 02 02 06 FD EB 6E F9 C7 54 [16:55:07]Write to MH i2c: E2 0E 00 44 6B 80 0D 02 02 06 00 FD EB 6E F9 C7 54 00 00 9F [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 44 6B 00 90 00 23 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 03 02 [16:55:07]Write to MH i2c: E2 08 00 45 6B 80 0D 03 02 00 00 00 00 2B [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0B 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0B 00 45 6B 00 FE DD 52 C7 E4 7A 22 C7 90 00 67 [16:55:07]RAPDU: FE DD 52 C7 E4 7A 22 C7 90 00 [16:55:07]wFMCommunicate OK [16:55:07]SAM_PROTO_SignData done [16:55:07]FM_MakeSignedData done [16:55:07]CreateOFDProtocolMessage [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 11 00 00 [16:55:07]Write to MH i2c: E2 08 00 46 6B 80 11 00 00 00 00 00 00 2B [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 17 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 17 00 46 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [16:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:55:07]wFMCommunicate OK [16:55:07]CreateOFDProtocolMessage done [16:55:07]OFDSenderStorePacket 103480 [16:55:07]StoreOFDPacket docnum=103480 [16:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 22 29 08 01 C9 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F2 BB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 94 01 00 35 04 06 00 FD EB 6E F9 C7 54 FE DD 52 C7 E4 7A 22 C7 [16:55:07]CheckFolder [16:55:07]dirname=/storage/ofd_packets [16:55:07]CheckFolder done [16:55:07]ProducePacketName [16:55:07]name=ofd_packets/00103480 [16:55:07]NVStorageSaveData ofd_packets/00103480 [16:55:07]File name is /storage/ofd_packets/00103480 [16:55:07]Write 302 bytes [16:55:07]NVStorageSaveData done [16:55:07]OFDSenderStorePacket done [16:55:07]KKMCreateOFDPacket done [16:55:07]NVStorageSaveData kkm_last_timestamp [16:55:07]File name is /storage/kkm_last_timestamp [16:55:07]Write 4 bytes [16:55:07]NVStorageSaveData done [16:55:07]ExternCall_PrintAddStr [16:55:07]wPrintStart [16:55:07]Write to MH i2c: 01 00 00 47 6B B2 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 47 6B 00 00 00 00 00 FF 0F C7 [16:55:07]RasterBufferAndPrint [16:55:07]line Счет N : (1)672668 [16:55:07]line ИНН: 02508201610067 [16:55:07]line Контрольно-Кассовый Чек [16:55:07]line ПРОДАЖА [16:55:07]line ТРК (МРК, ГНК) : 11 [16:55:07]line Товар: 2710194210 [16:55:07]line ДТ(л)-К-5 [16:55:07]line 41.160 * 72.90 [16:55:07]line = 3000.56 [16:55:07]line НДС 12% НСП 1% [16:55:07]line > о реализуемом товаре [16:55:07]line ИТОГО: 3000.56 [16:55:07]line НСП 1% : 26.55 [16:55:07]line НДС 12% : 318.64 [16:55:07]line Наличными: 0.00 [16:55:07]line Безнал.: 3000.56 [16:55:07]line Место: АЗС № 120 "Партнер Нефть" [16:55:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:55:07]line СНО: Общий режим [16:55:07]line Чек 164 18.06.2024 16:55 [16:55:07]line Смена: 352 ФФД: 1.0 [16:55:07]line ЗНМ: 0300000164 [16:55:07]line РНМ: 0000000000092785 [16:55:07]line Версия ККМ: 001 [16:55:07]line Платежная система: O! деньги [16:55:07]line ФМ: 0000000000875093 [16:55:07]line ФД: 103480 [16:55:07]line ФПД: 279187621005140 [16:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165514&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103480&fm=279187621005140&tin=02508201610067®Number=0000000000092785&sum=300056 [16:55:08]written 0, free lines is 4095 [16:55:08]OFD Sender: Processing packet 103480 [packets to send 17, broken 16] [16:55:08]ProducePacketName [16:55:08]name=ofd_packets/00103480 [16:55:08]OFD Sender: To server: pG, [16:55:08]CommunicateWithHost lk.salyk.kg:30040 [16:55:08]ConnectInit lk.salyk.kg [16:55:08]Connected sock=10 [16:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 22 29 08 01 C9 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F2 BB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 94 01 00 35 04 06 00 FD EB 6E F9 C7 54 FE DD 52 C7 E4 7A 22 C7 [16:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E0 07 47 00 96 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 94 01 00 F4 03 04 00 7D 62 71 66 B6 04 01 00 00 E2 49 6B 60 71 54 C9 30 [16:55:08]CommunicateWithHost err = 0 [16:55:08]CheckOFDResponse [16:55:08]1017 (14) - 77093643461234 [16:55:08]1041 (16) - 0000000000875093 [16:55:08]1040 (4) - 103480 [16:55:08]1012 (4) - 18.06.2024 10:33 [16:55:08]1206 (1) - 0 [16:55:08]OFD Sender: Remove packet 103480 [16:55:08]ProducePacketName [16:55:08]name=ofd_packets/00103480 [16:55:08]NVStorageDeleteData [16:55:08]Write to MH i2c: 01 00 00 71 6B DC [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 71 6B 00 00 00 00 00 EC 0C DB [16:55:08]RasterBufferAndPrint [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]written 0, free lines is 3315 [16:55:08]MH_Cut [16:55:08]Write to MH i2c: D1 01 00 78 6B 01 B5 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 01 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 01 00 78 6B 00 B4 [16:55:08]Write to MH i2c: 01 00 00 79 6B E4 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:09]OFD Sender: No OFD packet to send [16:55:09]*** Cut start [16:55:09]*** Partial cut [16:55:09]*** CUTSNS_PIN = 1 [16:55:09]*** CUTSNS_PIN = 0 [16:55:09]*** Brake cut motor [16:55:10]Read from MH i2c: 01 [16:55:10]MH_I2C_Read... [16:55:10]*** Stop cut motor [16:55:10]*** Cut end [16:55:10]Read from MH i2c: 01 07 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 79 6B 00 00 00 00 00 FF 0F F9 [16:55:10]process_action close_receipt done [16:55:10]requested_data is exist [16:55:10]produce_requested_data [16:55:10]requested_item fm.sn is exist - process it [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 11 00 00 [16:55:10]Write to MH i2c: E2 08 00 7A 6B 80 11 00 00 00 00 00 00 5F [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 17 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 17 00 7A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [16:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:55:10]wFMCommunicate OK [16:55:10]requested_item fd.num is exist - process it [16:55:10]SAM_PROTO_GetFieldsCounters [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 13 00 00 [16:55:10]Write to MH i2c: E2 08 00 7B 6B 80 13 00 00 00 00 00 00 62 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 62 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 62 00 7B 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_GetFieldsCounters done [16:55:10]requested_item shift.num is exist - process it [16:55:10]requested_item shift.opened is exist - process it [16:55:10]req_shift_opened [16:55:10]FM_GetShiftState [16:55:10]SAM_PROTO_GetShiftState [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 13 01 00 [16:55:10]Write to MH i2c: E2 08 00 7C 6B 80 13 01 00 00 00 00 00 64 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 7C 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [16:55:10]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_GetShiftState done [16:55:10]FM_GetShiftState done [16:55:10]req_shift_opened done [16:55:10]requested_item shift.open_date is exist - process it [16:55:10]req_shift_open_date [16:55:10]req_shift_open_date done [16:55:10]produce_requested_data done [16:55:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103480,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:55:10]process_action_free close_receipt [16:55:10]json_value_free [16:55:10]json_value_free done [16:55:10]process_json_proto returns [16:55:10]Send response to host [16:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103480,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:55:10]free response buf [16:55:10]execute_script done [16:55:10]execute_script returns [16:55:10]free content buf [16:55:10]Sock 7.Close socket [16:55:10]Sock 7.Thread stoped [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:57]accept exits with 9 [16:55:57]New connection [16:55:57]New thread 3067227492 created [16:55:57]Thread 3067084132 joined [16:55:57]Waiting for new connection... [16:55:57] Sock 9.Parse request [16:55:57]Sock 9.Check first char [16:55:57]Sock 9.First char is OK [16:55:57]request: POST /json_proto HTTP/1.0 [16:55:57]Method: POST [16:55:57]URL: /json_proto [16:55:57]Method is POST - this is cgi request [16:55:57]url: /json_proto [16:55:57]query_string will be loaded in cgi processing [16:55:57]execute_cgi json_proto POST (null) [16:55:57]execute_cgi path=json_proto method=POST [16:55:57]POST find Content-Length [16:55:57]Host: 172.17.38.133:8080 [16:55:57]Content-Length: 677 [16:55:57]Content-Type: application/json [16:55:57] [16:55:57]POST finish read [16:55:57]Found Content-Length = 677 [16:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:57]execute_script... [16:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:57]POST & json_proto [16:55:57]process_json_proto [16:55:57]json parsed OK: [16:55:57]protocol is kg_v1.0 [16:55:57]action value=close_receipt [16:55:57]process_action close_receipt [16:55:57]cmd_close_receipt [16:55:57]MH_GetDate [16:55:57]Write to MH i2c: F0 00 00 7D 6B D7 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: F0 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: F0 09 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: F0 09 00 7D 6B 00 24 BC 71 66 BD 8F 7C 64 C3 [16:55:57]GetLastDocTimeStamp 1718729714 [16:55:57]current date 1718729764 [16:55:57]FM_GetShiftState [16:55:57]SAM_PROTO_GetShiftState [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 13 01 00 [16:55:57]Write to MH i2c: E2 08 00 7E 6B 80 13 01 00 00 00 00 00 66 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0E 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0E 00 7E 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [16:55:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:55:57]wFMCommunicate OK [16:55:57]SAM_PROTO_GetShiftState done [16:55:57]FM_GetShiftState done [16:55:57]opened in 1718670284 [16:55:57]opened+sec_in_day 1718756684 [16:55:57]quantity*price = 50065 [16:55:57]sum+1 = 50067 [16:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 165 18.06.2024 16:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103481 ФПД: 60757375160350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103481&fm=60757375160350&tin=02508201610067®Number=0000000000092785&sum=50000 [16:55:58]StoreToDocumentArchive [16:55:58]shift 352 fd 103481 [16:55:58]save to /storage/0352/doc_00103481 [16:55:58]save last doc name /storage/0352/doc_00103481 to /storage/kkm_last_doc_name [16:55:58]save OK [16:55:58]Clear old archive folders... [16:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:58]tlvbuf is B6F1D780 [16:55:58]SAM_PROTO_ClearQueue [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 09 00 00 [16:55:58]Write to MH i2c: E2 08 00 8B 6B 80 09 00 00 00 00 00 00 68 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 8B 6B 00 90 00 6A [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_ClearQueue done [16:55:58]KKMCreateOFDPacket [16:55:58]OFDProtocolAddRootSTLVToBuf [16:55:58]FM_MakeSignedData [16:55:58]FM_MakeSignedData [16:55:58]SAM_PROTO_SignData [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 01 02 [16:55:58]Write to MH i2c: E2 08 00 8C 6B 80 0D 01 02 00 00 00 00 70 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 8C 6B 00 90 00 6B [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=255 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 24 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 94 01 00 35 04 06 00 37 [16:55:58]Write to MH i2c: E2 02 01 8D 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 24 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 94 01 00 35 04 06 00 37 00 00 EC [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 8D 6B 00 90 00 6C [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=10 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 02 02 05 42 2D C3 90 1E [16:55:58]Write to MH i2c: E2 0D 00 8E 6B 80 0D 02 02 05 00 42 2D C3 90 1E 00 00 5D [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 8E 6B 00 90 00 6D [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 03 02 [16:55:58]Write to MH i2c: E2 08 00 8F 6B 80 0D 03 02 00 00 00 00 75 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 8F 6B 00 D9 14 F2 8D 10 67 94 02 90 00 EF [16:55:58]RAPDU: D9 14 F2 8D 10 67 94 02 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_SignData done [16:55:58]FM_MakeSignedData done [16:55:58]CreateOFDProtocolMessage [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 11 00 00 [16:55:58]Write to MH i2c: E2 08 00 90 6B 80 11 00 00 00 00 00 00 75 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 90 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [16:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:55:58]wFMCommunicate OK [16:55:58]CreateOFDProtocolMessage done [16:55:58]OFDSenderStorePacket 103481 [16:55:58]StoreOFDPacket docnum=103481 [16:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 41 07 01 64 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 24 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 94 01 00 35 04 06 00 37 42 2D C3 90 1E D9 14 F2 8D 10 67 94 02 [16:55:58]CheckFolder [16:55:58]dirname=/storage/ofd_packets [16:55:58]CheckFolder done [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00103481 [16:55:58]NVStorageSaveData ofd_packets/00103481 [16:55:58]File name is /storage/ofd_packets/00103481 [16:55:58]Write 301 bytes [16:55:58]NVStorageSaveData done [16:55:58]OFDSenderStorePacket done [16:55:58]KKMCreateOFDPacket done [16:55:58]NVStorageSaveData kkm_last_timestamp [16:55:58]File name is /storage/kkm_last_timestamp [16:55:58]Write 4 bytes [16:55:58]NVStorageSaveData done [16:55:58]ExternCall_PrintAddStr [16:55:58]wPrintStart [16:55:58]Write to MH i2c: 01 00 00 91 6B FC [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 91 6B 00 00 00 00 00 FF 0F 11 [16:55:58]RasterBufferAndPrint [16:55:58]line Счет N : (1)672669 [16:55:58]line ИНН: 02508201610067 [16:55:58]line Контрольно-Кассовый Чек [16:55:58]line ПРОДАЖА [16:55:58]line ТРК (МРК, ГНК) : 32 [16:55:58]line Товар: 2710124130 [16:55:58]line Аи-92-К-5 [16:55:58]line 7.540 * 66.40 [16:55:58]line = 500.66 [16:55:58]line НДС 12% НСП 1% [16:55:58]line > о реализуемом товаре [16:55:58]line ОКРУГЛЕНИЕ: -0.66 [16:55:58]line ИТОГО: 500.00 [16:55:58]line Внесено: 500.00 [16:55:58]line СДАЧА: 0.00 [16:55:58]line НСП 1% : 4.43 [16:55:58]line НДС 12% : 53.17 [16:55:58]line Наличными: 500.00 [16:55:58]line Безнал.: 0.00 [16:55:58]line Место: АЗС № 120 "Партнер Нефть" [16:55:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:55:58]line СНО: Общий режим [16:55:58]line Чек 165 18.06.2024 16:56 [16:55:58]line Смена: 352 ФФД: 1.0 [16:55:58]line ЗНМ: 0300000164 [16:55:58]line РНМ: 0000000000092785 [16:55:58]line Версия ККМ: 001 [16:55:58]line ФМ: 0000000000875093 [16:55:58]line ФД: 103481 [16:55:58]line ФПД: 60757375160350 [16:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103481&fm=60757375160350&tin=02508201610067®Number=0000000000092785&sum=50000 [16:55:59]OFD Sender: Processing packet 103481 [packets to send 17, broken 16] [16:55:59]ProducePacketName [16:55:59]name=ofd_packets/00103481 [16:55:59]OFD Sender: To server: pG, [16:55:59]CommunicateWithHost lk.salyk.kg:30040 [16:55:59]ConnectInit lk.salyk.kg [16:55:59]written 0, free lines is 4095 [16:55:59]Connected sock=11 [16:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 41 07 01 64 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 24 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 94 01 00 35 04 06 00 37 42 2D C3 90 1E D9 14 F2 8D 10 67 94 02 [16:55:59]Write to MH i2c: 01 00 00 BC 6B 27 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 BC 6B 00 00 00 00 00 D8 0C 12 [16:55:59]RasterBufferAndPrint [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]written 0, free lines is 3296 [16:55:59]MH_Cut [16:55:59]Write to MH i2c: D1 01 00 C3 6B 01 00 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 C3 6B 00 FF [16:55:59]Write to MH i2c: 01 00 00 C4 6B 2F [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 A0 47 00 7E 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 94 01 00 F4 03 04 00 B0 62 71 66 B6 04 01 00 00 33 D1 4E ED CE AF 35 9A [16:55:59]CommunicateWithHost err = 0 [16:55:59]CheckOFDResponse [16:55:59]1017 (14) - 77093643461234 [16:55:59]1041 (16) - 0000000000875093 [16:55:59]1040 (4) - 103481 [16:55:59]1012 (4) - 18.06.2024 10:34 [16:55:59]1206 (1) - 0 [16:55:59]OFD Sender: Remove packet 103481 [16:55:59]ProducePacketName [16:55:59]name=ofd_packets/00103481 [16:55:59]NVStorageDeleteData [16:56:00]OFD Sender: No OFD packet to send [16:56:00]*** Cut start [16:56:00]*** Partial cut [16:56:00]*** CUTSNS_PIN = 1 [16:56:00]*** CUTSNS_PIN = 0 [16:56:00]*** Brake cut motor [16:56:00]Read from MH i2c: 01 [16:56:00]MH_I2C_Read... [16:56:00]*** Stop cut motor [16:56:00]*** Cut end [16:56:00]Read from MH i2c: 01 07 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: 01 07 00 C4 6B 00 00 00 00 00 FF 0F 44 [16:56:00]process_action close_receipt done [16:56:00]requested_data is exist [16:56:00]produce_requested_data [16:56:00]requested_item fm.sn is exist - process it [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 11 00 00 [16:56:00]Write to MH i2c: E2 08 00 C5 6B 80 11 00 00 00 00 00 00 AA [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 C5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [16:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:00]wFMCommunicate OK [16:56:00]requested_item fd.num is exist - process it [16:56:00]SAM_PROTO_GetFieldsCounters [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 00 00 [16:56:00]Write to MH i2c: E2 08 00 C6 6B 80 13 00 00 00 00 00 00 AD [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 62 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 62 00 C6 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:01]wFMCommunicate OK [16:56:01]SAM_PROTO_GetFieldsCounters done [16:56:01]requested_item shift.num is exist - process it [16:56:01]requested_item shift.opened is exist - process it [16:56:01]req_shift_opened [16:56:01]FM_GetShiftState [16:56:01]SAM_PROTO_GetShiftState [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 13 01 00 [16:56:01]Write to MH i2c: E2 08 00 C7 6B 80 13 01 00 00 00 00 00 AF [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 0E 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 0E 00 C7 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 30 [16:56:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:56:01]wFMCommunicate OK [16:56:01]SAM_PROTO_GetShiftState done [16:56:01]FM_GetShiftState done [16:56:01]req_shift_opened done [16:56:01]requested_item shift.open_date is exist - process it [16:56:01]req_shift_open_date [16:56:01]req_shift_open_date done [16:56:01]produce_requested_data done [16:56:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103481,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:56:01]process_action_free close_receipt [16:56:01]json_value_free [16:56:01]json_value_free done [16:56:01]process_json_proto returns [16:56:01]Send response to host [16:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103481,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:56:01]free response buf [16:56:01]execute_script done [16:56:01]execute_script returns [16:56:01]free content buf [16:56:01]Sock 9.Close socket [16:56:01]Sock 9.Thread stoped [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:53]accept exits with 7 [16:57:53]New connection [16:57:53]New thread 3067084132 created [16:57:53]Thread 3067227492 joined [16:57:53]Waiting for new connection... [16:57:53] Sock 7.Parse request [16:57:53]Sock 7.Check first char [16:57:53]Sock 7.First char is OK [16:57:53]request: POST /json_proto HTTP/1.0 [16:57:53]Method: POST [16:57:53]URL: /json_proto [16:57:53]Method is POST - this is cgi request [16:57:53]url: /json_proto [16:57:53]query_string will be loaded in cgi processing [16:57:53]execute_cgi json_proto POST (null) [16:57:53]execute_cgi path=json_proto method=POST [16:57:53]POST find Content-Length [16:57:53]Host: 172.17.38.133:8080 [16:57:53]Content-Length: 678 [16:57:53]Content-Type: application/json [16:57:53] [16:57:53]POST finish read [16:57:53]Found Content-Length = 678 [16:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:53]execute_script... [16:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:53]POST & json_proto [16:57:53]process_json_proto [16:57:53]json parsed OK: [16:57:53]protocol is kg_v1.0 [16:57:53]action value=close_receipt [16:57:53]process_action close_receipt [16:57:53]cmd_close_receipt [16:57:53]MH_GetDate [16:57:53]Write to MH i2c: F0 00 00 C8 6B 22 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 09 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 09 00 C8 6B 00 98 BC 71 66 BD 8F 7C 64 82 [16:57:53]GetLastDocTimeStamp 1718729764 [16:57:53]current date 1718729880 [16:57:53]FM_GetShiftState [16:57:53]SAM_PROTO_GetShiftState [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 13 01 00 [16:57:53]Write to MH i2c: E2 08 00 C9 6B 80 13 01 00 00 00 00 00 B1 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 C9 6B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 32 [16:57:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:57:53]wFMCommunicate OK [16:57:53]SAM_PROTO_GetShiftState done [16:57:53]FM_GetShiftState done [16:57:53]opened in 1718670284 [16:57:53]opened+sec_in_day 1718756684 [16:57:53]quantity*price = 80012 [16:57:53]sum+1 = 80013 [16:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 166 18.06.2024 16:58 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103482 ФПД: 58341475886232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165800&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103482&fm=58341475886232&tin=02508201610067®Number=0000000000092785&sum=80000 [16:57:54]StoreToDocumentArchive [16:57:54]shift 352 fd 103482 [16:57:54]save to /storage/0352/doc_00103482 [16:57:54]save last doc name /storage/0352/doc_00103482 to /storage/kkm_last_doc_name [16:57:54]save OK [16:57:54]Clear old archive folders... [16:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:54]tlvbuf is 01462370 [16:57:54]SAM_PROTO_ClearQueue [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 09 00 00 [16:57:54]Write to MH i2c: E2 08 00 D6 6B 80 09 00 00 00 00 00 00 B3 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 D6 6B 00 90 00 B5 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_ClearQueue done [16:57:54]KKMCreateOFDPacket [16:57:54]OFDProtocolAddRootSTLVToBuf [16:57:54]FM_MakeSignedData [16:57:54]FM_MakeSignedData [16:57:54]SAM_PROTO_SignData [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 01 02 [16:57:54]Write to MH i2c: E2 08 00 D7 6B 80 0D 01 02 00 00 00 00 BB [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 D7 6B 00 90 00 B6 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=255 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 98 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 94 01 00 35 04 06 00 35 [16:57:54]Write to MH i2c: E2 02 01 D8 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 98 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 94 01 00 35 04 06 00 35 00 00 9A [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 D8 6B 00 90 00 B7 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=10 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 02 02 05 0F AE F2 24 98 [16:57:54]Write to MH i2c: E2 0D 00 D9 6B 80 0D 02 02 05 00 0F AE F2 24 98 00 00 33 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 D9 6B 00 90 00 B8 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 03 02 [16:57:54]Write to MH i2c: E2 08 00 DA 6B 80 0D 03 02 00 00 00 00 C0 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 DA 6B 00 BA 5D 97 C2 E9 51 5E BC 90 00 85 [16:57:54]RAPDU: BA 5D 97 C2 E9 51 5E BC 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_SignData done [16:57:54]FM_MakeSignedData done [16:57:54]CreateOFDProtocolMessage [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 11 00 00 [16:57:54]Write to MH i2c: E2 08 00 DB 6B 80 11 00 00 00 00 00 00 C0 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 DB 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [16:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:57:54]wFMCommunicate OK [16:57:54]CreateOFDProtocolMessage done [16:57:54]OFDSenderStorePacket 103482 [16:57:54]StoreOFDPacket docnum=103482 [16:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 E4 07 01 CB DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 98 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 94 01 00 35 04 06 00 35 0F AE F2 24 98 BA 5D 97 C2 E9 51 5E BC [16:57:54]CheckFolder [16:57:54]dirname=/storage/ofd_packets [16:57:54]CheckFolder done [16:57:54]ProducePacketName [16:57:54]name=ofd_packets/00103482 [16:57:54]NVStorageSaveData ofd_packets/00103482 [16:57:54]File name is /storage/ofd_packets/00103482 [16:57:54]Write 301 bytes [16:57:54]NVStorageSaveData done [16:57:54]OFDSenderStorePacket done [16:57:54]KKMCreateOFDPacket done [16:57:54]NVStorageSaveData kkm_last_timestamp [16:57:54]File name is /storage/kkm_last_timestamp [16:57:54]Write 4 bytes [16:57:54]NVStorageSaveData done [16:57:54]ExternCall_PrintAddStr [16:57:54]wPrintStart [16:57:54]Write to MH i2c: 01 00 00 DC 6B 47 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 07 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 07 00 DC 6B 00 00 00 00 00 FF 0F 5C [16:57:54]RasterBufferAndPrint [16:57:54]line Счет N : (1)672670 [16:57:54]line ИНН: 02508201610067 [16:57:54]line Контрольно-Кассовый Чек [16:57:54]line ПРОДАЖА [16:57:54]line ТРК (МРК, ГНК) : 42 [16:57:54]line Товар: 2710124130 [16:57:54]line Аи-92-К-5 [16:57:54]line 12.050 * 66.40 [16:57:54]line = 800.12 [16:57:54]line НДС 12% НСП 1% [16:57:54]line > о реализуемом товаре [16:57:54]line ОКРУГЛЕНИЕ: -0.12 [16:57:54]line ИТОГО: 800.00 [16:57:54]line Внесено: 800.00 [16:57:54]line СДАЧА: 0.00 [16:57:54]line НСП 1% : 7.08 [16:57:54]line НДС 12% : 84.97 [16:57:54]line Наличными: 800.00 [16:57:54]line Безнал.: 0.00 [16:57:54]line Место: АЗС № 120 "Партнер Нефть" [16:57:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:57:54]line СНО: Общий режим [16:57:54]line Чек 166 18.06.2024 16:58 [16:57:54]line Смена: 352 ФФД: 1.0 [16:57:54]line ЗНМ: 0300000164 [16:57:54]line РНМ: 0000000000092785 [16:57:54]line Версия ККМ: 001 [16:57:54]line ФМ: 0000000000875093 [16:57:54]line ФД: 103482 [16:57:54]line ФПД: 58341475886232 [16:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165800&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103482&fm=58341475886232&tin=02508201610067®Number=0000000000092785&sum=80000 [16:57:55]OFD Sender: Processing packet 103482 [packets to send 17, broken 16] [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00103482 [16:57:55]OFD Sender: To server: pG, [16:57:55]CommunicateWithHost lk.salyk.kg:30040 [16:57:55]ConnectInit lk.salyk.kg [16:57:55]written 0, free lines is 4095 [16:57:55]Connected sock=10 [16:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 E4 07 01 CB DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 98 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 94 01 00 35 04 06 00 35 0F AE F2 24 98 BA 5D 97 C2 E9 51 5E BC [16:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 28 12 47 00 E8 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 35 30 39 33 10 04 04 00 3A 94 01 00 F4 03 04 00 24 63 71 66 B6 04 01 00 00 E3 D2 36 C4 FD 5C 46 55 [16:57:55]CommunicateWithHost err = 0 [16:57:55]CheckOFDResponse [16:57:55]1017 (14) - 77093643461234 [16:57:55]1041 (16) - 0000000000875093 [16:57:55]1040 (4) - 103482 [16:57:55]1012 (4) - 18.06.2024 10:36 [16:57:55]1206 (1) - 0 [16:57:55]OFD Sender: Remove packet 103482 [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00103482 [16:57:55]NVStorageDeleteData [16:57:55]Write to MH i2c: 01 00 00 07 6C 73 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 07 6C 00 00 00 00 00 E1 0C 67 [16:57:55]RasterBufferAndPrint [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]written 0, free lines is 3305 [16:57:55]MH_Cut [16:57:55]Write to MH i2c: D1 01 00 0E 6C 01 4C [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 0E 6C 00 4B [16:57:55]Write to MH i2c: 01 00 00 0F 6C 7B [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:56]OFD Sender: No OFD packet to send [16:57:56]*** Cut start [16:57:56]*** Partial cut [16:57:56]*** CUTSNS_PIN = 1 [16:57:56]*** CUTSNS_PIN = 0 [16:57:56]*** Brake cut motor [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [16:57:56]*** Stop cut motor [16:57:56]*** Cut end [16:57:56]Read from MH i2c: 01 07 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 0F 6C 00 00 00 00 00 FF 0F 90 [16:57:56]process_action close_receipt done [16:57:56]requested_data is exist [16:57:56]produce_requested_data [16:57:56]requested_item fm.sn is exist - process it [16:57:56]wFMCommunicate request_size=4 [16:57:56]MH_SAM_APDU [16:57:56]CAPDU: 80 11 00 00 [16:57:56]Write to MH i2c: E2 08 00 10 6C 80 11 00 00 00 00 00 00 F6 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 17 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 17 00 10 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [16:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:57:57]wFMCommunicate OK [16:57:57]requested_item fd.num is exist - process it [16:57:57]SAM_PROTO_GetFieldsCounters [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 00 00 [16:57:57]Write to MH i2c: E2 08 00 11 6C 80 13 00 00 00 00 00 00 F9 [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 11 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetFieldsCounters done [16:57:57]requested_item shift.num is exist - process it [16:57:57]requested_item shift.opened is exist - process it [16:57:57]req_shift_opened [16:57:57]FM_GetShiftState [16:57:57]SAM_PROTO_GetShiftState [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 01 00 [16:57:57]Write to MH i2c: E2 08 00 12 6C 80 13 01 00 00 00 00 00 FB [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 12 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7C [16:57:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetShiftState done [16:57:57]FM_GetShiftState done [16:57:57]req_shift_opened done [16:57:57]requested_item shift.open_date is exist - process it [16:57:57]req_shift_open_date [16:57:57]req_shift_open_date done [16:57:57]produce_requested_data done [16:57:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103482,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:57:57]process_action_free close_receipt [16:57:57]json_value_free [16:57:57]json_value_free done [16:57:57]process_json_proto returns [16:57:57]Send response to host [16:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103482,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:57:57]free response buf [16:57:57]execute_script done [16:57:57]execute_script returns [16:57:57]free content buf [16:57:57]Sock 7.Close socket [16:57:57]Sock 7.Thread stoped [16:58:01]OFD Sender: No OFD packet to send [16:58:04]accept exits with 9 [16:58:04]New connection [16:58:04]New thread 3067227492 created [16:58:04]Thread 3067084132 joined [16:58:04]Waiting for new connection... [16:58:04] Sock 9.Parse request [16:58:04]Sock 9.Check first char [16:58:04]Sock 9.First char is OK [16:58:04]request: POST /json_proto HTTP/1.0 [16:58:04]Method: POST [16:58:04]URL: /json_proto [16:58:04]Method is POST - this is cgi request [16:58:04]url: /json_proto [16:58:04]query_string will be loaded in cgi processing [16:58:04]execute_cgi json_proto POST (null) [16:58:04]execute_cgi path=json_proto method=POST [16:58:04]POST find Content-Length [16:58:04]Host: 172.17.38.133:8080 [16:58:04]Content-Length: 661 [16:58:04]Content-Type: application/json [16:58:04] [16:58:04]POST finish read [16:58:04]Found Content-Length = 661 [16:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:04]execute_script... [16:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:04]POST & json_proto [16:58:04]process_json_proto [16:58:04]json parsed OK: [16:58:04]protocol is kg_v1.0 [16:58:04]action value=close_receipt [16:58:04]process_action close_receipt [16:58:04]cmd_close_receipt [16:58:04]MH_GetDate [16:58:04]Write to MH i2c: F0 00 00 13 6C 6E [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: F0 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: F0 09 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: F0 09 00 13 6C 00 A3 BC 71 66 BD 8F 7C 64 D9 [16:58:04]GetLastDocTimeStamp 1718729880 [16:58:04]current date 1718729891 [16:58:04]FM_GetShiftState [16:58:04]SAM_PROTO_GetShiftState [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 13 01 00 [16:58:04]Write to MH i2c: E2 08 00 14 6C 80 13 01 00 00 00 00 00 FD [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 0E 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 0E 00 14 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7E [16:58:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:58:04]wFMCommunicate OK [16:58:04]SAM_PROTO_GetShiftState done [16:58:04]FM_GetShiftState done [16:58:04]opened in 1718670284 [16:58:04]opened+sec_in_day 1718756684 [16:58:04]quantity*price = 66400 [16:58:04]sum+1 = 66401 [16:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 1000.00 СДАЧА: 336.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 167 18.06.2024 16:58 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103483 ФПД: 231648169342627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103483&fm=231648169342627&tin=02508201610067®Number=0000000000092785&sum=66400 [16:58:05]StoreToDocumentArchive [16:58:05]shift 352 fd 103483 [16:58:05]save to /storage/0352/doc_00103483 [16:58:05]save last doc name /storage/0352/doc_00103483 to /storage/kkm_last_doc_name [16:58:05]save OK [16:58:05]Clear old archive folders... [16:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:05]tlvbuf is 0134FFD0 [16:58:05]SAM_PROTO_ClearQueue [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 09 00 00 [16:58:05]Write to MH i2c: E2 08 00 21 6C 80 09 00 00 00 00 00 00 FF [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 21 6C 00 90 00 01 [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]SAM_PROTO_ClearQueue done [16:58:05]KKMCreateOFDPacket [16:58:05]OFDProtocolAddRootSTLVToBuf [16:58:05]FM_MakeSignedData [16:58:05]FM_MakeSignedData [16:58:05]SAM_PROTO_SignData [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 01 02 [16:58:05]Write to MH i2c: E2 08 00 22 6C 80 0D 01 02 00 00 00 00 07 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 22 6C 00 90 00 02 [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]wFMCommunicate request_size=255 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A3 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 94 01 00 35 04 06 00 D2 [16:58:05]Write to MH i2c: E2 02 01 23 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A3 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 94 01 00 35 04 06 00 D2 00 00 57 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 23 6C 00 90 00 03 [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]wFMCommunicate request_size=10 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 02 02 05 AE CA D8 B6 A3 [16:58:05]Write to MH i2c: E2 0D 00 24 6C 80 0D 02 02 05 00 AE CA D8 B6 A3 00 00 BD [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 03 00 24 6C 00 90 00 04 [16:58:05]RAPDU: 90 00 [16:58:05]wFMCommunicate OK [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 0D 03 02 [16:58:05]Write to MH i2c: E2 08 00 25 6C 80 0D 03 02 00 00 00 00 0C [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0B 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0B 00 25 6C 00 A2 34 41 A6 61 08 7D 58 90 00 08 [16:58:05]RAPDU: A2 34 41 A6 61 08 7D 58 90 00 [16:58:05]wFMCommunicate OK [16:58:05]SAM_PROTO_SignData done [16:58:05]FM_MakeSignedData done [16:58:05]CreateOFDProtocolMessage [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 11 00 00 [16:58:05]Write to MH i2c: E2 08 00 26 6C 80 11 00 00 00 00 00 00 0C [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 26 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [16:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:58:05]wFMCommunicate OK [16:58:05]CreateOFDProtocolMessage done [16:58:05]OFDSenderStorePacket 103483 [16:58:05]StoreOFDPacket docnum=103483 [16:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A3 F9 07 01 0F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A3 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 94 01 00 35 04 06 00 D2 AE CA D8 B6 A3 A2 34 41 A6 61 08 7D 58 [16:58:05]CheckFolder [16:58:05]dirname=/storage/ofd_packets [16:58:05]CheckFolder done [16:58:05]ProducePacketName [16:58:05]name=ofd_packets/00103483 [16:58:05]NVStorageSaveData ofd_packets/00103483 [16:58:05]File name is /storage/ofd_packets/00103483 [16:58:05]Write 301 bytes [16:58:05]NVStorageSaveData done [16:58:05]OFDSenderStorePacket done [16:58:05]KKMCreateOFDPacket done [16:58:05]NVStorageSaveData kkm_last_timestamp [16:58:05]File name is /storage/kkm_last_timestamp [16:58:05]Write 4 bytes [16:58:05]NVStorageSaveData done [16:58:05]ExternCall_PrintAddStr [16:58:05]wPrintStart [16:58:05]Write to MH i2c: 01 00 00 27 6C 93 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 07 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: 01 07 00 27 6C 00 00 00 00 00 FF 0F A8 [16:58:05]RasterBufferAndPrint [16:58:05]line Счет N : (1)672671 [16:58:05]line ИНН: 02508201610067 [16:58:05]line Контрольно-Кассовый Чек [16:58:05]line ПРОДАЖА [16:58:05]line ТРК (МРК, ГНК) : 32 [16:58:05]line Товар: 2710124130 [16:58:05]line Аи-92-К-5 [16:58:05]line 10.000 * 66.40 [16:58:05]line = 664.00 [16:58:05]line НДС 12% НСП 1% [16:58:05]line > о реализуемом товаре [16:58:05]line ИТОГО: 664.00 [16:58:05]line Внесено: 1000.00 [16:58:05]line СДАЧА: 336.00 [16:58:05]line НСП 1% : 5.88 [16:58:05]line НДС 12% : 70.51 [16:58:05]line Наличными: 664.00 [16:58:05]line Безнал.: 0.00 [16:58:05]line Место: АЗС № 120 "Партнер Нефть" [16:58:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:58:05]line СНО: Общий режим [16:58:05]line Чек 167 18.06.2024 16:58 [16:58:05]line Смена: 352 ФФД: 1.0 [16:58:05]line ЗНМ: 0300000164 [16:58:05]line РНМ: 0000000000092785 [16:58:05]line Версия ККМ: 001 [16:58:05]line ФМ: 0000000000875093 [16:58:05]line ФД: 103483 [16:58:05]line ФПД: 231648169342627 [16:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T165811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103483&fm=231648169342627&tin=02508201610067®Number=0000000000092785&sum=66400 [16:58:05]written 0, free lines is 4095 [16:58:05]OFD Sender: Processing packet 103483 [packets to send 17, broken 16] [16:58:05]ProducePacketName [16:58:05]name=ofd_packets/00103483 [16:58:05]OFD Sender: To server: pG, [16:58:05]CommunicateWithHost lk.salyk.kg:30040 [16:58:05]ConnectInit lk.salyk.kg [16:58:06]Connected sock=10 [16:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A3 F9 07 01 0F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A3 BC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 94 01 00 35 04 06 00 D2 AE CA D8 B6 A3 A2 34 41 A6 61 08 7D 58 [16:58:06]Write to MH i2c: 01 00 00 51 6C BD [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 51 6C 00 00 00 00 00 FC 0C CC [16:58:06]RasterBufferAndPrint [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]line [16:58:06]written 0, free lines is 3337 [16:58:06]MH_Cut [16:58:06]Write to MH i2c: D1 01 00 58 6C 01 96 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 01 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: D1 01 00 58 6C 00 95 [16:58:06]Write to MH i2c: 01 00 00 59 6C C5 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BF E3 47 00 D4 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 94 01 00 F4 03 04 00 2F 63 71 66 B6 04 01 00 00 11 1D 57 08 F1 C6 38 4A [16:58:06]CommunicateWithHost err = 0 [16:58:06]CheckOFDResponse [16:58:06]1017 (14) - 77093643461234 [16:58:06]1041 (16) - 0000000000875093 [16:58:06]1040 (4) - 103483 [16:58:06]1012 (4) - 18.06.2024 10:36 [16:58:06]1206 (1) - 0 [16:58:06]OFD Sender: Remove packet 103483 [16:58:06]ProducePacketName [16:58:06]name=ofd_packets/00103483 [16:58:06]NVStorageDeleteData [16:58:06]OFD Sender: No OFD packet to send [16:58:06]*** Cut start [16:58:06]*** Partial cut [16:58:06]*** CUTSNS_PIN = 1 [16:58:07]*** CUTSNS_PIN = 0 [16:58:07]*** Brake cut motor [16:58:07]Read from MH i2c: 01 [16:58:07]MH_I2C_Read... [16:58:07]*** Stop cut motor [16:58:07]*** Cut end [16:58:07]Read from MH i2c: 01 07 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: 01 07 00 59 6C 00 00 00 00 00 FF 0F DA [16:58:07]process_action close_receipt done [16:58:07]requested_data is exist [16:58:07]produce_requested_data [16:58:07]requested_item fm.sn is exist - process it [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 11 00 00 [16:58:07]Write to MH i2c: E2 08 00 5A 6C 80 11 00 00 00 00 00 00 40 [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 17 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 17 00 5A 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [16:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:58:07]wFMCommunicate OK [16:58:07]requested_item fd.num is exist - process it [16:58:07]SAM_PROTO_GetFieldsCounters [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 13 00 00 [16:58:07]Write to MH i2c: E2 08 00 5B 6C 80 13 00 00 00 00 00 00 43 [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 5B 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetFieldsCounters done [16:58:07]requested_item shift.num is exist - process it [16:58:07]requested_item shift.opened is exist - process it [16:58:07]req_shift_opened [16:58:07]FM_GetShiftState [16:58:07]SAM_PROTO_GetShiftState [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 13 01 00 [16:58:07]Write to MH i2c: E2 08 00 5C 6C 80 13 01 00 00 00 00 00 45 [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 0E 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 0E 00 5C 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C6 [16:58:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetShiftState done [16:58:07]FM_GetShiftState done [16:58:07]req_shift_opened done [16:58:07]requested_item shift.open_date is exist - process it [16:58:07]req_shift_open_date [16:58:07]req_shift_open_date done [16:58:07]produce_requested_data done [16:58:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103483,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [16:58:07]process_action_free close_receipt [16:58:07]json_value_free [16:58:07]json_value_free done [16:58:07]process_json_proto returns [16:58:07]Send response to host [16:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103483,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [16:58:07]free response buf [16:58:07]execute_script done [16:58:07]execute_script returns [16:58:07]free content buf [16:58:07]Sock 9.Close socket [16:58:07]Sock 9.Thread stoped [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:11]accept exits with 7 [17:10:11]New connection [17:10:11]New thread 3067084132 created [17:10:11]Thread 3067227492 joined [17:10:11]Waiting for new connection... [17:10:11] Sock 7.Parse request [17:10:11]Sock 7.Check first char [17:10:11]Sock 7.First char is OK [17:10:11]request: POST /json_proto HTTP/1.0 [17:10:11]Method: POST [17:10:11]URL: /json_proto [17:10:11]Method is POST - this is cgi request [17:10:11]url: /json_proto [17:10:11]query_string will be loaded in cgi processing [17:10:11]execute_cgi json_proto POST (null) [17:10:11]execute_cgi path=json_proto method=POST [17:10:11]POST find Content-Length [17:10:11]Host: 172.17.38.133:8080 [17:10:11]Content-Length: 678 [17:10:11]Content-Type: application/json [17:10:11] [17:10:11]POST finish read [17:10:11]Found Content-Length = 678 [17:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:11]execute_script... [17:10:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:11]POST & json_proto [17:10:11]process_json_proto [17:10:11]json parsed OK: [17:10:11]protocol is kg_v1.0 [17:10:11]action value=close_receipt [17:10:11]process_action close_receipt [17:10:11]cmd_close_receipt [17:10:11]MH_GetDate [17:10:11]Write to MH i2c: F0 00 00 5D 6C B8 [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: F0 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: F0 09 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: F0 09 00 5D 6C 00 7B BF 71 66 BD 8F 7C 64 FE [17:10:11]GetLastDocTimeStamp 1718729891 [17:10:11]current date 1718730619 [17:10:11]FM_GetShiftState [17:10:11]SAM_PROTO_GetShiftState [17:10:11]wFMCommunicate request_size=4 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 13 01 00 [17:10:11]Write to MH i2c: E2 08 00 5E 6C 80 13 01 00 00 00 00 00 47 [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:11]Read from MH i2c: E2 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 0E 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 0E 00 5E 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C8 [17:10:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:10:11]wFMCommunicate OK [17:10:11]SAM_PROTO_GetShiftState done [17:10:11]FM_GetShiftState done [17:10:11]opened in 1718670284 [17:10:11]opened+sec_in_day 1718756684 [17:10:11]quantity*price = 80012 [17:10:11]sum+1 = 80013 [17:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 168 18.06.2024 17:10 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103484 ФПД: 192539806012344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103484&fm=192539806012344&tin=02508201610067®Number=0000000000092785&sum=80000 [17:10:12]StoreToDocumentArchive [17:10:12]shift 352 fd 103484 [17:10:12]save to /storage/0352/doc_00103484 [17:10:12]save last doc name /storage/0352/doc_00103484 to /storage/kkm_last_doc_name [17:10:12]save OK [17:10:12]Clear old archive folders... [17:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:12]tlvbuf is 01337DD0 [17:10:12]SAM_PROTO_ClearQueue [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 09 00 00 [17:10:12]Write to MH i2c: E2 08 00 6B 6C 80 09 00 00 00 00 00 00 49 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 6B 6C 00 90 00 4B [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]SAM_PROTO_ClearQueue done [17:10:12]KKMCreateOFDPacket [17:10:12]OFDProtocolAddRootSTLVToBuf [17:10:12]FM_MakeSignedData [17:10:12]FM_MakeSignedData [17:10:12]SAM_PROTO_SignData [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 01 02 [17:10:12]Write to MH i2c: E2 08 00 6C 6C 80 0D 01 02 00 00 00 00 51 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 6C 6C 00 90 00 4C [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=255 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7B BF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 94 01 00 35 04 06 00 AF [17:10:12]Write to MH i2c: E2 02 01 6D 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7B BF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 94 01 00 35 04 06 00 AF 00 00 94 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 03 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 03 00 6D 6C 00 90 00 4D [17:10:13]RAPDU: 90 00 [17:10:13]wFMCommunicate OK [17:10:13]wFMCommunicate request_size=10 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 0D 02 02 05 1D 2A BE 13 B8 [17:10:13]Write to MH i2c: E2 0D 00 6E 6C 80 0D 02 02 05 00 1D 2A BE 13 B8 00 00 2E [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 03 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 03 00 6E 6C 00 90 00 4E [17:10:13]RAPDU: 90 00 [17:10:13]wFMCommunicate OK [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 0D 03 02 [17:10:13]Write to MH i2c: E2 08 00 6F 6C 80 0D 03 02 00 00 00 00 56 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 0B 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 0B 00 6F 6C 00 BD 1F 03 3C 7B 4D 25 32 90 00 91 [17:10:13]RAPDU: BD 1F 03 3C 7B 4D 25 32 90 00 [17:10:13]wFMCommunicate OK [17:10:13]SAM_PROTO_SignData done [17:10:13]FM_MakeSignedData done [17:10:13]CreateOFDProtocolMessage [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 11 00 00 [17:10:13]Write to MH i2c: E2 08 00 70 6C 80 11 00 00 00 00 00 00 56 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:13]Read from MH i2c: E2 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 17 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: E2 17 00 70 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [17:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:10:13]wFMCommunicate OK [17:10:13]CreateOFDProtocolMessage done [17:10:13]OFDSenderStorePacket 103484 [17:10:13]StoreOFDPacket docnum=103484 [17:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8C 73 07 01 C0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7B BF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 94 01 00 35 04 06 00 AF 1D 2A BE 13 B8 BD 1F 03 3C 7B 4D 25 32 [17:10:13]CheckFolder [17:10:13]dirname=/storage/ofd_packets [17:10:13]CheckFolder done [17:10:13]ProducePacketName [17:10:13]name=ofd_packets/00103484 [17:10:13]NVStorageSaveData ofd_packets/00103484 [17:10:13]File name is /storage/ofd_packets/00103484 [17:10:13]Write 301 bytes [17:10:13]NVStorageSaveData done [17:10:13]OFDSenderStorePacket done [17:10:13]KKMCreateOFDPacket done [17:10:13]NVStorageSaveData kkm_last_timestamp [17:10:13]File name is /storage/kkm_last_timestamp [17:10:13]Write 4 bytes [17:10:13]NVStorageSaveData done [17:10:13]ExternCall_PrintAddStr [17:10:13]wPrintStart [17:10:13]Write to MH i2c: 01 00 00 71 6C DD [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 71 6C 00 00 00 00 00 FF 0F F2 [17:10:13]RasterBufferAndPrint [17:10:13]line Счет N : (1)672672 [17:10:13]line ИНН: 02508201610067 [17:10:13]line Контрольно-Кассовый Чек [17:10:13]line ПРОДАЖА [17:10:13]line ТРК (МРК, ГНК) : 32 [17:10:13]line Товар: 2710124130 [17:10:13]line Аи-92-К-5 [17:10:13]line 12.050 * 66.40 [17:10:13]line = 800.12 [17:10:13]line НДС 12% НСП 1% [17:10:13]line > о реализуемом товаре [17:10:13]line ОКРУГЛЕНИЕ: -0.12 [17:10:13]line ИТОГО: 800.00 [17:10:13]line Внесено: 800.00 [17:10:13]line СДАЧА: 0.00 [17:10:13]line НСП 1% : 7.08 [17:10:13]line НДС 12% : 84.97 [17:10:13]line Наличными: 800.00 [17:10:13]line Безнал.: 0.00 [17:10:13]line Место: АЗС № 120 "Партнер Нефть" [17:10:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:10:13]line СНО: Общий режим [17:10:13]line Чек 168 18.06.2024 17:10 [17:10:13]line Смена: 352 ФФД: 1.0 [17:10:13]line ЗНМ: 0300000164 [17:10:13]line РНМ: 0000000000092785 [17:10:13]line Версия ККМ: 001 [17:10:13]line ФМ: 0000000000875093 [17:10:13]line ФД: 103484 [17:10:13]line ФПД: 192539806012344 [17:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103484&fm=192539806012344&tin=02508201610067®Number=0000000000092785&sum=80000 [17:10:13]OFD Sender: Processing packet 103484 [packets to send 17, broken 16] [17:10:13]ProducePacketName [17:10:13]name=ofd_packets/00103484 [17:10:13]OFD Sender: To server: pG, [17:10:13]CommunicateWithHost lk.salyk.kg:30040 [17:10:13]ConnectInit lk.salyk.kg [17:10:13]written 0, free lines is 4095 [17:10:13]Connected sock=10 [17:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 8C 73 07 01 C0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7B BF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 94 01 00 35 04 06 00 AF 1D 2A BE 13 B8 BD 1F 03 3C 7B 4D 25 32 [17:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8E 2E 47 00 57 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 94 01 00 F4 03 04 00 07 66 71 66 B6 04 01 00 00 55 1E 15 C6 1E C7 BB C8 [17:10:14]CommunicateWithHost err = 0 [17:10:14]CheckOFDResponse [17:10:14]1017 (14) - 77093643461234 [17:10:14]1041 (16) - 0000000000875093 [17:10:14]1040 (4) - 103484 [17:10:14]1012 (4) - 18.06.2024 10:48 [17:10:14]1206 (1) - 0 [17:10:14]OFD Sender: Remove packet 103484 [17:10:14]ProducePacketName [17:10:14]name=ofd_packets/00103484 [17:10:14]NVStorageDeleteData [17:10:14]Write to MH i2c: 01 00 00 9C 6C 08 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 07 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 07 00 9C 6C 00 00 00 00 00 ED 0C 08 [17:10:14]RasterBufferAndPrint [17:10:14]line [17:10:14]line [17:10:14]line [17:10:14]line [17:10:14]line [17:10:14]written 0, free lines is 3315 [17:10:14]MH_Cut [17:10:14]Write to MH i2c: D1 01 00 A3 6C 01 E1 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: D1 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: D1 01 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: D1 01 00 A3 6C 00 E0 [17:10:14]Write to MH i2c: 01 00 00 A4 6C 10 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]OFD Sender: No OFD packet to send [17:10:14]*** Cut start [17:10:14]*** Partial cut [17:10:14]*** CUTSNS_PIN = 1 [17:10:14]*** CUTSNS_PIN = 0 [17:10:15]*** Brake cut motor [17:10:15]Read from MH i2c: 01 [17:10:15]MH_I2C_Read... [17:10:15]*** Stop cut motor [17:10:15]*** Cut end [17:10:15]Read from MH i2c: 01 07 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 A4 6C 00 00 00 00 00 FF 0F 25 [17:10:15]process_action close_receipt done [17:10:15]requested_data is exist [17:10:15]produce_requested_data [17:10:15]requested_item fm.sn is exist - process it [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 11 00 00 [17:10:15]Write to MH i2c: E2 08 00 A5 6C 80 11 00 00 00 00 00 00 8B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 A5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [17:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:10:15]wFMCommunicate OK [17:10:15]requested_item fd.num is exist - process it [17:10:15]SAM_PROTO_GetFieldsCounters [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 00 00 [17:10:15]Write to MH i2c: E2 08 00 A6 6C 80 13 00 00 00 00 00 00 8E [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 62 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 62 00 A6 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [17:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetFieldsCounters done [17:10:15]requested_item shift.num is exist - process it [17:10:15]requested_item shift.opened is exist - process it [17:10:15]req_shift_opened [17:10:15]FM_GetShiftState [17:10:15]SAM_PROTO_GetShiftState [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 01 00 [17:10:15]Write to MH i2c: E2 08 00 A7 6C 80 13 01 00 00 00 00 00 90 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 A7 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 11 [17:10:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftState done [17:10:15]FM_GetShiftState done [17:10:15]req_shift_opened done [17:10:15]requested_item shift.open_date is exist - process it [17:10:15]req_shift_open_date [17:10:15]req_shift_open_date done [17:10:15]produce_requested_data done [17:10:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103484,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:10:15]process_action_free close_receipt [17:10:15]json_value_free [17:10:15]json_value_free done [17:10:15]process_json_proto returns [17:10:15]Send response to host [17:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103484,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:10:15]free response buf [17:10:15]execute_script done [17:10:15]execute_script returns [17:10:15]free content buf [17:10:15]Sock 7.Close socket [17:10:15]Sock 7.Thread stoped [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:07]accept exits with 9 [17:14:07]New connection [17:14:07]New thread 3067227492 created [17:14:07]Thread 3067084132 joined [17:14:07]Waiting for new connection... [17:14:07] Sock 9.Parse request [17:14:07]Sock 9.Check first char [17:14:07]Sock 9.First char is OK [17:14:07]request: POST /json_proto HTTP/1.0 [17:14:07]Method: POST [17:14:07]URL: /json_proto [17:14:07]Method is POST - this is cgi request [17:14:07]url: /json_proto [17:14:07]query_string will be loaded in cgi processing [17:14:07]execute_cgi json_proto POST (null) [17:14:07]execute_cgi path=json_proto method=POST [17:14:07]POST find Content-Length [17:14:07]Host: 172.17.38.133:8080 [17:14:07]Content-Length: 677 [17:14:07]Content-Type: application/json [17:14:07] [17:14:07]POST finish read [17:14:07]Found Content-Length = 677 [17:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:07]execute_script... [17:14: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)672673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:07]POST & json_proto [17:14:07]process_json_proto [17:14:07]json parsed OK: [17:14:07]protocol is kg_v1.0 [17:14:07]action value=close_receipt [17:14:07]process_action close_receipt [17:14:07]cmd_close_receipt [17:14:07]MH_GetDate [17:14:07]Write to MH i2c: F0 00 00 A8 6C 03 [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 09 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 09 00 A8 6C 00 66 C0 71 66 BD 8F 7C 64 35 [17:14:07]GetLastDocTimeStamp 1718730619 [17:14:07]current date 1718730854 [17:14:07]FM_GetShiftState [17:14:07]SAM_PROTO_GetShiftState [17:14:07]wFMCommunicate request_size=4 [17:14:07]MH_SAM_APDU [17:14:07]CAPDU: 80 13 01 00 [17:14:07]Write to MH i2c: E2 08 00 A9 6C 80 13 01 00 00 00 00 00 92 [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:07]Read from MH i2c: E2 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: E2 0E 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: E2 0E 00 A9 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 13 [17:14:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:14:07]wFMCommunicate OK [17:14:07]SAM_PROTO_GetShiftState done [17:14:07]FM_GetShiftState done [17:14:07]opened in 1718670284 [17:14:07]opened+sec_in_day 1718756684 [17:14:07]quantity*price = 60025 [17:14:07]sum+1 = 60027 [17:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 169 18.06.2024 17:14 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103485 ФПД: 153815140016675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171414&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103485&fm=153815140016675&tin=02508201610067®Number=0000000000092785&sum=60000 [17:14:08]StoreToDocumentArchive [17:14:08]shift 352 fd 103485 [17:14:08]save to /storage/0352/doc_00103485 [17:14:08]save last doc name /storage/0352/doc_00103485 to /storage/kkm_last_doc_name [17:14:08]save OK [17:14:08]Clear old archive folders... [17:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:08]tlvbuf is 0134FFE0 [17:14:08]SAM_PROTO_ClearQueue [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 09 00 00 [17:14:08]Write to MH i2c: E2 08 00 B6 6C 80 09 00 00 00 00 00 00 94 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 B6 6C 00 90 00 96 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_ClearQueue done [17:14:08]KKMCreateOFDPacket [17:14:08]OFDProtocolAddRootSTLVToBuf [17:14:08]FM_MakeSignedData [17:14:08]FM_MakeSignedData [17:14:08]SAM_PROTO_SignData [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 0D 01 02 [17:14:08]Write to MH i2c: E2 08 00 B7 6C 80 0D 01 02 00 00 00 00 9C [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 B7 6C 00 90 00 97 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]wFMCommunicate request_size=255 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 66 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 94 01 00 35 04 06 00 8B [17:14:08]Write to MH i2c: E2 02 01 B8 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 66 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 94 01 00 35 04 06 00 8B 00 00 97 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 B8 6C 00 90 00 98 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]wFMCommunicate request_size=10 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 0D 02 02 05 E4 E0 C8 22 23 [17:14:08]Write to MH i2c: E2 0D 00 B9 6C 80 0D 02 02 05 00 E4 E0 C8 22 23 00 00 7A [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 B9 6C 00 90 00 99 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 0D 03 02 [17:14:08]Write to MH i2c: E2 08 00 BA 6C 80 0D 03 02 00 00 00 00 A1 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0B 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0B 00 BA 6C 00 79 3B 9D F7 69 68 79 39 90 00 6D [17:14:08]RAPDU: 79 3B 9D F7 69 68 79 39 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_SignData done [17:14:08]FM_MakeSignedData done [17:14:08]CreateOFDProtocolMessage [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 11 00 00 [17:14:08]Write to MH i2c: E2 08 00 BB 6C 80 11 00 00 00 00 00 00 A1 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 BB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [17:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:14:08]wFMCommunicate OK [17:14:08]CreateOFDProtocolMessage done [17:14:08]OFDSenderStorePacket 103485 [17:14:08]StoreOFDPacket docnum=103485 [17:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 06 07 01 E6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 66 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 94 01 00 35 04 06 00 8B E4 E0 C8 22 23 79 3B 9D F7 69 68 79 39 [17:14:08]CheckFolder [17:14:08]dirname=/storage/ofd_packets [17:14:08]CheckFolder done [17:14:08]ProducePacketName [17:14:08]name=ofd_packets/00103485 [17:14:08]NVStorageSaveData ofd_packets/00103485 [17:14:08]File name is /storage/ofd_packets/00103485 [17:14:08]Write 301 bytes [17:14:08]NVStorageSaveData done [17:14:08]OFDSenderStorePacket done [17:14:08]KKMCreateOFDPacket done [17:14:08]NVStorageSaveData kkm_last_timestamp [17:14:08]File name is /storage/kkm_last_timestamp [17:14:08]Write 4 bytes [17:14:08]NVStorageSaveData done [17:14:08]ExternCall_PrintAddStr [17:14:08]wPrintStart [17:14:08]Write to MH i2c: 01 00 00 BC 6C 28 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 BC 6C 00 00 00 00 00 FF 0F 3D [17:14:08]RasterBufferAndPrint [17:14:08]line Счет N : (1)672673 [17:14:08]line ИНН: 02508201610067 [17:14:08]line Контрольно-Кассовый Чек [17:14:08]line ПРОДАЖА [17:14:08]line ТРК (МРК, ГНК) : 32 [17:14:08]line Товар: 2710124130 [17:14:08]line Аи-92-К-5 [17:14:08]line 9.040 * 66.40 [17:14:08]line = 600.26 [17:14:08]line НДС 12% НСП 1% [17:14:08]line > о реализуемом товаре [17:14:08]line ОКРУГЛЕНИЕ: -0.26 [17:14:08]line ИТОГО: 600.00 [17:14:08]line Внесено: 600.00 [17:14:08]line СДАЧА: 0.00 [17:14:08]line НСП 1% : 5.31 [17:14:08]line НДС 12% : 63.74 [17:14:08]line Наличными: 600.00 [17:14:08]line Безнал.: 0.00 [17:14:08]line Место: АЗС № 120 "Партнер Нефть" [17:14:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:14:08]line СНО: Общий режим [17:14:08]line Чек 169 18.06.2024 17:14 [17:14:08]line Смена: 352 ФФД: 1.0 [17:14:08]line ЗНМ: 0300000164 [17:14:08]line РНМ: 0000000000092785 [17:14:08]line Версия ККМ: 001 [17:14:08]line ФМ: 0000000000875093 [17:14:08]line ФД: 103485 [17:14:08]line ФПД: 153815140016675 [17:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171414&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103485&fm=153815140016675&tin=02508201610067®Number=0000000000092785&sum=60000 [17:14:09]OFD Sender: Processing packet 103485 [packets to send 17, broken 16] [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00103485 [17:14:09]OFD Sender: To server: pG, [17:14:09]CommunicateWithHost lk.salyk.kg:30040 [17:14:09]ConnectInit lk.salyk.kg [17:14:09]written 0, free lines is 4095 [17:14:09]Connected sock=10 [17:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 06 07 01 E6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 66 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 94 01 00 35 04 06 00 8B E4 E0 C8 22 23 79 3B 9D F7 69 68 79 39 [17:14:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 31 C2 47 00 F6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 94 01 00 F4 03 04 00 F2 66 71 66 B6 04 01 00 00 3A F3 E5 DC 9E 9E 13 B4 [17:14:09]CommunicateWithHost err = 0 [17:14:09]CheckOFDResponse [17:14:09]1017 (14) - 77093643461234 [17:14:09]1041 (16) - 0000000000875093 [17:14:09]1040 (4) - 103485 [17:14:09]1012 (4) - 18.06.2024 10:52 [17:14:09]1206 (1) - 0 [17:14:09]OFD Sender: Remove packet 103485 [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00103485 [17:14:09]NVStorageDeleteData [17:14:09]Write to MH i2c: 01 00 00 E7 6C 53 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 E7 6C 00 00 00 00 00 E2 0C 48 [17:14:09]RasterBufferAndPrint [17:14:09]line [17:14:09]line [17:14:09]line [17:14:09]line [17:14:09]line [17:14:09]written 0, free lines is 3304 [17:14:09]MH_Cut [17:14:09]Write to MH i2c: D1 01 00 EE 6C 01 2C [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: D1 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: D1 01 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: D1 01 00 EE 6C 00 2B [17:14:09]Write to MH i2c: 01 00 00 EF 6C 5B [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:10]OFD Sender: No OFD packet to send [17:14:10]*** Cut start [17:14:10]*** Partial cut [17:14:10]*** CUTSNS_PIN = 1 [17:14:10]*** CUTSNS_PIN = 0 [17:14:10]*** Brake cut motor [17:14:10]Read from MH i2c: 01 [17:14:10]MH_I2C_Read... [17:14:10]*** Stop cut motor [17:14:10]*** Cut end [17:14:10]Read from MH i2c: 01 07 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 EF 6C 00 00 00 00 00 FF 0F 70 [17:14:10]process_action close_receipt done [17:14:10]requested_data is exist [17:14:10]produce_requested_data [17:14:10]requested_item fm.sn is exist - process it [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 11 00 00 [17:14:10]Write to MH i2c: E2 08 00 F0 6C 80 11 00 00 00 00 00 00 D6 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 17 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 17 00 F0 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 29 [17:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:14:11]wFMCommunicate OK [17:14:11]requested_item fd.num is exist - process it [17:14:11]SAM_PROTO_GetFieldsCounters [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 13 00 00 [17:14:11]Write to MH i2c: E2 08 00 F1 6C 80 13 00 00 00 00 00 00 D9 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 62 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 62 00 F1 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [17:14:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_GetFieldsCounters done [17:14:11]requested_item shift.num is exist - process it [17:14:11]requested_item shift.opened is exist - process it [17:14:11]req_shift_opened [17:14:11]FM_GetShiftState [17:14:11]SAM_PROTO_GetShiftState [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 13 01 00 [17:14:11]Write to MH i2c: E2 08 00 F2 6C 80 13 01 00 00 00 00 00 DB [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0E 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0E 00 F2 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 5C [17:14:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_GetShiftState done [17:14:11]FM_GetShiftState done [17:14:11]req_shift_opened done [17:14:11]requested_item shift.open_date is exist - process it [17:14:11]req_shift_open_date [17:14:11]req_shift_open_date done [17:14:11]produce_requested_data done [17:14:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103485,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:14:11]process_action_free close_receipt [17:14:11]json_value_free [17:14:11]json_value_free done [17:14:11]process_json_proto returns [17:14:11]Send response to host [17:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103485,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:14:11]free response buf [17:14:11]execute_script done [17:14:11]execute_script returns [17:14:11]free content buf [17:14:11]Sock 9.Close socket [17:14:11]Sock 9.Thread stoped [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]accept exits with 7 [17:15:40]New connection [17:15:40]New thread 3067084132 created [17:15:40]Thread 3067227492 joined [17:15:40]Waiting for new connection... [17:15:40] Sock 7.Parse request [17:15:40]Sock 7.Check first char [17:15:40]Sock 7.First char is OK [17:15:40]request: POST /json_proto HTTP/1.0 [17:15:40]Method: POST [17:15:40]URL: /json_proto [17:15:40]Method is POST - this is cgi request [17:15:40]url: /json_proto [17:15:40]query_string will be loaded in cgi processing [17:15:40]execute_cgi json_proto POST (null) [17:15:40]execute_cgi path=json_proto method=POST [17:15:40]POST find Content-Length [17:15:40]Host: 172.17.38.133:8080 [17:15:40]Content-Length: 819 [17:15:40]Content-Type: application/json [17:15:40] [17:15:40]POST finish read [17:15:40]Found Content-Length = 819 [17:15:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.500, "sum" : 2689.20, "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" : 2689.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:40]execute_script... [17:15:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.500, "sum" : 2689.20, "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" : 2689.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:40]POST & json_proto [17:15:40]process_json_proto [17:15:40]json parsed OK: [17:15:40]protocol is kg_v1.0 [17:15:40]action value=close_receipt [17:15:40]process_action close_receipt [17:15:40]cmd_close_receipt [17:15:40]MH_GetDate [17:15:40]Write to MH i2c: F0 00 00 F3 6C 4E [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: F0 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: F0 09 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: F0 09 00 F3 6C 00 C3 C0 71 66 BD 8F 7C 64 DD [17:15:40]GetLastDocTimeStamp 1718730854 [17:15:40]current date 1718730947 [17:15:40]FM_GetShiftState [17:15:40]SAM_PROTO_GetShiftState [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 13 01 00 [17:15:40]Write to MH i2c: E2 08 00 F4 6C 80 13 01 00 00 00 00 00 DD [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]OFD Sender: No OFD packet to send [17:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 0E 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 0E 00 F4 6C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 5E [17:15:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:15:40]wFMCommunicate OK [17:15:40]SAM_PROTO_GetShiftState done [17:15:40]FM_GetShiftState done [17:15:40]opened in 1718670284 [17:15:40]opened+sec_in_day 1718756684 [17:15:40]quantity*price = 268920 [17:15:40]sum+1 = 268921 [17:15:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2689.20 НСП 1% : 23.80 НДС 12% : 285.58 Наличными: 0.00 Безнал.: 2689.20 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 170 18.06.2024 17:15 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103486 ФПД: 198074887379806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103486&fm=198074887379806&tin=02508201610067®Number=0000000000092785&sum=268920 [17:15:41]StoreToDocumentArchive [17:15:41]shift 352 fd 103486 [17:15:41]save to /storage/0352/doc_00103486 [17:15:41]save last doc name /storage/0352/doc_00103486 to /storage/kkm_last_doc_name [17:15:41]save OK [17:15:41]Clear old archive folders... [17:15:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:41]tlvbuf is 0152C1F0 [17:15:41]SAM_PROTO_ClearQueue [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 09 00 00 [17:15:41]Write to MH i2c: E2 08 00 01 6D 80 09 00 00 00 00 00 00 E0 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 01 6D 00 90 00 E2 [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_ClearQueue done [17:15:41]KKMCreateOFDPacket [17:15:41]OFDProtocolAddRootSTLVToBuf [17:15:41]FM_MakeSignedData [17:15:41]FM_MakeSignedData [17:15:41]SAM_PROTO_SignData [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 01 02 [17:15:41]Write to MH i2c: E2 08 00 02 6D 80 0D 01 02 00 00 00 00 E8 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 02 6D 00 90 00 E3 [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]wFMCommunicate request_size=255 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 78 1A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 1A 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 94 01 00 35 04 06 00 B4 [17:15:41]Write to MH i2c: E2 02 01 03 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 78 1A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 1A 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 94 01 00 35 04 06 00 B4 00 00 D4 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 03 6D 00 90 00 E4 [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]wFMCommunicate request_size=10 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 02 02 05 25 E7 4D 1B 5E [17:15:41]Write to MH i2c: E2 0D 00 04 6D 80 0D 02 02 05 00 25 E7 4D 1B 5E 00 00 C7 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 03 00 04 6D 00 90 00 E5 [17:15:41]RAPDU: 90 00 [17:15:41]wFMCommunicate OK [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 0D 03 02 [17:15:41]Write to MH i2c: E2 08 00 05 6D 80 0D 03 02 00 00 00 00 ED [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0B 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0B 00 05 6D 00 81 AD A2 BF 3F 5F 6B FA 90 00 80 [17:15:41]RAPDU: 81 AD A2 BF 3F 5F 6B FA 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_SignData done [17:15:41]FM_MakeSignedData done [17:15:41]CreateOFDProtocolMessage [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 11 00 00 [17:15:41]Write to MH i2c: E2 08 00 06 6D 80 11 00 00 00 00 00 00 ED [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 17 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 17 00 06 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [17:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:15:41]wFMCommunicate OK [17:15:41]CreateOFDProtocolMessage done [17:15:41]OFDSenderStorePacket 103486 [17:15:41]StoreOFDPacket docnum=103486 [17:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 F7 07 01 CA 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 78 1A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 1A 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 94 01 00 35 04 06 00 B4 25 E7 4D 1B 5E 81 AD A2 BF 3F 5F 6B FA [17:15:41]CheckFolder [17:15:41]dirname=/storage/ofd_packets [17:15:41]CheckFolder done [17:15:41]ProducePacketName [17:15:41]name=ofd_packets/00103486 [17:15:41]NVStorageSaveData ofd_packets/00103486 [17:15:41]File name is /storage/ofd_packets/00103486 [17:15:41]Write 301 bytes [17:15:41]NVStorageSaveData done [17:15:41]OFDSenderStorePacket done [17:15:41]KKMCreateOFDPacket done [17:15:41]NVStorageSaveData kkm_last_timestamp [17:15:41]File name is /storage/kkm_last_timestamp [17:15:41]Write 4 bytes [17:15:41]NVStorageSaveData done [17:15:41]ExternCall_PrintAddStr [17:15:41]wPrintStart [17:15:41]Write to MH i2c: 01 00 00 07 6D 74 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 07 6D 00 00 00 00 00 FF 0F 89 [17:15:41]RasterBufferAndPrint [17:15:41]line Счет N : (1)672674 [17:15:41]line ИНН: 02508201610067 [17:15:41]line Контрольно-Кассовый Чек [17:15:41]line ПРОДАЖА [17:15:41]line ТРК (МРК, ГНК) : 42 [17:15:41]line Товар: 2710124130 [17:15:41]line Аи-92-К-5 [17:15:41]line 40.500 * 66.40 [17:15:41]line = 2689.20 [17:15:41]line НДС 12% НСП 1% [17:15:41]line > о реализуемом товаре [17:15:41]line ИТОГО: 2689.20 [17:15:41]line НСП 1% : 23.80 [17:15:41]line НДС 12% : 285.58 [17:15:41]line Наличными: 0.00 [17:15:41]line Безнал.: 2689.20 [17:15:41]line Место: АЗС № 120 "Партнер Нефть" [17:15:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:15:41]line СНО: Общий режим [17:15:41]line Чек 170 18.06.2024 17:15 [17:15:41]line Смена: 352 ФФД: 1.0 [17:15:41]line ЗНМ: 0300000164 [17:15:41]line РНМ: 0000000000092785 [17:15:41]line Версия ККМ: 001 [17:15:41]line Платежная система: Бакай Банк [17:15:41]line ФМ: 0000000000875093 [17:15:41]line ФД: 103486 [17:15:41]line ФПД: 198074887379806 [17:15:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171548&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103486&fm=198074887379806&tin=02508201610067®Number=0000000000092785&sum=268920 [17:15:42]OFD Sender: Processing packet 103486 [packets to send 17, broken 16] [17:15:42]ProducePacketName [17:15:42]name=ofd_packets/00103486 [17:15:42]OFD Sender: To server: pG, [17:15:42]CommunicateWithHost lk.salyk.kg:30040 [17:15:42]ConnectInit lk.salyk.kg [17:15:42]written 0, free lines is 4095 [17:15:42]Connected sock=10 [17:15:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 F7 07 01 CA 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 9E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 78 1A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 1A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 1A 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 94 01 00 35 04 06 00 B4 25 E7 4D 1B 5E 81 AD A2 BF 3F 5F 6B FA [17:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 05 47 00 0A 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 35 30 39 33 10 04 04 00 3E 94 01 00 F4 03 04 00 4F 67 71 66 B6 04 01 00 00 CB 71 2A 2E BA 82 F0 51 [17:15:42]CommunicateWithHost err = 0 [17:15:42]CheckOFDResponse [17:15:42]1017 (14) - 77093643461234 [17:15:42]1041 (16) - 0000000000875093 [17:15:42]1040 (4) - 103486 [17:15:42]1012 (4) - 18.06.2024 10:54 [17:15:42]1206 (1) - 0 [17:15:42]OFD Sender: Remove packet 103486 [17:15:42]ProducePacketName [17:15:42]name=ofd_packets/00103486 [17:15:42]NVStorageDeleteData [17:15:42]Write to MH i2c: 01 00 00 31 6D 9E [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 07 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: 01 07 00 31 6D 00 00 00 00 00 03 0D B5 [17:15:42]RasterBufferAndPrint [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]line [17:15:42]written 0, free lines is 3337 [17:15:42]MH_Cut [17:15:42]Write to MH i2c: D1 01 00 38 6D 01 77 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 01 00 [17:15:42]MH_I2C_Read... [17:15:42]Read from MH i2c: D1 01 00 38 6D 00 76 [17:15:42]Write to MH i2c: 01 00 00 39 6D A6 [17:15:42]Write i2c OK [17:15:42]MH_I2C_Read... [17:15:43]OFD Sender: No OFD packet to send [17:15:43]*** Cut start [17:15:43]*** Partial cut [17:15:43]*** CUTSNS_PIN = 1 [17:15:43]*** CUTSNS_PIN = 0 [17:15:43]*** Brake cut motor [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]*** Stop cut motor [17:15:43]*** Cut end [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 39 6D 00 00 00 00 00 FF 0F BB [17:15:43]process_action close_receipt done [17:15:43]requested_data is exist [17:15:43]produce_requested_data [17:15:43]requested_item fm.sn is exist - process it [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 11 00 00 [17:15:43]Write to MH i2c: E2 08 00 3A 6D 80 11 00 00 00 00 00 00 21 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:44]Read from MH i2c: E2 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 17 00 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 17 00 3A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [17:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:15:44]wFMCommunicate OK [17:15:44]requested_item fd.num is exist - process it [17:15:44]SAM_PROTO_GetFieldsCounters [17:15:44]wFMCommunicate request_size=4 [17:15:44]MH_SAM_APDU [17:15:44]CAPDU: 80 13 00 00 [17:15:44]Write to MH i2c: E2 08 00 3B 6D 80 13 00 00 00 00 00 00 24 [17:15:44]Write i2c OK [17:15:44]MH_I2C_Read... [17:15:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:44]Read from MH i2c: E2 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 62 00 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 62 00 3B 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:15:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:44]wFMCommunicate OK [17:15:44]SAM_PROTO_GetFieldsCounters done [17:15:44]requested_item shift.num is exist - process it [17:15:44]requested_item shift.opened is exist - process it [17:15:44]req_shift_opened [17:15:44]FM_GetShiftState [17:15:44]SAM_PROTO_GetShiftState [17:15:44]wFMCommunicate request_size=4 [17:15:44]MH_SAM_APDU [17:15:44]CAPDU: 80 13 01 00 [17:15:44]Write to MH i2c: E2 08 00 3C 6D 80 13 01 00 00 00 00 00 26 [17:15:44]Write i2c OK [17:15:44]MH_I2C_Read... [17:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:44]Read from MH i2c: E2 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 0E 00 [17:15:44]MH_I2C_Read... [17:15:44]Read from MH i2c: E2 0E 00 3C 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A7 [17:15:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:15:44]wFMCommunicate OK [17:15:44]SAM_PROTO_GetShiftState done [17:15:44]FM_GetShiftState done [17:15:44]req_shift_opened done [17:15:44]requested_item shift.open_date is exist - process it [17:15:44]req_shift_open_date [17:15:44]req_shift_open_date done [17:15:44]produce_requested_data done [17:15:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103486,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:15:44]process_action_free close_receipt [17:15:44]json_value_free [17:15:44]json_value_free done [17:15:44]process_json_proto returns [17:15:44]Send response to host [17:15:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103486,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:15:44]free response buf [17:15:44]execute_script done [17:15:44]execute_script returns [17:15:44]free content buf [17:15:44]Sock 7.Close socket [17:15:44]Sock 7.Thread stoped [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]accept exits with 9 [17:16:08]New connection [17:16:08]New thread 3067227492 created [17:16:08]Thread 3067084132 joined [17:16:08]Waiting for new connection... [17:16:08] Sock 9.Parse request [17:16:08]Sock 9.Check first char [17:16:08]Sock 9.First char is OK [17:16:08]request: POST /json_proto HTTP/1.0 [17:16:08]Method: POST [17:16:08]URL: /json_proto [17:16:08]Method is POST - this is cgi request [17:16:08]url: /json_proto [17:16:08]query_string will be loaded in cgi processing [17:16:08]execute_cgi json_proto POST (null) [17:16:08]execute_cgi path=json_proto method=POST [17:16:08]POST find Content-Length [17:16:08]Host: 172.17.38.133:8080 [17:16:08]Content-Length: 659 [17:16:08]Content-Type: application/json [17:16:08] [17:16:08]POST finish read [17:16:08]Found Content-Length = 659 [17:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:08]execute_script... [17:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:08]POST & json_proto [17:16:08]process_json_proto [17:16:08]json parsed OK: [17:16:08]protocol is kg_v1.0 [17:16:08]action value=close_receipt [17:16:08]process_action close_receipt [17:16:08]cmd_close_receipt [17:16:08]MH_GetDate [17:16:08]Write to MH i2c: F0 00 00 3D 6D 99 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 09 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: F0 09 00 3D 6D 00 DF C0 71 66 BD 8F 7C 64 44 [17:16:08]GetLastDocTimeStamp 1718730948 [17:16:08]current date 1718730975 [17:16:08]FM_GetShiftState [17:16:08]SAM_PROTO_GetShiftState [17:16:08]wFMCommunicate request_size=4 [17:16:08]MH_SAM_APDU [17:16:08]CAPDU: 80 13 01 00 [17:16:08]Write to MH i2c: E2 08 00 3E 6D 80 13 01 00 00 00 00 00 28 [17:16:08]Write i2c OK [17:16:08]MH_I2C_Read... [17:16:08]OFD Sender: No OFD packet to send [17:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:08]Read from MH i2c: E2 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0E 00 [17:16:08]MH_I2C_Read... [17:16:08]Read from MH i2c: E2 0E 00 3E 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A9 [17:16:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:16:08]wFMCommunicate OK [17:16:08]SAM_PROTO_GetShiftState done [17:16:08]FM_GetShiftState done [17:16:08]opened in 1718670284 [17:16:08]opened+sec_in_day 1718756684 [17:16:08]quantity*price = 33200 [17:16:08]sum+1 = 33201 [17:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 Внесено: 500.00 СДАЧА: 168.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 171 18.06.2024 17:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103487 ФПД: 196000934869118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171615&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103487&fm=196000934869118&tin=02508201610067®Number=0000000000092785&sum=33200 [17:16:09]StoreToDocumentArchive [17:16:09]shift 352 fd 103487 [17:16:09]save to /storage/0352/doc_00103487 [17:16:09]save last doc name /storage/0352/doc_00103487 to /storage/kkm_last_doc_name [17:16:09]save OK [17:16:09]Clear old archive folders... [17:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:09]tlvbuf is 0137F620 [17:16:09]SAM_PROTO_ClearQueue [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 09 00 00 [17:16:09]Write to MH i2c: E2 08 00 4B 6D 80 09 00 00 00 00 00 00 2A [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 4B 6D 00 90 00 2C [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]SAM_PROTO_ClearQueue done [17:16:09]KKMCreateOFDPacket [17:16:09]OFDProtocolAddRootSTLVToBuf [17:16:09]FM_MakeSignedData [17:16:09]FM_MakeSignedData [17:16:09]SAM_PROTO_SignData [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 01 02 [17:16:09]Write to MH i2c: E2 08 00 4C 6D 80 0D 01 02 00 00 00 00 32 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 4C 6D 00 90 00 2D [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]wFMCommunicate request_size=255 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 DF C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 94 01 00 35 04 06 00 B2 [17:16:09]Write to MH i2c: E2 02 01 4D 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 DF C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 94 01 00 35 04 06 00 B2 00 00 7B [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 4D 6D 00 90 00 2E [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]wFMCommunicate request_size=10 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 02 02 05 43 06 19 38 7E [17:16:09]Write to MH i2c: E2 0D 00 4E 6D 80 0D 02 02 05 00 43 06 19 38 7E 00 00 57 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 03 00 4E 6D 00 90 00 2F [17:16:09]RAPDU: 90 00 [17:16:09]wFMCommunicate OK [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 0D 03 02 [17:16:09]Write to MH i2c: E2 08 00 4F 6D 80 0D 03 02 00 00 00 00 37 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 0B 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 0B 00 4F 6D 00 20 07 84 39 3F CE 82 98 90 00 43 [17:16:09]RAPDU: 20 07 84 39 3F CE 82 98 90 00 [17:16:09]wFMCommunicate OK [17:16:09]SAM_PROTO_SignData done [17:16:09]FM_MakeSignedData done [17:16:09]CreateOFDProtocolMessage [17:16:09]wFMCommunicate request_size=4 [17:16:09]MH_SAM_APDU [17:16:09]CAPDU: 80 11 00 00 [17:16:09]Write to MH i2c: E2 08 00 50 6D 80 11 00 00 00 00 00 00 37 [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:09]Read from MH i2c: E2 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 17 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: E2 17 00 50 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [17:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:16:09]wFMCommunicate OK [17:16:09]CreateOFDProtocolMessage done [17:16:09]OFDSenderStorePacket 103487 [17:16:09]StoreOFDPacket docnum=103487 [17:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 72 BE 07 01 8D 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 DF C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 94 01 00 35 04 06 00 B2 43 06 19 38 7E 20 07 84 39 3F CE 82 98 [17:16:09]CheckFolder [17:16:09]dirname=/storage/ofd_packets [17:16:09]CheckFolder done [17:16:09]ProducePacketName [17:16:09]name=ofd_packets/00103487 [17:16:09]NVStorageSaveData ofd_packets/00103487 [17:16:09]File name is /storage/ofd_packets/00103487 [17:16:09]Write 301 bytes [17:16:09]NVStorageSaveData done [17:16:09]OFDSenderStorePacket done [17:16:09]KKMCreateOFDPacket done [17:16:09]NVStorageSaveData kkm_last_timestamp [17:16:09]File name is /storage/kkm_last_timestamp [17:16:09]Write 4 bytes [17:16:09]NVStorageSaveData done [17:16:09]ExternCall_PrintAddStr [17:16:09]wPrintStart [17:16:09]Write to MH i2c: 01 00 00 51 6D BE [17:16:09]Write i2c OK [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 07 00 [17:16:09]MH_I2C_Read... [17:16:09]Read from MH i2c: 01 07 00 51 6D 00 00 00 00 00 FF 0F D3 [17:16:09]RasterBufferAndPrint [17:16:09]line Счет N : (1)672675 [17:16:09]line ИНН: 02508201610067 [17:16:09]line Контрольно-Кассовый Чек [17:16:09]line ПРОДАЖА [17:16:09]line ТРК (МРК, ГНК) : 42 [17:16:09]line Товар: 2710124130 [17:16:09]line Аи-92-К-5 [17:16:09]line 5.000 * 66.40 [17:16:09]line = 332.00 [17:16:09]line НДС 12% НСП 1% [17:16:09]line > о реализуемом товаре [17:16:09]line ИТОГО: 332.00 [17:16:09]line Внесено: 500.00 [17:16:09]line СДАЧА: 168.00 [17:16:09]line НСП 1% : 2.94 [17:16:09]line НДС 12% : 35.26 [17:16:09]line Наличными: 332.00 [17:16:09]line Безнал.: 0.00 [17:16:09]line Место: АЗС № 120 "Партнер Нефть" [17:16:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:16:09]line СНО: Общий режим [17:16:09]line Чек 171 18.06.2024 17:16 [17:16:09]line Смена: 352 ФФД: 1.0 [17:16:09]line ЗНМ: 0300000164 [17:16:09]line РНМ: 0000000000092785 [17:16:09]line Версия ККМ: 001 [17:16:09]line ФМ: 0000000000875093 [17:16:09]line ФД: 103487 [17:16:09]line ФПД: 196000934869118 [17:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171615&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103487&fm=196000934869118&tin=02508201610067®Number=0000000000092785&sum=33200 [17:16:09]written 0, free lines is 4095 [17:16:09]OFD Sender: Processing packet 103487 [packets to send 17, broken 16] [17:16:09]ProducePacketName [17:16:09]name=ofd_packets/00103487 [17:16:09]OFD Sender: To server: pG, [17:16:09]CommunicateWithHost lk.salyk.kg:30040 [17:16:09]ConnectInit lk.salyk.kg [17:16:09]Connected sock=10 [17:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 72 BE 07 01 8D 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 DF C0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 94 01 00 35 04 06 00 B2 43 06 19 38 7E 20 07 84 39 3F CE 82 98 [17:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A5 DE 47 00 FD 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 35 30 39 33 10 04 04 00 3F 94 01 00 F4 03 04 00 6B 67 71 66 B6 04 01 00 00 60 53 D9 BC 22 6B 6E 65 [17:16:10]CommunicateWithHost err = 0 [17:16:10]CheckOFDResponse [17:16:10]1017 (14) - 77093643461234 [17:16:10]1041 (16) - 0000000000875093 [17:16:10]1040 (4) - 103487 [17:16:10]1012 (4) - 18.06.2024 10:54 [17:16:10]1206 (1) - 0 [17:16:10]OFD Sender: Remove packet 103487 [17:16:10]ProducePacketName [17:16:10]name=ofd_packets/00103487 [17:16:10]NVStorageDeleteData [17:16:10]Write to MH i2c: 01 00 00 7B 6D E8 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 07 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: 01 07 00 7B 6D 00 00 00 00 00 0B 0D 07 [17:16:10]RasterBufferAndPrint [17:16:10]line [17:16:10]line [17:16:10]line [17:16:10]line [17:16:10]line [17:16:10]written 0, free lines is 3345 [17:16:10]MH_Cut [17:16:10]Write to MH i2c: D1 01 00 82 6D 01 C1 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: D1 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: D1 01 00 [17:16:10]MH_I2C_Read... [17:16:10]Read from MH i2c: D1 01 00 82 6D 00 C0 [17:16:10]Write to MH i2c: 01 00 00 83 6D F0 [17:16:10]Write i2c OK [17:16:10]MH_I2C_Read... [17:16:10]OFD Sender: No OFD packet to send [17:16:10]*** Cut start [17:16:10]*** Partial cut [17:16:10]*** CUTSNS_PIN = 1 [17:16:10]*** CUTSNS_PIN = 0 [17:16:11]*** Brake cut motor [17:16:11]Read from MH i2c: 01 [17:16:11]MH_I2C_Read... [17:16:11]*** Stop cut motor [17:16:11]*** Cut end [17:16:11]Read from MH i2c: 01 07 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: 01 07 00 83 6D 00 00 00 00 00 FF 0F 05 [17:16:11]process_action close_receipt done [17:16:11]requested_data is exist [17:16:11]produce_requested_data [17:16:11]requested_item fm.sn is exist - process it [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 11 00 00 [17:16:11]Write to MH i2c: E2 08 00 84 6D 80 11 00 00 00 00 00 00 6B [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 17 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 17 00 84 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [17:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:16:11]wFMCommunicate OK [17:16:11]requested_item fd.num is exist - process it [17:16:11]SAM_PROTO_GetFieldsCounters [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 13 00 00 [17:16:11]Write to MH i2c: E2 08 00 85 6D 80 13 00 00 00 00 00 00 6E [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 62 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 62 00 85 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_GetFieldsCounters done [17:16:11]requested_item shift.num is exist - process it [17:16:11]requested_item shift.opened is exist - process it [17:16:11]req_shift_opened [17:16:11]FM_GetShiftState [17:16:11]SAM_PROTO_GetShiftState [17:16:11]wFMCommunicate request_size=4 [17:16:11]MH_SAM_APDU [17:16:11]CAPDU: 80 13 01 00 [17:16:11]Write to MH i2c: E2 08 00 86 6D 80 13 01 00 00 00 00 00 70 [17:16:11]Write i2c OK [17:16:11]MH_I2C_Read... [17:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:11]Read from MH i2c: E2 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 [17:16:11]MH_I2C_Read... [17:16:11]Read from MH i2c: E2 0E 00 86 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F1 [17:16:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:16:11]wFMCommunicate OK [17:16:11]SAM_PROTO_GetShiftState done [17:16:11]FM_GetShiftState done [17:16:11]req_shift_opened done [17:16:11]requested_item shift.open_date is exist - process it [17:16:11]req_shift_open_date [17:16:11]req_shift_open_date done [17:16:11]produce_requested_data done [17:16:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103487,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:16:11]process_action_free close_receipt [17:16:11]json_value_free [17:16:11]json_value_free done [17:16:11]process_json_proto returns [17:16:11]Send response to host [17:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103487,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:16:11]free response buf [17:16:11]execute_script done [17:16:11]execute_script returns [17:16:11]free content buf [17:16:11]Sock 9.Close socket [17:16:11]Sock 9.Thread stoped [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:36]accept exits with 7 [17:19:36]New connection [17:19:36]New thread 3067084132 created [17:19:36]Thread 3067227492 joined [17:19:36]Waiting for new connection... [17:19:36] Sock 7.Parse request [17:19:36]Sock 7.Check first char [17:19:36]Sock 7.First char is OK [17:19:36]request: POST /json_proto HTTP/1.0 [17:19:36]Method: POST [17:19:36]URL: /json_proto [17:19:36]Method is POST - this is cgi request [17:19:36]url: /json_proto [17:19:36]query_string will be loaded in cgi processing [17:19:36]execute_cgi json_proto POST (null) [17:19:36]execute_cgi path=json_proto method=POST [17:19:36]POST find Content-Length [17:19:36]Host: 172.17.38.133:8080 [17:19:36]Content-Length: 677 [17:19:36]Content-Type: application/json [17:19:36] [17:19:36]POST finish read [17:19:36]Found Content-Length = 677 [17:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:36]execute_script... [17:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:36]POST & json_proto [17:19:36]process_json_proto [17:19:36]json parsed OK: [17:19:36]protocol is kg_v1.0 [17:19:36]action value=close_receipt [17:19:36]process_action close_receipt [17:19:36]cmd_close_receipt [17:19:36]MH_GetDate [17:19:36]Write to MH i2c: F0 00 00 87 6D E3 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 09 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: F0 09 00 87 6D 00 B0 C1 71 66 BD 8F 7C 64 60 [17:19:36]GetLastDocTimeStamp 1718730975 [17:19:36]current date 1718731184 [17:19:36]FM_GetShiftState [17:19:36]SAM_PROTO_GetShiftState [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 13 01 00 [17:19:36]Write to MH i2c: E2 08 00 88 6D 80 13 01 00 00 00 00 00 72 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0E 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0E 00 88 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F3 [17:19:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_GetShiftState done [17:19:36]FM_GetShiftState done [17:19:36]opened in 1718670284 [17:19:36]opened+sec_in_day 1718756684 [17:19:36]quantity*price = 32004 [17:19:36]sum+1 = 32006 [17:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 172 18.06.2024 17:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103488 ФПД: 70674979922524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103488&fm=70674979922524&tin=02508201610067®Number=0000000000092785&sum=32000 [17:19:37]StoreToDocumentArchive [17:19:37]shift 352 fd 103488 [17:19:37]save to /storage/0352/doc_00103488 [17:19:37]save last doc name /storage/0352/doc_00103488 to /storage/kkm_last_doc_name [17:19:37]save OK [17:19:37]Clear old archive folders... [17:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:37]tlvbuf is 01337B80 [17:19:37]SAM_PROTO_ClearQueue [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 09 00 00 [17:19:37]Write to MH i2c: E2 08 00 95 6D 80 09 00 00 00 00 00 00 74 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 95 6D 00 90 00 76 [17:19:37]RAPDU: 90 00 [17:19:37]wFMCommunicate OK [17:19:37]SAM_PROTO_ClearQueue done [17:19:37]KKMCreateOFDPacket [17:19:37]OFDProtocolAddRootSTLVToBuf [17:19:37]FM_MakeSignedData [17:19:37]FM_MakeSignedData [17:19:37]SAM_PROTO_SignData [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 0D 01 02 [17:19:37]Write to MH i2c: E2 08 00 96 6D 80 0D 01 02 00 00 00 00 7C [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 96 6D 00 90 00 77 [17:19:37]RAPDU: 90 00 [17:19:37]wFMCommunicate OK [17:19:37]wFMCommunicate request_size=255 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 AC 00 00 00 F4 03 04 00 B0 C1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 94 01 00 35 04 06 00 40 [17:19:37]Write to MH i2c: E2 02 01 97 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 AC 00 00 00 F4 03 04 00 B0 C1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 94 01 00 35 04 06 00 40 00 00 D1 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 97 6D 00 90 00 78 [17:19:37]RAPDU: 90 00 [17:19:37]wFMCommunicate OK [17:19:37]wFMCommunicate request_size=10 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 0D 02 02 05 47 4D 12 A2 5C [17:19:37]Write to MH i2c: E2 0D 00 98 6D 80 0D 02 02 05 00 47 4D 12 A2 5C 00 00 2D [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 03 00 98 6D 00 90 00 79 [17:19:37]RAPDU: 90 00 [17:19:37]wFMCommunicate OK [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 0D 03 02 [17:19:37]Write to MH i2c: E2 08 00 99 6D 80 0D 03 02 00 00 00 00 81 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 0B 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 0B 00 99 6D 00 3E E2 DD C4 E8 B6 72 21 90 00 74 [17:19:38]RAPDU: 3E E2 DD C4 E8 B6 72 21 90 00 [17:19:38]wFMCommunicate OK [17:19:38]SAM_PROTO_SignData done [17:19:38]FM_MakeSignedData done [17:19:38]CreateOFDProtocolMessage [17:19:38]wFMCommunicate request_size=4 [17:19:38]MH_SAM_APDU [17:19:38]CAPDU: 80 11 00 00 [17:19:38]Write to MH i2c: E2 08 00 9A 6D 80 11 00 00 00 00 00 00 81 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:38]Read from MH i2c: E2 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: E2 17 00 9A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [17:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:19:38]wFMCommunicate OK [17:19:38]CreateOFDProtocolMessage done [17:19:38]OFDSenderStorePacket 103488 [17:19:38]StoreOFDPacket docnum=103488 [17:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 2A 07 01 D7 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 AC 00 00 00 F4 03 04 00 B0 C1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 94 01 00 35 04 06 00 40 47 4D 12 A2 5C 3E E2 DD C4 E8 B6 72 21 [17:19:38]CheckFolder [17:19:38]dirname=/storage/ofd_packets [17:19:38]CheckFolder done [17:19:38]ProducePacketName [17:19:38]name=ofd_packets/00103488 [17:19:38]NVStorageSaveData ofd_packets/00103488 [17:19:38]File name is /storage/ofd_packets/00103488 [17:19:38]Write 301 bytes [17:19:38]NVStorageSaveData done [17:19:38]OFDSenderStorePacket done [17:19:38]KKMCreateOFDPacket done [17:19:38]NVStorageSaveData kkm_last_timestamp [17:19:38]File name is /storage/kkm_last_timestamp [17:19:38]Write 4 bytes [17:19:38]NVStorageSaveData done [17:19:38]ExternCall_PrintAddStr [17:19:38]wPrintStart [17:19:38]Write to MH i2c: 01 00 00 9B 6D 08 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 9B 6D 00 00 00 00 00 FF 0F 1D [17:19:38]RasterBufferAndPrint [17:19:38]line Счет N : (1)672677 [17:19:38]line ИНН: 02508201610067 [17:19:38]line Контрольно-Кассовый Чек [17:19:38]line ПРОДАЖА [17:19:38]line ТРК (МРК, ГНК) : 32 [17:19:38]line Товар: 2710124130 [17:19:38]line Аи-92-К-5 [17:19:38]line 4.820 * 66.40 [17:19:38]line = 320.05 [17:19:38]line НДС 12% НСП 1% [17:19:38]line > о реализуемом товаре [17:19:38]line ОКРУГЛЕНИЕ: -0.05 [17:19:38]line ИТОГО: 320.00 [17:19:38]line Внесено: 320.00 [17:19:38]line СДАЧА: 0.00 [17:19:38]line НСП 1% : 2.83 [17:19:38]line НДС 12% : 33.99 [17:19:38]line Наличными: 320.00 [17:19:38]line Безнал.: 0.00 [17:19:38]line Место: АЗС № 120 "Партнер Нефть" [17:19:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:19:38]line СНО: Общий режим [17:19:38]line Чек 172 18.06.2024 17:19 [17:19:38]line Смена: 352 ФФД: 1.0 [17:19:38]line ЗНМ: 0300000164 [17:19:38]line РНМ: 0000000000092785 [17:19:38]line Версия ККМ: 001 [17:19:38]line ФМ: 0000000000875093 [17:19:38]line ФД: 103488 [17:19:38]line ФПД: 70674979922524 [17:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103488&fm=70674979922524&tin=02508201610067®Number=0000000000092785&sum=32000 [17:19:38]written 0, free lines is 4095 [17:19:38]OFD Sender: Processing packet 103488 [packets to send 17, broken 16] [17:19:38]ProducePacketName [17:19:38]name=ofd_packets/00103488 [17:19:38]OFD Sender: To server: pG, [17:19:38]CommunicateWithHost lk.salyk.kg:30040 [17:19:38]ConnectInit lk.salyk.kg [17:19:38]Connected sock=10 [17:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 2A 07 01 D7 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 AC 00 00 00 F4 03 04 00 B0 C1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 94 01 00 35 04 06 00 40 47 4D 12 A2 5C 3E E2 DD C4 E8 B6 72 21 [17:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 67 C4 47 00 D0 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 94 01 00 F4 03 04 00 3B 68 71 66 B6 04 01 00 00 1B 30 E4 34 73 2A A1 B8 [17:19:38]CommunicateWithHost err = 0 [17:19:38]CheckOFDResponse [17:19:38]1017 (14) - 77093643461234 [17:19:38]1041 (16) - 0000000000875093 [17:19:38]1040 (4) - 103488 [17:19:38]1012 (4) - 18.06.2024 10:58 [17:19:38]1206 (1) - 0 [17:19:38]OFD Sender: Remove packet 103488 [17:19:38]ProducePacketName [17:19:38]name=ofd_packets/00103488 [17:19:38]NVStorageDeleteData [17:19:38]Write to MH i2c: 01 00 00 C6 6D 33 [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: 01 07 00 C6 6D 00 00 00 00 00 E9 0C 2F [17:19:38]RasterBufferAndPrint [17:19:38]line [17:19:38]line [17:19:38]line [17:19:38]line [17:19:38]line [17:19:38]written 0, free lines is 3311 [17:19:38]MH_Cut [17:19:38]Write to MH i2c: D1 01 00 CD 6D 01 0C [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: D1 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: D1 01 00 [17:19:38]MH_I2C_Read... [17:19:38]Read from MH i2c: D1 01 00 CD 6D 00 0B [17:19:38]Write to MH i2c: 01 00 00 CE 6D 3B [17:19:38]Write i2c OK [17:19:38]MH_I2C_Read... [17:19:39]OFD Sender: No OFD packet to send [17:19:39]*** Cut start [17:19:39]*** Partial cut [17:19:39]*** CUTSNS_PIN = 1 [17:19:39]*** CUTSNS_PIN = 0 [17:19:39]*** Brake cut motor [17:19:40]Read from MH i2c: 01 [17:19:40]MH_I2C_Read... [17:19:40]*** Stop cut motor [17:19:40]*** Cut end [17:19:40]Read from MH i2c: 01 07 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: 01 07 00 CE 6D 00 00 00 00 00 FF 0F 50 [17:19:40]process_action close_receipt done [17:19:40]requested_data is exist [17:19:40]produce_requested_data [17:19:40]requested_item fm.sn is exist - process it [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 11 00 00 [17:19:40]Write to MH i2c: E2 08 00 CF 6D 80 11 00 00 00 00 00 00 B6 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 17 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 17 00 CF 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [17:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:19:40]wFMCommunicate OK [17:19:40]requested_item fd.num is exist - process it [17:19:40]SAM_PROTO_GetFieldsCounters [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 13 00 00 [17:19:40]Write to MH i2c: E2 08 00 D0 6D 80 13 00 00 00 00 00 00 B9 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 62 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 62 00 D0 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [17:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_GetFieldsCounters done [17:19:40]requested_item shift.num is exist - process it [17:19:40]requested_item shift.opened is exist - process it [17:19:40]req_shift_opened [17:19:40]FM_GetShiftState [17:19:40]SAM_PROTO_GetShiftState [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 13 01 00 [17:19:40]Write to MH i2c: E2 08 00 D1 6D 80 13 01 00 00 00 00 00 BB [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0E 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0E 00 D1 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3C [17:19:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_GetShiftState done [17:19:40]FM_GetShiftState done [17:19:40]req_shift_opened done [17:19:40]requested_item shift.open_date is exist - process it [17:19:40]req_shift_open_date [17:19:40]req_shift_open_date done [17:19:40]produce_requested_data done [17:19:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103488,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:19:40]process_action_free close_receipt [17:19:40]json_value_free [17:19:40]json_value_free done [17:19:40]process_json_proto returns [17:19:40]Send response to host [17:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103488,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:19:40]free response buf [17:19:40]execute_script done [17:19:40]execute_script returns [17:19:40]free content buf [17:19:40]Sock 7.Close socket [17:19:40]Sock 7.Thread stoped [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:12]accept exits with 9 [17:31:12]New connection [17:31:12]New thread 3067227492 created [17:31:12]Thread 3067084132 joined [17:31:12]Waiting for new connection... [17:31:12] Sock 9.Parse request [17:31:12]Sock 9.Check first char [17:31:12]Sock 9.First char is OK [17:31:12]request: POST /json_proto HTTP/1.0 [17:31:12]Method: POST [17:31:12]URL: /json_proto [17:31:12]Method is POST - this is cgi request [17:31:12]url: /json_proto [17:31:12]query_string will be loaded in cgi processing [17:31:12]execute_cgi json_proto POST (null) [17:31:12]execute_cgi path=json_proto method=POST [17:31:12]POST find Content-Length [17:31:12]Host: 172.17.38.133:8080 [17:31:12]Content-Length: 819 [17:31:12]Content-Type: application/json [17:31:12] [17:31:12]POST finish read [17:31:12]Found Content-Length = 819 [17:31:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:12]execute_script... [17:31:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:12]POST & json_proto [17:31:12]process_json_proto [17:31:12]json parsed OK: [17:31:12]protocol is kg_v1.0 [17:31:12]action value=close_receipt [17:31:12]process_action close_receipt [17:31:12]cmd_close_receipt [17:31:12]MH_GetDate [17:31:12]Write to MH i2c: F0 00 00 D2 6D 2E [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: F0 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: F0 09 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: F0 09 00 D2 6D 00 68 C4 71 66 BD 8F 7C 64 66 [17:31:12]GetLastDocTimeStamp 1718731184 [17:31:12]current date 1718731880 [17:31:12]FM_GetShiftState [17:31:12]SAM_PROTO_GetShiftState [17:31:12]wFMCommunicate request_size=4 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 13 01 00 [17:31:12]Write to MH i2c: E2 08 00 D3 6D 80 13 01 00 00 00 00 00 BD [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 0E 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 0E 00 D3 6D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3E [17:31:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:31:12]wFMCommunicate OK [17:31:12]SAM_PROTO_GetShiftState done [17:31:12]FM_GetShiftState done [17:31:12]opened in 1718670284 [17:31:12]opened+sec_in_day 1718756684 [17:31:12]quantity*price = 100064 [17:31:12]sum+1 = 100066 [17:31:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 173 18.06.2024 17:31 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103489 ФПД: 256724894119391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103489&fm=256724894119391&tin=02508201610067®Number=0000000000092785&sum=100065 [17:31:13]StoreToDocumentArchive [17:31:13]shift 352 fd 103489 [17:31:13]save to /storage/0352/doc_00103489 [17:31:13]save last doc name /storage/0352/doc_00103489 to /storage/kkm_last_doc_name [17:31:13]save OK [17:31:13]Clear old archive folders... [17:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:13]tlvbuf is 013A2370 [17:31:13]SAM_PROTO_ClearQueue [17:31:13]wFMCommunicate request_size=4 [17:31:13]MH_SAM_APDU [17:31:13]CAPDU: 80 09 00 00 [17:31:13]Write to MH i2c: E2 08 00 E0 6D 80 09 00 00 00 00 00 00 BF [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:13]Read from MH i2c: E2 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 03 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 03 00 E0 6D 00 90 00 C1 [17:31:13]RAPDU: 90 00 [17:31:13]wFMCommunicate OK [17:31:13]SAM_PROTO_ClearQueue done [17:31:13]KKMCreateOFDPacket [17:31:13]OFDProtocolAddRootSTLVToBuf [17:31:13]FM_MakeSignedData [17:31:13]FM_MakeSignedData [17:31:13]SAM_PROTO_SignData [17:31:13]wFMCommunicate request_size=4 [17:31:13]MH_SAM_APDU [17:31:13]CAPDU: 80 0D 01 02 [17:31:13]Write to MH i2c: E2 08 00 E1 6D 80 0D 01 02 00 00 00 00 C7 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:13]Read from MH i2c: E2 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 03 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 03 00 E1 6D 00 90 00 C2 [17:31:13]RAPDU: 90 00 [17:31:13]wFMCommunicate OK [17:31:13]wFMCommunicate request_size=255 [17:31:13]MH_SAM_APDU [17:31:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 68 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 94 01 00 35 04 06 00 E9 [17:31:13]Write to MH i2c: E2 02 01 E2 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 68 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 94 01 00 35 04 06 00 E9 00 00 23 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 E2 6D 00 90 00 C3 [17:31:14]RAPDU: 90 00 [17:31:14]wFMCommunicate OK [17:31:14]wFMCommunicate request_size=10 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 0D 02 02 05 7D 6C 1E 75 DF [17:31:14]Write to MH i2c: E2 0D 00 E3 6D 80 0D 02 02 05 00 7D 6C 1E 75 DF 00 00 2F [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 E3 6D 00 90 00 C4 [17:31:14]RAPDU: 90 00 [17:31:14]wFMCommunicate OK [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 0D 03 02 [17:31:14]Write to MH i2c: E2 08 00 E4 6D 80 0D 03 02 00 00 00 00 CC [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 0B 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 0B 00 E4 6D 00 50 45 F9 D6 A8 21 FB 58 90 00 4D [17:31:14]RAPDU: 50 45 F9 D6 A8 21 FB 58 90 00 [17:31:14]wFMCommunicate OK [17:31:14]SAM_PROTO_SignData done [17:31:14]FM_MakeSignedData done [17:31:14]CreateOFDProtocolMessage [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 11 00 00 [17:31:14]Write to MH i2c: E2 08 00 E5 6D 80 11 00 00 00 00 00 00 CC [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 E5 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [17:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:31:14]wFMCommunicate OK [17:31:14]CreateOFDProtocolMessage done [17:31:14]OFDSenderStorePacket 103489 [17:31:14]StoreOFDPacket docnum=103489 [17:31:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 08 07 01 D3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 68 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 94 01 00 35 04 06 00 E9 7D 6C 1E 75 DF 50 45 F9 D6 A8 21 FB 58 [17:31:14]CheckFolder [17:31:14]dirname=/storage/ofd_packets [17:31:14]CheckFolder done [17:31:14]ProducePacketName [17:31:14]name=ofd_packets/00103489 [17:31:14]NVStorageSaveData ofd_packets/00103489 [17:31:14]File name is /storage/ofd_packets/00103489 [17:31:14]Write 301 bytes [17:31:14]NVStorageSaveData done [17:31:14]OFDSenderStorePacket done [17:31:14]KKMCreateOFDPacket done [17:31:14]NVStorageSaveData kkm_last_timestamp [17:31:14]File name is /storage/kkm_last_timestamp [17:31:14]Write 4 bytes [17:31:14]NVStorageSaveData done [17:31:14]ExternCall_PrintAddStr [17:31:14]wPrintStart [17:31:14]Write to MH i2c: 01 00 00 E6 6D 53 [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: 01 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: 01 07 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: 01 07 00 E6 6D 00 00 00 00 00 FF 0F 68 [17:31:14]RasterBufferAndPrint [17:31:14]line Счет N : (1)672678 [17:31:14]line ИНН: 02508201610067 [17:31:14]line Контрольно-Кассовый Чек [17:31:14]line ПРОДАЖА [17:31:14]line ТРК (МРК, ГНК) : 32 [17:31:14]line Товар: 2710124130 [17:31:14]line Аи-92-К-5 [17:31:14]line 15.070 * 66.40 [17:31:14]line = 1000.65 [17:31:14]line НДС 12% НСП 1% [17:31:14]line > о реализуемом товаре [17:31:14]line ИТОГО: 1000.65 [17:31:14]line НСП 1% : 8.85 [17:31:14]line НДС 12% : 106.26 [17:31:14]line Наличными: 0.00 [17:31:14]line Безнал.: 1000.65 [17:31:14]line Место: АЗС № 120 "Партнер Нефть" [17:31:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:31:14]line СНО: Общий режим [17:31:14]line Чек 173 18.06.2024 17:31 [17:31:14]line Смена: 352 ФФД: 1.0 [17:31:14]line ЗНМ: 0300000164 [17:31:14]line РНМ: 0000000000092785 [17:31:14]line Версия ККМ: 001 [17:31:14]line Платежная система: Бакай Банк [17:31:14]line ФМ: 0000000000875093 [17:31:14]line ФД: 103489 [17:31:14]line ФПД: 256724894119391 [17:31:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103489&fm=256724894119391&tin=02508201610067®Number=0000000000092785&sum=100065 [17:31:14]written 0, free lines is 4095 [17:31:14]OFD Sender: Processing packet 103489 [packets to send 17, broken 16] [17:31:14]ProducePacketName [17:31:14]name=ofd_packets/00103489 [17:31:14]OFD Sender: To server: pG, [17:31:14]CommunicateWithHost lk.salyk.kg:30040 [17:31:14]ConnectInit lk.salyk.kg [17:31:14]Connected sock=10 [17:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 08 07 01 D3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 68 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 94 01 00 35 04 06 00 E9 7D 6C 1E 75 DF 50 45 F9 D6 A8 21 FB 58 [17:31:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 94 D6 47 00 D2 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 94 01 00 F4 03 04 00 F4 6A 71 66 B6 04 01 00 00 66 90 79 BC AC 0C 2A 6C [17:31:15]CommunicateWithHost err = 0 [17:31:15]CheckOFDResponse [17:31:15]1017 (14) - 77093643461234 [17:31:15]1041 (16) - 0000000000875093 [17:31:15]1040 (4) - 103489 [17:31:15]1012 (4) - 18.06.2024 11:09 [17:31:15]1206 (1) - 0 [17:31:15]OFD Sender: Remove packet 103489 [17:31:15]ProducePacketName [17:31:15]name=ofd_packets/00103489 [17:31:15]NVStorageDeleteData [17:31:15]Write to MH i2c: 01 00 00 10 6E 7E [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 10 6E 00 00 00 00 00 FA 0C 8B [17:31:15]RasterBufferAndPrint [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]written 0, free lines is 3328 [17:31:15]MH_Cut [17:31:15]Write to MH i2c: D1 01 00 17 6E 01 57 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 01 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 01 00 17 6E 00 56 [17:31:15]Write to MH i2c: 01 00 00 18 6E 86 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]OFD Sender: No OFD packet to send [17:31:15]*** Cut start [17:31:15]*** Partial cut [17:31:15]*** CUTSNS_PIN = 1 [17:31:15]*** CUTSNS_PIN = 0 [17:31:16]*** Brake cut motor [17:31:16]Read from MH i2c: 01 [17:31:16]MH_I2C_Read... [17:31:16]*** Stop cut motor [17:31:16]*** Cut end [17:31:16]Read from MH i2c: 01 07 00 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: 01 07 00 18 6E 00 00 00 00 00 FF 0F 9B [17:31:16]process_action close_receipt done [17:31:16]requested_data is exist [17:31:16]produce_requested_data [17:31:16]requested_item fm.sn is exist - process it [17:31:16]wFMCommunicate request_size=4 [17:31:16]MH_SAM_APDU [17:31:16]CAPDU: 80 11 00 00 [17:31:16]Write to MH i2c: E2 08 00 19 6E 80 11 00 00 00 00 00 00 01 [17:31:16]Write i2c OK [17:31:16]MH_I2C_Read... [17:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:16]Read from MH i2c: E2 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 17 00 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 17 00 19 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [17:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:31:16]wFMCommunicate OK [17:31:16]requested_item fd.num is exist - process it [17:31:16]SAM_PROTO_GetFieldsCounters [17:31:16]wFMCommunicate request_size=4 [17:31:16]MH_SAM_APDU [17:31:16]CAPDU: 80 13 00 00 [17:31:16]Write to MH i2c: E2 08 00 1A 6E 80 13 00 00 00 00 00 00 04 [17:31:16]Write i2c OK [17:31:16]MH_I2C_Read... [17:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:16]Read from MH i2c: E2 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 62 00 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 62 00 1A 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [17:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:16]wFMCommunicate OK [17:31:16]SAM_PROTO_GetFieldsCounters done [17:31:16]requested_item shift.num is exist - process it [17:31:16]requested_item shift.opened is exist - process it [17:31:16]req_shift_opened [17:31:16]FM_GetShiftState [17:31:16]SAM_PROTO_GetShiftState [17:31:16]wFMCommunicate request_size=4 [17:31:16]MH_SAM_APDU [17:31:16]CAPDU: 80 13 01 00 [17:31:16]Write to MH i2c: E2 08 00 1B 6E 80 13 01 00 00 00 00 00 06 [17:31:16]Write i2c OK [17:31:16]MH_I2C_Read... [17:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:16]Read from MH i2c: E2 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 0E 00 [17:31:16]MH_I2C_Read... [17:31:16]Read from MH i2c: E2 0E 00 1B 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 87 [17:31:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:31:16]wFMCommunicate OK [17:31:16]SAM_PROTO_GetShiftState done [17:31:16]FM_GetShiftState done [17:31:16]req_shift_opened done [17:31:16]requested_item shift.open_date is exist - process it [17:31:16]req_shift_open_date [17:31:16]req_shift_open_date done [17:31:16]produce_requested_data done [17:31:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103489,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:31:16]process_action_free close_receipt [17:31:16]json_value_free [17:31:16]json_value_free done [17:31:16]process_json_proto returns [17:31:16]Send response to host [17:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103489,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:31:16]free response buf [17:31:16]execute_script done [17:31:16]execute_script returns [17:31:16]free content buf [17:31:16]Sock 9.Close socket [17:31:16]Sock 9.Thread stoped [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:13]accept exits with 7 [17:33:13]New connection [17:33:13]New thread 3067084132 created [17:33:13]Thread 3067227492 joined [17:33:13]Waiting for new connection... [17:33:13] Sock 7.Parse request [17:33:13]Sock 7.Check first char [17:33:13]Sock 7.First char is OK [17:33:13]request: POST /json_proto HTTP/1.0 [17:33:13]Method: POST [17:33:13]URL: /json_proto [17:33:13]Method is POST - this is cgi request [17:33:13]url: /json_proto [17:33:13]query_string will be loaded in cgi processing [17:33:13]execute_cgi json_proto POST (null) [17:33:13]execute_cgi path=json_proto method=POST [17:33:13]POST find Content-Length [17:33:13]Host: 172.17.38.133:8080 [17:33:13]Content-Length: 808 [17:33:13]Content-Type: application/json [17:33:13] [17:33:13]POST finish read [17:33:13]Found Content-Length = 808 [17:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:13]execute_script... [17:33: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)672679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:13]POST & json_proto [17:33:13]process_json_proto [17:33:13]json parsed OK: [17:33:13]protocol is kg_v1.0 [17:33:13]action value=close_receipt [17:33:13]process_action close_receipt [17:33:13]cmd_close_receipt [17:33:13]MH_GetDate [17:33:13]Write to MH i2c: F0 00 00 1C 6E 79 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 09 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 09 00 1C 6E 00 E1 C4 71 66 BD 8F 7C 64 2A [17:33:13]GetLastDocTimeStamp 1718731880 [17:33:13]current date 1718732001 [17:33:13]FM_GetShiftState [17:33:13]SAM_PROTO_GetShiftState [17:33:13]wFMCommunicate request_size=4 [17:33:13]MH_SAM_APDU [17:33:13]CAPDU: 80 13 01 00 [17:33:13]Write to MH i2c: E2 08 00 1D 6E 80 13 01 00 00 00 00 00 08 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:13]Read from MH i2c: E2 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 1D 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 89 [17:33:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:33:13]wFMCommunicate OK [17:33:13]SAM_PROTO_GetShiftState done [17:33:13]FM_GetShiftState done [17:33:13]opened in 1718670284 [17:33:13]opened+sec_in_day 1718756684 [17:33:13]quantity*price = 200037 [17:33:13]sum+1 = 200039 [17:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 174 18.06.2024 17:33 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103490 ФПД: 143337393919857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173321&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103490&fm=143337393919857&tin=02508201610067®Number=0000000000092785&sum=200038 [17:33:14]StoreToDocumentArchive [17:33:14]shift 352 fd 103490 [17:33:14]save to /storage/0352/doc_00103490 [17:33:14]save last doc name /storage/0352/doc_00103490 to /storage/kkm_last_doc_name [17:33:14]save OK [17:33:14]Clear old archive folders... [17:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:33:14]tlvbuf is 014B23E0 [17:33:14]SAM_PROTO_ClearQueue [17:33:14]wFMCommunicate request_size=4 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 09 00 00 [17:33:14]Write to MH i2c: E2 08 00 2A 6E 80 09 00 00 00 00 00 00 0A [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 2A 6E 00 90 00 0C [17:33:14]RAPDU: 90 00 [17:33:14]wFMCommunicate OK [17:33:14]SAM_PROTO_ClearQueue done [17:33:14]KKMCreateOFDPacket [17:33:14]OFDProtocolAddRootSTLVToBuf [17:33:14]FM_MakeSignedData [17:33:14]FM_MakeSignedData [17:33:14]SAM_PROTO_SignData [17:33:14]wFMCommunicate request_size=4 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 0D 01 02 [17:33:14]Write to MH i2c: E2 08 00 2B 6E 80 0D 01 02 00 00 00 00 12 [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 2B 6E 00 90 00 0D [17:33:14]RAPDU: 90 00 [17:33:14]wFMCommunicate OK [17:33:14]wFMCommunicate request_size=255 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E1 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 94 01 00 35 04 06 00 [17:33:14]Write to MH i2c: E2 02 01 2C 6E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E1 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 94 01 00 35 04 06 00 00 00 8F [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 2C 6E 00 90 00 0E [17:33:14]RAPDU: 90 00 [17:33:14]wFMCommunicate OK [17:33:14]wFMCommunicate request_size=11 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 0D 02 02 06 82 5D 56 72 97 71 [17:33:14]Write to MH i2c: E2 0E 00 2D 6E 80 0D 02 02 06 00 82 5D 56 72 97 71 00 00 D0 [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 03 00 2D 6E 00 90 00 0F [17:33:14]RAPDU: 90 00 [17:33:14]wFMCommunicate OK [17:33:14]wFMCommunicate request_size=4 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 0D 03 02 [17:33:14]Write to MH i2c: E2 08 00 2E 6E 80 0D 03 02 00 00 00 00 17 [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 0B 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 0B 00 2E 6E 00 32 55 83 95 84 D4 83 8B 90 00 1D [17:33:14]RAPDU: 32 55 83 95 84 D4 83 8B 90 00 [17:33:14]wFMCommunicate OK [17:33:14]SAM_PROTO_SignData done [17:33:14]FM_MakeSignedData done [17:33:14]CreateOFDProtocolMessage [17:33:14]wFMCommunicate request_size=4 [17:33:14]MH_SAM_APDU [17:33:14]CAPDU: 80 11 00 00 [17:33:14]Write to MH i2c: E2 08 00 2F 6E 80 11 00 00 00 00 00 00 17 [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:14]Read from MH i2c: E2 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 17 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: E2 17 00 2F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6A [17:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:33:14]wFMCommunicate OK [17:33:14]CreateOFDProtocolMessage done [17:33:14]OFDSenderStorePacket 103490 [17:33:14]StoreOFDPacket docnum=103490 [17:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B4 6D 08 01 60 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E1 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 94 01 00 35 04 06 00 82 5D 56 72 97 71 32 55 83 95 84 D4 83 8B [17:33:14]CheckFolder [17:33:14]dirname=/storage/ofd_packets [17:33:14]CheckFolder done [17:33:14]ProducePacketName [17:33:14]name=ofd_packets/00103490 [17:33:14]NVStorageSaveData ofd_packets/00103490 [17:33:14]File name is /storage/ofd_packets/00103490 [17:33:14]Write 302 bytes [17:33:14]NVStorageSaveData done [17:33:14]OFDSenderStorePacket done [17:33:14]KKMCreateOFDPacket done [17:33:14]NVStorageSaveData kkm_last_timestamp [17:33:14]File name is /storage/kkm_last_timestamp [17:33:14]Write 4 bytes [17:33:14]NVStorageSaveData done [17:33:14]ExternCall_PrintAddStr [17:33:14]wPrintStart [17:33:14]Write to MH i2c: 01 00 00 30 6E 9E [17:33:14]Write i2c OK [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: 01 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: 01 07 00 [17:33:14]MH_I2C_Read... [17:33:14]Read from MH i2c: 01 07 00 30 6E 00 00 00 00 00 FF 0F B3 [17:33:14]RasterBufferAndPrint [17:33:14]line Счет N : (1)672679 [17:33:14]line ИНН: 02508201610067 [17:33:14]line Контрольно-Кассовый Чек [17:33:14]line ПРОДАЖА [17:33:14]line ТРК (МРК, ГНК) : 21 [17:33:14]line Товар: 2710194210 [17:33:14]line ДТ(л)-К-5 [17:33:14]line 27.440 * 72.90 [17:33:14]line = 2000.38 [17:33:14]line НДС 12% НСП 1% [17:33:14]line > о реализуемом товаре [17:33:14]line ИТОГО: 2000.38 [17:33:14]line НСП 1% : 17.70 [17:33:14]line НДС 12% : 212.43 [17:33:14]line Наличными: 0.00 [17:33:14]line Безнал.: 2000.38 [17:33:14]line Место: АЗС № 120 "Партнер Нефть" [17:33:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:33:14]line СНО: Общий режим [17:33:14]line Чек 174 18.06.2024 17:33 [17:33:14]line Смена: 352 ФФД: 1.0 [17:33:14]line ЗНМ: 0300000164 [17:33:14]line РНМ: 0000000000092785 [17:33:14]line Версия ККМ: 001 [17:33:14]line Платежная система: O! деньги [17:33:14]line ФМ: 0000000000875093 [17:33:14]line ФД: 103490 [17:33:14]line ФПД: 143337393919857 [17:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173321&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103490&fm=143337393919857&tin=02508201610067®Number=0000000000092785&sum=200038 [17:33:15]written 0, free lines is 4095 [17:33:15]OFD Sender: Processing packet 103490 [packets to send 17, broken 16] [17:33:15]ProducePacketName [17:33:15]name=ofd_packets/00103490 [17:33:15]OFD Sender: To server: pG, [17:33:15]CommunicateWithHost lk.salyk.kg:30040 [17:33:15]ConnectInit lk.salyk.kg [17:33:15]Connected sock=10 [17:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B4 6D 08 01 60 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E1 C4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 94 01 00 35 04 06 00 82 5D 56 72 97 71 32 55 83 95 84 D4 83 8B [17:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A1 40 47 00 8C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 94 01 00 F4 03 04 00 6C 6B 71 66 B6 04 01 00 00 A1 58 9F C0 24 B0 92 FE [17:33:15]CommunicateWithHost err = 0 [17:33:15]CheckOFDResponse [17:33:15]1017 (14) - 77093643461234 [17:33:15]1041 (16) - 0000000000875093 [17:33:15]1040 (4) - 103490 [17:33:15]1012 (4) - 18.06.2024 11:11 [17:33:15]1206 (1) - 0 [17:33:15]OFD Sender: Remove packet 103490 [17:33:15]ProducePacketName [17:33:15]name=ofd_packets/00103490 [17:33:15]NVStorageDeleteData [17:33:15]Write to MH i2c: 01 00 00 5A 6E C8 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 07 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 07 00 5A 6E 00 00 00 00 00 FB 0C D6 [17:33:15]RasterBufferAndPrint [17:33:15]line [17:33:15]line [17:33:15]line [17:33:15]line [17:33:15]line [17:33:15]written 0, free lines is 3329 [17:33:15]MH_Cut [17:33:15]Write to MH i2c: D1 01 00 61 6E 01 A1 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: D1 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: D1 01 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: D1 01 00 61 6E 00 A0 [17:33:15]Write to MH i2c: 01 00 00 62 6E D0 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:16]OFD Sender: No OFD packet to send [17:33:16]*** Cut start [17:33:16]*** Partial cut [17:33:16]*** CUTSNS_PIN = 1 [17:33:16]*** CUTSNS_PIN = 0 [17:33:16]*** Brake cut motor [17:33:16]Read from MH i2c: 01 [17:33:16]MH_I2C_Read... [17:33:16]*** Stop cut motor [17:33:16]*** Cut end [17:33:16]Read from MH i2c: 01 07 00 [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: 01 07 00 62 6E 00 00 00 00 00 FF 0F E5 [17:33:16]process_action close_receipt done [17:33:16]requested_data is exist [17:33:16]produce_requested_data [17:33:16]requested_item fm.sn is exist - process it [17:33:16]wFMCommunicate request_size=4 [17:33:16]MH_SAM_APDU [17:33:16]CAPDU: 80 11 00 00 [17:33:16]Write to MH i2c: E2 08 00 63 6E 80 11 00 00 00 00 00 00 4B [17:33:16]Write i2c OK [17:33:16]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 17 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 17 00 63 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [17:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:33:17]wFMCommunicate OK [17:33:17]requested_item fd.num is exist - process it [17:33:17]SAM_PROTO_GetFieldsCounters [17:33:17]wFMCommunicate request_size=4 [17:33:17]MH_SAM_APDU [17:33:17]CAPDU: 80 13 00 00 [17:33:17]Write to MH i2c: E2 08 00 64 6E 80 13 00 00 00 00 00 00 4E [17:33:17]Write i2c OK [17:33:17]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 62 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 62 00 64 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:17]wFMCommunicate OK [17:33:17]SAM_PROTO_GetFieldsCounters done [17:33:17]requested_item shift.num is exist - process it [17:33:17]requested_item shift.opened is exist - process it [17:33:17]req_shift_opened [17:33:17]FM_GetShiftState [17:33:17]SAM_PROTO_GetShiftState [17:33:17]wFMCommunicate request_size=4 [17:33:17]MH_SAM_APDU [17:33:17]CAPDU: 80 13 01 00 [17:33:17]Write to MH i2c: E2 08 00 65 6E 80 13 01 00 00 00 00 00 50 [17:33:17]Write i2c OK [17:33:17]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 0E 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 0E 00 65 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D1 [17:33:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:33:17]wFMCommunicate OK [17:33:17]SAM_PROTO_GetShiftState done [17:33:17]FM_GetShiftState done [17:33:17]req_shift_opened done [17:33:17]requested_item shift.open_date is exist - process it [17:33:17]req_shift_open_date [17:33:17]req_shift_open_date done [17:33:17]produce_requested_data done [17:33:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103490,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:33:17]process_action_free close_receipt [17:33:17]json_value_free [17:33:17]json_value_free done [17:33:17]process_json_proto returns [17:33:17]Send response to host [17:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103490,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:33:17]free response buf [17:33:17]execute_script done [17:33:17]execute_script returns [17:33:17]free content buf [17:33:17]Sock 7.Close socket [17:33:17]Sock 7.Thread stoped [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:02]accept exits with 9 [17:34:02]New connection [17:34:02]New thread 3067227492 created [17:34:02]Thread 3067084132 joined [17:34:02]Waiting for new connection... [17:34:02] Sock 9.Parse request [17:34:02]Sock 9.Check first char [17:34:02]Sock 9.First char is OK [17:34:02]request: POST /json_proto HTTP/1.0 [17:34:02]Method: POST [17:34:02]URL: /json_proto [17:34:02]Method is POST - this is cgi request [17:34:02]url: /json_proto [17:34:02]query_string will be loaded in cgi processing [17:34:02]execute_cgi json_proto POST (null) [17:34:02]execute_cgi path=json_proto method=POST [17:34:02]POST find Content-Length [17:34:02]Host: 172.17.38.133:8080 [17:34:02]Content-Length: 808 [17:34:02]Content-Type: application/json [17:34:02] [17:34:02]POST finish read [17:34:02]Found Content-Length = 808 [17:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:02]execute_script... [17:34:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:02]POST & json_proto [17:34:02]process_json_proto [17:34:02]json parsed OK: [17:34:02]protocol is kg_v1.0 [17:34:02]action value=close_receipt [17:34:02]process_action close_receipt [17:34:02]cmd_close_receipt [17:34:02]MH_GetDate [17:34:02]Write to MH i2c: F0 00 00 66 6E C3 [17:34:02]Write i2c OK [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 09 00 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: F0 09 00 66 6E 00 11 C5 71 66 BD 8F 7C 64 A5 [17:34:02]GetLastDocTimeStamp 1718732001 [17:34:02]current date 1718732049 [17:34:02]FM_GetShiftState [17:34:02]SAM_PROTO_GetShiftState [17:34:02]wFMCommunicate request_size=4 [17:34:02]MH_SAM_APDU [17:34:02]CAPDU: 80 13 01 00 [17:34:02]Write to MH i2c: E2 08 00 67 6E 80 13 01 00 00 00 00 00 52 [17:34:02]Write i2c OK [17:34:02]MH_I2C_Read... [17:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:02]Read from MH i2c: E2 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: E2 0E 00 [17:34:02]MH_I2C_Read... [17:34:02]Read from MH i2c: E2 0E 00 67 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D3 [17:34:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:34:02]wFMCommunicate OK [17:34:02]SAM_PROTO_GetShiftState done [17:34:02]FM_GetShiftState done [17:34:02]opened in 1718670284 [17:34:02]opened+sec_in_day 1718756684 [17:34:02]quantity*price = 200037 [17:34:02]sum+1 = 200039 [17:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 175 18.06.2024 17:34 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103491 ФПД: 102545352576178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103491&fm=102545352576178&tin=02508201610067®Number=0000000000092785&sum=200038 [17:34:03]StoreToDocumentArchive [17:34:03]shift 352 fd 103491 [17:34:03]save to /storage/0352/doc_00103491 [17:34:03]save last doc name /storage/0352/doc_00103491 to /storage/kkm_last_doc_name [17:34:03]save OK [17:34:03]Clear old archive folders... [17:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:34:03]tlvbuf is 0132D200 [17:34:03]SAM_PROTO_ClearQueue [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 09 00 00 [17:34:03]Write to MH i2c: E2 08 00 74 6E 80 09 00 00 00 00 00 00 54 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 74 6E 00 90 00 56 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_ClearQueue done [17:34:03]KKMCreateOFDPacket [17:34:03]OFDProtocolAddRootSTLVToBuf [17:34:03]FM_MakeSignedData [17:34:03]FM_MakeSignedData [17:34:03]SAM_PROTO_SignData [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 01 02 [17:34:03]Write to MH i2c: E2 08 00 75 6E 80 0D 01 02 00 00 00 00 5C [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 75 6E 00 90 00 57 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=255 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 12 C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 94 01 00 35 04 06 00 [17:34:03]Write to MH i2c: E2 02 01 76 6E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 12 C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 94 01 00 35 04 06 00 00 00 0D [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 76 6E 00 90 00 58 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=11 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 02 02 06 5D 43 B3 50 4C B2 [17:34:03]Write to MH i2c: E2 0E 00 77 6E 80 0D 02 02 06 00 5D 43 B3 50 4C B2 00 00 0C [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 77 6E 00 90 00 59 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 03 02 [17:34:03]Write to MH i2c: E2 08 00 78 6E 80 0D 03 02 00 00 00 00 61 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0B 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0B 00 78 6E 00 C6 63 25 24 42 D1 89 06 90 00 76 [17:34:03]RAPDU: C6 63 25 24 42 D1 89 06 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_SignData done [17:34:03]FM_MakeSignedData done [17:34:03]CreateOFDProtocolMessage [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 11 00 00 [17:34:03]Write to MH i2c: E2 08 00 79 6E 80 11 00 00 00 00 00 00 61 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 79 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [17:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:03]wFMCommunicate OK [17:34:03]CreateOFDProtocolMessage done [17:34:03]OFDSenderStorePacket 103491 [17:34:03]StoreOFDPacket docnum=103491 [17:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 34 1D 08 01 92 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 12 C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 94 01 00 35 04 06 00 5D 43 B3 50 4C B2 C6 63 25 24 42 D1 89 06 [17:34:03]CheckFolder [17:34:03]dirname=/storage/ofd_packets [17:34:03]CheckFolder done [17:34:03]ProducePacketName [17:34:03]name=ofd_packets/00103491 [17:34:03]NVStorageSaveData ofd_packets/00103491 [17:34:03]File name is /storage/ofd_packets/00103491 [17:34:03]Write 302 bytes [17:34:03]NVStorageSaveData done [17:34:03]OFDSenderStorePacket done [17:34:03]KKMCreateOFDPacket done [17:34:03]NVStorageSaveData kkm_last_timestamp [17:34:03]File name is /storage/kkm_last_timestamp [17:34:03]Write 4 bytes [17:34:03]NVStorageSaveData done [17:34:03]ExternCall_PrintAddStr [17:34:03]wPrintStart [17:34:03]Write to MH i2c: 01 00 00 7A 6E E8 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 07 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 07 00 7A 6E 00 00 00 00 00 FF 0F FD [17:34:03]RasterBufferAndPrint [17:34:03]line Счет N : (1)672680 [17:34:03]line ИНН: 02508201610067 [17:34:03]line Контрольно-Кассовый Чек [17:34:03]line ПРОДАЖА [17:34:03]line ТРК (МРК, ГНК) : 11 [17:34:03]line Товар: 2710194210 [17:34:03]line ДТ(л)-К-5 [17:34:03]line 27.440 * 72.90 [17:34:03]line = 2000.38 [17:34:03]line НДС 12% НСП 1% [17:34:03]line > о реализуемом товаре [17:34:03]line ИТОГО: 2000.38 [17:34:03]line НСП 1% : 17.70 [17:34:03]line НДС 12% : 212.43 [17:34:03]line Наличными: 0.00 [17:34:03]line Безнал.: 2000.38 [17:34:03]line Место: АЗС № 120 "Партнер Нефть" [17:34:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:34:03]line СНО: Общий режим [17:34:03]line Чек 175 18.06.2024 17:34 [17:34:03]line Смена: 352 ФФД: 1.0 [17:34:03]line ЗНМ: 0300000164 [17:34:03]line РНМ: 0000000000092785 [17:34:03]line Версия ККМ: 001 [17:34:03]line Платежная система: O! деньги [17:34:03]line ФМ: 0000000000875093 [17:34:03]line ФД: 103491 [17:34:03]line ФПД: 102545352576178 [17:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173410&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103491&fm=102545352576178&tin=02508201610067®Number=0000000000092785&sum=200038 [17:34:04]written 0, free lines is 4095 [17:34:04]OFD Sender: Processing packet 103491 [packets to send 17, broken 16] [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00103491 [17:34:04]OFD Sender: To server: pG, [17:34:04]CommunicateWithHost lk.salyk.kg:30040 [17:34:04]ConnectInit lk.salyk.kg [17:34:04]Connected sock=10 [17:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 34 1D 08 01 92 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 12 C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 94 01 00 35 04 06 00 5D 43 B3 50 4C B2 C6 63 25 24 42 D1 89 06 [17:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5D 7C 47 00 2A 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 94 01 00 F4 03 04 00 9D 6B 71 66 B6 04 01 00 00 3C 44 F8 8D 2F 81 BF 9D [17:34:04]CommunicateWithHost err = 0 [17:34:04]CheckOFDResponse [17:34:04]1017 (14) - 77093643461234 [17:34:04]1041 (16) - 0000000000875093 [17:34:04]1040 (4) - 103491 [17:34:04]1012 (4) - 18.06.2024 11:12 [17:34:04]1206 (1) - 0 [17:34:04]OFD Sender: Remove packet 103491 [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00103491 [17:34:04]NVStorageDeleteData [17:34:04]Write to MH i2c: 01 00 00 A4 6E 12 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 A4 6E 00 00 00 00 00 01 0D 27 [17:34:04]RasterBufferAndPrint [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]written 0, free lines is 3338 [17:34:04]MH_Cut [17:34:04]Write to MH i2c: D1 01 00 AB 6E 01 EB [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 01 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 01 00 AB 6E 00 EA [17:34:04]Write to MH i2c: 01 00 00 AC 6E 1A [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:05]OFD Sender: No OFD packet to send [17:34:05]*** Cut start [17:34:05]*** Partial cut [17:34:05]*** CUTSNS_PIN = 1 [17:34:05]*** CUTSNS_PIN = 0 [17:34:05]*** Brake cut motor [17:34:05]Read from MH i2c: 01 [17:34:05]MH_I2C_Read... [17:34:05]*** Stop cut motor [17:34:05]*** Cut end [17:34:05]Read from MH i2c: 01 07 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 AC 6E 00 00 00 00 00 FF 0F 2F [17:34:05]process_action close_receipt done [17:34:05]requested_data is exist [17:34:05]produce_requested_data [17:34:05]requested_item fm.sn is exist - process it [17:34:05]wFMCommunicate request_size=4 [17:34:05]MH_SAM_APDU [17:34:05]CAPDU: 80 11 00 00 [17:34:05]Write to MH i2c: E2 08 00 AD 6E 80 11 00 00 00 00 00 00 95 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:05]Read from MH i2c: E2 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 17 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 17 00 AD 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [17:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:05]wFMCommunicate OK [17:34:05]requested_item fd.num is exist - process it [17:34:05]SAM_PROTO_GetFieldsCounters [17:34:05]wFMCommunicate request_size=4 [17:34:05]MH_SAM_APDU [17:34:05]CAPDU: 80 13 00 00 [17:34:05]Write to MH i2c: E2 08 00 AE 6E 80 13 00 00 00 00 00 00 98 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 62 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 62 00 AE 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [17:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetFieldsCounters done [17:34:06]requested_item shift.num is exist - process it [17:34:06]requested_item shift.opened is exist - process it [17:34:06]req_shift_opened [17:34:06]FM_GetShiftState [17:34:06]SAM_PROTO_GetShiftState [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 13 01 00 [17:34:06]Write to MH i2c: E2 08 00 AF 6E 80 13 01 00 00 00 00 00 9A [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 AF 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1B [17:34:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetShiftState done [17:34:06]FM_GetShiftState done [17:34:06]req_shift_opened done [17:34:06]requested_item shift.open_date is exist - process it [17:34:06]req_shift_open_date [17:34:06]req_shift_open_date done [17:34:06]produce_requested_data done [17:34:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103491,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:34:06]process_action_free close_receipt [17:34:06]json_value_free [17:34:06]json_value_free done [17:34:06]process_json_proto returns [17:34:06]Send response to host [17:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103491,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:34:06]free response buf [17:34:06]execute_script done [17:34:06]execute_script returns [17:34:06]free content buf [17:34:06]Sock 9.Close socket [17:34:06]Sock 9.Thread stoped [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:46]accept exits with 7 [17:34:46]New connection [17:34:46]New thread 3067084132 created [17:34:46]Thread 3067227492 joined [17:34:46]Waiting for new connection... [17:34:46] Sock 7.Parse request [17:34:46]Sock 7.Check first char [17:34:46]Sock 7.First char is OK [17:34:46]request: POST /json_proto HTTP/1.0 [17:34:46]Method: POST [17:34:46]URL: /json_proto [17:34:46]Method is POST - this is cgi request [17:34:46]url: /json_proto [17:34:46]query_string will be loaded in cgi processing [17:34:46]execute_cgi json_proto POST (null) [17:34:46]execute_cgi path=json_proto method=POST [17:34:46]POST find Content-Length [17:34:46]Host: 172.17.38.133:8080 [17:34:46]Content-Length: 816 [17:34:46]Content-Type: application/json [17:34:46] [17:34:46]POST finish read [17:34:46]Found Content-Length = 816 [17:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:46]execute_script... [17:34:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:46]POST & json_proto [17:34:46]process_json_proto [17:34:46]json parsed OK: [17:34:46]protocol is kg_v1.0 [17:34:46]action value=close_receipt [17:34:46]process_action close_receipt [17:34:46]cmd_close_receipt [17:34:46]MH_GetDate [17:34:46]Write to MH i2c: F0 00 00 B0 6E 0D [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 09 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: F0 09 00 B0 6E 00 3E C5 71 66 BD 8F 7C 64 1C [17:34:46]GetLastDocTimeStamp 1718732050 [17:34:46]current date 1718732094 [17:34:46]FM_GetShiftState [17:34:46]SAM_PROTO_GetShiftState [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 01 00 [17:34:46]Write to MH i2c: E2 08 00 B1 6E 80 13 01 00 00 00 00 00 9C [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 B1 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1D [17:34:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_GetShiftState done [17:34:46]FM_GetShiftState done [17:34:46]opened in 1718670284 [17:34:46]opened+sec_in_day 1718756684 [17:34:46]quantity*price = 50065 [17:34:46]sum+1 = 50067 [17:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 176 18.06.2024 17:34 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103492 ФПД: 39716486759381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173454&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103492&fm=39716486759381&tin=02508201610067®Number=0000000000092785&sum=50066 [17:34:47]StoreToDocumentArchive [17:34:47]shift 352 fd 103492 [17:34:47]save to /storage/0352/doc_00103492 [17:34:47]save last doc name /storage/0352/doc_00103492 to /storage/kkm_last_doc_name [17:34:47]save OK [17:34:47]Clear old archive folders... [17:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:47]tlvbuf is 01390D80 [17:34:47]SAM_PROTO_ClearQueue [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 09 00 00 [17:34:47]Write to MH i2c: E2 08 00 BE 6E 80 09 00 00 00 00 00 00 9E [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 BE 6E 00 90 00 A0 [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_ClearQueue done [17:34:48]KKMCreateOFDPacket [17:34:48]OFDProtocolAddRootSTLVToBuf [17:34:48]FM_MakeSignedData [17:34:48]FM_MakeSignedData [17:34:48]SAM_PROTO_SignData [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 01 02 [17:34:48]Write to MH i2c: E2 08 00 BF 6E 80 0D 01 02 00 00 00 00 A6 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 BF 6E 00 90 00 A1 [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=255 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3E C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 94 01 00 35 04 06 00 24 [17:34:48]Write to MH i2c: E2 02 01 C0 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3E C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 94 01 00 35 04 06 00 24 00 00 CC [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 C0 6E 00 90 00 A2 [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=10 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 02 02 05 1F 37 15 C3 D5 [17:34:48]Write to MH i2c: E2 0D 00 C1 6E 80 0D 02 02 05 00 1F 37 15 C3 D5 00 00 B6 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 C1 6E 00 90 00 A3 [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 03 02 [17:34:48]Write to MH i2c: E2 08 00 C2 6E 80 0D 03 02 00 00 00 00 AB [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 C2 6E 00 95 CD 13 42 56 6A 5D F8 90 00 78 [17:34:48]RAPDU: 95 CD 13 42 56 6A 5D F8 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_SignData done [17:34:48]FM_MakeSignedData done [17:34:48]CreateOFDProtocolMessage [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 11 00 00 [17:34:48]Write to MH i2c: E2 08 00 C3 6E 80 11 00 00 00 00 00 00 AB [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 C3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [17:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:48]wFMCommunicate OK [17:34:48]CreateOFDProtocolMessage done [17:34:48]OFDSenderStorePacket 103492 [17:34:48]StoreOFDPacket docnum=103492 [17:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 69 87 07 01 80 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3E C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 94 01 00 35 04 06 00 24 1F 37 15 C3 D5 95 CD 13 42 56 6A 5D F8 [17:34:48]CheckFolder [17:34:48]dirname=/storage/ofd_packets [17:34:48]CheckFolder done [17:34:48]ProducePacketName [17:34:48]name=ofd_packets/00103492 [17:34:48]NVStorageSaveData ofd_packets/00103492 [17:34:48]File name is /storage/ofd_packets/00103492 [17:34:48]Write 301 bytes [17:34:48]NVStorageSaveData done [17:34:48]OFDSenderStorePacket done [17:34:48]KKMCreateOFDPacket done [17:34:48]NVStorageSaveData kkm_last_timestamp [17:34:48]File name is /storage/kkm_last_timestamp [17:34:48]Write 4 bytes [17:34:48]NVStorageSaveData done [17:34:48]ExternCall_PrintAddStr [17:34:48]wPrintStart [17:34:48]Write to MH i2c: 01 00 00 C4 6E 32 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 C4 6E 00 00 00 00 00 FF 0F 47 [17:34:48]RasterBufferAndPrint [17:34:48]line Счет N : (1)672681 [17:34:48]line ИНН: 02508201610067 [17:34:48]line Контрольно-Кассовый Чек [17:34:48]line ПРОДАЖА [17:34:48]line ТРК (МРК, ГНК) : 32 [17:34:48]line Товар: 2710124130 [17:34:48]line Аи-92-К-5 [17:34:48]line 7.540 * 66.40 [17:34:48]line = 500.66 [17:34:48]line НДС 12% НСП 1% [17:34:48]line > о реализуемом товаре [17:34:48]line ИТОГО: 500.66 [17:34:48]line НСП 1% : 4.43 [17:34:48]line НДС 12% : 53.17 [17:34:48]line Наличными: 0.00 [17:34:48]line Безнал.: 500.66 [17:34:48]line Место: АЗС № 120 "Партнер Нефть" [17:34:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:34:48]line СНО: Общий режим [17:34:48]line Чек 176 18.06.2024 17:34 [17:34:48]line Смена: 352 ФФД: 1.0 [17:34:48]line ЗНМ: 0300000164 [17:34:48]line РНМ: 0000000000092785 [17:34:48]line Версия ККМ: 001 [17:34:48]line Платежная система: Бакай Банк [17:34:48]line ФМ: 0000000000875093 [17:34:48]line ФД: 103492 [17:34:48]line ФПД: 39716486759381 [17:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T173454&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103492&fm=39716486759381&tin=02508201610067®Number=0000000000092785&sum=50066 [17:34:48]written 0, free lines is 4095 [17:34:48]OFD Sender: Processing packet 103492 [packets to send 17, broken 16] [17:34:48]ProducePacketName [17:34:48]name=ofd_packets/00103492 [17:34:48]OFD Sender: To server: pG, [17:34:48]CommunicateWithHost lk.salyk.kg:30040 [17:34:48]ConnectInit lk.salyk.kg [17:34:48]Connected sock=10 [17:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 69 87 07 01 80 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3E C5 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 94 01 00 35 04 06 00 24 1F 37 15 C3 D5 95 CD 13 42 56 6A 5D F8 [17:34:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 53 60 47 00 05 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 94 01 00 F4 03 04 00 CA 6B 71 66 B6 04 01 00 00 10 FC 68 4A 4C 48 2C CF [17:34:49]CommunicateWithHost err = 0 [17:34:49]CheckOFDResponse [17:34:49]1017 (14) - 77093643461234 [17:34:49]1041 (16) - 0000000000875093 [17:34:49]1040 (4) - 103492 [17:34:49]1012 (4) - 18.06.2024 11:13 [17:34:49]1206 (1) - 0 [17:34:49]OFD Sender: Remove packet 103492 [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00103492 [17:34:49]NVStorageDeleteData [17:34:49]Write to MH i2c: 01 00 00 EE 6E 5C [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 EE 6E 00 00 00 00 00 F7 0C 66 [17:34:49]RasterBufferAndPrint [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]written 0, free lines is 3323 [17:34:49]MH_Cut [17:34:49]Write to MH i2c: D1 01 00 F5 6E 01 35 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 F5 6E 00 34 [17:34:49]Write to MH i2c: 01 00 00 F6 6E 64 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]OFD Sender: No OFD packet to send [17:34:50]*** Cut start [17:34:50]*** Partial cut [17:34:50]*** CUTSNS_PIN = 1 [17:34:50]*** CUTSNS_PIN = 0 [17:34:50]*** Brake cut motor [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]*** Stop cut motor [17:34:50]*** Cut end [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 F6 6E 00 00 00 00 00 FF 0F 79 [17:34:50]process_action close_receipt done [17:34:50]requested_data is exist [17:34:50]produce_requested_data [17:34:50]requested_item fm.sn is exist - process it [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 11 00 00 [17:34:50]Write to MH i2c: E2 08 00 F7 6E 80 11 00 00 00 00 00 00 DF [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 F7 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [17:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:50]wFMCommunicate OK [17:34:50]requested_item fd.num is exist - process it [17:34:50]SAM_PROTO_GetFieldsCounters [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 00 00 [17:34:50]Write to MH i2c: E2 08 00 F8 6E 80 13 00 00 00 00 00 00 E2 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 62 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 62 00 F8 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:34:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_GetFieldsCounters done [17:34:50]requested_item shift.num is exist - process it [17:34:50]requested_item shift.opened is exist - process it [17:34:50]req_shift_opened [17:34:50]FM_GetShiftState [17:34:50]SAM_PROTO_GetShiftState [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 01 00 [17:34:50]Write to MH i2c: E2 08 00 F9 6E 80 13 01 00 00 00 00 00 E4 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 F9 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 65 [17:34:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_GetShiftState done [17:34:50]FM_GetShiftState done [17:34:50]req_shift_opened done [17:34:50]requested_item shift.open_date is exist - process it [17:34:50]req_shift_open_date [17:34:50]req_shift_open_date done [17:34:50]produce_requested_data done [17:34:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103492,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:34:50]process_action_free close_receipt [17:34:50]json_value_free [17:34:50]json_value_free done [17:34:50]process_json_proto returns [17:34:50]Send response to host [17:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103492,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:34:50]free response buf [17:34:50]execute_script done [17:34:50]execute_script returns [17:34:50]free content buf [17:34:50]Sock 7.Close socket [17:34:50]Sock 7.Thread stoped [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:08]accept exits with 9 [17:44:08]New connection [17:44:08]New thread 3067227492 created [17:44:08]Thread 3067084132 joined [17:44:08]Waiting for new connection... [17:44:08] Sock 9.Parse request [17:44:08]Sock 9.Check first char [17:44:08]Sock 9.First char is OK [17:44:08]request: POST /json_proto HTTP/1.0 [17:44:08]Method: POST [17:44:08]URL: /json_proto [17:44:08]Method is POST - this is cgi request [17:44:08]url: /json_proto [17:44:08]query_string will be loaded in cgi processing [17:44:08]execute_cgi json_proto POST (null) [17:44:08]execute_cgi path=json_proto method=POST [17:44:08]POST find Content-Length [17:44:08]Host: 172.17.38.133:8080 [17:44:08]Content-Length: 809 [17:44:08]Content-Type: application/json [17:44:08] [17:44:08]POST finish read [17:44:08]Found Content-Length = 809 [17:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:08]execute_script... [17: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 : (1)672682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:08]POST & json_proto [17:44:08]process_json_proto [17:44:08]json parsed OK: [17:44:08]protocol is kg_v1.0 [17:44:08]action value=close_receipt [17:44:08]process_action close_receipt [17:44:08]cmd_close_receipt [17:44:08]MH_GetDate [17:44:08]Write to MH i2c: F0 00 00 FA 6E 57 [17:44:08]Write i2c OK [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: F0 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: F0 09 00 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: F0 09 00 FA 6E 00 70 C7 71 66 BD 8F 7C 64 9A [17:44:08]GetLastDocTimeStamp 1718732094 [17:44:08]current date 1718732656 [17:44:08]FM_GetShiftState [17:44:08]SAM_PROTO_GetShiftState [17:44:08]wFMCommunicate request_size=4 [17:44:08]MH_SAM_APDU [17:44:08]CAPDU: 80 13 01 00 [17:44:08]Write to MH i2c: E2 08 00 FB 6E 80 13 01 00 00 00 00 00 E6 [17:44:08]Write i2c OK [17:44:08]MH_I2C_Read... [17:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:08]Read from MH i2c: E2 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 0E 00 [17:44:08]MH_I2C_Read... [17:44:08]Read from MH i2c: E2 0E 00 FB 6E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 67 [17:44:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:44:08]wFMCommunicate OK [17:44:08]SAM_PROTO_GetShiftState done [17:44:08]FM_GetShiftState done [17:44:08]opened in 1718670284 [17:44:08]opened+sec_in_day 1718756684 [17:44:08]quantity*price = 729000 [17:44:08]sum+1 = 729001 [17:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7290.00 НСП 1% : 64.51 НДС 12% : 774.16 Наличными: 0.00 Безнал.: 7290.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 177 18.06.2024 17:44 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103493 ФПД: 4190875899018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T174416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103493&fm=4190875899018&tin=02508201610067®Number=0000000000092785&sum=729000 [17:44:09]StoreToDocumentArchive [17:44:09]shift 352 fd 103493 [17:44:09]save to /storage/0352/doc_00103493 [17:44:09]save last doc name /storage/0352/doc_00103493 to /storage/kkm_last_doc_name [17:44:09]save OK [17:44:09]Clear old archive folders... [17:44:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:44:09]tlvbuf is 013B1120 [17:44:09]SAM_PROTO_ClearQueue [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 09 00 00 [17:44:09]Write to MH i2c: E2 08 00 08 6F 80 09 00 00 00 00 00 00 E9 [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 08 6F 00 90 00 EB [17:44:09]RAPDU: 90 00 [17:44:09]wFMCommunicate OK [17:44:09]SAM_PROTO_ClearQueue done [17:44:09]KKMCreateOFDPacket [17:44:09]OFDProtocolAddRootSTLVToBuf [17:44:09]FM_MakeSignedData [17:44:09]FM_MakeSignedData [17:44:09]SAM_PROTO_SignData [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 0D 01 02 [17:44:09]Write to MH i2c: E2 08 00 09 6F 80 0D 01 02 00 00 00 00 F1 [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 09 6F 00 90 00 EC [17:44:09]RAPDU: 90 00 [17:44:09]wFMCommunicate OK [17:44:09]wFMCommunicate request_size=255 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 1F 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 70 C7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 94 01 00 35 04 06 00 [17:44:09]Write to MH i2c: E2 02 01 0A 6F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 1F 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 70 C7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 94 01 00 35 04 06 00 00 00 4C [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 0A 6F 00 90 00 ED [17:44:09]RAPDU: 90 00 [17:44:09]wFMCommunicate OK [17:44:09]wFMCommunicate request_size=11 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 0D 02 02 06 03 CF C3 AB 54 8A [17:44:09]Write to MH i2c: E2 0E 00 0B 6F 80 0D 02 02 06 00 03 CF C3 AB 54 8A 00 00 1E [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 03 00 0B 6F 00 90 00 EE [17:44:09]RAPDU: 90 00 [17:44:09]wFMCommunicate OK [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 0D 03 02 [17:44:09]Write to MH i2c: E2 08 00 0C 6F 80 0D 03 02 00 00 00 00 F6 [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 0B 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 0B 00 0C 6F 00 45 C2 81 C0 AF 20 FE 6C 90 00 78 [17:44:09]RAPDU: 45 C2 81 C0 AF 20 FE 6C 90 00 [17:44:09]wFMCommunicate OK [17:44:09]SAM_PROTO_SignData done [17:44:09]FM_MakeSignedData done [17:44:09]CreateOFDProtocolMessage [17:44:09]wFMCommunicate request_size=4 [17:44:09]MH_SAM_APDU [17:44:09]CAPDU: 80 11 00 00 [17:44:09]Write to MH i2c: E2 08 00 0D 6F 80 11 00 00 00 00 00 00 F6 [17:44:09]Write i2c OK [17:44:09]MH_I2C_Read... [17:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:09]Read from MH i2c: E2 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 17 00 [17:44:09]MH_I2C_Read... [17:44:09]Read from MH i2c: E2 17 00 0D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [17:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:44:09]wFMCommunicate OK [17:44:09]CreateOFDProtocolMessage done [17:44:09]OFDSenderStorePacket 103493 [17:44:09]StoreOFDPacket docnum=103493 [17:44:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 D8 08 01 D2 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 1F 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 70 C7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 94 01 00 35 04 06 00 03 CF C3 AB 54 8A 45 C2 81 C0 AF 20 FE 6C [17:44:09]CheckFolder [17:44:09]dirname=/storage/ofd_packets [17:44:09]CheckFolder done [17:44:09]ProducePacketName [17:44:09]name=ofd_packets/00103493 [17:44:09]NVStorageSaveData ofd_packets/00103493 [17:44:09]File name is /storage/ofd_packets/00103493 [17:44:09]Write 302 bytes [17:44:10]NVStorageSaveData done [17:44:10]OFDSenderStorePacket done [17:44:10]KKMCreateOFDPacket done [17:44:10]NVStorageSaveData kkm_last_timestamp [17:44:10]File name is /storage/kkm_last_timestamp [17:44:10]Write 4 bytes [17:44:10]NVStorageSaveData done [17:44:10]ExternCall_PrintAddStr [17:44:10]wPrintStart [17:44:10]Write to MH i2c: 01 00 00 0E 6F 7D [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 07 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 07 00 0E 6F 00 00 00 00 00 FF 0F 92 [17:44:10]RasterBufferAndPrint [17:44:10]line Счет N : (1)672682 [17:44:10]line ИНН: 02508201610067 [17:44:10]line Контрольно-Кассовый Чек [17:44:10]line ПРОДАЖА [17:44:10]line ТРК (МРК, ГНК) : 11 [17:44:10]line Товар: 2710194210 [17:44:10]line ДТ(л)-К-5 [17:44:10]line 100.000 * 72.90 [17:44:10]line = 7290.00 [17:44:10]line НДС 12% НСП 1% [17:44:10]line > о реализуемом товаре [17:44:10]line ИТОГО: 7290.00 [17:44:10]line НСП 1% : 64.51 [17:44:10]line НДС 12% : 774.16 [17:44:10]line Наличными: 0.00 [17:44:10]line Безнал.: 7290.00 [17:44:10]line Место: АЗС № 120 "Партнер Нефть" [17:44:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:44:10]line СНО: Общий режим [17:44:10]line Чек 177 18.06.2024 17:44 [17:44:10]line Смена: 352 ФФД: 1.0 [17:44:10]line ЗНМ: 0300000164 [17:44:10]line РНМ: 0000000000092785 [17:44:10]line Версия ККМ: 001 [17:44:10]line Платежная система: O! деньги [17:44:10]line ФМ: 0000000000875093 [17:44:10]line ФД: 103493 [17:44:10]line ФПД: 4190875899018 [17:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T174416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103493&fm=4190875899018&tin=02508201610067®Number=0000000000092785&sum=729000 [17:44:10]OFD Sender: Processing packet 103493 [packets to send 17, broken 16] [17:44:10]ProducePacketName [17:44:10]name=ofd_packets/00103493 [17:44:10]OFD Sender: To server: pG, [17:44:10]CommunicateWithHost lk.salyk.kg:30040 [17:44:10]ConnectInit lk.salyk.kg [17:44:10]written 0, free lines is 4095 [17:44:10]Connected sock=10 [17: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 35 30 39 33 10 01 00 00 68 D8 08 01 D2 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 1F 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 70 C7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 94 01 00 35 04 06 00 03 CF C3 AB 54 8A 45 C2 81 C0 AF 20 FE 6C [17:44:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 47 93 47 00 76 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 94 01 00 F4 03 04 00 FB 6D 71 66 B6 04 01 00 00 C7 F1 9A E6 4E 94 25 96 [17:44:10]CommunicateWithHost err = 0 [17:44:10]CheckOFDResponse [17:44:10]1017 (14) - 77093643461234 [17:44:10]1041 (16) - 0000000000875093 [17:44:10]1040 (4) - 103493 [17:44:10]1012 (4) - 18.06.2024 11:22 [17:44:10]1206 (1) - 0 [17:44:10]OFD Sender: Remove packet 103493 [17:44:10]ProducePacketName [17:44:10]name=ofd_packets/00103493 [17:44:10]NVStorageDeleteData [17:44:10]Write to MH i2c: 01 00 00 38 6F A7 [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 07 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: 01 07 00 38 6F 00 00 00 00 00 01 0D BC [17:44:10]RasterBufferAndPrint [17:44:10]line [17:44:10]line [17:44:10]line [17:44:10]line [17:44:10]line [17:44:10]written 0, free lines is 3335 [17:44:10]MH_Cut [17:44:10]Write to MH i2c: D1 01 00 3F 6F 01 80 [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: D1 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: D1 01 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: D1 01 00 3F 6F 00 7F [17:44:10]Write to MH i2c: 01 00 00 40 6F AF [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:11]OFD Sender: No OFD packet to send [17:44:11]*** Cut start [17:44:11]*** Partial cut [17:44:11]*** CUTSNS_PIN = 1 [17:44:11]*** CUTSNS_PIN = 0 [17:44:11]*** Brake cut motor [17:44:12]Read from MH i2c: 01 [17:44:12]MH_I2C_Read... [17:44:12]*** Stop cut motor [17:44:12]*** Cut end [17:44:12]Read from MH i2c: 01 07 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 07 00 40 6F 00 00 00 00 00 FF 0F C4 [17:44:12]process_action close_receipt done [17:44:12]requested_data is exist [17:44:12]produce_requested_data [17:44:12]requested_item fm.sn is exist - process it [17:44:12]wFMCommunicate request_size=4 [17:44:12]MH_SAM_APDU [17:44:12]CAPDU: 80 11 00 00 [17:44:12]Write to MH i2c: E2 08 00 41 6F 80 11 00 00 00 00 00 00 2A [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:12]Read from MH i2c: E2 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 17 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 17 00 41 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [17:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:44:12]wFMCommunicate OK [17:44:12]requested_item fd.num is exist - process it [17:44:12]SAM_PROTO_GetFieldsCounters [17:44:12]wFMCommunicate request_size=4 [17:44:12]MH_SAM_APDU [17:44:12]CAPDU: 80 13 00 00 [17:44:12]Write to MH i2c: E2 08 00 42 6F 80 13 00 00 00 00 00 00 2D [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:12]Read from MH i2c: E2 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 62 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 62 00 42 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:12]wFMCommunicate OK [17:44:12]SAM_PROTO_GetFieldsCounters done [17:44:12]requested_item shift.num is exist - process it [17:44:12]requested_item shift.opened is exist - process it [17:44:12]req_shift_opened [17:44:12]FM_GetShiftState [17:44:12]SAM_PROTO_GetShiftState [17:44:12]wFMCommunicate request_size=4 [17:44:12]MH_SAM_APDU [17:44:12]CAPDU: 80 13 01 00 [17:44:12]Write to MH i2c: E2 08 00 43 6F 80 13 01 00 00 00 00 00 2F [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:12]Read from MH i2c: E2 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 0E 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 0E 00 43 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B0 [17:44:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:44:12]wFMCommunicate OK [17:44:12]SAM_PROTO_GetShiftState done [17:44:12]FM_GetShiftState done [17:44:12]req_shift_opened done [17:44:12]requested_item shift.open_date is exist - process it [17:44:12]req_shift_open_date [17:44:12]req_shift_open_date done [17:44:12]produce_requested_data done [17:44:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103493,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:44:12]process_action_free close_receipt [17:44:12]json_value_free [17:44:12]json_value_free done [17:44:12]process_json_proto returns [17:44:12]Send response to host [17:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103493,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:44:12]free response buf [17:44:12]execute_script done [17:44:12]execute_script returns [17:44:12]free content buf [17:44:12]Sock 9.Close socket [17:44:12]Sock 9.Thread stoped [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]accept exits with 7 [17:53:01]New connection [17:53:01]New thread 3067084132 created [17:53:01]Thread 3067227492 joined [17:53:01]Waiting for new connection... [17:53:01] Sock 7.Parse request [17:53:01]Sock 7.Check first char [17:53:01]Sock 7.First char is OK [17:53:01]request: POST /json_proto HTTP/1.0 [17:53:01]Method: POST [17:53:01]URL: /json_proto [17:53:01]Method is POST - this is cgi request [17:53:01]url: /json_proto [17:53:01]query_string will be loaded in cgi processing [17:53:01]execute_cgi json_proto POST (null) [17:53:01]execute_cgi path=json_proto method=POST [17:53:01]POST find Content-Length [17:53:01]Host: 172.17.38.133:8080 [17:53:01]Content-Length: 803 [17:53:01]Content-Type: application/json [17:53:01] [17:53:01]POST finish read [17:53:01]Found Content-Length = 803 [17:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 15.820, "sum" : 1169.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1169.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:01]execute_script... [17:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 15.820, "sum" : 1169.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1169.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:01]POST & json_proto [17:53:01]process_json_proto [17:53:01]json parsed OK: [17:53:01]protocol is kg_v1.0 [17:53:01]action value=close_receipt [17:53:01]process_action close_receipt [17:53:01]cmd_close_receipt [17:53:01]MH_GetDate [17:53:01]Write to MH i2c: F0 00 00 44 6F A2 [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: F0 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: F0 09 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: F0 09 00 44 6F 00 84 C9 71 66 BD 8F 7C 64 FB [17:53:01]GetLastDocTimeStamp 1718732656 [17:53:01]current date 1718733188 [17:53:01]FM_GetShiftState [17:53:01]SAM_PROTO_GetShiftState [17:53:01]wFMCommunicate request_size=4 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 13 01 00 [17:53:01]Write to MH i2c: E2 08 00 45 6F 80 13 01 00 00 00 00 00 31 [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 0E 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 0E 00 45 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B2 [17:53:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:53:01]wFMCommunicate OK [17:53:01]SAM_PROTO_GetShiftState done [17:53:01]FM_GetShiftState done [17:53:01]opened in 1718670284 [17:53:01]opened+sec_in_day 1718756684 [17:53:01]quantity*price = 116909 [17:53:01]sum+1 = 116911 [17:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1169.10 НСП 1% : 10.35 НДС 12% : 124.15 Наличными: 0.00 Безнал.: 1169.10 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 178 18.06.2024 17:53 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103494 ФПД: 206028977536381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103494&fm=206028977536381&tin=02508201610067®Number=0000000000092785&sum=116910 [17:53:02]StoreToDocumentArchive [17:53:02]shift 352 fd 103494 [17:53:02]save to /storage/0352/doc_00103494 [17:53:02]save last doc name /storage/0352/doc_00103494 to /storage/kkm_last_doc_name [17:53:02]save OK [17:53:02]Clear old archive folders... [17:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:02]tlvbuf is 014E8020 [17:53:02]SAM_PROTO_ClearQueue [17:53:02]wFMCommunicate request_size=4 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 09 00 00 [17:53:02]Write to MH i2c: E2 08 00 52 6F 80 09 00 00 00 00 00 00 33 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:02]Read from MH i2c: E2 03 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 52 6F 00 90 00 35 [17:53:02]RAPDU: 90 00 [17:53:02]wFMCommunicate OK [17:53:02]SAM_PROTO_ClearQueue done [17:53:02]KKMCreateOFDPacket [17:53:02]OFDProtocolAddRootSTLVToBuf [17:53:02]FM_MakeSignedData [17:53:02]FM_MakeSignedData [17:53:02]SAM_PROTO_SignData [17:53:02]wFMCommunicate request_size=4 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 0D 01 02 [17:53:02]Write to MH i2c: E2 08 00 53 6F 80 0D 01 02 00 00 00 00 3B [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 53 6F 00 90 00 36 [17:53:02]RAPDU: 90 00 [17:53:02]wFMCommunicate OK [17:53:02]wFMCommunicate request_size=255 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 3D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE C8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE C8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 85 C9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 94 01 00 35 04 06 00 BB [17:53:02]Write to MH i2c: E2 02 01 54 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 3D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE C8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE C8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 85 C9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 94 01 00 35 04 06 00 BB 00 00 43 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 54 6F 00 90 00 37 [17:53:02]RAPDU: 90 00 [17:53:02]wFMCommunicate OK [17:53:02]wFMCommunicate request_size=10 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 0D 02 02 05 61 DC 04 FD 7D [17:53:02]Write to MH i2c: E2 0D 00 55 6F 80 0D 02 02 05 00 61 DC 04 FD 7D 00 00 03 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 03 00 55 6F 00 90 00 38 [17:53:02]RAPDU: 90 00 [17:53:02]wFMCommunicate OK [17:53:02]wFMCommunicate request_size=4 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 0D 03 02 [17:53:02]Write to MH i2c: E2 08 00 56 6F 80 0D 03 02 00 00 00 00 40 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 0B 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 0B 00 56 6F 00 D0 72 60 82 F4 DB 2C BC 90 00 1C [17:53:02]RAPDU: D0 72 60 82 F4 DB 2C BC 90 00 [17:53:02]wFMCommunicate OK [17:53:02]SAM_PROTO_SignData done [17:53:02]FM_MakeSignedData done [17:53:02]CreateOFDProtocolMessage [17:53:02]wFMCommunicate request_size=4 [17:53:02]MH_SAM_APDU [17:53:02]CAPDU: 80 11 00 00 [17:53:02]Write to MH i2c: E2 08 00 57 6F 80 11 00 00 00 00 00 00 40 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:02]Read from MH i2c: E2 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 17 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: E2 17 00 57 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [17:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:53:02]wFMCommunicate OK [17:53:02]CreateOFDProtocolMessage done [17:53:02]OFDSenderStorePacket 103494 [17:53:02]StoreOFDPacket docnum=103494 [17:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D0 01 07 01 D9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 3D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE C8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE C8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 85 C9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 94 01 00 35 04 06 00 BB 61 DC 04 FD 7D D0 72 60 82 F4 DB 2C BC [17:53:02]CheckFolder [17:53:02]dirname=/storage/ofd_packets [17:53:02]CheckFolder done [17:53:02]ProducePacketName [17:53:02]name=ofd_packets/00103494 [17:53:02]NVStorageSaveData ofd_packets/00103494 [17:53:02]File name is /storage/ofd_packets/00103494 [17:53:02]Write 301 bytes [17:53:02]NVStorageSaveData done [17:53:02]OFDSenderStorePacket done [17:53:02]KKMCreateOFDPacket done [17:53:02]NVStorageSaveData kkm_last_timestamp [17:53:02]File name is /storage/kkm_last_timestamp [17:53:02]Write 4 bytes [17:53:02]NVStorageSaveData done [17:53:02]ExternCall_PrintAddStr [17:53:02]wPrintStart [17:53:02]Write to MH i2c: 01 00 00 58 6F C7 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 07 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 07 00 58 6F 00 00 00 00 00 FF 0F DC [17:53:02]RasterBufferAndPrint [17:53:02]line Счет N : (1)672683 [17:53:02]line ИНН: 02508201610067 [17:53:02]line Контрольно-Кассовый Чек [17:53:02]line ПРОДАЖА [17:53:02]line ТРК (МРК, ГНК) : 31 [17:53:02]line Товар: 2710124500 [17:53:02]line Аи-95-К-5 [17:53:02]line 15.820 * 73.90 [17:53:02]line = 1169.10 [17:53:02]line НДС 12% НСП 1% [17:53:02]line > о реализуемом товаре [17:53:02]line ИТОГО: 1169.10 [17:53:02]line НСП 1% : 10.35 [17:53:02]line НДС 12% : 124.15 [17:53:02]line Наличными: 0.00 [17:53:02]line Безнал.: 1169.10 [17:53:02]line Место: АЗС № 120 "Партнер Нефть" [17:53:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:53:02]line СНО: Общий режим [17:53:02]line Чек 178 18.06.2024 17:53 [17:53:02]line Смена: 352 ФФД: 1.0 [17:53:02]line ЗНМ: 0300000164 [17:53:02]line РНМ: 0000000000092785 [17:53:02]line Версия ККМ: 001 [17:53:02]line Платежная система: O! деньги [17:53:02]line ФМ: 0000000000875093 [17:53:02]line ФД: 103494 [17:53:02]line ФПД: 206028977536381 [17:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103494&fm=206028977536381&tin=02508201610067®Number=0000000000092785&sum=116910 [17:53:03]written 0, free lines is 4095 [17:53:03]OFD Sender: Processing packet 103494 [packets to send 17, broken 16] [17:53:03]ProducePacketName [17:53:03]name=ofd_packets/00103494 [17:53:03]OFD Sender: To server: pG, [17:53:03]CommunicateWithHost lk.salyk.kg:30040 [17:53:03]ConnectInit lk.salyk.kg [17:53:03]Connected sock=10 [17:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D0 01 07 01 D9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 3D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE C8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE C8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE C8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 85 C9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 94 01 00 35 04 06 00 BB 61 DC 04 FD 7D D0 72 60 82 F4 DB 2C BC [17:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 64 AB 47 00 43 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 35 30 39 33 10 04 04 00 46 94 01 00 F4 03 04 00 10 70 71 66 B6 04 01 00 00 94 E2 7D C4 9E 39 6E A3 [17:53:03]CommunicateWithHost err = 0 [17:53:03]CheckOFDResponse [17:53:03]1017 (14) - 77093643461234 [17:53:03]1041 (16) - 0000000000875093 [17:53:03]1040 (4) - 103494 [17:53:03]1012 (4) - 18.06.2024 11:31 [17:53:03]1206 (1) - 0 [17:53:03]OFD Sender: Remove packet 103494 [17:53:03]ProducePacketName [17:53:03]name=ofd_packets/00103494 [17:53:03]NVStorageDeleteData [17:53:03]Write to MH i2c: 01 00 00 82 6F F1 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: 01 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: 01 07 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: 01 07 00 82 6F 00 00 00 00 00 FD 0C 01 [17:53:03]RasterBufferAndPrint [17:53:03]line [17:53:03]line [17:53:03]line [17:53:03]line [17:53:03]line [17:53:03]written 0, free lines is 3334 [17:53:03]MH_Cut [17:53:03]Write to MH i2c: D1 01 00 89 6F 01 CA [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: D1 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: D1 01 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: D1 01 00 89 6F 00 C9 [17:53:03]Write to MH i2c: 01 00 00 8A 6F F9 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]OFD Sender: No OFD packet to send [17:53:04]*** Cut start [17:53:04]*** Partial cut [17:53:04]*** CUTSNS_PIN = 1 [17:53:04]*** CUTSNS_PIN = 0 [17:53:04]*** Brake cut motor [17:53:04]Read from MH i2c: 01 [17:53:04]MH_I2C_Read... [17:53:04]*** Stop cut motor [17:53:04]*** Cut end [17:53:04]Read from MH i2c: 01 07 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: 01 07 00 8A 6F 00 00 00 00 00 FF 0F 0E [17:53:04]process_action close_receipt done [17:53:04]requested_data is exist [17:53:04]produce_requested_data [17:53:04]requested_item fm.sn is exist - process it [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 11 00 00 [17:53:04]Write to MH i2c: E2 08 00 8B 6F 80 11 00 00 00 00 00 00 74 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:04]Read from MH i2c: E2 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 17 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 17 00 8B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [17:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:53:04]wFMCommunicate OK [17:53:04]requested_item fd.num is exist - process it [17:53:04]SAM_PROTO_GetFieldsCounters [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 13 00 00 [17:53:04]Write to MH i2c: E2 08 00 8C 6F 80 13 00 00 00 00 00 00 77 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 62 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 62 00 8C 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:53:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_GetFieldsCounters done [17:53:05]requested_item shift.num is exist - process it [17:53:05]requested_item shift.opened is exist - process it [17:53:05]req_shift_opened [17:53:05]FM_GetShiftState [17:53:05]SAM_PROTO_GetShiftState [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 13 01 00 [17:53:05]Write to MH i2c: E2 08 00 8D 6F 80 13 01 00 00 00 00 00 79 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0E 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0E 00 8D 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FA [17:53:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_GetShiftState done [17:53:05]FM_GetShiftState done [17:53:05]req_shift_opened done [17:53:05]requested_item shift.open_date is exist - process it [17:53:05]req_shift_open_date [17:53:05]req_shift_open_date done [17:53:05]produce_requested_data done [17:53:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103494,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:53:05]process_action_free close_receipt [17:53:05]json_value_free [17:53:05]json_value_free done [17:53:05]process_json_proto returns [17:53:05]Send response to host [17:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103494,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:53:05]free response buf [17:53:05]execute_script done [17:53:05]execute_script returns [17:53:05]free content buf [17:53:05]Sock 7.Close socket [17:53:05]Sock 7.Thread stoped [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]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:47]accept exits with 9 [17:55:47]New connection [17:55:47]New thread 3067227492 created [17:55:47]Thread 3067084132 joined [17:55:47]Waiting for new connection... [17:55:47] Sock 9.Parse request [17:55:47]Sock 9.Check first char [17:55:47]Sock 9.First char is OK [17:55:47]request: POST /json_proto HTTP/1.0 [17:55:47]Method: POST [17:55:47]URL: /json_proto [17:55:47]Method is POST - this is cgi request [17:55:47]url: /json_proto [17:55:47]query_string will be loaded in cgi processing [17:55:47]execute_cgi json_proto POST (null) [17:55:47]execute_cgi path=json_proto method=POST [17:55:47]POST find Content-Length [17:55:47]Host: 172.17.38.133:8080 [17:55:47]Content-Length: 678 [17:55:47]Content-Type: application/json [17:55:47] [17:55:47]POST finish read [17:55:47]Found Content-Length = 678 [17:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:47]execute_script... [17:55:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:47]POST & json_proto [17:55:47]process_json_proto [17:55:47]json parsed OK: [17:55:47]protocol is kg_v1.0 [17:55:47]action value=close_receipt [17:55:47]process_action close_receipt [17:55:47]cmd_close_receipt [17:55:47]MH_GetDate [17:55:47]Write to MH i2c: F0 00 00 8E 6F EC [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: F0 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: F0 09 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: F0 09 00 8E 6F 00 2B CA 71 66 BD 8F 7C 64 ED [17:55:47]GetLastDocTimeStamp 1718733189 [17:55:47]current date 1718733355 [17:55:47]FM_GetShiftState [17:55:47]SAM_PROTO_GetShiftState [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 13 01 00 [17:55:47]Write to MH i2c: E2 08 00 8F 6F 80 13 01 00 00 00 00 00 7B [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 8F 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FC [17:55:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_GetShiftState done [17:55:47]FM_GetShiftState done [17:55:47]opened in 1718670284 [17:55:47]opened+sec_in_day 1718756684 [17:55:47]quantity*price = 80012 [17:55:47]sum+1 = 80013 [17:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 179 18.06.2024 17:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103495 ФПД: 53495727655017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103495&fm=53495727655017&tin=02508201610067®Number=0000000000092785&sum=80000 [17:55:48]StoreToDocumentArchive [17:55:48]shift 352 fd 103495 [17:55:48]save to /storage/0352/doc_00103495 [17:55:48]save last doc name /storage/0352/doc_00103495 to /storage/kkm_last_doc_name [17:55:48]save OK [17:55:48]Clear old archive folders... [17:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:48]tlvbuf is 014F3F20 [17:55:48]SAM_PROTO_ClearQueue [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 09 00 00 [17:55:48]Write to MH i2c: E2 08 00 9C 6F 80 09 00 00 00 00 00 00 7D [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 9C 6F 00 90 00 7F [17:55:48]RAPDU: 90 00 [17:55:48]wFMCommunicate OK [17:55:48]SAM_PROTO_ClearQueue done [17:55:48]KKMCreateOFDPacket [17:55:48]OFDProtocolAddRootSTLVToBuf [17:55:48]FM_MakeSignedData [17:55:48]FM_MakeSignedData [17:55:48]SAM_PROTO_SignData [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 0D 01 02 [17:55:48]Write to MH i2c: E2 08 00 9D 6F 80 0D 01 02 00 00 00 00 85 [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 9D 6F 00 90 00 80 [17:55:48]RAPDU: 90 00 [17:55:48]wFMCommunicate OK [17:55:48]wFMCommunicate request_size=255 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2B CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 94 01 00 35 04 06 00 30 [17:55:48]Write to MH i2c: E2 02 01 9E 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2B CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 94 01 00 35 04 06 00 30 00 00 1A [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 9E 6F 00 90 00 81 [17:55:48]RAPDU: 90 00 [17:55:48]wFMCommunicate OK [17:55:48]wFMCommunicate request_size=10 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 0D 02 02 05 A7 71 D8 08 69 [17:55:48]Write to MH i2c: E2 0D 00 9F 6F 80 0D 02 02 05 00 A7 71 D8 08 69 00 00 F3 [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 03 00 9F 6F 00 90 00 82 [17:55:48]RAPDU: 90 00 [17:55:48]wFMCommunicate OK [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 0D 03 02 [17:55:48]Write to MH i2c: E2 08 00 A0 6F 80 0D 03 02 00 00 00 00 8A [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0B 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0B 00 A0 6F 00 41 34 3A 2B EC 8F 66 77 90 00 BD [17:55:48]RAPDU: 41 34 3A 2B EC 8F 66 77 90 00 [17:55:48]wFMCommunicate OK [17:55:48]SAM_PROTO_SignData done [17:55:48]FM_MakeSignedData done [17:55:48]CreateOFDProtocolMessage [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 11 00 00 [17:55:48]Write to MH i2c: E2 08 00 A1 6F 80 11 00 00 00 00 00 00 8A [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 17 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 17 00 A1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DD [17:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:55:49]wFMCommunicate OK [17:55:49]CreateOFDProtocolMessage done [17:55:49]OFDSenderStorePacket 103495 [17:55:49]StoreOFDPacket docnum=103495 [17:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FC 55 07 01 4C 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2B CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 94 01 00 35 04 06 00 30 A7 71 D8 08 69 41 34 3A 2B EC 8F 66 77 [17:55:49]CheckFolder [17:55:49]dirname=/storage/ofd_packets [17:55:49]CheckFolder done [17:55:49]ProducePacketName [17:55:49]name=ofd_packets/00103495 [17:55:49]NVStorageSaveData ofd_packets/00103495 [17:55:49]File name is /storage/ofd_packets/00103495 [17:55:49]Write 301 bytes [17:55:49]NVStorageSaveData done [17:55:49]OFDSenderStorePacket done [17:55:49]KKMCreateOFDPacket done [17:55:49]NVStorageSaveData kkm_last_timestamp [17:55:49]File name is /storage/kkm_last_timestamp [17:55:49]Write 4 bytes [17:55:49]NVStorageSaveData done [17:55:49]ExternCall_PrintAddStr [17:55:49]wPrintStart [17:55:49]Write to MH i2c: 01 00 00 A2 6F 11 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 07 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 07 00 A2 6F 00 00 00 00 00 FF 0F 26 [17:55:49]RasterBufferAndPrint [17:55:49]line Счет N : (1)672686 [17:55:49]line ИНН: 02508201610067 [17:55:49]line Контрольно-Кассовый Чек [17:55:49]line ПРОДАЖА [17:55:49]line ТРК (МРК, ГНК) : 42 [17:55:49]line Товар: 2710124130 [17:55:49]line Аи-92-К-5 [17:55:49]line 12.050 * 66.40 [17:55:49]line = 800.12 [17:55:49]line НДС 12% НСП 1% [17:55:49]line > о реализуемом товаре [17:55:49]line ОКРУГЛЕНИЕ: -0.12 [17:55:49]line ИТОГО: 800.00 [17:55:49]line Внесено: 800.00 [17:55:49]line СДАЧА: 0.00 [17:55:49]line НСП 1% : 7.08 [17:55:49]line НДС 12% : 84.97 [17:55:49]line Наличными: 800.00 [17:55:49]line Безнал.: 0.00 [17:55:49]line Место: АЗС № 120 "Партнер Нефть" [17:55:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:55:49]line СНО: Общий режим [17:55:49]line Чек 179 18.06.2024 17:55 [17:55:49]line Смена: 352 ФФД: 1.0 [17:55:49]line ЗНМ: 0300000164 [17:55:49]line РНМ: 0000000000092785 [17:55:49]line Версия ККМ: 001 [17:55:49]line ФМ: 0000000000875093 [17:55:49]line ФД: 103495 [17:55:49]line ФПД: 53495727655017 [17:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103495&fm=53495727655017&tin=02508201610067®Number=0000000000092785&sum=80000 [17:55:49]written 0, free lines is 4095 [17:55:49]OFD Sender: Processing packet 103495 [packets to send 17, broken 16] [17:55:49]ProducePacketName [17:55:49]name=ofd_packets/00103495 [17:55:49]OFD Sender: To server: pG, [17:55:49]CommunicateWithHost lk.salyk.kg:30040 [17:55:49]ConnectInit lk.salyk.kg [17:55:49]Connected sock=10 [17:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FC 55 07 01 4C 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2B CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 94 01 00 35 04 06 00 30 A7 71 D8 08 69 41 34 3A 2B EC 8F 66 77 [17:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7E 18 47 00 B0 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 94 01 00 F4 03 04 00 B6 70 71 66 B6 04 01 00 00 1F 1A CF 28 74 F3 3D A9 [17:55:49]CommunicateWithHost err = 0 [17:55:49]CheckOFDResponse [17:55:49]1017 (14) - 77093643461234 [17:55:49]1041 (16) - 0000000000875093 [17:55:49]1040 (4) - 103495 [17:55:49]1012 (4) - 18.06.2024 11:34 [17:55:49]1206 (1) - 0 [17:55:49]OFD Sender: Remove packet 103495 [17:55:49]ProducePacketName [17:55:49]name=ofd_packets/00103495 [17:55:49]NVStorageDeleteData [17:55:49]Write to MH i2c: 01 00 00 CD 6F 3C [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 07 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: 01 07 00 CD 6F 00 00 00 00 00 E4 0C 33 [17:55:49]RasterBufferAndPrint [17:55:49]line [17:55:49]line [17:55:49]line [17:55:49]line [17:55:49]line [17:55:49]written 0, free lines is 3309 [17:55:49]MH_Cut [17:55:49]Write to MH i2c: D1 01 00 D4 6F 01 15 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: D1 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: D1 01 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: D1 01 00 D4 6F 00 14 [17:55:49]Write to MH i2c: 01 00 00 D5 6F 44 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:50]OFD Sender: No OFD packet to send [17:55:50]*** Cut start [17:55:50]*** Partial cut [17:55:50]*** CUTSNS_PIN = 1 [17:55:50]*** CUTSNS_PIN = 0 [17:55:50]*** Brake cut motor [17:55:51]Read from MH i2c: 01 [17:55:51]MH_I2C_Read... [17:55:51]*** Stop cut motor [17:55:51]*** Cut end [17:55:51]Read from MH i2c: 01 07 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: 01 07 00 D5 6F 00 00 00 00 00 FF 0F 59 [17:55:51]process_action close_receipt done [17:55:51]requested_data is exist [17:55:51]produce_requested_data [17:55:51]requested_item fm.sn is exist - process it [17:55:51]wFMCommunicate request_size=4 [17:55:51]MH_SAM_APDU [17:55:51]CAPDU: 80 11 00 00 [17:55:51]Write to MH i2c: E2 08 00 D6 6F 80 11 00 00 00 00 00 00 BF [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:51]Read from MH i2c: E2 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 17 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 17 00 D6 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [17:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:55:51]wFMCommunicate OK [17:55:51]requested_item fd.num is exist - process it [17:55:51]SAM_PROTO_GetFieldsCounters [17:55:51]wFMCommunicate request_size=4 [17:55:51]MH_SAM_APDU [17:55:51]CAPDU: 80 13 00 00 [17:55:51]Write to MH i2c: E2 08 00 D7 6F 80 13 00 00 00 00 00 00 C2 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:51]Read from MH i2c: E2 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 62 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 62 00 D7 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:51]wFMCommunicate OK [17:55:51]SAM_PROTO_GetFieldsCounters done [17:55:51]requested_item shift.num is exist - process it [17:55:51]requested_item shift.opened is exist - process it [17:55:51]req_shift_opened [17:55:51]FM_GetShiftState [17:55:51]SAM_PROTO_GetShiftState [17:55:51]wFMCommunicate request_size=4 [17:55:51]MH_SAM_APDU [17:55:51]CAPDU: 80 13 01 00 [17:55:51]Write to MH i2c: E2 08 00 D8 6F 80 13 01 00 00 00 00 00 C4 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:51]Read from MH i2c: E2 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 0E 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 0E 00 D8 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 45 [17:55:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:55:51]wFMCommunicate OK [17:55:51]SAM_PROTO_GetShiftState done [17:55:51]FM_GetShiftState done [17:55:51]req_shift_opened done [17:55:51]requested_item shift.open_date is exist - process it [17:55:51]req_shift_open_date [17:55:51]req_shift_open_date done [17:55:51]produce_requested_data done [17:55:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103495,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:55:51]process_action_free close_receipt [17:55:51]json_value_free [17:55:51]json_value_free done [17:55:51]process_json_proto returns [17:55:51]Send response to host [17:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103495,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:55:51]free response buf [17:55:51]execute_script done [17:55:51]execute_script returns [17:55:51]free content buf [17:55:51]Sock 9.Close socket [17:55:51]Sock 9.Thread stoped [17:55:55]OFD Sender: No OFD packet to send [17:55:59]accept exits with 7 [17:55:59]New connection [17:55:59]New thread 3067084132 created [17:55:59]Thread 3067227492 joined [17:55:59]Waiting for new connection... [17:55:59] Sock 7.Parse request [17:55:59]Sock 7.Check first char [17:55:59]Sock 7.First char is OK [17:55:59]request: POST /json_proto HTTP/1.0 [17:55:59]Method: POST [17:55:59]URL: /json_proto [17:55:59]Method is POST - this is cgi request [17:55:59]url: /json_proto [17:55:59]query_string will be loaded in cgi processing [17:55:59]execute_cgi json_proto POST (null) [17:55:59]execute_cgi path=json_proto method=POST [17:55:59]POST find Content-Length [17:55:59]Host: 172.17.38.133:8080 [17:55:59]Content-Length: 803 [17:55:59]Content-Type: application/json [17:55:59] [17:55:59]POST finish read [17:55:59]Found Content-Length = 803 [17:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:59]execute_script... [17:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:59]POST & json_proto [17:55:59]process_json_proto [17:55:59]json parsed OK: [17:55:59]protocol is kg_v1.0 [17:55:59]action value=close_receipt [17:55:59]process_action close_receipt [17:55:59]cmd_close_receipt [17:55:59]MH_GetDate [17:55:59]Write to MH i2c: F0 00 00 D9 6F 37 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: F0 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: F0 09 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: F0 09 00 D9 6F 00 37 CA 71 66 BD 8F 7C 64 44 [17:55:59]GetLastDocTimeStamp 1718733355 [17:55:59]current date 1718733367 [17:55:59]FM_GetShiftState [17:55:59]SAM_PROTO_GetShiftState [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 13 01 00 [17:55:59]Write to MH i2c: E2 08 00 DA 6F 80 13 01 00 00 00 00 00 C6 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0E 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0E 00 DA 6F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 47 [17:55:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_GetShiftState done [17:55:59]FM_GetShiftState done [17:55:59]opened in 1718670284 [17:55:59]opened+sec_in_day 1718756684 [17:55:59]quantity*price = 150064 [17:55:59]sum+1 = 150065 [17:55:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 180 18.06.2024 17:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103496 ФПД: 113512127655218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175607&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103496&fm=113512127655218&tin=02508201610067®Number=0000000000092785&sum=150064 [17:56:00]StoreToDocumentArchive [17:56:00]shift 352 fd 103496 [17:56:00]save to /storage/0352/doc_00103496 [17:56:00]save last doc name /storage/0352/doc_00103496 to /storage/kkm_last_doc_name [17:56:00]save OK [17:56:00]Clear old archive folders... [17:56:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:00]tlvbuf is 0151CED0 [17:56:00]SAM_PROTO_ClearQueue [17:56:00]wFMCommunicate request_size=4 [17:56:00]MH_SAM_APDU [17:56:00]CAPDU: 80 09 00 00 [17:56:00]Write to MH i2c: E2 08 00 E7 6F 80 09 00 00 00 00 00 00 C8 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:00]Read from MH i2c: E2 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 03 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 03 00 E7 6F 00 90 00 CA [17:56:00]RAPDU: 90 00 [17:56:00]wFMCommunicate OK [17:56:00]SAM_PROTO_ClearQueue done [17:56:00]KKMCreateOFDPacket [17:56:00]OFDProtocolAddRootSTLVToBuf [17:56:00]FM_MakeSignedData [17:56:00]FM_MakeSignedData [17:56:00]SAM_PROTO_SignData [17:56:00]wFMCommunicate request_size=4 [17:56:00]MH_SAM_APDU [17:56:00]CAPDU: 80 0D 01 02 [17:56:00]Write to MH i2c: E2 08 00 E8 6F 80 0D 01 02 00 00 00 00 D0 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:00]Read from MH i2c: E2 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 03 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: E2 03 00 E8 6F 00 90 00 CB [17:56:00]RAPDU: 90 00 [17:56:00]wFMCommunicate OK [17:56:00]wFMCommunicate request_size=255 [17:56:00]MH_SAM_APDU [17:56:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 37 CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 94 01 00 35 04 06 00 67 [17:56:00]Write to MH i2c: E2 02 01 E9 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 37 CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 94 01 00 35 04 06 00 67 00 00 E1 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 E9 6F 00 90 00 CC [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]wFMCommunicate request_size=10 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 0D 02 02 05 3D 1A 0B ED 32 [17:56:01]Write to MH i2c: E2 0D 00 EA 6F 80 0D 02 02 05 00 3D 1A 0B ED 32 00 00 5E [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 03 00 EA 6F 00 90 00 CD [17:56:01]RAPDU: 90 00 [17:56:01]wFMCommunicate OK [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 0D 03 02 [17:56:01]Write to MH i2c: E2 08 00 EB 6F 80 0D 03 02 00 00 00 00 D5 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0B 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0B 00 EB 6F 00 9E 42 C8 4C F3 8E 31 97 90 00 13 [17:56:01]RAPDU: 9E 42 C8 4C F3 8E 31 97 90 00 [17:56:01]wFMCommunicate OK [17:56:01]SAM_PROTO_SignData done [17:56:01]FM_MakeSignedData done [17:56:01]CreateOFDProtocolMessage [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 11 00 00 [17:56:01]Write to MH i2c: E2 08 00 EC 6F 80 11 00 00 00 00 00 00 D5 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 EC 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [17:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:56:01]wFMCommunicate OK [17:56:01]CreateOFDProtocolMessage done [17:56:01]OFDSenderStorePacket 103496 [17:56:01]StoreOFDPacket docnum=103496 [17:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 37 07 01 E3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 37 CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 94 01 00 35 04 06 00 67 3D 1A 0B ED 32 9E 42 C8 4C F3 8E 31 97 [17:56:01]CheckFolder [17:56:01]dirname=/storage/ofd_packets [17:56:01]CheckFolder done [17:56:01]ProducePacketName [17:56:01]name=ofd_packets/00103496 [17:56:01]NVStorageSaveData ofd_packets/00103496 [17:56:01]File name is /storage/ofd_packets/00103496 [17:56:01]Write 301 bytes [17:56:01]NVStorageSaveData done [17:56:01]OFDSenderStorePacket done [17:56:01]KKMCreateOFDPacket done [17:56:01]NVStorageSaveData kkm_last_timestamp [17:56:01]File name is /storage/kkm_last_timestamp [17:56:01]Write 4 bytes [17:56:01]NVStorageSaveData done [17:56:01]ExternCall_PrintAddStr [17:56:01]wPrintStart [17:56:01]Write to MH i2c: 01 00 00 ED 6F 5C [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 ED 6F 00 00 00 00 00 FF 0F 71 [17:56:01]RasterBufferAndPrint [17:56:01]line Счет N : (1)672685 [17:56:01]line ИНН: 02508201610067 [17:56:01]line Контрольно-Кассовый Чек [17:56:01]line ПРОДАЖА [17:56:01]line ТРК (МРК, ГНК) : 32 [17:56:01]line Товар: 2710124130 [17:56:01]line Аи-92-К-5 [17:56:01]line 22.600 * 66.40 [17:56:01]line = 1500.64 [17:56:01]line НДС 12% НСП 1% [17:56:01]line > о реализуемом товаре [17:56:01]line ИТОГО: 1500.64 [17:56:01]line НСП 1% : 13.28 [17:56:01]line НДС 12% : 159.36 [17:56:01]line Наличными: 0.00 [17:56:01]line Безнал.: 1500.64 [17:56:01]line Место: АЗС № 120 "Партнер Нефть" [17:56:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:56:01]line СНО: Общий режим [17:56:01]line Чек 180 18.06.2024 17:56 [17:56:01]line Смена: 352 ФФД: 1.0 [17:56:01]line ЗНМ: 0300000164 [17:56:01]line РНМ: 0000000000092785 [17:56:01]line Версия ККМ: 001 [17:56:01]line Платежная система: O! деньги [17:56:01]line ФМ: 0000000000875093 [17:56:01]line ФД: 103496 [17:56:01]line ФПД: 113512127655218 [17:56:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175607&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103496&fm=113512127655218&tin=02508201610067®Number=0000000000092785&sum=150064 [17:56:01]written 0, free lines is 4095 [17:56:01]OFD Sender: Processing packet 103496 [packets to send 17, broken 16] [17:56:01]ProducePacketName [17:56:01]name=ofd_packets/00103496 [17:56:01]OFD Sender: To server: pG, [17:56:01]CommunicateWithHost lk.salyk.kg:30040 [17:56:01]ConnectInit lk.salyk.kg [17:56:01]Connected sock=10 [17:56:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 37 07 01 E3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 37 CA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 94 01 00 35 04 06 00 67 3D 1A 0B ED 32 9E 42 C8 4C F3 8E 31 97 [17:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F 4E 47 00 5D C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 94 01 00 F4 03 04 00 C3 70 71 66 B6 04 01 00 00 88 70 45 D9 D9 E3 52 BC [17:56:02]CommunicateWithHost err = 0 [17:56:02]CheckOFDResponse [17:56:02]1017 (14) - 77093643461234 [17:56:02]1041 (16) - 0000000000875093 [17:56:02]1040 (4) - 103496 [17:56:02]1012 (4) - 18.06.2024 11:34 [17:56:02]1206 (1) - 0 [17:56:02]OFD Sender: Remove packet 103496 [17:56:02]ProducePacketName [17:56:02]name=ofd_packets/00103496 [17:56:02]NVStorageDeleteData [17:56:02]Write to MH i2c: 01 00 00 17 70 87 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 07 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: 01 07 00 17 70 00 00 00 00 00 F4 0C 8E [17:56:02]RasterBufferAndPrint [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]line [17:56:02]written 0, free lines is 3323 [17:56:02]MH_Cut [17:56:02]Write to MH i2c: D1 01 00 1E 70 01 60 [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 01 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: D1 01 00 1E 70 00 5F [17:56:02]Write to MH i2c: 01 00 00 1F 70 8F [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]OFD Sender: No OFD packet to send [17:56:02]*** Cut start [17:56:02]*** Partial cut [17:56:02]*** CUTSNS_PIN = 1 [17:56:02]*** CUTSNS_PIN = 0 [17:56:03]*** Brake cut motor [17:56:03]Read from MH i2c: 01 [17:56:03]MH_I2C_Read... [17:56:03]*** Stop cut motor [17:56:03]*** Cut end [17:56:03]Read from MH i2c: 01 07 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: 01 07 00 1F 70 00 00 00 00 00 FF 0F A4 [17:56:03]process_action close_receipt done [17:56:03]requested_data is exist [17:56:03]produce_requested_data [17:56:03]requested_item fm.sn is exist - process it [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 11 00 00 [17:56:03]Write to MH i2c: E2 08 00 20 70 80 11 00 00 00 00 00 00 0A [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:03]Read from MH i2c: E2 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 17 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 17 00 20 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [17:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:56:03]wFMCommunicate OK [17:56:03]requested_item fd.num is exist - process it [17:56:03]SAM_PROTO_GetFieldsCounters [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 13 00 00 [17:56:03]Write to MH i2c: E2 08 00 21 70 80 13 00 00 00 00 00 00 0D [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:03]Read from MH i2c: E2 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 62 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 62 00 21 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:03]wFMCommunicate OK [17:56:03]SAM_PROTO_GetFieldsCounters done [17:56:03]requested_item shift.num is exist - process it [17:56:03]requested_item shift.opened is exist - process it [17:56:03]req_shift_opened [17:56:03]FM_GetShiftState [17:56:03]SAM_PROTO_GetShiftState [17:56:03]wFMCommunicate request_size=4 [17:56:03]MH_SAM_APDU [17:56:03]CAPDU: 80 13 01 00 [17:56:03]Write to MH i2c: E2 08 00 22 70 80 13 01 00 00 00 00 00 0F [17:56:03]Write i2c OK [17:56:03]MH_I2C_Read... [17:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:03]Read from MH i2c: E2 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 0E 00 [17:56:03]MH_I2C_Read... [17:56:03]Read from MH i2c: E2 0E 00 22 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 90 [17:56:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:56:03]wFMCommunicate OK [17:56:03]SAM_PROTO_GetShiftState done [17:56:03]FM_GetShiftState done [17:56:03]req_shift_opened done [17:56:03]requested_item shift.open_date is exist - process it [17:56:03]req_shift_open_date [17:56:03]req_shift_open_date done [17:56:03]produce_requested_data done [17:56:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103496,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:56:03]process_action_free close_receipt [17:56:03]json_value_free [17:56:03]json_value_free done [17:56:03]process_json_proto returns [17:56:03]Send response to host [17:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103496,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:56:03]free response buf [17:56:03]execute_script done [17:56:03]execute_script returns [17:56:03]free content buf [17:56:03]Sock 7.Close socket [17:56:03]Sock 7.Thread stoped [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:32]int [17:56:32]Write to MH i2c: 01 00 00 23 70 93 [17:56:32]*** FLAG_PRN_PAP1 set [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 23 70 00 01 00 00 00 FF 0F A9 [17:56:32]state=0 [17:56:32]No paper [17:56:32]int [17:56:32]Write to MH i2c: 01 00 00 24 70 94 [17:56:32]*** FLAG_PRN_PAP2 set [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 24 70 00 03 00 00 00 FF 0F AC [17:56:32]state=0 [17:56:32]No paper [17:56:32]Cover opened [17:56:37]OFD Sender: No OFD packet to send [17:56:37]Write to MH i2c: 01 00 00 25 70 95 [17:56:37]Write i2c OK [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: 01 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: 01 07 00 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: 01 07 00 25 70 00 03 00 00 00 FF 0F AD [17:56:37]state=3 [17:56:37]No paper [17:56:37]Cover opened [17:56:42]OFD Sender: No OFD packet to send [17:56:42]Write to MH i2c: 01 00 00 26 70 96 [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: 01 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: 01 07 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: 01 07 00 26 70 00 03 00 00 00 FF 0F AE [17:56:42]state=3 [17:56:42]No paper [17:56:42]Cover opened [17:56:44]int [17:56:44]Write to MH i2c: 01 00 00 27 70 97 [17:56:44]*** FLAG_PRN_PAP1 reset [17:56:44]*** FLAG_PRN_PAP2 reset [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 07 00 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 07 00 27 70 00 00 00 00 00 FF 0F AC [17:56:44]state=3 [17:56:44]Cover closed [17:56:45]int [17:56:45]Write to MH i2c: 01 00 00 28 70 98 [17:56:45]*** FLAG_PRN_KEY set [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 28 70 00 08 00 00 00 FF 0F B5 [17:56:45]state=0 [17:56:45]Key pressed [17:56:45]Feed [17:56:45]Write to MH i2c: D8 00 00 29 70 70 [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: D8 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: D8 01 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: D8 01 00 29 70 00 71 [17:56:45]int [17:56:45]Write to MH i2c: 01 00 00 2A 70 9A [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 2A 70 00 48 00 00 00 3C 00 25 [17:56:45]state=2 [17:56:45]Key pressed [17:56:45]int [17:56:45]Write to MH i2c: 01 00 00 2B 70 9B [17:56:45]*** FLAG_PRN_KEY reset [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 2B 70 00 00 00 00 00 FB 0F AC [17:56:45]state=2 [17:56:45]Stop feed [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:37]accept exits with 9 [17:57:37]New connection [17:57:37]New thread 3067227492 created [17:57:37]Thread 3067084132 joined [17:57:37]Waiting for new connection... [17:57:37] Sock 9.Parse request [17:57:37]Sock 9.Check first char [17:57:37]Sock 9.First char is OK [17:57:37]request: POST /json_proto HTTP/1.0 [17:57:37]Method: POST [17:57:37]URL: /json_proto [17:57:37]Method is POST - this is cgi request [17:57:37]url: /json_proto [17:57:37]query_string will be loaded in cgi processing [17:57:37]execute_cgi json_proto POST (null) [17:57:37]execute_cgi path=json_proto method=POST [17:57:37]POST find Content-Length [17:57:37]Host: 172.17.38.133:8080 [17:57:37]Content-Length: 1157 [17:57:37]Content-Type: application/json [17:57:37] [17:57:37]POST finish read [17:57:37]Found Content-Length = 1157 [17:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672687\u000A18.06.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:37]execute_script... [17:57:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672687\u000A18.06.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:37]POST & json_proto [17:57:37]process_json_proto [17:57:37]json parsed OK: [17:57:37]protocol is kg_v1.0 [17:57:37]action value=print_text [17:57:37]process_action print_text [17:57:37]cmd_print_text [17:57:37]ExternCall_PrintAddStr [17:57:37]wPrintStart [17:57:37]Write to MH i2c: 01 00 00 2C 70 9C [17:57:37]Write i2c OK [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 07 00 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 07 00 2C 70 00 00 00 00 00 FF 0F B1 [17:57:37]RasterBufferAndPrint [17:57:37]line *****ТОВАРНЫЙ ЧЕК***** [17:57:37]line АЗС 120 [17:57:37]line Партнер нефть [17:57:37]line 02508201610067 [17:57:37]line Кассир : Асанбаев Н. [17:57:37]line Счет N : (1)672687 [17:57:37]line 18.06.2024 17:35 [17:57:37]line ПРОДАЖА [17:57:37]line ТРК (МРК, ГНК): 42 [17:57:37]line Вид ГСМ : 2710124130 [17:57:37]line Аи-92-К-5 [17:57:37]line 30.000 x 66.40 [17:57:37]line ИТОГ: 1992.00 [17:57:37]line Тип оплаты: Талоны: ТК ГПНА Online [17:57:37]line 30101697 [17:57:37]line ______________________ [17:57:37]line (подпись) [17:57:37]written 0, free lines is 4095 [17:57:37]Write to MH i2c: 01 00 00 40 70 B0 [17:57:37]Write i2c OK [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 07 00 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: 01 07 00 40 70 00 00 00 00 00 14 0E D9 [17:57:37]RasterBufferAndPrint [17:57:37]line [17:57:37]line [17:57:37]line [17:57:37]line [17:57:37]line [17:57:37]written 0, free lines is 3606 [17:57:37]MH_Cut [17:57:37]Write to MH i2c: D1 01 00 47 70 01 89 [17:57:37]Write i2c OK [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: D1 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: D1 01 00 [17:57:37]MH_I2C_Read... [17:57:37]Read from MH i2c: D1 01 00 47 70 00 88 [17:57:37]Write to MH i2c: 01 00 00 48 70 B8 [17:57:37]Write i2c OK [17:57:37]MH_I2C_Read... [17:57:38]*** Cut start [17:57:38]*** Partial cut [17:57:38]*** CUTSNS_PIN = 1 [17:57:38]*** CUTSNS_PIN = 0 [17:57:38]*** Brake cut motor [17:57:39]Read from MH i2c: 01 [17:57:39]MH_I2C_Read... [17:57:39]*** Stop cut motor [17:57:39]*** Cut end [17:57:39]Read from MH i2c: 01 07 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: 01 07 00 48 70 00 00 00 00 00 FF 0F CD [17:57:39]process_action print_text done [17:57:39]requested_data is exist [17:57:39]produce_requested_data [17:57:39]requested_item fm.sn is exist - process it [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 11 00 00 [17:57:39]Write to MH i2c: E2 08 00 49 70 80 11 00 00 00 00 00 00 33 [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 17 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 17 00 49 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [17:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:57:39]wFMCommunicate OK [17:57:39]requested_item fd.num is exist - process it [17:57:39]SAM_PROTO_GetFieldsCounters [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 13 00 00 [17:57:39]Write to MH i2c: E2 08 00 4A 70 80 13 00 00 00 00 00 00 36 [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 62 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 62 00 4A 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:39]wFMCommunicate OK [17:57:39]SAM_PROTO_GetFieldsCounters done [17:57:39]requested_item shift.num is exist - process it [17:57:39]requested_item shift.opened is exist - process it [17:57:39]req_shift_opened [17:57:39]FM_GetShiftState [17:57:39]SAM_PROTO_GetShiftState [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 13 01 00 [17:57:39]Write to MH i2c: E2 08 00 4B 70 80 13 01 00 00 00 00 00 38 [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 0E 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 0E 00 4B 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B9 [17:57:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:57:39]wFMCommunicate OK [17:57:39]SAM_PROTO_GetShiftState done [17:57:39]FM_GetShiftState done [17:57:39]req_shift_opened done [17:57:39]requested_item shift.open_date is exist - process it [17:57:39]req_shift_open_date [17:57:39]req_shift_open_date done [17:57:39]produce_requested_data done [17:57:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103496,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:57:39]process_action_free print_text [17:57:39]json_value_free [17:57:39]json_value_free done [17:57:39]process_json_proto returns [17:57:39]Send response to host [17:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103496,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:57:39]free response buf [17:57:39]execute_script done [17:57:39]execute_script returns [17:57:39]free content buf [17:57:39]Sock 9.Close socket [17:57:39]Sock 9.Thread stoped [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]accept exits with 7 [17:59:27]New connection [17:59:27]New thread 3067084132 created [17:59:27]Thread 3067227492 joined [17:59:27]Waiting for new connection... [17:59:27] Sock 7.Parse request [17:59:27]Sock 7.Check first char [17:59:27]Sock 7.First char is OK [17:59:27]request: POST /json_proto HTTP/1.0 [17:59:27]Method: POST [17:59:27]URL: /json_proto [17:59:27]Method is POST - this is cgi request [17:59:27]url: /json_proto [17:59:27]query_string will be loaded in cgi processing [17:59:27]execute_cgi json_proto POST (null) [17:59:27]execute_cgi path=json_proto method=POST [17:59:27]POST find Content-Length [17:59:27]Host: 172.17.38.133:8080 [17:59:27]Content-Length: 677 [17:59:27]Content-Type: application/json [17:59:27] [17:59:27]POST finish read [17:59:27]Found Content-Length = 677 [17:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:27]execute_script... [17:59:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:27]POST & json_proto [17:59:27]process_json_proto [17:59:27]json parsed OK: [17:59:27]protocol is kg_v1.0 [17:59:27]action value=close_receipt [17:59:27]process_action close_receipt [17:59:27]cmd_close_receipt [17:59:27]MH_GetDate [17:59:27]Write to MH i2c: F0 00 00 4C 70 AB [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 09 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 09 00 4C 70 00 07 CB 71 66 BD 8F 7C 64 89 [17:59:27]GetLastDocTimeStamp 1718733367 [17:59:27]current date 1718733575 [17:59:27]FM_GetShiftState [17:59:27]SAM_PROTO_GetShiftState [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 13 01 00 [17:59:27]Write to MH i2c: E2 08 00 4D 70 80 13 01 00 00 00 00 00 3A [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0E 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0E 00 4D 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BB [17:59:27]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:59:27]wFMCommunicate OK [17:59:27]SAM_PROTO_GetShiftState done [17:59:27]FM_GetShiftState done [17:59:27]opened in 1718670284 [17:59:27]opened+sec_in_day 1718756684 [17:59:27]quantity*price = 30012 [17:59:27]sum+1 = 30014 [17:59:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 181 18.06.2024 17:59 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103497 ФПД: 53060626263665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103497&fm=53060626263665&tin=02508201610067®Number=0000000000092785&sum=30000 [17:59:28]StoreToDocumentArchive [17:59:28]shift 352 fd 103497 [17:59:28]save to /storage/0352/doc_00103497 [17:59:28]save last doc name /storage/0352/doc_00103497 to /storage/kkm_last_doc_name [17:59:28]save OK [17:59:28]Clear old archive folders... [17:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:28]tlvbuf is 014622B0 [17:59:28]SAM_PROTO_ClearQueue [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 09 00 00 [17:59:28]Write to MH i2c: E2 08 00 5A 70 80 09 00 00 00 00 00 00 3C [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 5A 70 00 90 00 3E [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]SAM_PROTO_ClearQueue done [17:59:28]KKMCreateOFDPacket [17:59:28]OFDProtocolAddRootSTLVToBuf [17:59:28]FM_MakeSignedData [17:59:28]FM_MakeSignedData [17:59:28]SAM_PROTO_SignData [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 01 02 [17:59:28]Write to MH i2c: E2 08 00 5B 70 80 0D 01 02 00 00 00 00 44 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 5B 70 00 90 00 3F [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]wFMCommunicate request_size=255 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 07 CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 94 01 00 35 04 06 00 30 [17:59:28]Write to MH i2c: E2 02 01 5C 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 07 CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 94 01 00 35 04 06 00 30 00 00 69 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 03 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 03 00 5C 70 00 90 00 40 [17:59:29]RAPDU: 90 00 [17:59:29]wFMCommunicate OK [17:59:29]wFMCommunicate request_size=10 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 0D 02 02 05 42 23 C7 AE 71 [17:59:29]Write to MH i2c: E2 0D 00 5D 70 80 0D 02 02 05 00 42 23 C7 AE 71 00 00 9C [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 03 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 03 00 5D 70 00 90 00 41 [17:59:29]RAPDU: 90 00 [17:59:29]wFMCommunicate OK [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 0D 03 02 [17:59:29]Write to MH i2c: E2 08 00 5E 70 80 0D 03 02 00 00 00 00 49 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0B 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0B 00 5E 70 00 DE D6 F9 52 2B 94 81 90 90 00 19 [17:59:29]RAPDU: DE D6 F9 52 2B 94 81 90 90 00 [17:59:29]wFMCommunicate OK [17:59:29]SAM_PROTO_SignData done [17:59:29]FM_MakeSignedData done [17:59:29]CreateOFDProtocolMessage [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 11 00 00 [17:59:29]Write to MH i2c: E2 08 00 5F 70 80 11 00 00 00 00 00 00 49 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 17 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 17 00 5F 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [17:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:59:29]wFMCommunicate OK [17:59:29]CreateOFDProtocolMessage done [17:59:29]OFDSenderStorePacket 103497 [17:59:29]StoreOFDPacket docnum=103497 [17:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 45 B0 07 01 C3 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 07 CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 94 01 00 35 04 06 00 30 42 23 C7 AE 71 DE D6 F9 52 2B 94 81 90 [17:59:29]CheckFolder [17:59:29]dirname=/storage/ofd_packets [17:59:29]CheckFolder done [17:59:29]ProducePacketName [17:59:29]name=ofd_packets/00103497 [17:59:29]NVStorageSaveData ofd_packets/00103497 [17:59:29]File name is /storage/ofd_packets/00103497 [17:59:29]Write 301 bytes [17:59:29]NVStorageSaveData done [17:59:29]OFDSenderStorePacket done [17:59:29]KKMCreateOFDPacket done [17:59:29]NVStorageSaveData kkm_last_timestamp [17:59:29]File name is /storage/kkm_last_timestamp [17:59:29]Write 4 bytes [17:59:29]NVStorageSaveData done [17:59:29]ExternCall_PrintAddStr [17:59:29]wPrintStart [17:59:29]Write to MH i2c: 01 00 00 60 70 D0 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 07 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 07 00 60 70 00 00 00 00 00 FF 0F E5 [17:59:29]RasterBufferAndPrint [17:59:29]line Счет N : (1)672688 [17:59:29]line ИНН: 02508201610067 [17:59:29]line Контрольно-Кассовый Чек [17:59:29]line ПРОДАЖА [17:59:29]line ТРК (МРК, ГНК) : 42 [17:59:29]line Товар: 2710124130 [17:59:29]line Аи-92-К-5 [17:59:29]line 4.520 * 66.40 [17:59:29]line = 300.13 [17:59:29]line НДС 12% НСП 1% [17:59:29]line > о реализуемом товаре [17:59:29]line ОКРУГЛЕНИЕ: -0.13 [17:59:29]line ИТОГО: 300.00 [17:59:29]line Внесено: 300.00 [17:59:29]line СДАЧА: 0.00 [17:59:29]line НСП 1% : 2.66 [17:59:29]line НДС 12% : 31.87 [17:59:29]line Наличными: 300.00 [17:59:29]line Безнал.: 0.00 [17:59:29]line Место: АЗС № 120 "Партнер Нефть" [17:59:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:59:29]line СНО: Общий режим [17:59:29]line Чек 181 18.06.2024 17:59 [17:59:29]line Смена: 352 ФФД: 1.0 [17:59:29]line ЗНМ: 0300000164 [17:59:29]line РНМ: 0000000000092785 [17:59:29]line Версия ККМ: 001 [17:59:29]line ФМ: 0000000000875093 [17:59:29]line ФД: 103497 [17:59:29]line ФПД: 53060626263665 [17:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175935&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103497&fm=53060626263665&tin=02508201610067®Number=0000000000092785&sum=30000 [17:59:29]written 0, free lines is 4095 [17:59:29]OFD Sender: Processing packet 103497 [packets to send 17, broken 16] [17:59:29]ProducePacketName [17:59:29]name=ofd_packets/00103497 [17:59:29]OFD Sender: To server: pG, [17:59:29]CommunicateWithHost lk.salyk.kg:30040 [17:59:29]ConnectInit lk.salyk.kg [17:59:29]Connected sock=10 [17:59:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 45 B0 07 01 C3 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 07 CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 94 01 00 35 04 06 00 30 42 23 C7 AE 71 DE D6 F9 52 2B 94 81 90 [17:59:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B1 41 47 00 0B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 94 01 00 F4 03 04 00 93 71 71 66 B6 04 01 00 00 03 45 76 FA 47 85 A7 AA [17:59:30]CommunicateWithHost err = 0 [17:59:30]CheckOFDResponse [17:59:30]1017 (14) - 77093643461234 [17:59:30]1041 (16) - 0000000000875093 [17:59:30]1040 (4) - 103497 [17:59:30]1012 (4) - 18.06.2024 11:37 [17:59:30]1206 (1) - 0 [17:59:30]OFD Sender: Remove packet 103497 [17:59:30]ProducePacketName [17:59:30]name=ofd_packets/00103497 [17:59:30]NVStorageDeleteData [17:59:30]Write to MH i2c: 01 00 00 8B 70 FB [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 07 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 07 00 8B 70 00 00 00 00 00 E8 0C F6 [17:59:30]RasterBufferAndPrint [17:59:30]line [17:59:30]line [17:59:30]line [17:59:30]line [17:59:30]line [17:59:30]written 0, free lines is 3310 [17:59:30]MH_Cut [17:59:30]Write to MH i2c: D1 01 00 92 70 01 D4 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: D1 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: D1 01 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: D1 01 00 92 70 00 D3 [17:59:30]Write to MH i2c: 01 00 00 93 70 03 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]OFD Sender: No OFD packet to send [17:59:30]*** Cut start [17:59:30]*** Partial cut [17:59:30]*** CUTSNS_PIN = 1 [17:59:30]*** CUTSNS_PIN = 0 [17:59:31]*** Brake cut motor [17:59:31]Read from MH i2c: 01 [17:59:31]MH_I2C_Read... [17:59:31]*** Stop cut motor [17:59:31]*** Cut end [17:59:31]Read from MH i2c: 01 07 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: 01 07 00 93 70 00 00 00 00 00 FF 0F 18 [17:59:31]process_action close_receipt done [17:59:31]requested_data is exist [17:59:31]produce_requested_data [17:59:31]requested_item fm.sn is exist - process it [17:59:31]wFMCommunicate request_size=4 [17:59:31]MH_SAM_APDU [17:59:31]CAPDU: 80 11 00 00 [17:59:31]Write to MH i2c: E2 08 00 94 70 80 11 00 00 00 00 00 00 7E [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:31]Read from MH i2c: E2 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 17 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 17 00 94 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [17:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:59:31]wFMCommunicate OK [17:59:31]requested_item fd.num is exist - process it [17:59:31]SAM_PROTO_GetFieldsCounters [17:59:31]wFMCommunicate request_size=4 [17:59:31]MH_SAM_APDU [17:59:31]CAPDU: 80 13 00 00 [17:59:31]Write to MH i2c: E2 08 00 95 70 80 13 00 00 00 00 00 00 81 [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:31]Read from MH i2c: E2 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 62 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 62 00 95 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:31]wFMCommunicate OK [17:59:31]SAM_PROTO_GetFieldsCounters done [17:59:31]requested_item shift.num is exist - process it [17:59:31]requested_item shift.opened is exist - process it [17:59:31]req_shift_opened [17:59:31]FM_GetShiftState [17:59:31]SAM_PROTO_GetShiftState [17:59:31]wFMCommunicate request_size=4 [17:59:31]MH_SAM_APDU [17:59:31]CAPDU: 80 13 01 00 [17:59:31]Write to MH i2c: E2 08 00 96 70 80 13 01 00 00 00 00 00 83 [17:59:31]Write i2c OK [17:59:31]MH_I2C_Read... [17:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:31]Read from MH i2c: E2 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 0E 00 [17:59:31]MH_I2C_Read... [17:59:31]Read from MH i2c: E2 0E 00 96 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [17:59:31]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [17:59:31]wFMCommunicate OK [17:59:31]SAM_PROTO_GetShiftState done [17:59:31]FM_GetShiftState done [17:59:31]req_shift_opened done [17:59:31]requested_item shift.open_date is exist - process it [17:59:31]req_shift_open_date [17:59:31]req_shift_open_date done [17:59:31]produce_requested_data done [17:59:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103497,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [17:59:31]process_action_free close_receipt [17:59:31]json_value_free [17:59:31]json_value_free done [17:59:31]process_json_proto returns [17:59:31]Send response to host [17:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103497,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [17:59:31]free response buf [17:59:31]execute_script done [17:59:31]execute_script returns [17:59:31]free content buf [17:59:31]Sock 7.Close socket [17:59:31]Sock 7.Thread stoped [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:02]accept exits with 9 [18:02:02]New connection [18:02:02]New thread 3067227492 created [18:02:02]Thread 3067084132 joined [18:02:02]Waiting for new connection... [18:02:02] Sock 9.Parse request [18:02:02]Sock 9.Check first char [18:02:02]Sock 9.First char is OK [18:02:02]request: POST /json_proto HTTP/1.0 [18:02:02]Method: POST [18:02:02]URL: /json_proto [18:02:02]Method is POST - this is cgi request [18:02:02]url: /json_proto [18:02:02]query_string will be loaded in cgi processing [18:02:02]execute_cgi json_proto POST (null) [18:02:02]execute_cgi path=json_proto method=POST [18:02:02]POST find Content-Length [18:02:02]Host: 172.17.38.133:8080 [18:02:02]Content-Length: 1184 [18:02:02]Content-Type: application/json [18:02:02] [18:02:02]POST finish read [18:02:02]Found Content-Length = 1184 [18:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672689\u000A18.06.2024 17:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103619\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:02]execute_script... [18:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672689\u000A18.06.2024 17:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103619\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:02]POST & json_proto [18:02:02]process_json_proto [18:02:02]json parsed OK: [18:02:02]protocol is kg_v1.0 [18:02:02]action value=print_text [18:02:02]process_action print_text [18:02:02]cmd_print_text [18:02:02]ExternCall_PrintAddStr [18:02:02]wPrintStart [18:02:02]Write to MH i2c: 01 00 00 97 70 07 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 97 70 00 00 00 00 00 FF 0F 1C [18:02:02]RasterBufferAndPrint [18:02:02]line *****ТОВАРНЫЙ ЧЕК***** [18:02:02]line АЗС 120 [18:02:02]line Партнер нефть [18:02:02]line 02508201610067 [18:02:02]line Кассир : Асанбаев Н. [18:02:02]line Счет N : (1)672689 [18:02:02]line 18.06.2024 17:39 [18:02:02]line ПРОДАЖА [18:02:02]line ТРК (МРК, ГНК): 42 [18:02:02]line Вид ГСМ : 2710124130 [18:02:02]line Аи-92-К-5 [18:02:02]line 10.000 x 66.40 [18:02:02]line ИТОГ: 664.00 [18:02:02]line Тип оплаты: Талоны: Партнер нефть [18:02:02]line 4103619 [18:02:02]line ______________________ [18:02:02]line (подпись) [18:02:02]written 0, free lines is 4095 [18:02:02]Write to MH i2c: 01 00 00 AB 70 1B [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 AB 70 00 00 00 00 00 12 0E 42 [18:02:02]RasterBufferAndPrint [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]written 0, free lines is 3604 [18:02:02]MH_Cut [18:02:02]Write to MH i2c: D1 01 00 B2 70 01 F4 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 B2 70 00 F3 [18:02:02]Write to MH i2c: 01 00 00 B3 70 23 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]*** Cut start [18:02:02]*** Partial cut [18:02:02]*** CUTSNS_PIN = 1 [18:02:02]*** CUTSNS_PIN = 0 [18:02:03]*** Brake cut motor [18:02:03]Read from MH i2c: 01 [18:02:03]MH_I2C_Read... [18:02:03]*** Stop cut motor [18:02:03]*** Cut end [18:02:03]Read from MH i2c: 01 07 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: 01 07 00 B3 70 00 00 00 00 00 FF 0F 38 [18:02:03]process_action print_text done [18:02:03]requested_data is exist [18:02:03]produce_requested_data [18:02:03]requested_item fm.sn is exist - process it [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 11 00 00 [18:02:03]Write to MH i2c: E2 08 00 B4 70 80 11 00 00 00 00 00 00 9E [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 17 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 17 00 B4 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [18:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:02:03]wFMCommunicate OK [18:02:03]requested_item fd.num is exist - process it [18:02:03]SAM_PROTO_GetFieldsCounters [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 13 00 00 [18:02:03]Write to MH i2c: E2 08 00 B5 70 80 13 00 00 00 00 00 00 A1 [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 62 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 62 00 B5 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:02:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:03]wFMCommunicate OK [18:02:03]SAM_PROTO_GetFieldsCounters done [18:02:03]requested_item shift.num is exist - process it [18:02:03]requested_item shift.opened is exist - process it [18:02:03]req_shift_opened [18:02:03]FM_GetShiftState [18:02:03]SAM_PROTO_GetShiftState [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 13 01 00 [18:02:03]Write to MH i2c: E2 08 00 B6 70 80 13 01 00 00 00 00 00 A3 [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 0E 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 0E 00 B6 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 24 [18:02:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:02:03]wFMCommunicate OK [18:02:03]SAM_PROTO_GetShiftState done [18:02:03]FM_GetShiftState done [18:02:03]req_shift_opened done [18:02:03]requested_item shift.open_date is exist - process it [18:02:03]req_shift_open_date [18:02:03]req_shift_open_date done [18:02:03]produce_requested_data done [18:02:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103497,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:02:03]process_action_free print_text [18:02:03]json_value_free [18:02:03]json_value_free done [18:02:03]process_json_proto returns [18:02:03]Send response to host [18:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103497,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:02:03]free response buf [18:02:03]execute_script done [18:02:03]execute_script returns [18:02:03]free content buf [18:02:03]Sock 9.Close socket [18:02:03]Sock 9.Thread stoped [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]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:03]accept exits with 7 [18:03:03]New connection [18:03:03]New thread 3067084132 created [18:03:03]Thread 3067227492 joined [18:03:03]Waiting for new connection... [18:03:03] Sock 7.Parse request [18:03:03]Sock 7.Check first char [18:03:03]Sock 7.First char is OK [18:03:03]request: POST /json_proto HTTP/1.0 [18:03:03]Method: POST [18:03:03]URL: /json_proto [18:03:03]Method is POST - this is cgi request [18:03:03]url: /json_proto [18:03:03]query_string will be loaded in cgi processing [18:03:03]execute_cgi json_proto POST (null) [18:03:03]execute_cgi path=json_proto method=POST [18:03:03]POST find Content-Length [18:03:03]Host: 172.17.38.133:8080 [18:03:03]Content-Length: 816 [18:03:03]Content-Type: application/json [18:03:03] [18:03:03]POST finish read [18:03:03]Found Content-Length = 816 [18:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.420, "sum" : 426.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 426.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:03]execute_script... [18:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.420, "sum" : 426.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 426.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:03]POST & json_proto [18:03:03]process_json_proto [18:03:03]json parsed OK: [18:03:03]protocol is kg_v1.0 [18:03:03]action value=close_receipt [18:03:03]process_action close_receipt [18:03:03]cmd_close_receipt [18:03:03]MH_GetDate [18:03:03]Write to MH i2c: F0 00 00 B7 70 16 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 09 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 09 00 B7 70 00 DF CB 71 66 BD 8F 7C 64 CC [18:03:03]GetLastDocTimeStamp 1718733575 [18:03:03]current date 1718733791 [18:03:03]FM_GetShiftState [18:03:03]SAM_PROTO_GetShiftState [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 13 01 00 [18:03:03]Write to MH i2c: E2 08 00 B8 70 80 13 01 00 00 00 00 00 A5 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 B8 70 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 26 [18:03:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_GetShiftState done [18:03:03]FM_GetShiftState done [18:03:03]opened in 1718670284 [18:03:03]opened+sec_in_day 1718756684 [18:03:03]quantity*price = 42628 [18:03:03]sum+1 = 42630 [18:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 426.29 НСП 1% : 3.77 НДС 12% : 45.27 Наличными: 0.00 Безнал.: 426.29 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 182 18.06.2024 18:03 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103498 ФПД: 58497243835851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103498&fm=58497243835851&tin=02508201610067®Number=0000000000092785&sum=42629 [18:03:04]StoreToDocumentArchive [18:03:04]shift 352 fd 103498 [18:03:04]save to /storage/0352/doc_00103498 [18:03:04]save last doc name /storage/0352/doc_00103498 to /storage/kkm_last_doc_name [18:03:04]save OK [18:03:04]Clear old archive folders... [18:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:04]tlvbuf is 014E7DD0 [18:03:04]SAM_PROTO_ClearQueue [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 09 00 00 [18:03:04]Write to MH i2c: E2 08 00 C5 70 80 09 00 00 00 00 00 00 A7 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 C5 70 00 90 00 A9 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_ClearQueue done [18:03:04]KKMCreateOFDPacket [18:03:04]OFDProtocolAddRootSTLVToBuf [18:03:04]FM_MakeSignedData [18:03:04]FM_MakeSignedData [18:03:04]SAM_PROTO_SignData [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 01 02 [18:03:04]Write to MH i2c: E2 08 00 C6 70 80 0D 01 02 00 00 00 00 AF [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 C6 70 00 90 00 AA [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=255 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DF CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 94 01 00 35 04 06 00 35 [18:03:04]Write to MH i2c: E2 02 01 C7 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DF CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 94 01 00 35 04 06 00 35 00 00 5C [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 C7 70 00 90 00 AB [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=10 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 02 02 05 33 F3 70 6D CB [18:03:04]Write to MH i2c: E2 0D 00 C8 70 80 0D 02 02 05 00 33 F3 70 6D CB 00 00 8A [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 03 00 C8 70 00 90 00 AC [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 03 02 [18:03:04]Write to MH i2c: E2 08 00 C9 70 80 0D 03 02 00 00 00 00 B4 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 0B 00 C9 70 00 98 87 A6 04 C8 2C A7 CE 90 00 E7 [18:03:04]RAPDU: 98 87 A6 04 C8 2C A7 CE 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_SignData done [18:03:04]FM_MakeSignedData done [18:03:04]CreateOFDProtocolMessage [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 11 00 00 [18:03:04]Write to MH i2c: E2 08 00 CA 70 80 11 00 00 00 00 00 00 B4 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:04]Read from MH i2c: E2 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: E2 17 00 CA 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [18:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:03:04]wFMCommunicate OK [18:03:04]CreateOFDProtocolMessage done [18:03:04]OFDSenderStorePacket 103498 [18:03:04]StoreOFDPacket docnum=103498 [18:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB F9 07 01 D4 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DF CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 94 01 00 35 04 06 00 35 33 F3 70 6D CB 98 87 A6 04 C8 2C A7 CE [18:03:04]CheckFolder [18:03:04]dirname=/storage/ofd_packets [18:03:04]CheckFolder done [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00103498 [18:03:04]NVStorageSaveData ofd_packets/00103498 [18:03:04]File name is /storage/ofd_packets/00103498 [18:03:04]Write 301 bytes [18:03:04]NVStorageSaveData done [18:03:04]OFDSenderStorePacket done [18:03:04]KKMCreateOFDPacket done [18:03:04]NVStorageSaveData kkm_last_timestamp [18:03:04]File name is /storage/kkm_last_timestamp [18:03:04]Write 4 bytes [18:03:04]NVStorageSaveData done [18:03:04]ExternCall_PrintAddStr [18:03:04]wPrintStart [18:03:04]Write to MH i2c: 01 00 00 CB 70 3B [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 CB 70 00 00 00 00 00 FF 0F 50 [18:03:04]RasterBufferAndPrint [18:03:04]line Счет N : (1)672690 [18:03:04]line ИНН: 02508201610067 [18:03:04]line Контрольно-Кассовый Чек [18:03:04]line ПРОДАЖА [18:03:04]line ТРК (МРК, ГНК) : 32 [18:03:04]line Товар: 2710124130 [18:03:04]line Аи-92-К-5 [18:03:04]line 6.420 * 66.40 [18:03:04]line = 426.29 [18:03:04]line НДС 12% НСП 1% [18:03:04]line > о реализуемом товаре [18:03:04]line ИТОГО: 426.29 [18:03:04]line НСП 1% : 3.77 [18:03:04]line НДС 12% : 45.27 [18:03:04]line Наличными: 0.00 [18:03:04]line Безнал.: 426.29 [18:03:04]line Место: АЗС № 120 "Партнер Нефть" [18:03:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:03:04]line СНО: Общий режим [18:03:04]line Чек 182 18.06.2024 18:03 [18:03:04]line Смена: 352 ФФД: 1.0 [18:03:04]line ЗНМ: 0300000164 [18:03:04]line РНМ: 0000000000092785 [18:03:04]line Версия ККМ: 001 [18:03:04]line Платежная система: Бакай Банк [18:03:04]line ФМ: 0000000000875093 [18:03:04]line ФД: 103498 [18:03:04]line ФПД: 58497243835851 [18:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103498&fm=58497243835851&tin=02508201610067®Number=0000000000092785&sum=42629 [18:03:05]OFD Sender: Processing packet 103498 [packets to send 17, broken 16] [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00103498 [18:03:05]OFD Sender: To server: pG, [18:03:05]CommunicateWithHost lk.salyk.kg:30040 [18:03:05]ConnectInit lk.salyk.kg [18:03:05]written 0, free lines is 4095 [18:03:05]Connected sock=9 [18:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB F9 07 01 D4 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 DF CB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 94 01 00 35 04 06 00 35 33 F3 70 6D CB 98 87 A6 04 C8 2C A7 CE [18:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 85 13 47 00 8F D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 94 01 00 F4 03 04 00 6A 72 71 66 B6 04 01 00 00 95 46 D0 3B 79 D6 DA B7 [18:03:05]CommunicateWithHost err = 0 [18:03:05]CheckOFDResponse [18:03:05]1017 (14) - 77093643461234 [18:03:05]1041 (16) - 0000000000875093 [18:03:05]1040 (4) - 103498 [18:03:05]1012 (4) - 18.06.2024 11:41 [18:03:05]1206 (1) - 0 [18:03:05]OFD Sender: Remove packet 103498 [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00103498 [18:03:05]NVStorageDeleteData [18:03:05]Write to MH i2c: 01 00 00 F5 70 65 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 F5 70 00 00 00 00 00 FB 0C 73 [18:03:05]RasterBufferAndPrint [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]line [18:03:05]written 0, free lines is 3329 [18:03:05]MH_Cut [18:03:05]Write to MH i2c: D1 01 00 FC 70 01 3E [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: D1 01 00 FC 70 00 3D [18:03:05]Write to MH i2c: 01 00 00 FD 70 6D [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]OFD Sender: No OFD packet to send [18:03:06]*** Cut start [18:03:06]*** Partial cut [18:03:06]*** CUTSNS_PIN = 1 [18:03:06]*** CUTSNS_PIN = 0 [18:03:06]*** Brake cut motor [18:03:06]Read from MH i2c: 01 [18:03:06]MH_I2C_Read... [18:03:06]*** Stop cut motor [18:03:06]*** Cut end [18:03:06]Read from MH i2c: 01 07 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: 01 07 00 FD 70 00 00 00 00 00 FF 0F 82 [18:03:06]process_action close_receipt done [18:03:06]requested_data is exist [18:03:06]produce_requested_data [18:03:06]requested_item fm.sn is exist - process it [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 11 00 00 [18:03:06]Write to MH i2c: E2 08 00 FE 70 80 11 00 00 00 00 00 00 E8 [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 17 00 FE 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [18:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:03:06]wFMCommunicate OK [18:03:06]requested_item fd.num is exist - process it [18:03:06]SAM_PROTO_GetFieldsCounters [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 00 00 [18:03:06]Write to MH i2c: E2 08 00 FF 70 80 13 00 00 00 00 00 00 EB [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 FF 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetFieldsCounters done [18:03:07]requested_item shift.num is exist - process it [18:03:07]requested_item shift.opened is exist - process it [18:03:07]req_shift_opened [18:03:07]FM_GetShiftState [18:03:07]SAM_PROTO_GetShiftState [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 13 01 00 [18:03:07]Write to MH i2c: E2 08 00 00 71 80 13 01 00 00 00 00 00 EE [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 00 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6F [18:03:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetShiftState done [18:03:07]FM_GetShiftState done [18:03:07]req_shift_opened done [18:03:07]requested_item shift.open_date is exist - process it [18:03:07]req_shift_open_date [18:03:07]req_shift_open_date done [18:03:07]produce_requested_data done [18:03:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103498,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:03:07]process_action_free close_receipt [18:03:07]json_value_free [18:03:07]json_value_free done [18:03:07]process_json_proto returns [18:03:07]Send response to host [18:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103498,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:03:07]free response buf [18:03:07]execute_script done [18:03:07]execute_script returns [18:03:07]free content buf [18:03:07]Sock 7.Close socket [18:03:07]Sock 7.Thread stoped [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:54]accept exits with 10 [18:03:54]New connection [18:03:54]New thread 3067227492 created [18:03:54]Thread 3067084132 joined [18:03:54]Waiting for new connection... [18:03:54] Sock 10.Parse request [18:03:54]Sock 10.Check first char [18:03:54]Sock 10.First char is OK [18:03:54]request: POST /json_proto HTTP/1.0 [18:03:54]Method: POST [18:03:54]URL: /json_proto [18:03:54]Method is POST - this is cgi request [18:03:54]url: /json_proto [18:03:54]query_string will be loaded in cgi processing [18:03:54]execute_cgi json_proto POST (null) [18:03:54]execute_cgi path=json_proto method=POST [18:03:54]POST find Content-Length [18:03:54]Host: 172.17.38.133:8080 [18:03:54]Content-Length: 677 [18:03:54]Content-Type: application/json [18:03:54] [18:03:54]POST finish read [18:03:54]Found Content-Length = 677 [18:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.650, "sum" : 574.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 574.00, "total" : 574.00, "payments": [ { "type": 0, "sum" : 574.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]execute_script... [18:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.650, "sum" : 574.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 574.00, "total" : 574.00, "payments": [ { "type": 0, "sum" : 574.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]POST & json_proto [18:03:54]process_json_proto [18:03:54]json parsed OK: [18:03:54]protocol is kg_v1.0 [18:03:54]action value=close_receipt [18:03:54]process_action close_receipt [18:03:54]cmd_close_receipt [18:03:54]MH_GetDate [18:03:54]Write to MH i2c: F0 00 00 01 71 61 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 01 71 00 12 CC 71 66 BD 8F 7C 64 4B [18:03:54]GetLastDocTimeStamp 1718733791 [18:03:54]current date 1718733842 [18:03:54]FM_GetShiftState [18:03:54]SAM_PROTO_GetShiftState [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 13 01 00 [18:03:54]Write to MH i2c: E2 08 00 02 71 80 13 01 00 00 00 00 00 F0 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 02 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 71 [18:03:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_GetShiftState done [18:03:54]FM_GetShiftState done [18:03:54]opened in 1718670284 [18:03:54]opened+sec_in_day 1718756684 [18:03:54]quantity*price = 57436 [18:03:54]sum+1 = 57437 [18:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 574.00 Внесено: 574.00 СДАЧА: 0.00 НСП 1% : 5.08 НДС 12% : 60.99 Наличными: 574.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 183 18.06.2024 18:04 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103499 ФПД: 104680254723113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180402&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103499&fm=104680254723113&tin=02508201610067®Number=0000000000092785&sum=57400 [18:03:55]StoreToDocumentArchive [18:03:55]shift 352 fd 103499 [18:03:55]save to /storage/0352/doc_00103499 [18:03:55]save last doc name /storage/0352/doc_00103499 to /storage/kkm_last_doc_name [18:03:55]save OK [18:03:55]Clear old archive folders... [18:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:55]tlvbuf is B6F9B350 [18:03:55]SAM_PROTO_ClearQueue [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 09 00 00 [18:03:55]Write to MH i2c: E2 08 00 0F 71 80 09 00 00 00 00 00 00 F2 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 0F 71 00 90 00 F4 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]SAM_PROTO_ClearQueue done [18:03:55]KKMCreateOFDPacket [18:03:55]OFDProtocolAddRootSTLVToBuf [18:03:55]FM_MakeSignedData [18:03:55]FM_MakeSignedData [18:03:55]SAM_PROTO_SignData [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 01 02 [18:03:55]Write to MH i2c: E2 08 00 10 71 80 0D 01 02 00 00 00 00 FA [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 10 71 00 90 00 F5 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=255 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 12 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 94 01 00 35 04 06 00 5F [18:03:55]Write to MH i2c: E2 02 01 11 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 12 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 94 01 00 35 04 06 00 5F 00 00 5D [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:56]OFD Sender: No OFD packet to send [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 11 71 00 90 00 F6 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=10 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 02 02 05 34 C5 65 D4 29 [18:03:56]Write to MH i2c: E2 0D 00 12 71 80 0D 02 02 05 00 34 C5 65 D4 29 00 00 62 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 12 71 00 90 00 F7 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 03 02 [18:03:56]Write to MH i2c: E2 08 00 13 71 80 0D 03 02 00 00 00 00 FF [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 13 71 00 02 62 8E 95 C2 4C F4 34 90 00 BD [18:03:56]RAPDU: 02 62 8E 95 C2 4C F4 34 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_SignData done [18:03:56]FM_MakeSignedData done [18:03:56]CreateOFDProtocolMessage [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 11 00 00 [18:03:56]Write to MH i2c: E2 08 00 14 71 80 11 00 00 00 00 00 00 FF [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 14 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [18:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:03:56]wFMCommunicate OK [18:03:56]CreateOFDProtocolMessage done [18:03:56]OFDSenderStorePacket 103499 [18:03:56]StoreOFDPacket docnum=103499 [18:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 19 02 07 01 68 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 12 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 94 01 00 35 04 06 00 5F 34 C5 65 D4 29 02 62 8E 95 C2 4C F4 34 [18:03:56]CheckFolder [18:03:56]dirname=/storage/ofd_packets [18:03:56]CheckFolder done [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00103499 [18:03:56]NVStorageSaveData ofd_packets/00103499 [18:03:56]File name is /storage/ofd_packets/00103499 [18:03:56]Write 301 bytes [18:03:56]NVStorageSaveData done [18:03:56]OFDSenderStorePacket done [18:03:56]KKMCreateOFDPacket done [18:03:56]NVStorageSaveData kkm_last_timestamp [18:03:56]File name is /storage/kkm_last_timestamp [18:03:56]Write 4 bytes [18:03:56]NVStorageSaveData done [18:03:56]ExternCall_PrintAddStr [18:03:56]wPrintStart [18:03:56]Write to MH i2c: 01 00 00 15 71 86 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 15 71 00 00 00 00 00 FF 0F 9B [18:03:56]RasterBufferAndPrint [18:03:56]line Счет N : (1)672691 [18:03:56]line ИНН: 02508201610067 [18:03:56]line Контрольно-Кассовый Чек [18:03:56]line ПРОДАЖА [18:03:56]line ТРК (МРК, ГНК) : 32 [18:03:56]line Товар: 2710124130 [18:03:56]line Аи-92-К-5 [18:03:56]line 8.650 * 66.40 [18:03:56]line = 574.36 [18:03:56]line НДС 12% НСП 1% [18:03:56]line > о реализуемом товаре [18:03:56]line ОКРУГЛЕНИЕ: -0.36 [18:03:56]line ИТОГО: 574.00 [18:03:56]line Внесено: 574.00 [18:03:56]line СДАЧА: 0.00 [18:03:56]line НСП 1% : 5.08 [18:03:56]line НДС 12% : 60.99 [18:03:56]line Наличными: 574.00 [18:03:56]line Безнал.: 0.00 [18:03:56]line Место: АЗС № 120 "Партнер Нефть" [18:03:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:03:56]line СНО: Общий режим [18:03:56]line Чек 183 18.06.2024 18:04 [18:03:56]line Смена: 352 ФФД: 1.0 [18:03:56]line ЗНМ: 0300000164 [18:03:56]line РНМ: 0000000000092785 [18:03:56]line Версия ККМ: 001 [18:03:56]line ФМ: 0000000000875093 [18:03:56]line ФД: 103499 [18:03:56]line ФПД: 104680254723113 [18:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180402&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103499&fm=104680254723113&tin=02508201610067®Number=0000000000092785&sum=57400 [18:03:56]OFD Sender: Processing packet 103499 [packets to send 17, broken 16] [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00103499 [18:03:56]OFD Sender: To server: pG, [18:03:56]CommunicateWithHost lk.salyk.kg:30040 [18:03:56]ConnectInit lk.salyk.kg [18:03:56]written 0, free lines is 4095 [18:03:57]Connected sock=11 [18:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 19 02 07 01 68 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 21 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 12 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 94 01 00 35 04 06 00 5F 34 C5 65 D4 29 02 62 8E 95 C2 4C F4 34 [18:03:57]Write to MH i2c: 01 00 00 40 71 B1 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 40 71 00 00 00 00 00 EB 0C AF [18:03:57]RasterBufferAndPrint [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]written 0, free lines is 3313 [18:03:57]MH_Cut [18:03:57]Write to MH i2c: D1 01 00 47 71 01 8A [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 01 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 01 00 47 71 00 89 [18:03:57]Write to MH i2c: 01 00 00 48 71 B9 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5A 99 47 00 A3 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 94 01 00 F4 03 04 00 9E 72 71 66 B6 04 01 00 00 2E F0 C9 4A 96 87 DF F1 [18:03:57]CommunicateWithHost err = 0 [18:03:57]CheckOFDResponse [18:03:57]1017 (14) - 77093643461234 [18:03:57]1041 (16) - 0000000000875093 [18:03:57]1040 (4) - 103499 [18:03:57]1012 (4) - 18.06.2024 11:42 [18:03:57]1206 (1) - 0 [18:03:57]OFD Sender: Remove packet 103499 [18:03:57]ProducePacketName [18:03:57]name=ofd_packets/00103499 [18:03:57]NVStorageDeleteData [18:03:57]OFD Sender: No OFD packet to send [18:03:57]*** Cut start [18:03:57]*** Partial cut [18:03:57]*** CUTSNS_PIN = 1 [18:03:57]*** CUTSNS_PIN = 0 [18:03:58]*** Brake cut motor [18:03:58]Read from MH i2c: 01 [18:03:58]MH_I2C_Read... [18:03:58]*** Stop cut motor [18:03:58]*** Cut end [18:03:58]Read from MH i2c: 01 07 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: 01 07 00 48 71 00 00 00 00 00 FF 0F CE [18:03:58]process_action close_receipt done [18:03:58]requested_data is exist [18:03:58]produce_requested_data [18:03:58]requested_item fm.sn is exist - process it [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 11 00 00 [18:03:58]Write to MH i2c: E2 08 00 49 71 80 11 00 00 00 00 00 00 34 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 17 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 17 00 49 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [18:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:03:58]wFMCommunicate OK [18:03:58]requested_item fd.num is exist - process it [18:03:58]SAM_PROTO_GetFieldsCounters [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 00 00 [18:03:58]Write to MH i2c: E2 08 00 4A 71 80 13 00 00 00 00 00 00 37 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 62 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 62 00 4A 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetFieldsCounters done [18:03:58]requested_item shift.num is exist - process it [18:03:58]requested_item shift.opened is exist - process it [18:03:58]req_shift_opened [18:03:58]FM_GetShiftState [18:03:58]SAM_PROTO_GetShiftState [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 01 00 [18:03:58]Write to MH i2c: E2 08 00 4B 71 80 13 01 00 00 00 00 00 39 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 4B 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BA [18:03:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetShiftState done [18:03:58]FM_GetShiftState done [18:03:58]req_shift_opened done [18:03:58]requested_item shift.open_date is exist - process it [18:03:58]req_shift_open_date [18:03:58]req_shift_open_date done [18:03:58]produce_requested_data done [18:03:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103499,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:03:58]process_action_free close_receipt [18:03:58]json_value_free [18:03:58]json_value_free done [18:03:58]process_json_proto returns [18:03:58]Send response to host [18:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103499,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:03:58]free response buf [18:03:58]execute_script done [18:03:58]execute_script returns [18:03:58]free content buf [18:03:58]Sock 10.Close socket [18:03:58]Sock 10.Thread stoped [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:28]accept exits with 7 [18:05:28]New connection [18:05:28]New thread 3067084132 created [18:05:28]Thread 3067227492 joined [18:05:28]Waiting for new connection... [18:05:28] Sock 7.Parse request [18:05:28]Sock 7.Check first char [18:05:28]Sock 7.First char is OK [18:05:28]request: POST /json_proto HTTP/1.0 [18:05:28]Method: POST [18:05:28]URL: /json_proto [18:05:28]Method is POST - this is cgi request [18:05:28]url: /json_proto [18:05:28]query_string will be loaded in cgi processing [18:05:28]execute_cgi json_proto POST (null) [18:05:28]execute_cgi path=json_proto method=POST [18:05:28]POST find Content-Length [18:05:28]Host: 172.17.38.133:8080 [18:05:28]Content-Length: 1164 [18:05:28]Content-Type: application/json [18:05:28] [18:05:28]POST finish read [18:05:28]Found Content-Length = 1164 [18:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672684\u000A18.06.2024 17:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 205.020 x 72.90\u000A\u0418\u0422\u041E\u0413: 14945.96\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:28]execute_script... [18:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672684\u000A18.06.2024 17:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 205.020 x 72.90\u000A\u0418\u0422\u041E\u0413: 14945.96\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:28]POST & json_proto [18:05:28]process_json_proto [18:05:28]json parsed OK: [18:05:28]protocol is kg_v1.0 [18:05:28]action value=print_text [18:05:28]process_action print_text [18:05:28]cmd_print_text [18:05:28]ExternCall_PrintAddStr [18:05:28]wPrintStart [18:05:28]Write to MH i2c: 01 00 00 4C 71 BD [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 4C 71 00 00 00 00 00 FF 0F D2 [18:05:28]RasterBufferAndPrint [18:05:28]line *****ТОВАРНЫЙ ЧЕК***** [18:05:28]line АЗС 120 [18:05:28]line Партнер нефть [18:05:28]line 02508201610067 [18:05:28]line Кассир : Асанбаев Н. [18:05:28]line Счет N : (1)672684 [18:05:28]line 18.06.2024 17:42 [18:05:28]line ПРОДАЖА [18:05:28]line ТРК (МРК, ГНК): 21 [18:05:28]line Вид ГСМ : 2710194210 [18:05:28]line ДТ(л)-К-5 [18:05:28]line 205.020 x 72.90 [18:05:28]line ИТОГ: 14945.96 [18:05:28]line Тип оплаты: Талоны: ТК ГПНА Online [18:05:28]line 30101770 [18:05:28]line ______________________ [18:05:28]line (подпись) [18:05:28]written 0, free lines is 4095 [18:05:28]Write to MH i2c: 01 00 00 60 71 D1 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: 01 07 00 60 71 00 00 00 00 00 11 0E F7 [18:05:28]RasterBufferAndPrint [18:05:28]line [18:05:28]line [18:05:28]line [18:05:28]line [18:05:28]line [18:05:28]written 0, free lines is 3603 [18:05:28]MH_Cut [18:05:28]Write to MH i2c: D1 01 00 67 71 01 AA [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: D1 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: D1 01 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: D1 01 00 67 71 00 A9 [18:05:28]Write to MH i2c: 01 00 00 68 71 D9 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:29]*** Cut start [18:05:29]*** Partial cut [18:05:29]*** CUTSNS_PIN = 1 [18:05:29]*** CUTSNS_PIN = 0 [18:05:29]*** Brake cut motor [18:05:30]Read from MH i2c: 01 [18:05:30]MH_I2C_Read... [18:05:30]*** Stop cut motor [18:05:30]*** Cut end [18:05:30]Read from MH i2c: 01 07 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: 01 07 00 68 71 00 00 00 00 00 FF 0F EE [18:05:30]process_action print_text done [18:05:30]requested_data is exist [18:05:30]produce_requested_data [18:05:30]requested_item fm.sn is exist - process it [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 11 00 00 [18:05:30]Write to MH i2c: E2 08 00 69 71 80 11 00 00 00 00 00 00 54 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 17 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 17 00 69 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [18:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:05:30]wFMCommunicate OK [18:05:30]requested_item fd.num is exist - process it [18:05:30]SAM_PROTO_GetFieldsCounters [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 13 00 00 [18:05:30]Write to MH i2c: E2 08 00 6A 71 80 13 00 00 00 00 00 00 57 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 62 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 62 00 6A 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:05:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:30]wFMCommunicate OK [18:05:30]SAM_PROTO_GetFieldsCounters done [18:05:30]requested_item shift.num is exist - process it [18:05:30]requested_item shift.opened is exist - process it [18:05:30]req_shift_opened [18:05:30]FM_GetShiftState [18:05:30]SAM_PROTO_GetShiftState [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 13 01 00 [18:05:30]Write to MH i2c: E2 08 00 6B 71 80 13 01 00 00 00 00 00 59 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 6B 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DA [18:05:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:05:30]wFMCommunicate OK [18:05:30]SAM_PROTO_GetShiftState done [18:05:30]FM_GetShiftState done [18:05:30]req_shift_opened done [18:05:30]requested_item shift.open_date is exist - process it [18:05:30]req_shift_open_date [18:05:30]req_shift_open_date done [18:05:30]produce_requested_data done [18:05:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103499,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:05:30]process_action_free print_text [18:05:30]json_value_free [18:05:30]json_value_free done [18:05:30]process_json_proto returns [18:05:30]Send response to host [18:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103499,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:05:30]free response buf [18:05:30]execute_script done [18:05:30]execute_script returns [18:05:30]free content buf [18:05:30]Sock 7.Close socket [18:05:30]Sock 7.Thread stoped [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:21]accept exits with 9 [18:06:21]New connection [18:06:21]New thread 3067227492 created [18:06:21]Thread 3067084132 joined [18:06:21]Waiting for new connection... [18:06:21] Sock 9.Parse request [18:06:21]Sock 9.Check first char [18:06:21]Sock 9.First char is OK [18:06:21]request: POST /json_proto HTTP/1.0 [18:06:21]Method: POST [18:06:21]URL: /json_proto [18:06:21]Method is POST - this is cgi request [18:06:21]url: /json_proto [18:06:21]query_string will be loaded in cgi processing [18:06:21]execute_cgi json_proto POST (null) [18:06:21]execute_cgi path=json_proto method=POST [18:06:21]POST find Content-Length [18:06:21]Host: 172.17.38.133:8080 [18:06:21]Content-Length: 677 [18:06:21]Content-Type: application/json [18:06:21] [18:06:21]POST finish read [18:06:21]Found Content-Length = 677 [18:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:21]execute_script... [18:06:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:21]POST & json_proto [18:06:21]process_json_proto [18:06:21]json parsed OK: [18:06:21]protocol is kg_v1.0 [18:06:21]action value=close_receipt [18:06:21]process_action close_receipt [18:06:21]cmd_close_receipt [18:06:21]MH_GetDate [18:06:21]Write to MH i2c: F0 00 00 6C 71 CC [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: F0 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: F0 09 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: F0 09 00 6C 71 00 A5 CC 71 66 BD 8F 7C 64 49 [18:06:21]GetLastDocTimeStamp 1718733842 [18:06:21]current date 1718733989 [18:06:21]FM_GetShiftState [18:06:21]SAM_PROTO_GetShiftState [18:06:21]wFMCommunicate request_size=4 [18:06:21]MH_SAM_APDU [18:06:21]CAPDU: 80 13 01 00 [18:06:21]Write to MH i2c: E2 08 00 6D 71 80 13 01 00 00 00 00 00 5B [18:06:21]Write i2c OK [18:06:21]MH_I2C_Read... [18:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:21]Read from MH i2c: E2 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 0E 00 [18:06:21]MH_I2C_Read... [18:06:21]Read from MH i2c: E2 0E 00 6D 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DC [18:06:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:06:21]wFMCommunicate OK [18:06:21]SAM_PROTO_GetShiftState done [18:06:21]FM_GetShiftState done [18:06:21]opened in 1718670284 [18:06:21]opened+sec_in_day 1718756684 [18:06:21]quantity*price = 35059 [18:06:21]sum+1 = 35060 [18:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 184 18.06.2024 18:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103500 ФПД: 223953017261663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103500&fm=223953017261663&tin=02508201610067®Number=0000000000092785&sum=35000 [18:06:22]StoreToDocumentArchive [18:06:22]shift 352 fd 103500 [18:06:22]save to /storage/0352/doc_00103500 [18:06:22]save last doc name /storage/0352/doc_00103500 to /storage/kkm_last_doc_name [18:06:22]save OK [18:06:22]Clear old archive folders... [18:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:22]tlvbuf is 0132D370 [18:06:22]SAM_PROTO_ClearQueue [18:06:22]wFMCommunicate request_size=4 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 09 00 00 [18:06:22]Write to MH i2c: E2 08 00 7A 71 80 09 00 00 00 00 00 00 5D [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 7A 71 00 90 00 5F [18:06:22]RAPDU: 90 00 [18:06:22]wFMCommunicate OK [18:06:22]SAM_PROTO_ClearQueue done [18:06:22]KKMCreateOFDPacket [18:06:22]OFDProtocolAddRootSTLVToBuf [18:06:22]FM_MakeSignedData [18:06:22]FM_MakeSignedData [18:06:22]SAM_PROTO_SignData [18:06:22]wFMCommunicate request_size=4 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 0D 01 02 [18:06:22]Write to MH i2c: E2 08 00 7B 71 80 0D 01 02 00 00 00 00 65 [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:22]Read from MH i2c: E2 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 [18:06:22]MH_I2C_Read... [18:06:22]Read from MH i2c: E2 03 00 7B 71 00 90 00 60 [18:06:22]RAPDU: 90 00 [18:06:22]wFMCommunicate OK [18:06:22]wFMCommunicate request_size=255 [18:06:22]MH_SAM_APDU [18:06:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A5 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 94 01 00 35 04 06 00 CB [18:06:22]Write to MH i2c: E2 02 01 7C 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A5 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 94 01 00 35 04 06 00 CB 00 00 0A [18:06:22]Write i2c OK [18:06:22]MH_I2C_Read... [18:06:23]OFD Sender: No OFD packet to send [18:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:23]Read from MH i2c: E2 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 03 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 03 00 7C 71 00 90 00 61 [18:06:23]RAPDU: 90 00 [18:06:23]wFMCommunicate OK [18:06:23]wFMCommunicate request_size=10 [18:06:23]MH_SAM_APDU [18:06:23]CAPDU: 80 0D 02 02 05 AF 20 0A 4E 5F [18:06:23]Write to MH i2c: E2 0D 00 7D 71 80 0D 02 02 05 00 AF 20 0A 4E 5F 00 00 F8 [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:23]Read from MH i2c: E2 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 03 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 03 00 7D 71 00 90 00 62 [18:06:23]RAPDU: 90 00 [18:06:23]wFMCommunicate OK [18:06:23]wFMCommunicate request_size=4 [18:06:23]MH_SAM_APDU [18:06:23]CAPDU: 80 0D 03 02 [18:06:23]Write to MH i2c: E2 08 00 7E 71 80 0D 03 02 00 00 00 00 6A [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:23]Read from MH i2c: E2 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 0B 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 0B 00 7E 71 00 23 DC 20 A0 76 23 26 7A 90 00 63 [18:06:23]RAPDU: 23 DC 20 A0 76 23 26 7A 90 00 [18:06:23]wFMCommunicate OK [18:06:23]SAM_PROTO_SignData done [18:06:23]FM_MakeSignedData done [18:06:23]CreateOFDProtocolMessage [18:06:23]wFMCommunicate request_size=4 [18:06:23]MH_SAM_APDU [18:06:23]CAPDU: 80 11 00 00 [18:06:23]Write to MH i2c: E2 08 00 7F 71 80 11 00 00 00 00 00 00 6A [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:23]Read from MH i2c: E2 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 17 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 17 00 7F 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [18:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:06:23]wFMCommunicate OK [18:06:23]CreateOFDProtocolMessage done [18:06:23]OFDSenderStorePacket 103500 [18:06:23]StoreOFDPacket docnum=103500 [18:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 D4 07 01 0F 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A5 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 94 01 00 35 04 06 00 CB AF 20 0A 4E 5F 23 DC 20 A0 76 23 26 7A [18:06:23]CheckFolder [18:06:23]dirname=/storage/ofd_packets [18:06:23]CheckFolder done [18:06:23]ProducePacketName [18:06:23]name=ofd_packets/00103500 [18:06:23]NVStorageSaveData ofd_packets/00103500 [18:06:23]File name is /storage/ofd_packets/00103500 [18:06:23]Write 301 bytes [18:06:23]NVStorageSaveData done [18:06:23]OFDSenderStorePacket done [18:06:23]KKMCreateOFDPacket done [18:06:23]NVStorageSaveData kkm_last_timestamp [18:06:23]File name is /storage/kkm_last_timestamp [18:06:23]Write 4 bytes [18:06:23]NVStorageSaveData done [18:06:23]ExternCall_PrintAddStr [18:06:23]wPrintStart [18:06:23]Write to MH i2c: 01 00 00 80 71 F1 [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: 01 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: 01 07 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: 01 07 00 80 71 00 00 00 00 00 FF 0F 06 [18:06:23]RasterBufferAndPrint [18:06:23]line Счет N : (1)672692 [18:06:23]line ИНН: 02508201610067 [18:06:23]line Контрольно-Кассовый Чек [18:06:23]line ПРОДАЖА [18:06:23]line ТРК (МРК, ГНК) : 32 [18:06:23]line Товар: 2710124130 [18:06:23]line Аи-92-К-5 [18:06:23]line 5.280 * 66.40 [18:06:23]line = 350.59 [18:06:23]line НДС 12% НСП 1% [18:06:23]line > о реализуемом товаре [18:06:23]line ОКРУГЛЕНИЕ: -0.59 [18:06:23]line ИТОГО: 350.00 [18:06:23]line Внесено: 350.00 [18:06:23]line СДАЧА: 0.00 [18:06:23]line НСП 1% : 3.10 [18:06:23]line НДС 12% : 37.23 [18:06:23]line Наличными: 350.00 [18:06:23]line Безнал.: 0.00 [18:06:23]line Место: АЗС № 120 "Партнер Нефть" [18:06:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:06:23]line СНО: Общий режим [18:06:23]line Чек 184 18.06.2024 18:06 [18:06:23]line Смена: 352 ФФД: 1.0 [18:06:23]line ЗНМ: 0300000164 [18:06:23]line РНМ: 0000000000092785 [18:06:23]line Версия ККМ: 001 [18:06:23]line ФМ: 0000000000875093 [18:06:23]line ФД: 103500 [18:06:23]line ФПД: 223953017261663 [18:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103500&fm=223953017261663&tin=02508201610067®Number=0000000000092785&sum=35000 [18:06:23]OFD Sender: Processing packet 103500 [packets to send 17, broken 16] [18:06:23]ProducePacketName [18:06:23]name=ofd_packets/00103500 [18:06:23]OFD Sender: To server: pG, [18:06:23]CommunicateWithHost lk.salyk.kg:30040 [18:06:23]ConnectInit lk.salyk.kg [18:06:23]written 0, free lines is 4095 [18:06:23]Connected sock=10 [18:06:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 D4 07 01 0F 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A5 CC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 94 01 00 35 04 06 00 CB AF 20 0A 4E 5F 23 DC 20 A0 76 23 26 7A [18:06:24]Write to MH i2c: 01 00 00 AB 71 1C [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 07 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 07 00 AB 71 00 00 00 00 00 F3 0C 22 [18:06:24]RasterBufferAndPrint [18:06:24]line [18:06:24]line [18:06:24]line [18:06:24]line [18:06:24]line [18:06:24]written 0, free lines is 3321 [18:06:24]MH_Cut [18:06:24]Write to MH i2c: D1 01 00 B2 71 01 F5 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: D1 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: D1 01 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: D1 01 00 B2 71 00 F4 [18:06:24]Write to MH i2c: 01 00 00 B3 71 24 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8A FB 47 00 50 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 94 01 00 F4 03 04 00 31 73 71 66 B6 04 01 00 00 2C 3B 40 5F E8 55 5C 56 [18:06:24]CommunicateWithHost err = 0 [18:06:24]CheckOFDResponse [18:06:24]1017 (14) - 77093643461234 [18:06:24]1041 (16) - 0000000000875093 [18:06:24]1040 (4) - 103500 [18:06:24]1012 (4) - 18.06.2024 11:44 [18:06:24]1206 (1) - 0 [18:06:24]OFD Sender: Remove packet 103500 [18:06:24]ProducePacketName [18:06:24]name=ofd_packets/00103500 [18:06:24]NVStorageDeleteData [18:06:24]OFD Sender: No OFD packet to send [18:06:24]*** Cut start [18:06:24]*** Partial cut [18:06:24]*** CUTSNS_PIN = 1 [18:06:24]*** CUTSNS_PIN = 0 [18:06:25]*** Brake cut motor [18:06:25]Read from MH i2c: 01 [18:06:25]MH_I2C_Read... [18:06:25]*** Stop cut motor [18:06:25]*** Cut end [18:06:25]Read from MH i2c: 01 07 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: 01 07 00 B3 71 00 00 00 00 00 FF 0F 39 [18:06:25]process_action close_receipt done [18:06:25]requested_data is exist [18:06:25]produce_requested_data [18:06:25]requested_item fm.sn is exist - process it [18:06:25]wFMCommunicate request_size=4 [18:06:25]MH_SAM_APDU [18:06:25]CAPDU: 80 11 00 00 [18:06:25]Write to MH i2c: E2 08 00 B4 71 80 11 00 00 00 00 00 00 9F [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 [18:06:25]MH_I2C_Read... [18:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:25]Read from MH i2c: E2 17 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 17 00 B4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [18:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:06:25]wFMCommunicate OK [18:06:25]requested_item fd.num is exist - process it [18:06:25]SAM_PROTO_GetFieldsCounters [18:06:25]wFMCommunicate request_size=4 [18:06:25]MH_SAM_APDU [18:06:25]CAPDU: 80 13 00 00 [18:06:25]Write to MH i2c: E2 08 00 B5 71 80 13 00 00 00 00 00 00 A2 [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:25]Read from MH i2c: E2 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 62 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 62 00 B5 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:25]wFMCommunicate OK [18:06:25]SAM_PROTO_GetFieldsCounters done [18:06:25]requested_item shift.num is exist - process it [18:06:25]requested_item shift.opened is exist - process it [18:06:25]req_shift_opened [18:06:25]FM_GetShiftState [18:06:25]SAM_PROTO_GetShiftState [18:06:25]wFMCommunicate request_size=4 [18:06:25]MH_SAM_APDU [18:06:25]CAPDU: 80 13 01 00 [18:06:25]Write to MH i2c: E2 08 00 B6 71 80 13 01 00 00 00 00 00 A4 [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:25]Read from MH i2c: E2 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 0E 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: E2 0E 00 B6 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 25 [18:06:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:06:25]wFMCommunicate OK [18:06:25]SAM_PROTO_GetShiftState done [18:06:25]FM_GetShiftState done [18:06:25]req_shift_opened done [18:06:25]requested_item shift.open_date is exist - process it [18:06:25]req_shift_open_date [18:06:25]req_shift_open_date done [18:06:25]produce_requested_data done [18:06:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103500,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:06:25]process_action_free close_receipt [18:06:25]json_value_free [18:06:25]json_value_free done [18:06:25]process_json_proto returns [18:06:25]Send response to host [18:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103500,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:06:25]free response buf [18:06:25]execute_script done [18:06:25]execute_script returns [18:06:25]free content buf [18:06:25]Sock 9.Close socket [18:06:25]Sock 9.Thread stoped [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:00]accept exits with 7 [18:08:00]New connection [18:08:00]New thread 3067084132 created [18:08:00]Thread 3067227492 joined [18:08:00]Waiting for new connection... [18:08:00] Sock 7.Parse request [18:08:00]Sock 7.Check first char [18:08:00]Sock 7.First char is OK [18:08:00]request: POST /json_proto HTTP/1.0 [18:08:00]Method: POST [18:08:00]URL: /json_proto [18:08:00]Method is POST - this is cgi request [18:08:00]url: /json_proto [18:08:00]query_string will be loaded in cgi processing [18:08:00]execute_cgi json_proto POST (null) [18:08:00]execute_cgi path=json_proto method=POST [18:08:00]POST find Content-Length [18:08:00]Host: 172.17.38.133:8080 [18:08:00]Content-Length: 682 [18:08:00]Content-Type: application/json [18:08:00] [18:08:00]POST finish read [18:08:00]Found Content-Length = 682 [18:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:00]execute_script... [18:08:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:00]POST & json_proto [18:08:00]process_json_proto [18:08:00]json parsed OK: [18:08:00]protocol is kg_v1.0 [18:08:00]action value=close_receipt [18:08:00]process_action close_receipt [18:08:00]cmd_close_receipt [18:08:00]MH_GetDate [18:08:00]Write to MH i2c: F0 00 00 B7 71 17 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: F0 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: F0 09 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: F0 09 00 B7 71 00 08 CD 71 66 BD 8F 7C 64 F8 [18:08:00]GetLastDocTimeStamp 1718733989 [18:08:00]current date 1718734088 [18:08:00]FM_GetShiftState [18:08:00]SAM_PROTO_GetShiftState [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 13 01 00 [18:08:00]Write to MH i2c: E2 08 00 B8 71 80 13 01 00 00 00 00 00 A6 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0E 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0E 00 B8 71 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 27 [18:08:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:08:00]wFMCommunicate OK [18:08:00]SAM_PROTO_GetShiftState done [18:08:00]FM_GetShiftState done [18:08:00]opened in 1718670284 [18:08:00]opened+sec_in_day 1718756684 [18:08:00]quantity*price = 100064 [18:08:00]sum+1 = 100066 [18:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 185 18.06.2024 18:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103501 ФПД: 97247970253212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180808&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103501&fm=97247970253212&tin=02508201610067®Number=0000000000092785&sum=100000 [18:08:01]StoreToDocumentArchive [18:08:01]shift 352 fd 103501 [18:08:01]save to /storage/0352/doc_00103501 [18:08:01]save last doc name /storage/0352/doc_00103501 to /storage/kkm_last_doc_name [18:08:01]save OK [18:08:01]Clear old archive folders... [18:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:01]tlvbuf is 0139E090 [18:08:01]SAM_PROTO_ClearQueue [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 09 00 00 [18:08:01]Write to MH i2c: E2 08 00 C5 71 80 09 00 00 00 00 00 00 A8 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 C5 71 00 90 00 AA [18:08:01]RAPDU: 90 00 [18:08:01]wFMCommunicate OK [18:08:01]SAM_PROTO_ClearQueue done [18:08:01]KKMCreateOFDPacket [18:08:01]OFDProtocolAddRootSTLVToBuf [18:08:01]FM_MakeSignedData [18:08:01]FM_MakeSignedData [18:08:01]SAM_PROTO_SignData [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 0D 01 02 [18:08:01]Write to MH i2c: E2 08 00 C6 71 80 0D 01 02 00 00 00 00 B0 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 C6 71 00 90 00 AB [18:08:01]RAPDU: 90 00 [18:08:01]wFMCommunicate OK [18:08:01]wFMCommunicate request_size=255 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 08 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 94 01 00 35 04 06 00 58 [18:08:01]Write to MH i2c: E2 02 01 C7 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 08 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 94 01 00 35 04 06 00 58 00 00 BA [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 C7 71 00 90 00 AC [18:08:01]RAPDU: 90 00 [18:08:01]wFMCommunicate OK [18:08:01]wFMCommunicate request_size=10 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 0D 02 02 05 72 4E B8 D9 9C [18:08:01]Write to MH i2c: E2 0D 00 C8 71 80 0D 02 02 05 00 72 4E B8 D9 9C 00 00 AA [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 03 00 C8 71 00 90 00 AD [18:08:01]RAPDU: 90 00 [18:08:01]wFMCommunicate OK [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 0D 03 02 [18:08:01]Write to MH i2c: E2 08 00 C9 71 80 0D 03 02 00 00 00 00 B5 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 0B 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 0B 00 C9 71 00 0D 81 C4 56 6C 53 7A 10 90 00 A7 [18:08:01]RAPDU: 0D 81 C4 56 6C 53 7A 10 90 00 [18:08:01]wFMCommunicate OK [18:08:01]SAM_PROTO_SignData done [18:08:01]FM_MakeSignedData done [18:08:01]CreateOFDProtocolMessage [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 11 00 00 [18:08:01]Write to MH i2c: E2 08 00 CA 71 80 11 00 00 00 00 00 00 B5 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 17 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 17 00 CA 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [18:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:01]wFMCommunicate OK [18:08:01]CreateOFDProtocolMessage done [18:08:01]OFDSenderStorePacket 103501 [18:08:01]StoreOFDPacket docnum=103501 [18:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BC F7 07 01 F2 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 08 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 94 01 00 35 04 06 00 58 72 4E B8 D9 9C 0D 81 C4 56 6C 53 7A 10 [18:08:01]CheckFolder [18:08:01]dirname=/storage/ofd_packets [18:08:01]CheckFolder done [18:08:01]ProducePacketName [18:08:01]name=ofd_packets/00103501 [18:08:01]NVStorageSaveData ofd_packets/00103501 [18:08:01]File name is /storage/ofd_packets/00103501 [18:08:01]Write 301 bytes [18:08:01]NVStorageSaveData done [18:08:01]OFDSenderStorePacket done [18:08:01]KKMCreateOFDPacket done [18:08:01]NVStorageSaveData kkm_last_timestamp [18:08:01]File name is /storage/kkm_last_timestamp [18:08:01]Write 4 bytes [18:08:01]NVStorageSaveData done [18:08:01]ExternCall_PrintAddStr [18:08:01]wPrintStart [18:08:01]Write to MH i2c: 01 00 00 CB 71 3C [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 07 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 07 00 CB 71 00 00 00 00 00 FF 0F 51 [18:08:01]RasterBufferAndPrint [18:08:01]line Счет N : (1)672693 [18:08:01]line ИНН: 02508201610067 [18:08:01]line Контрольно-Кассовый Чек [18:08:01]line ПРОДАЖА [18:08:01]line ТРК (МРК, ГНК) : 42 [18:08:01]line Товар: 2710124130 [18:08:01]line Аи-92-К-5 [18:08:01]line 15.070 * 66.40 [18:08:01]line = 1000.65 [18:08:01]line НДС 12% НСП 1% [18:08:01]line > о реализуемом товаре [18:08:01]line ОКРУГЛЕНИЕ: -0.65 [18:08:01]line ИТОГО: 1000.00 [18:08:01]line Внесено: 1000.00 [18:08:01]line СДАЧА: 0.00 [18:08:01]line НСП 1% : 8.85 [18:08:01]line НДС 12% : 106.26 [18:08:01]line Наличными: 1000.00 [18:08:01]line Безнал.: 0.00 [18:08:01]line Место: АЗС № 120 "Партнер Нефть" [18:08:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:08:01]line СНО: Общий режим [18:08:01]line Чек 185 18.06.2024 18:08 [18:08:01]line Смена: 352 ФФД: 1.0 [18:08:01]line ЗНМ: 0300000164 [18:08:01]line РНМ: 0000000000092785 [18:08:01]line Версия ККМ: 001 [18:08:01]line ФМ: 0000000000875093 [18:08:01]line ФД: 103501 [18:08:01]line ФПД: 97247970253212 [18:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180808&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103501&fm=97247970253212&tin=02508201610067®Number=0000000000092785&sum=100000 [18:08:02]OFD Sender: Processing packet 103501 [packets to send 17, broken 16] [18:08:02]ProducePacketName [18:08:02]name=ofd_packets/00103501 [18:08:02]OFD Sender: To server: pG, [18:08:02]CommunicateWithHost lk.salyk.kg:30040 [18:08:02]ConnectInit lk.salyk.kg [18:08:02]written 0, free lines is 4095 [18:08:02]Connected sock=10 [18:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BC F7 07 01 F2 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 08 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 94 01 00 35 04 06 00 58 72 4E B8 D9 9C 0D 81 C4 56 6C 53 7A 10 [18:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3C D2 47 00 66 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 94 01 00 F4 03 04 00 93 73 71 66 B6 04 01 00 00 DA C4 D6 93 C5 D4 16 5E [18:08:02]CommunicateWithHost err = 0 [18:08:02]CheckOFDResponse [18:08:02]1017 (14) - 77093643461234 [18:08:02]1041 (16) - 0000000000875093 [18:08:02]1040 (4) - 103501 [18:08:02]1012 (4) - 18.06.2024 11:46 [18:08:02]1206 (1) - 0 [18:08:02]OFD Sender: Remove packet 103501 [18:08:02]ProducePacketName [18:08:02]name=ofd_packets/00103501 [18:08:02]NVStorageDeleteData [18:08:02]Write to MH i2c: 01 00 00 F6 71 67 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: 01 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: 01 07 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: 01 07 00 F6 71 00 00 00 00 00 ED 0C 67 [18:08:02]RasterBufferAndPrint [18:08:02]line [18:08:02]line [18:08:02]line [18:08:02]line [18:08:02]line [18:08:02]written 0, free lines is 3315 [18:08:02]MH_Cut [18:08:02]Write to MH i2c: D1 01 00 FD 71 01 40 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: D1 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: D1 01 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: D1 01 00 FD 71 00 3F [18:08:02]Write to MH i2c: 01 00 00 FE 71 6F [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:03]OFD Sender: No OFD packet to send [18:08:03]*** Cut start [18:08:03]*** Partial cut [18:08:03]*** CUTSNS_PIN = 1 [18:08:03]*** CUTSNS_PIN = 0 [18:08:03]*** Brake cut motor [18:08:03]Read from MH i2c: 01 [18:08:03]MH_I2C_Read... [18:08:03]*** Stop cut motor [18:08:03]*** Cut end [18:08:03]Read from MH i2c: 01 07 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: 01 07 00 FE 71 00 00 00 00 00 FF 0F 84 [18:08:03]process_action close_receipt done [18:08:03]requested_data is exist [18:08:03]produce_requested_data [18:08:03]requested_item fm.sn is exist - process it [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 11 00 00 [18:08:03]Write to MH i2c: E2 08 00 FF 71 80 11 00 00 00 00 00 00 EA [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 FF 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [18:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:04]wFMCommunicate OK [18:08:04]requested_item fd.num is exist - process it [18:08:04]SAM_PROTO_GetFieldsCounters [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 13 00 00 [18:08:04]Write to MH i2c: E2 08 00 00 72 80 13 00 00 00 00 00 00 EE [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 62 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 62 00 00 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [18:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_GetFieldsCounters done [18:08:04]requested_item shift.num is exist - process it [18:08:04]requested_item shift.opened is exist - process it [18:08:04]req_shift_opened [18:08:04]FM_GetShiftState [18:08:04]SAM_PROTO_GetShiftState [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 13 01 00 [18:08:04]Write to MH i2c: E2 08 00 01 72 80 13 01 00 00 00 00 00 F0 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0E 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0E 00 01 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 71 [18:08:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_GetShiftState done [18:08:04]FM_GetShiftState done [18:08:04]req_shift_opened done [18:08:04]requested_item shift.open_date is exist - process it [18:08:04]req_shift_open_date [18:08:04]req_shift_open_date done [18:08:04]produce_requested_data done [18:08:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103501,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:08:04]process_action_free close_receipt [18:08:04]json_value_free [18:08:04]json_value_free done [18:08:04]process_json_proto returns [18:08:04]Send response to host [18:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103501,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:08:04]free response buf [18:08:04]execute_script done [18:08:04]execute_script returns [18:08:04]free content buf [18:08:04]Sock 7.Close socket [18:08:04]Sock 7.Thread stoped [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:19]accept exits with 9 [18:08:19]New connection [18:08:19]New thread 3067227492 created [18:08:19]Thread 3067084132 joined [18:08:19]Waiting for new connection... [18:08:19] Sock 9.Parse request [18:08:19]Sock 9.Check first char [18:08:19]Sock 9.First char is OK [18:08:19]request: POST /json_proto HTTP/1.0 [18:08:19]Method: POST [18:08:19]URL: /json_proto [18:08:19]Method is POST - this is cgi request [18:08:19]url: /json_proto [18:08:19]query_string will be loaded in cgi processing [18:08:19]execute_cgi json_proto POST (null) [18:08:19]execute_cgi path=json_proto method=POST [18:08:19]POST find Content-Length [18:08:19]Host: 172.17.38.133:8080 [18:08:19]Content-Length: 677 [18:08:19]Content-Type: application/json [18:08:19] [18:08:19]POST finish read [18:08:19]Found Content-Length = 677 [18:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.340, "sum" : 620.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:19]execute_script... [18:08: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)672694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.340, "sum" : 620.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:19]POST & json_proto [18:08:19]process_json_proto [18:08:19]json parsed OK: [18:08:19]protocol is kg_v1.0 [18:08:19]action value=close_receipt [18:08:19]process_action close_receipt [18:08:19]cmd_close_receipt [18:08:19]MH_GetDate [18:08:19]Write to MH i2c: F0 00 00 02 72 63 [18:08:19]Write i2c OK [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: F0 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: F0 09 00 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: F0 09 00 02 72 00 1B CD 71 66 BD 8F 7C 64 57 [18:08:19]GetLastDocTimeStamp 1718734088 [18:08:19]current date 1718734107 [18:08:19]FM_GetShiftState [18:08:19]SAM_PROTO_GetShiftState [18:08:19]wFMCommunicate request_size=4 [18:08:19]MH_SAM_APDU [18:08:19]CAPDU: 80 13 01 00 [18:08:19]Write to MH i2c: E2 08 00 03 72 80 13 01 00 00 00 00 00 F2 [18:08:19]Write i2c OK [18:08:19]MH_I2C_Read... [18:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:19]Read from MH i2c: E2 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: E2 0E 00 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: E2 0E 00 03 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 73 [18:08:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:08:19]wFMCommunicate OK [18:08:19]SAM_PROTO_GetShiftState done [18:08:19]FM_GetShiftState done [18:08:19]opened in 1718670284 [18:08:19]opened+sec_in_day 1718756684 [18:08:19]quantity*price = 62017 [18:08:19]sum+1 = 62019 [18:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 186 18.06.2024 18:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103502 ФПД: 2683013946767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180827&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103502&fm=2683013946767&tin=02508201610067®Number=0000000000092785&sum=62000 [18:08:20]StoreToDocumentArchive [18:08:20]shift 352 fd 103502 [18:08:20]save to /storage/0352/doc_00103502 [18:08:20]save last doc name /storage/0352/doc_00103502 to /storage/kkm_last_doc_name [18:08:20]save OK [18:08:20]Clear old archive folders... [18:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:20]tlvbuf is 0152C070 [18:08:20]SAM_PROTO_ClearQueue [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 09 00 00 [18:08:20]Write to MH i2c: E2 08 00 10 72 80 09 00 00 00 00 00 00 F4 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:20]Read from MH i2c: E2 03 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 10 72 00 90 00 F6 [18:08:20]RAPDU: 90 00 [18:08:20]wFMCommunicate OK [18:08:20]SAM_PROTO_ClearQueue done [18:08:20]KKMCreateOFDPacket [18:08:20]OFDProtocolAddRootSTLVToBuf [18:08:20]FM_MakeSignedData [18:08:20]FM_MakeSignedData [18:08:20]SAM_PROTO_SignData [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 0D 01 02 [18:08:20]Write to MH i2c: E2 08 00 11 72 80 0D 01 02 00 00 00 00 FC [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 11 72 00 90 00 F7 [18:08:20]RAPDU: 90 00 [18:08:20]wFMCommunicate OK [18:08:20]wFMCommunicate request_size=255 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1B CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 94 01 00 35 04 06 00 02 [18:08:20]Write to MH i2c: E2 02 01 12 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1B CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 94 01 00 35 04 06 00 02 00 00 E6 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 12 72 00 90 00 F8 [18:08:20]RAPDU: 90 00 [18:08:20]wFMCommunicate OK [18:08:20]wFMCommunicate request_size=10 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 0D 02 02 05 70 B0 17 DD 8F [18:08:20]Write to MH i2c: E2 0D 00 13 72 80 0D 02 02 05 00 70 B0 17 DD 8F 00 00 AC [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 03 00 13 72 00 90 00 F9 [18:08:20]RAPDU: 90 00 [18:08:20]wFMCommunicate OK [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 0D 03 02 [18:08:20]Write to MH i2c: E2 08 00 14 72 80 0D 03 02 00 00 00 00 01 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 0B 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 0B 00 14 72 00 15 E8 37 5B 11 E5 CC 3B 90 00 8E [18:08:20]RAPDU: 15 E8 37 5B 11 E5 CC 3B 90 00 [18:08:20]wFMCommunicate OK [18:08:20]SAM_PROTO_SignData done [18:08:20]FM_MakeSignedData done [18:08:20]CreateOFDProtocolMessage [18:08:20]wFMCommunicate request_size=4 [18:08:20]MH_SAM_APDU [18:08:20]CAPDU: 80 11 00 00 [18:08:20]Write to MH i2c: E2 08 00 15 72 80 11 00 00 00 00 00 00 01 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:20]Read from MH i2c: E2 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: E2 17 00 15 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [18:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:20]wFMCommunicate OK [18:08:20]CreateOFDProtocolMessage done [18:08:20]OFDSenderStorePacket 103502 [18:08:20]StoreOFDPacket docnum=103502 [18:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 7F 07 01 F5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1B CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 94 01 00 35 04 06 00 02 70 B0 17 DD 8F 15 E8 37 5B 11 E5 CC 3B [18:08:20]CheckFolder [18:08:20]dirname=/storage/ofd_packets [18:08:20]CheckFolder done [18:08:20]ProducePacketName [18:08:20]name=ofd_packets/00103502 [18:08:20]NVStorageSaveData ofd_packets/00103502 [18:08:20]File name is /storage/ofd_packets/00103502 [18:08:20]Write 301 bytes [18:08:20]NVStorageSaveData done [18:08:20]OFDSenderStorePacket done [18:08:20]KKMCreateOFDPacket done [18:08:20]NVStorageSaveData kkm_last_timestamp [18:08:20]File name is /storage/kkm_last_timestamp [18:08:20]Write 4 bytes [18:08:20]NVStorageSaveData done [18:08:20]ExternCall_PrintAddStr [18:08:20]wPrintStart [18:08:20]Write to MH i2c: 01 00 00 16 72 88 [18:08:20]Write i2c OK [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: 01 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: 01 07 00 [18:08:20]MH_I2C_Read... [18:08:20]Read from MH i2c: 01 07 00 16 72 00 00 00 00 00 FF 0F 9D [18:08:20]RasterBufferAndPrint [18:08:20]line Счет N : (1)672694 [18:08:20]line ИНН: 02508201610067 [18:08:20]line Контрольно-Кассовый Чек [18:08:20]line ПРОДАЖА [18:08:20]line ТРК (МРК, ГНК) : 32 [18:08:20]line Товар: 2710124130 [18:08:20]line Аи-92-К-5 [18:08:20]line 9.340 * 66.40 [18:08:20]line = 620.18 [18:08:20]line НДС 12% НСП 1% [18:08:20]line > о реализуемом товаре [18:08:20]line ОКРУГЛЕНИЕ: -0.18 [18:08:20]line ИТОГО: 620.00 [18:08:20]line Внесено: 620.00 [18:08:20]line СДАЧА: 0.00 [18:08:20]line НСП 1% : 5.49 [18:08:20]line НДС 12% : 65.86 [18:08:20]line Наличными: 620.00 [18:08:20]line Безнал.: 0.00 [18:08:20]line Место: АЗС № 120 "Партнер Нефть" [18:08:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:08:20]line СНО: Общий режим [18:08:20]line Чек 186 18.06.2024 18:08 [18:08:20]line Смена: 352 ФФД: 1.0 [18:08:20]line ЗНМ: 0300000164 [18:08:20]line РНМ: 0000000000092785 [18:08:20]line Версия ККМ: 001 [18:08:20]line ФМ: 0000000000875093 [18:08:20]line ФД: 103502 [18:08:20]line ФПД: 2683013946767 [18:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180827&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103502&fm=2683013946767&tin=02508201610067®Number=0000000000092785&sum=62000 [18:08:21]written 0, free lines is 4095 [18:08:21]OFD Sender: Processing packet 103502 [packets to send 17, broken 16] [18:08:21]ProducePacketName [18:08:21]name=ofd_packets/00103502 [18:08:21]OFD Sender: To server: pG, [18:08:21]CommunicateWithHost lk.salyk.kg:30040 [18:08:21]ConnectInit lk.salyk.kg [18:08:21]Connected sock=10 [18:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 7F 07 01 F5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1B CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 94 01 00 35 04 06 00 02 70 B0 17 DD 8F 15 E8 37 5B 11 E5 CC 3B [18:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 18 78 47 00 DB 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 35 30 39 33 10 04 04 00 4E 94 01 00 F4 03 04 00 A6 73 71 66 B6 04 01 00 00 58 70 92 74 DC B1 99 64 [18:08:21]CommunicateWithHost err = 0 [18:08:21]CheckOFDResponse [18:08:21]1017 (14) - 77093643461234 [18:08:21]1041 (16) - 0000000000875093 [18:08:21]1040 (4) - 103502 [18:08:21]1012 (4) - 18.06.2024 11:46 [18:08:21]1206 (1) - 0 [18:08:21]OFD Sender: Remove packet 103502 [18:08:21]ProducePacketName [18:08:21]name=ofd_packets/00103502 [18:08:21]NVStorageDeleteData [18:08:21]Write to MH i2c: 01 00 00 41 72 B3 [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: 01 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: 01 07 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: 01 07 00 41 72 00 00 00 00 00 04 0D CB [18:08:21]RasterBufferAndPrint [18:08:21]line [18:08:21]line [18:08:21]line [18:08:21]line [18:08:21]line [18:08:21]written 0, free lines is 3340 [18:08:21]MH_Cut [18:08:21]Write to MH i2c: D1 01 00 48 72 01 8C [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: D1 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: D1 01 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: D1 01 00 48 72 00 8B [18:08:21]Write to MH i2c: 01 00 00 49 72 BB [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:22]OFD Sender: No OFD packet to send [18:08:22]*** Cut start [18:08:22]*** Partial cut [18:08:22]*** CUTSNS_PIN = 1 [18:08:22]*** CUTSNS_PIN = 0 [18:08:22]*** Brake cut motor [18:08:23]Read from MH i2c: 01 [18:08:23]MH_I2C_Read... [18:08:23]*** Stop cut motor [18:08:23]*** Cut end [18:08:23]Read from MH i2c: 01 07 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: 01 07 00 49 72 00 00 00 00 00 FF 0F D0 [18:08:23]process_action close_receipt done [18:08:23]requested_data is exist [18:08:23]produce_requested_data [18:08:23]requested_item fm.sn is exist - process it [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 11 00 00 [18:08:23]Write to MH i2c: E2 08 00 4A 72 80 11 00 00 00 00 00 00 36 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 17 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 17 00 4A 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 89 [18:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:23]wFMCommunicate OK [18:08:23]requested_item fd.num is exist - process it [18:08:23]SAM_PROTO_GetFieldsCounters [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 13 00 00 [18:08:23]Write to MH i2c: E2 08 00 4B 72 80 13 00 00 00 00 00 00 39 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 62 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 62 00 4B 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:23]wFMCommunicate OK [18:08:23]SAM_PROTO_GetFieldsCounters done [18:08:23]requested_item shift.num is exist - process it [18:08:23]requested_item shift.opened is exist - process it [18:08:23]req_shift_opened [18:08:23]FM_GetShiftState [18:08:23]SAM_PROTO_GetShiftState [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 13 01 00 [18:08:23]Write to MH i2c: E2 08 00 4C 72 80 13 01 00 00 00 00 00 3B [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 0E 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 0E 00 4C 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BC [18:08:23]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:08:23]wFMCommunicate OK [18:08:23]SAM_PROTO_GetShiftState done [18:08:23]FM_GetShiftState done [18:08:23]req_shift_opened done [18:08:23]requested_item shift.open_date is exist - process it [18:08:23]req_shift_open_date [18:08:23]req_shift_open_date done [18:08:23]produce_requested_data done [18:08:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103502,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:08:23]process_action_free close_receipt [18:08:23]json_value_free [18:08:23]json_value_free done [18:08:23]process_json_proto returns [18:08:23]Send response to host [18:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103502,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:08:23]free response buf [18:08:23]execute_script done [18:08:23]execute_script returns [18:08:23]free content buf [18:08:23]Sock 9.Close socket [18:08:23]Sock 9.Thread stoped [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:54]accept exits with 7 [18:10:54]New connection [18:10:54]New thread 3067084132 created [18:10:54]Thread 3067227492 joined [18:10:54]Waiting for new connection... [18:10:54] Sock 7.Parse request [18:10:54]Sock 7.Check first char [18:10:54]Sock 7.First char is OK [18:10:54]request: POST /json_proto HTTP/1.0 [18:10:54]Method: POST [18:10:54]URL: /json_proto [18:10:54]Method is POST - this is cgi request [18:10:54]url: /json_proto [18:10:54]query_string will be loaded in cgi processing [18:10:54]execute_cgi json_proto POST (null) [18:10:54]execute_cgi path=json_proto method=POST [18:10:54]POST find Content-Length [18:10:54]Host: 172.17.38.133:8080 [18:10:54]Content-Length: 816 [18:10:54]Content-Type: application/json [18:10:54] [18:10:54]POST finish read [18:10:54]Found Content-Length = 816 [18:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:54]execute_script... [18:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:54]POST & json_proto [18:10:54]process_json_proto [18:10:54]json parsed OK: [18:10:54]protocol is kg_v1.0 [18:10:54]action value=close_receipt [18:10:54]process_action close_receipt [18:10:54]cmd_close_receipt [18:10:54]MH_GetDate [18:10:54]Write to MH i2c: F0 00 00 4D 72 AE [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: F0 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: F0 09 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: F0 09 00 4D 72 00 B6 CD 71 66 BD 8F 7C 64 3D [18:10:54]GetLastDocTimeStamp 1718734107 [18:10:54]current date 1718734262 [18:10:54]FM_GetShiftState [18:10:54]SAM_PROTO_GetShiftState [18:10:54]wFMCommunicate request_size=4 [18:10:54]MH_SAM_APDU [18:10:54]CAPDU: 80 13 01 00 [18:10:54]Write to MH i2c: E2 08 00 4E 72 80 13 01 00 00 00 00 00 3D [18:10:54]Write i2c OK [18:10:54]MH_I2C_Read... [18:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:54]Read from MH i2c: E2 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 0E 00 [18:10:54]MH_I2C_Read... [18:10:54]Read from MH i2c: E2 0E 00 4E 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 BE [18:10:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:10:54]wFMCommunicate OK [18:10:54]SAM_PROTO_GetShiftState done [18:10:54]FM_GetShiftState done [18:10:54]opened in 1718670284 [18:10:54]opened+sec_in_day 1718756684 [18:10:54]quantity*price = 50030 [18:10:54]sum+1 = 50031 [18:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.30 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.30 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 187 18.06.2024 18:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103503 ФПД: 196885473618841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181102&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103503&fm=196885473618841&tin=02508201610067®Number=0000000000092785&sum=50030 [18:10:56]StoreToDocumentArchive [18:10:56]shift 352 fd 103503 [18:10:56]save to /storage/0352/doc_00103503 [18:10:56]save last doc name /storage/0352/doc_00103503 to /storage/kkm_last_doc_name [18:10:56]save OK [18:10:56]Clear old archive folders... [18:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:56]tlvbuf is 01358990 [18:10:56]SAM_PROTO_ClearQueue [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 09 00 00 [18:10:56]Write to MH i2c: E2 08 00 5B 72 80 09 00 00 00 00 00 00 3F [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 5B 72 00 90 00 41 [18:10:56]RAPDU: 90 00 [18:10:56]wFMCommunicate OK [18:10:56]SAM_PROTO_ClearQueue done [18:10:56]KKMCreateOFDPacket [18:10:56]OFDProtocolAddRootSTLVToBuf [18:10:56]FM_MakeSignedData [18:10:56]FM_MakeSignedData [18:10:56]SAM_PROTO_SignData [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 0D 01 02 [18:10:56]Write to MH i2c: E2 08 00 5C 72 80 0D 01 02 00 00 00 00 47 [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 5C 72 00 90 00 42 [18:10:56]RAPDU: 90 00 [18:10:56]wFMCommunicate OK [18:10:56]wFMCommunicate request_size=255 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B6 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 94 01 00 35 04 06 00 B3 [18:10:56]Write to MH i2c: E2 02 01 5D 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B6 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 94 01 00 35 04 06 00 B3 00 00 12 [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 5D 72 00 90 00 43 [18:10:56]RAPDU: 90 00 [18:10:56]wFMCommunicate OK [18:10:56]wFMCommunicate request_size=10 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 0D 02 02 05 10 F8 B7 6B 99 [18:10:56]Write to MH i2c: E2 0D 00 5E 72 80 0D 02 02 05 00 10 F8 B7 6B 99 00 00 17 [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 03 00 5E 72 00 90 00 44 [18:10:56]RAPDU: 90 00 [18:10:56]wFMCommunicate OK [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 0D 03 02 [18:10:56]Write to MH i2c: E2 08 00 5F 72 80 0D 03 02 00 00 00 00 4C [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 0B 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 0B 00 5F 72 00 96 7E 73 E8 BA 41 78 E4 90 00 13 [18:10:56]RAPDU: 96 7E 73 E8 BA 41 78 E4 90 00 [18:10:56]wFMCommunicate OK [18:10:56]SAM_PROTO_SignData done [18:10:56]FM_MakeSignedData done [18:10:56]CreateOFDProtocolMessage [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 11 00 00 [18:10:56]Write to MH i2c: E2 08 00 60 72 80 11 00 00 00 00 00 00 4C [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 17 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 17 00 60 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [18:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:10:56]wFMCommunicate OK [18:10:56]CreateOFDProtocolMessage done [18:10:56]OFDSenderStorePacket 103503 [18:10:56]StoreOFDPacket docnum=103503 [18:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 F4 07 01 B3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B6 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 94 01 00 35 04 06 00 B3 10 F8 B7 6B 99 96 7E 73 E8 BA 41 78 E4 [18:10:56]CheckFolder [18:10:56]dirname=/storage/ofd_packets [18:10:56]CheckFolder done [18:10:56]ProducePacketName [18:10:56]name=ofd_packets/00103503 [18:10:56]NVStorageSaveData ofd_packets/00103503 [18:10:56]File name is /storage/ofd_packets/00103503 [18:10:56]Write 301 bytes [18:10:56]NVStorageSaveData done [18:10:56]OFDSenderStorePacket done [18:10:56]KKMCreateOFDPacket done [18:10:56]NVStorageSaveData kkm_last_timestamp [18:10:56]File name is /storage/kkm_last_timestamp [18:10:56]Write 4 bytes [18:10:56]NVStorageSaveData done [18:10:56]ExternCall_PrintAddStr [18:10:56]wPrintStart [18:10:56]Write to MH i2c: 01 00 00 61 72 D3 [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: 01 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: 01 07 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: 01 07 00 61 72 00 00 00 00 00 FF 0F E8 [18:10:56]RasterBufferAndPrint [18:10:56]line Счет N : (1)672696 [18:10:56]line ИНН: 02508201610067 [18:10:56]line Контрольно-Кассовый Чек [18:10:56]line ПРОДАЖА [18:10:56]line ТРК (МРК, ГНК) : 31 [18:10:56]line Товар: 2710124500 [18:10:56]line Аи-95-К-5 [18:10:56]line 6.770 * 73.90 [18:10:56]line = 500.30 [18:10:56]line НДС 12% НСП 1% [18:10:56]line > о реализуемом товаре [18:10:56]line ИТОГО: 500.30 [18:10:56]line НСП 1% : 4.43 [18:10:56]line НДС 12% : 53.13 [18:10:56]line Наличными: 0.00 [18:10:56]line Безнал.: 500.30 [18:10:56]line Место: АЗС № 120 "Партнер Нефть" [18:10:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:10:56]line СНО: Общий режим [18:10:56]line Чек 187 18.06.2024 18:11 [18:10:56]line Смена: 352 ФФД: 1.0 [18:10:56]line ЗНМ: 0300000164 [18:10:56]line РНМ: 0000000000092785 [18:10:56]line Версия ККМ: 001 [18:10:56]line Платежная система: Бакай Банк [18:10:56]line ФМ: 0000000000875093 [18:10:56]line ФД: 103503 [18:10:56]line ФПД: 196885473618841 [18:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181102&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103503&fm=196885473618841&tin=02508201610067®Number=0000000000092785&sum=50030 [18:10:56]written 0, free lines is 4095 [18:10:56]OFD Sender: Processing packet 103503 [packets to send 17, broken 16] [18:10:56]ProducePacketName [18:10:56]name=ofd_packets/00103503 [18:10:56]OFD Sender: To server: pG, [18:10:56]CommunicateWithHost lk.salyk.kg:30040 [18:10:56]ConnectInit lk.salyk.kg [18:10:57]Connected sock=10 [18:10:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 F4 07 01 B3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 B6 CD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 94 01 00 35 04 06 00 B3 10 F8 B7 6B 99 96 7E 73 E8 BA 41 78 E4 [18:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 16 89 47 00 21 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 94 01 00 F4 03 04 00 42 74 71 66 B6 04 01 00 00 81 D9 AB 90 D9 06 1B 2C [18:10:57]CommunicateWithHost err = 0 [18:10:57]CheckOFDResponse [18:10:57]1017 (14) - 77093643461234 [18:10:57]1041 (16) - 0000000000875093 [18:10:57]1040 (4) - 103503 [18:10:57]1012 (4) - 18.06.2024 11:49 [18:10:57]1206 (1) - 0 [18:10:57]OFD Sender: Remove packet 103503 [18:10:57]ProducePacketName [18:10:57]name=ofd_packets/00103503 [18:10:57]NVStorageDeleteData [18:10:57]Write to MH i2c: 01 00 00 8B 72 FD [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: 01 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: 01 07 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: 01 07 00 8B 72 00 00 00 00 00 FE 0C 0E [18:10:57]RasterBufferAndPrint [18:10:57]line [18:10:57]line [18:10:57]line [18:10:57]line [18:10:57]line [18:10:57]written 0, free lines is 3332 [18:10:57]MH_Cut [18:10:57]Write to MH i2c: D1 01 00 92 72 01 D6 [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: D1 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: D1 01 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: D1 01 00 92 72 00 D5 [18:10:57]Write to MH i2c: 01 00 00 93 72 05 [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]OFD Sender: No OFD packet to send [18:10:58]*** Cut start [18:10:58]*** Partial cut [18:10:58]*** CUTSNS_PIN = 1 [18:10:58]*** CUTSNS_PIN = 0 [18:10:58]*** Brake cut motor [18:10:58]Read from MH i2c: 01 [18:10:58]MH_I2C_Read... [18:10:58]*** Stop cut motor [18:10:58]*** Cut end [18:10:58]Read from MH i2c: 01 07 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: 01 07 00 93 72 00 00 00 00 00 FF 0F 1A [18:10:58]process_action close_receipt done [18:10:58]requested_data is exist [18:10:58]produce_requested_data [18:10:58]requested_item fm.sn is exist - process it [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 11 00 00 [18:10:58]Write to MH i2c: E2 08 00 94 72 80 11 00 00 00 00 00 00 80 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 17 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 17 00 94 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [18:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:10:58]wFMCommunicate OK [18:10:58]requested_item fd.num is exist - process it [18:10:58]SAM_PROTO_GetFieldsCounters [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 13 00 00 [18:10:58]Write to MH i2c: E2 08 00 95 72 80 13 00 00 00 00 00 00 83 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 62 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 62 00 95 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [18:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_GetFieldsCounters done [18:10:58]requested_item shift.num is exist - process it [18:10:58]requested_item shift.opened is exist - process it [18:10:58]req_shift_opened [18:10:58]FM_GetShiftState [18:10:58]SAM_PROTO_GetShiftState [18:10:58]wFMCommunicate request_size=4 [18:10:58]MH_SAM_APDU [18:10:58]CAPDU: 80 13 01 00 [18:10:58]Write to MH i2c: E2 08 00 96 72 80 13 01 00 00 00 00 00 85 [18:10:58]Write i2c OK [18:10:58]MH_I2C_Read... [18:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:58]Read from MH i2c: E2 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0E 00 [18:10:58]MH_I2C_Read... [18:10:58]Read from MH i2c: E2 0E 00 96 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 06 [18:10:58]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:10:58]wFMCommunicate OK [18:10:58]SAM_PROTO_GetShiftState done [18:10:58]FM_GetShiftState done [18:10:58]req_shift_opened done [18:10:58]requested_item shift.open_date is exist - process it [18:10:58]req_shift_open_date [18:10:58]req_shift_open_date done [18:10:58]produce_requested_data done [18:10:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103503,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:10:58]process_action_free close_receipt [18:10:58]json_value_free [18:10:58]json_value_free done [18:10:58]process_json_proto returns [18:10:58]Send response to host [18:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103503,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:10:58]free response buf [18:10:58]execute_script done [18:10:58]execute_script returns [18:10:58]free content buf [18:10:58]Sock 7.Close socket [18:10:58]Sock 7.Thread stoped [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:03]accept exits with 9 [18:12:03]New connection [18:12:03]New thread 3067227492 created [18:12:03]Thread 3067084132 joined [18:12:03]Waiting for new connection... [18:12:03] Sock 9.Parse request [18:12:03]Sock 9.Check first char [18:12:03]Sock 9.First char is OK [18:12:03]request: POST /json_proto HTTP/1.0 [18:12:03]Method: POST [18:12:03]URL: /json_proto [18:12:03]Method is POST - this is cgi request [18:12:03]url: /json_proto [18:12:03]query_string will be loaded in cgi processing [18:12:03]execute_cgi json_proto POST (null) [18:12:03]execute_cgi path=json_proto method=POST [18:12:03]POST find Content-Length [18:12:03]Host: 172.17.38.133:8080 [18:12:03]Content-Length: 1157 [18:12:03]Content-Type: application/json [18:12:03] [18:12:03]POST finish read [18:12:03]Found Content-Length = 1157 [18:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672697\u000A18.06.2024 17:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:03]execute_script... [18:12:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672697\u000A18.06.2024 17:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:03]POST & json_proto [18:12:03]process_json_proto [18:12:03]json parsed OK: [18:12:03]protocol is kg_v1.0 [18:12:03]action value=print_text [18:12:03]process_action print_text [18:12:03]cmd_print_text [18:12:03]ExternCall_PrintAddStr [18:12:03]wPrintStart [18:12:03]Write to MH i2c: 01 00 00 97 72 09 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 97 72 00 00 00 00 00 FF 0F 1E [18:12:03]RasterBufferAndPrint [18:12:03]line *****ТОВАРНЫЙ ЧЕК***** [18:12:03]line АЗС 120 [18:12:03]line Партнер нефть [18:12:03]line 02508201610067 [18:12:03]line Кассир : Асанбаев Н. [18:12:03]line Счет N : (1)672697 [18:12:03]line 18.06.2024 17:49 [18:12:03]line ПРОДАЖА [18:12:03]line ТРК (МРК, ГНК): 42 [18:12:03]line Вид ГСМ : 2710124130 [18:12:03]line Аи-92-К-5 [18:12:03]line 20.000 x 66.40 [18:12:03]line ИТОГ: 1328.00 [18:12:03]line Тип оплаты: Талоны: ТК ГПНА Online [18:12:03]line 30086351 [18:12:03]line ______________________ [18:12:03]line (подпись) [18:12:03]written 0, free lines is 4095 [18:12:03]Write to MH i2c: 01 00 00 AB 72 1D [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 AB 72 00 00 00 00 00 11 0E 43 [18:12:03]RasterBufferAndPrint [18:12:03]line [18:12:03]line [18:12:03]line [18:12:03]line [18:12:03]line [18:12:03]written 0, free lines is 3603 [18:12:03]MH_Cut [18:12:03]Write to MH i2c: D1 01 00 B2 72 01 F6 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: D1 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: D1 01 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: D1 01 00 B2 72 00 F5 [18:12:03]Write to MH i2c: 01 00 00 B3 72 25 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** Cut start [18:12:03]*** Partial cut [18:12:03]*** CUTSNS_PIN = 1 [18:12:03]*** CUTSNS_PIN = 0 [18:12:04]*** Brake cut motor [18:12:04]Read from MH i2c: 01 [18:12:04]MH_I2C_Read... [18:12:04]*** Stop cut motor [18:12:04]*** Cut end [18:12:04]Read from MH i2c: 01 07 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 07 00 B3 72 00 00 00 00 00 FF 0F 3A [18:12:04]process_action print_text done [18:12:04]requested_data is exist [18:12:04]produce_requested_data [18:12:04]requested_item fm.sn is exist - process it [18:12:04]wFMCommunicate request_size=4 [18:12:04]MH_SAM_APDU [18:12:04]CAPDU: 80 11 00 00 [18:12:04]Write to MH i2c: E2 08 00 B4 72 80 11 00 00 00 00 00 00 A0 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:04]Read from MH i2c: E2 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 17 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 17 00 B4 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F3 [18:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:12:04]wFMCommunicate OK [18:12:04]requested_item fd.num is exist - process it [18:12:04]SAM_PROTO_GetFieldsCounters [18:12:04]wFMCommunicate request_size=4 [18:12:04]MH_SAM_APDU [18:12:04]CAPDU: 80 13 00 00 [18:12:04]Write to MH i2c: E2 08 00 B5 72 80 13 00 00 00 00 00 00 A3 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:04]Read from MH i2c: E2 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 62 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 62 00 B5 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [18:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:04]wFMCommunicate OK [18:12:04]SAM_PROTO_GetFieldsCounters done [18:12:04]requested_item shift.num is exist - process it [18:12:04]requested_item shift.opened is exist - process it [18:12:04]req_shift_opened [18:12:04]FM_GetShiftState [18:12:04]SAM_PROTO_GetShiftState [18:12:04]wFMCommunicate request_size=4 [18:12:04]MH_SAM_APDU [18:12:04]CAPDU: 80 13 01 00 [18:12:04]Write to MH i2c: E2 08 00 B6 72 80 13 01 00 00 00 00 00 A5 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:04]Read from MH i2c: E2 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 0E 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: E2 0E 00 B6 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 26 [18:12:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:12:04]wFMCommunicate OK [18:12:04]SAM_PROTO_GetShiftState done [18:12:04]FM_GetShiftState done [18:12:04]req_shift_opened done [18:12:04]requested_item shift.open_date is exist - process it [18:12:04]req_shift_open_date [18:12:04]req_shift_open_date done [18:12:04]produce_requested_data done [18:12:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103503,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:12:04]process_action_free print_text [18:12:04]json_value_free [18:12:04]json_value_free done [18:12:04]process_json_proto returns [18:12:04]Send response to host [18:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103503,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:12:04]free response buf [18:12:04]execute_script done [18:12:04]execute_script returns [18:12:04]free content buf [18:12:04]Sock 9.Close socket [18:12:04]Sock 9.Thread stoped [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:30]accept exits with 7 [18:13:30]New connection [18:13:30]New thread 3067084132 created [18:13:30]Thread 3067227492 joined [18:13:30]Waiting for new connection... [18:13:30] Sock 7.Parse request [18:13:30]Sock 7.Check first char [18:13:30]Sock 7.First char is OK [18:13:30]request: POST /json_proto HTTP/1.0 [18:13:30]Method: POST [18:13:30]URL: /json_proto [18:13:30]Method is POST - this is cgi request [18:13:30]url: /json_proto [18:13:30]query_string will be loaded in cgi processing [18:13:30]execute_cgi json_proto POST (null) [18:13:30]execute_cgi path=json_proto method=POST [18:13:30]POST find Content-Length [18:13:30]Host: 172.17.38.133:8080 [18:13:30]Content-Length: 682 [18:13:30]Content-Type: application/json [18:13:30] [18:13:30]POST finish read [18:13:30]Found Content-Length = 682 [18:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:30]execute_script... [18:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:30]POST & json_proto [18:13:30]process_json_proto [18:13:30]json parsed OK: [18:13:30]protocol is kg_v1.0 [18:13:30]action value=close_receipt [18:13:30]process_action close_receipt [18:13:30]cmd_close_receipt [18:13:30]MH_GetDate [18:13:30]Write to MH i2c: F0 00 00 B7 72 18 [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 09 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 09 00 B7 72 00 52 CE 71 66 BD 8F 7C 64 44 [18:13:30]GetLastDocTimeStamp 1718734262 [18:13:30]current date 1718734418 [18:13:30]FM_GetShiftState [18:13:30]SAM_PROTO_GetShiftState [18:13:30]wFMCommunicate request_size=4 [18:13:30]MH_SAM_APDU [18:13:30]CAPDU: 80 13 01 00 [18:13:30]Write to MH i2c: E2 08 00 B8 72 80 13 01 00 00 00 00 00 A7 [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:30]Read from MH i2c: E2 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 B8 72 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 28 [18:13:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:13:30]wFMCommunicate OK [18:13:30]SAM_PROTO_GetShiftState done [18:13:30]FM_GetShiftState done [18:13:30]opened in 1718670284 [18:13:30]opened+sec_in_day 1718756684 [18:13:30]quantity*price = 50009 [18:13:30]sum+1 = 50010 [18:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 188 18.06.2024 18:13 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103504 ФПД: 19110894576457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181338&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103504&fm=19110894576457&tin=02508201610067®Number=0000000000092785&sum=50000 [18:13:31]StoreToDocumentArchive [18:13:31]shift 352 fd 103504 [18:13:31]save to /storage/0352/doc_00103504 [18:13:31]save last doc name /storage/0352/doc_00103504 to /storage/kkm_last_doc_name [18:13:31]save OK [18:13:31]Clear old archive folders... [18:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:13:31]tlvbuf is 014B2670 [18:13:31]SAM_PROTO_ClearQueue [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 09 00 00 [18:13:31]Write to MH i2c: E2 08 00 C5 72 80 09 00 00 00 00 00 00 A9 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 C5 72 00 90 00 AB [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]SAM_PROTO_ClearQueue done [18:13:31]KKMCreateOFDPacket [18:13:31]OFDProtocolAddRootSTLVToBuf [18:13:31]FM_MakeSignedData [18:13:31]FM_MakeSignedData [18:13:31]SAM_PROTO_SignData [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 01 02 [18:13:31]Write to MH i2c: E2 08 00 C6 72 80 0D 01 02 00 00 00 00 B1 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 C6 72 00 90 00 AC [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]wFMCommunicate request_size=255 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 52 CE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 94 01 00 35 04 06 00 [18:13:31]Write to MH i2c: E2 02 01 C7 72 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 52 CE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 94 01 00 35 04 06 00 00 00 42 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 C7 72 00 90 00 AD [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]wFMCommunicate request_size=11 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 02 02 06 11 61 9A 15 23 49 [18:13:31]Write to MH i2c: E2 0E 00 C8 72 80 0D 02 02 06 00 11 61 9A 15 23 49 00 00 4D [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 C8 72 00 90 00 AE [18:13:32]RAPDU: 90 00 [18:13:32]wFMCommunicate OK [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 0D 03 02 [18:13:32]Write to MH i2c: E2 08 00 C9 72 80 0D 03 02 00 00 00 00 B6 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0B 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0B 00 C9 72 00 70 55 8C 44 E8 32 01 23 90 00 8A [18:13:32]RAPDU: 70 55 8C 44 E8 32 01 23 90 00 [18:13:32]wFMCommunicate OK [18:13:32]SAM_PROTO_SignData done [18:13:32]FM_MakeSignedData done [18:13:32]CreateOFDProtocolMessage [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 11 00 00 [18:13:32]Write to MH i2c: E2 08 00 CA 72 80 11 00 00 00 00 00 00 B6 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 17 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 17 00 CA 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [18:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:13:32]wFMCommunicate OK [18:13:32]CreateOFDProtocolMessage done [18:13:32]OFDSenderStorePacket 103504 [18:13:32]StoreOFDPacket docnum=103504 [18:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 41 3B 08 01 06 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 52 CE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 94 01 00 35 04 06 00 11 61 9A 15 23 49 70 55 8C 44 E8 32 01 23 [18:13:32]CheckFolder [18:13:32]dirname=/storage/ofd_packets [18:13:32]CheckFolder done [18:13:32]ProducePacketName [18:13:32]name=ofd_packets/00103504 [18:13:32]NVStorageSaveData ofd_packets/00103504 [18:13:32]File name is /storage/ofd_packets/00103504 [18:13:32]Write 302 bytes [18:13:32]NVStorageSaveData done [18:13:32]OFDSenderStorePacket done [18:13:32]KKMCreateOFDPacket done [18:13:32]NVStorageSaveData kkm_last_timestamp [18:13:32]File name is /storage/kkm_last_timestamp [18:13:32]Write 4 bytes [18:13:32]NVStorageSaveData done [18:13:32]ExternCall_PrintAddStr [18:13:32]wPrintStart [18:13:32]Write to MH i2c: 01 00 00 CB 72 3D [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 CB 72 00 00 00 00 00 FF 0F 52 [18:13:32]RasterBufferAndPrint [18:13:32]line Счет N : (1)672698 [18:13:32]line ИНН: 02508201610067 [18:13:32]line Контрольно-Кассовый Чек [18:13:32]line ПРОДАЖА [18:13:32]line ТРК (МРК, ГНК) : 11 [18:13:32]line Товар: 2710194210 [18:13:32]line ДТ(л)-К-5 [18:13:32]line 6.860 * 72.90 [18:13:32]line = 500.09 [18:13:32]line НДС 12% НСП 1% [18:13:32]line > о реализуемом товаре [18:13:32]line ОКРУГЛЕНИЕ: -0.09 [18:13:32]line ИТОГО: 500.00 [18:13:32]line Внесено: 500.00 [18:13:32]line СДАЧА: 0.00 [18:13:32]line НСП 1% : 4.43 [18:13:32]line НДС 12% : 53.11 [18:13:32]line Наличными: 500.00 [18:13:32]line Безнал.: 0.00 [18:13:32]line Место: АЗС № 120 "Партнер Нефть" [18:13:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:13:32]line СНО: Общий режим [18:13:32]line Чек 188 18.06.2024 18:13 [18:13:32]line Смена: 352 ФФД: 1.0 [18:13:32]line ЗНМ: 0300000164 [18:13:32]line РНМ: 0000000000092785 [18:13:32]line Версия ККМ: 001 [18:13:32]line ФМ: 0000000000875093 [18:13:32]line ФД: 103504 [18:13:32]line ФПД: 19110894576457 [18:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181338&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103504&fm=19110894576457&tin=02508201610067®Number=0000000000092785&sum=50000 [18:13:32]OFD Sender: Processing packet 103504 [packets to send 17, broken 16] [18:13:32]ProducePacketName [18:13:32]name=ofd_packets/00103504 [18:13:32]OFD Sender: To server: pG, [18:13:32]CommunicateWithHost lk.salyk.kg:30040 [18:13:32]ConnectInit lk.salyk.kg [18:13:32]written 0, free lines is 4095 [18:13:32]Connected sock=10 [18:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 41 3B 08 01 06 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 52 CE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 94 01 00 35 04 06 00 11 61 9A 15 23 49 70 55 8C 44 E8 32 01 23 [18:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C0 C9 47 00 56 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 94 01 00 F4 03 04 00 DD 74 71 66 B6 04 01 00 00 8D DC 2B 7F 8D 57 50 A8 [18:13:32]CommunicateWithHost err = 0 [18:13:32]CheckOFDResponse [18:13:32]1017 (14) - 77093643461234 [18:13:32]1041 (16) - 0000000000875093 [18:13:32]1040 (4) - 103504 [18:13:32]1012 (4) - 18.06.2024 11:51 [18:13:32]1206 (1) - 0 [18:13:32]OFD Sender: Remove packet 103504 [18:13:32]ProducePacketName [18:13:32]name=ofd_packets/00103504 [18:13:32]NVStorageDeleteData [18:13:32]Write to MH i2c: 01 00 00 F6 72 68 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 F6 72 00 00 00 00 00 DC 0C 57 [18:13:32]RasterBufferAndPrint [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]written 0, free lines is 3298 [18:13:32]MH_Cut [18:13:32]Write to MH i2c: D1 01 00 FD 72 01 41 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 01 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 01 00 FD 72 00 40 [18:13:32]Write to MH i2c: 01 00 00 FE 72 70 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:33]OFD Sender: No OFD packet to send [18:13:33]*** Cut start [18:13:33]*** Partial cut [18:13:33]*** CUTSNS_PIN = 1 [18:13:33]*** CUTSNS_PIN = 0 [18:13:33]*** Brake cut motor [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]*** Stop cut motor [18:13:34]*** Cut end [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 FE 72 00 00 00 00 00 FF 0F 85 [18:13:34]process_action close_receipt done [18:13:34]requested_data is exist [18:13:34]produce_requested_data [18:13:34]requested_item fm.sn is exist - process it [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 11 00 00 [18:13:34]Write to MH i2c: E2 08 00 FF 72 80 11 00 00 00 00 00 00 EB [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 17 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 17 00 FF 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [18:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:13:34]wFMCommunicate OK [18:13:34]requested_item fd.num is exist - process it [18:13:34]SAM_PROTO_GetFieldsCounters [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 13 00 00 [18:13:34]Write to MH i2c: E2 08 00 00 73 80 13 00 00 00 00 00 00 EF [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 62 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 62 00 00 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [18:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_GetFieldsCounters done [18:13:34]requested_item shift.num is exist - process it [18:13:34]requested_item shift.opened is exist - process it [18:13:34]req_shift_opened [18:13:34]FM_GetShiftState [18:13:34]SAM_PROTO_GetShiftState [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 13 01 00 [18:13:34]Write to MH i2c: E2 08 00 01 73 80 13 01 00 00 00 00 00 F1 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0E 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0E 00 01 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 72 [18:13:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_GetShiftState done [18:13:34]FM_GetShiftState done [18:13:34]req_shift_opened done [18:13:34]requested_item shift.open_date is exist - process it [18:13:34]req_shift_open_date [18:13:34]req_shift_open_date done [18:13:34]produce_requested_data done [18:13:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103504,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:13:34]process_action_free close_receipt [18:13:34]json_value_free [18:13:34]json_value_free done [18:13:34]process_json_proto returns [18:13:34]Send response to host [18:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103504,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:13:34]free response buf [18:13:34]execute_script done [18:13:34]execute_script returns [18:13:34]free content buf [18:13:34]Sock 7.Close socket [18:13:34]Sock 7.Thread stoped [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:02]accept exits with 9 [18:15:02]New connection [18:15:02]New thread 3067227492 created [18:15:02]Thread 3067084132 joined [18:15:02]Waiting for new connection... [18:15:02] Sock 9.Parse request [18:15:02]Sock 9.Check first char [18:15:02]Sock 9.First char is OK [18:15:02]request: POST /json_proto HTTP/1.0 [18:15:02]Method: POST [18:15:02]URL: /json_proto [18:15:02]Method is POST - this is cgi request [18:15:02]url: /json_proto [18:15:02]query_string will be loaded in cgi processing [18:15:02]execute_cgi json_proto POST (null) [18:15:02]execute_cgi path=json_proto method=POST [18:15:02]POST find Content-Length [18:15:02]Host: 172.17.38.133:8080 [18:15:02]Content-Length: 1162 [18:15:02]Content-Type: application/json [18:15:02] [18:15:02]POST finish read [18:15:02]Found Content-Length = 1162 [18:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672695\u000A18.06.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 28.640 x 72.90\u000A\u0418\u0422\u041E\u0413: 2087.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:02]execute_script... [18:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672695\u000A18.06.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 28.640 x 72.90\u000A\u0418\u0422\u041E\u0413: 2087.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:02]POST & json_proto [18:15:02]process_json_proto [18:15:02]json parsed OK: [18:15:02]protocol is kg_v1.0 [18:15:02]action value=print_text [18:15:02]process_action print_text [18:15:02]cmd_print_text [18:15:02]ExternCall_PrintAddStr [18:15:02]wPrintStart [18:15:02]Write to MH i2c: 01 00 00 02 73 75 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 02 73 00 00 00 00 00 FF 0F 8A [18:15:02]RasterBufferAndPrint [18:15:02]line *****ТОВАРНЫЙ ЧЕК***** [18:15:02]line АЗС 120 [18:15:02]line Партнер нефть [18:15:02]line 02508201610067 [18:15:02]line Кассир : Асанбаев Н. [18:15:02]line Счет N : (1)672695 [18:15:02]line 18.06.2024 17:52 [18:15:02]line ПРОДАЖА [18:15:02]line ТРК (МРК, ГНК): 21 [18:15:02]line Вид ГСМ : 2710194210 [18:15:02]line ДТ(л)-К-5 [18:15:02]line 28.640 x 72.90 [18:15:02]line ИТОГ: 2087.86 [18:15:02]line Тип оплаты: Талоны: ТК ГПНА Online [18:15:02]line 30101770 [18:15:02]line ______________________ [18:15:02]line (подпись) [18:15:02]written 0, free lines is 4095 [18:15:02]Write to MH i2c: 01 00 00 16 73 89 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 16 73 00 00 00 00 00 10 0E AE [18:15:02]RasterBufferAndPrint [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]written 0, free lines is 3601 [18:15:02]MH_Cut [18:15:02]Write to MH i2c: D1 01 00 1D 73 01 62 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 01 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 01 00 1D 73 00 61 [18:15:02]Write to MH i2c: 01 00 00 1E 73 91 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]*** Cut start [18:15:02]*** Partial cut [18:15:02]*** CUTSNS_PIN = 1 [18:15:02]*** CUTSNS_PIN = 0 [18:15:03]*** Brake cut motor [18:15:03]OFD Sender: No OFD packet to send [18:15:03]Read from MH i2c: 01 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: 01 07 00 [18:15:03]MH_I2C_Read... [18:15:03]*** Stop cut motor [18:15:03]*** Cut end [18:15:03]Read from MH i2c: 01 07 00 1E 73 00 00 00 00 00 FF 0F A6 [18:15:03]process_action print_text done [18:15:03]requested_data is exist [18:15:03]produce_requested_data [18:15:03]requested_item fm.sn is exist - process it [18:15:03]wFMCommunicate request_size=4 [18:15:03]MH_SAM_APDU [18:15:03]CAPDU: 80 11 00 00 [18:15:03]Write to MH i2c: E2 08 00 1F 73 80 11 00 00 00 00 00 00 0C [18:15:03]Write i2c OK [18:15:03]MH_I2C_Read... [18:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:03]Read from MH i2c: E2 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 17 00 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 17 00 1F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [18:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:15:03]wFMCommunicate OK [18:15:03]requested_item fd.num is exist - process it [18:15:03]SAM_PROTO_GetFieldsCounters [18:15:03]wFMCommunicate request_size=4 [18:15:03]MH_SAM_APDU [18:15:03]CAPDU: 80 13 00 00 [18:15:03]Write to MH i2c: E2 08 00 20 73 80 13 00 00 00 00 00 00 0F [18:15:03]Write i2c OK [18:15:03]MH_I2C_Read... [18:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:03]Read from MH i2c: E2 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 62 00 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 62 00 20 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [18:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:03]wFMCommunicate OK [18:15:03]SAM_PROTO_GetFieldsCounters done [18:15:03]requested_item shift.num is exist - process it [18:15:03]requested_item shift.opened is exist - process it [18:15:03]req_shift_opened [18:15:03]FM_GetShiftState [18:15:03]SAM_PROTO_GetShiftState [18:15:03]wFMCommunicate request_size=4 [18:15:03]MH_SAM_APDU [18:15:03]CAPDU: 80 13 01 00 [18:15:03]Write to MH i2c: E2 08 00 21 73 80 13 01 00 00 00 00 00 11 [18:15:03]Write i2c OK [18:15:03]MH_I2C_Read... [18:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:03]Read from MH i2c: E2 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 0E 00 [18:15:03]MH_I2C_Read... [18:15:03]Read from MH i2c: E2 0E 00 21 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 92 [18:15:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:15:03]wFMCommunicate OK [18:15:03]SAM_PROTO_GetShiftState done [18:15:03]FM_GetShiftState done [18:15:03]req_shift_opened done [18:15:03]requested_item shift.open_date is exist - process it [18:15:03]req_shift_open_date [18:15:03]req_shift_open_date done [18:15:03]produce_requested_data done [18:15:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103504,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:15:03]process_action_free print_text [18:15:03]json_value_free [18:15:03]json_value_free done [18:15:03]process_json_proto returns [18:15:03]Send response to host [18:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103504,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:15:03]free response buf [18:15:03]execute_script done [18:15:03]execute_script returns [18:15:03]free content buf [18:15:03]Sock 9.Close socket [18:15:03]Sock 9.Thread stoped [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:38]accept exits with 7 [18:17:38]New connection [18:17:38]New thread 3067084132 created [18:17:38]Thread 3067227492 joined [18:17:38]Waiting for new connection... [18:17:38] Sock 7.Parse request [18:17:38]Sock 7.Check first char [18:17:38]Sock 7.First char is OK [18:17:38]request: POST /json_proto HTTP/1.0 [18:17:38]Method: POST [18:17:38]URL: /json_proto [18:17:38]Method is POST - this is cgi request [18:17:38]url: /json_proto [18:17:38]query_string will be loaded in cgi processing [18:17:38]execute_cgi json_proto POST (null) [18:17:38]execute_cgi path=json_proto method=POST [18:17:38]POST find Content-Length [18:17:38]Host: 172.17.38.133:8080 [18:17:38]Content-Length: 800 [18:17:38]Content-Type: application/json [18:17:38] [18:17:38]POST finish read [18:17:38]Found Content-Length = 800 [18:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:38]execute_script... [18:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:38]POST & json_proto [18:17:38]process_json_proto [18:17:38]json parsed OK: [18:17:38]protocol is kg_v1.0 [18:17:38]action value=close_receipt [18:17:38]process_action close_receipt [18:17:38]cmd_close_receipt [18:17:38]MH_GetDate [18:17:38]Write to MH i2c: F0 00 00 22 73 84 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 09 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 09 00 22 73 00 4A CF 71 66 BD 8F 7C 64 A9 [18:17:38]GetLastDocTimeStamp 1718734418 [18:17:38]current date 1718734666 [18:17:38]FM_GetShiftState [18:17:38]SAM_PROTO_GetShiftState [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 13 01 00 [18:17:38]Write to MH i2c: E2 08 00 23 73 80 13 01 00 00 00 00 00 13 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0E 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0E 00 23 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 94 [18:17:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:17:38]wFMCommunicate OK [18:17:38]SAM_PROTO_GetShiftState done [18:17:38]FM_GetShiftState done [18:17:38]opened in 1718670284 [18:17:38]opened+sec_in_day 1718756684 [18:17:38]quantity*price = 65005 [18:17:38]sum+1 = 65007 [18:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.06 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 0.00 Безнал.: 650.06 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 189 18.06.2024 18:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103505 ФПД: 44591336621592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181746&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103505&fm=44591336621592&tin=02508201610067®Number=0000000000092785&sum=65006 [18:17:40]StoreToDocumentArchive [18:17:40]shift 352 fd 103505 [18:17:40]save to /storage/0352/doc_00103505 [18:17:40]save last doc name /storage/0352/doc_00103505 to /storage/kkm_last_doc_name [18:17:40]save OK [18:17:40]Clear old archive folders... [18:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:40]tlvbuf is 0137F600 [18:17:40]SAM_PROTO_ClearQueue [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 09 00 00 [18:17:40]Write to MH i2c: E2 08 00 30 73 80 09 00 00 00 00 00 00 15 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 30 73 00 90 00 17 [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_ClearQueue done [18:17:40]KKMCreateOFDPacket [18:17:40]OFDProtocolAddRootSTLVToBuf [18:17:40]FM_MakeSignedData [18:17:40]FM_MakeSignedData [18:17:40]SAM_PROTO_SignData [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 01 02 [18:17:40]Write to MH i2c: E2 08 00 31 73 80 0D 01 02 00 00 00 00 1D [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 31 73 00 90 00 18 [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]wFMCommunicate request_size=255 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 4A CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 94 01 00 35 04 06 00 28 [18:17:40]Write to MH i2c: E2 02 01 32 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 4A CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 94 01 00 35 04 06 00 28 00 00 C9 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 32 73 00 90 00 19 [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]wFMCommunicate request_size=10 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 02 02 05 8E 3A C7 86 18 [18:17:40]Write to MH i2c: E2 0D 00 33 73 80 0D 02 02 05 00 8E 3A C7 86 18 00 00 57 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 33 73 00 90 00 1A [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 03 02 [18:17:40]Write to MH i2c: E2 08 00 34 73 80 0D 03 02 00 00 00 00 22 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0B 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0B 00 34 73 00 4E 23 40 2F 20 0C 89 0B 90 00 C3 [18:17:40]RAPDU: 4E 23 40 2F 20 0C 89 0B 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_SignData done [18:17:40]FM_MakeSignedData done [18:17:40]CreateOFDProtocolMessage [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 11 00 00 [18:17:40]Write to MH i2c: E2 08 00 35 73 80 11 00 00 00 00 00 00 22 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 35 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 75 [18:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:17:40]wFMCommunicate OK [18:17:40]CreateOFDProtocolMessage done [18:17:40]OFDSenderStorePacket 103505 [18:17:40]StoreOFDPacket docnum=103505 [18:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C A4 07 01 04 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 4A CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 94 01 00 35 04 06 00 28 8E 3A C7 86 18 4E 23 40 2F 20 0C 89 0B [18:17:40]CheckFolder [18:17:40]dirname=/storage/ofd_packets [18:17:40]CheckFolder done [18:17:40]ProducePacketName [18:17:40]name=ofd_packets/00103505 [18:17:40]NVStorageSaveData ofd_packets/00103505 [18:17:40]File name is /storage/ofd_packets/00103505 [18:17:40]Write 301 bytes [18:17:40]NVStorageSaveData done [18:17:40]OFDSenderStorePacket done [18:17:40]KKMCreateOFDPacket done [18:17:40]NVStorageSaveData kkm_last_timestamp [18:17:40]File name is /storage/kkm_last_timestamp [18:17:40]Write 4 bytes [18:17:40]NVStorageSaveData done [18:17:40]ExternCall_PrintAddStr [18:17:40]wPrintStart [18:17:40]Write to MH i2c: 01 00 00 36 73 A9 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 07 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 07 00 36 73 00 00 00 00 00 FF 0F BE [18:17:40]RasterBufferAndPrint [18:17:40]line Счет N : (1)672699 [18:17:40]line ИНН: 02508201610067 [18:17:40]line Контрольно-Кассовый Чек [18:17:40]line ПРОДАЖА [18:17:40]line ТРК (МРК, ГНК) : 32 [18:17:40]line Товар: 2710124130 [18:17:40]line Аи-92-К-5 [18:17:40]line 9.790 * 66.40 [18:17:40]line = 650.06 [18:17:40]line НДС 12% НСП 1% [18:17:40]line > о реализуемом товаре [18:17:40]line ИТОГО: 650.06 [18:17:40]line НСП 1% : 5.75 [18:17:40]line НДС 12% : 69.03 [18:17:40]line Наличными: 0.00 [18:17:40]line Безнал.: 650.06 [18:17:40]line Место: АЗС № 120 "Партнер Нефть" [18:17:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:17:40]line СНО: Общий режим [18:17:40]line Чек 189 18.06.2024 18:17 [18:17:40]line Смена: 352 ФФД: 1.0 [18:17:40]line ЗНМ: 0300000164 [18:17:40]line РНМ: 0000000000092785 [18:17:40]line Версия ККМ: 001 [18:17:40]line Платежная система: O! деньги [18:17:40]line ФМ: 0000000000875093 [18:17:40]line ФД: 103505 [18:17:40]line ФПД: 44591336621592 [18:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T181746&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103505&fm=44591336621592&tin=02508201610067®Number=0000000000092785&sum=65006 [18:17:40]OFD Sender: Processing packet 103505 [packets to send 17, broken 16] [18:17:40]ProducePacketName [18:17:40]name=ofd_packets/00103505 [18:17:40]OFD Sender: To server: pG, [18:17:40]CommunicateWithHost lk.salyk.kg:30040 [18:17:40]ConnectInit lk.salyk.kg [18:17:40]written 0, free lines is 4095 [18:17:41]Connected sock=11 [18:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C A4 07 01 04 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 4A CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 94 01 00 35 04 06 00 28 8E 3A C7 86 18 4E 23 40 2F 20 0C 89 0B [18:17:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FE 31 47 00 D6 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 35 30 39 33 10 04 04 00 51 94 01 00 F4 03 04 00 D6 75 71 66 B6 04 01 00 00 4F 5A 1D 57 15 67 20 D6 [18:17:41]CommunicateWithHost err = 0 [18:17:41]CheckOFDResponse [18:17:41]1017 (14) - 77093643461234 [18:17:41]1041 (16) - 0000000000875093 [18:17:41]1040 (4) - 103505 [18:17:41]1012 (4) - 18.06.2024 11:56 [18:17:41]1206 (1) - 0 [18:17:41]OFD Sender: Remove packet 103505 [18:17:41]ProducePacketName [18:17:41]name=ofd_packets/00103505 [18:17:41]NVStorageDeleteData [18:17:41]Write to MH i2c: 01 00 00 60 73 D3 [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 07 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 07 00 60 73 00 00 00 00 00 FB 0C E1 [18:17:41]RasterBufferAndPrint [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]written 0, free lines is 3330 [18:17:41]MH_Cut [18:17:41]Write to MH i2c: D1 01 00 67 73 01 AC [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 01 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 01 00 67 73 00 AB [18:17:41]Write to MH i2c: 01 00 00 68 73 DB [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]OFD Sender: No OFD packet to send [18:17:42]*** Cut start [18:17:42]*** Partial cut [18:17:42]*** CUTSNS_PIN = 1 [18:17:42]*** CUTSNS_PIN = 0 [18:17:42]*** Brake cut motor [18:17:42]Read from MH i2c: 01 [18:17:42]MH_I2C_Read... [18:17:42]*** Stop cut motor [18:17:42]*** Cut end [18:17:42]Read from MH i2c: 01 07 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: 01 07 00 68 73 00 00 00 00 00 FF 0F F0 [18:17:42]process_action close_receipt done [18:17:42]requested_data is exist [18:17:42]produce_requested_data [18:17:42]requested_item fm.sn is exist - process it [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 11 00 00 [18:17:42]Write to MH i2c: E2 08 00 69 73 80 11 00 00 00 00 00 00 56 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 17 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 17 00 69 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [18:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:17:42]wFMCommunicate OK [18:17:42]requested_item fd.num is exist - process it [18:17:42]SAM_PROTO_GetFieldsCounters [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 13 00 00 [18:17:42]Write to MH i2c: E2 08 00 6A 73 80 13 00 00 00 00 00 00 59 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 62 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 62 00 6A 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [18:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_GetFieldsCounters done [18:17:42]requested_item shift.num is exist - process it [18:17:42]requested_item shift.opened is exist - process it [18:17:42]req_shift_opened [18:17:42]FM_GetShiftState [18:17:42]SAM_PROTO_GetShiftState [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 13 01 00 [18:17:42]Write to MH i2c: E2 08 00 6B 73 80 13 01 00 00 00 00 00 5B [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 6B 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DC [18:17:42]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_GetShiftState done [18:17:42]FM_GetShiftState done [18:17:42]req_shift_opened done [18:17:42]requested_item shift.open_date is exist - process it [18:17:42]req_shift_open_date [18:17:42]req_shift_open_date done [18:17:42]produce_requested_data done [18:17:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103505,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:17:42]process_action_free close_receipt [18:17:42]json_value_free [18:17:42]json_value_free done [18:17:42]process_json_proto returns [18:17:42]Send response to host [18:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103505,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:17:42]free response buf [18:17:42]execute_script done [18:17:42]execute_script returns [18:17:42]free content buf [18:17:42]Sock 7.Close socket [18:17:42]Sock 7.Thread stoped [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:04]accept exits with 9 [18:20:04]New connection [18:20:04]New thread 3067227492 created [18:20:04]Thread 3067084132 joined [18:20:04]Waiting for new connection... [18:20:04] Sock 9.Parse request [18:20:04]Sock 9.Check first char [18:20:04]Sock 9.First char is OK [18:20:04]request: POST /json_proto HTTP/1.0 [18:20:04]Method: POST [18:20:04]URL: /json_proto [18:20:04]Method is POST - this is cgi request [18:20:04]url: /json_proto [18:20:04]query_string will be loaded in cgi processing [18:20:04]execute_cgi json_proto POST (null) [18:20:04]execute_cgi path=json_proto method=POST [18:20:04]POST find Content-Length [18:20:04]Host: 172.17.38.133:8080 [18:20:04]Content-Length: 682 [18:20:04]Content-Type: application/json [18:20:04] [18:20:04]POST finish read [18:20:04]Found Content-Length = 682 [18:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:04]execute_script... [18:20:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:04]POST & json_proto [18:20:04]process_json_proto [18:20:04]json parsed OK: [18:20:04]protocol is kg_v1.0 [18:20:04]action value=close_receipt [18:20:04]process_action close_receipt [18:20:04]cmd_close_receipt [18:20:04]MH_GetDate [18:20:04]Write to MH i2c: F0 00 00 6C 73 CE [18:20:04]Write i2c OK [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: F0 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: F0 09 00 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: F0 09 00 6C 73 00 DC CF 71 66 BD 8F 7C 64 85 [18:20:04]GetLastDocTimeStamp 1718734666 [18:20:04]current date 1718734812 [18:20:04]FM_GetShiftState [18:20:04]SAM_PROTO_GetShiftState [18:20:04]wFMCommunicate request_size=4 [18:20:04]MH_SAM_APDU [18:20:04]CAPDU: 80 13 01 00 [18:20:04]Write to MH i2c: E2 08 00 6D 73 80 13 01 00 00 00 00 00 5D [18:20:04]Write i2c OK [18:20:04]MH_I2C_Read... [18:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:04]Read from MH i2c: E2 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 0E 00 [18:20:04]MH_I2C_Read... [18:20:04]Read from MH i2c: E2 0E 00 6D 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DE [18:20:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:20:04]wFMCommunicate OK [18:20:04]SAM_PROTO_GetShiftState done [18:20:04]FM_GetShiftState done [18:20:04]opened in 1718670284 [18:20:04]opened+sec_in_day 1718756684 [18:20:04]quantity*price = 100064 [18:20:04]sum+1 = 100066 [18:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 190 18.06.2024 18:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103506 ФПД: 131561761425984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103506&fm=131561761425984&tin=02508201610067®Number=0000000000092785&sum=100000 [18:20:05]StoreToDocumentArchive [18:20:05]shift 352 fd 103506 [18:20:05]save to /storage/0352/doc_00103506 [18:20:05]save last doc name /storage/0352/doc_00103506 to /storage/kkm_last_doc_name [18:20:05]save OK [18:20:05]Clear old archive folders... [18:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:05]tlvbuf is 015761B0 [18:20:05]SAM_PROTO_ClearQueue [18:20:05]wFMCommunicate request_size=4 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 09 00 00 [18:20:05]Write to MH i2c: E2 08 00 7A 73 80 09 00 00 00 00 00 00 5F [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 7A 73 00 90 00 61 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]SAM_PROTO_ClearQueue done [18:20:05]KKMCreateOFDPacket [18:20:05]OFDProtocolAddRootSTLVToBuf [18:20:05]FM_MakeSignedData [18:20:05]FM_MakeSignedData [18:20:05]SAM_PROTO_SignData [18:20:05]wFMCommunicate request_size=4 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 01 02 [18:20:05]Write to MH i2c: E2 08 00 7B 73 80 0D 01 02 00 00 00 00 67 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 7B 73 00 90 00 62 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]wFMCommunicate request_size=255 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DC CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 94 01 00 35 04 06 00 77 [18:20:05]Write to MH i2c: E2 02 01 7C 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DC CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 94 01 00 35 04 06 00 77 00 00 70 [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 7C 73 00 90 00 63 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]wFMCommunicate request_size=10 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 02 02 05 A7 9C 0E 4A 40 [18:20:05]Write to MH i2c: E2 0D 00 7D 73 80 0D 02 02 05 00 A7 9C 0E 4A 40 00 00 4F [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:05]Read from MH i2c: E2 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 [18:20:05]MH_I2C_Read... [18:20:05]Read from MH i2c: E2 03 00 7D 73 00 90 00 64 [18:20:05]RAPDU: 90 00 [18:20:05]wFMCommunicate OK [18:20:05]wFMCommunicate request_size=4 [18:20:05]MH_SAM_APDU [18:20:05]CAPDU: 80 0D 03 02 [18:20:05]Write to MH i2c: E2 08 00 7E 73 80 0D 03 02 00 00 00 00 6C [18:20:05]Write i2c OK [18:20:05]MH_I2C_Read... [18:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:06]Read from MH i2c: E2 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: E2 0B 00 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: E2 0B 00 7E 73 00 A1 0D 58 F2 0B 83 11 43 90 00 47 [18:20:06]RAPDU: A1 0D 58 F2 0B 83 11 43 90 00 [18:20:06]wFMCommunicate OK [18:20:06]SAM_PROTO_SignData done [18:20:06]FM_MakeSignedData done [18:20:06]CreateOFDProtocolMessage [18:20:06]wFMCommunicate request_size=4 [18:20:06]MH_SAM_APDU [18:20:06]CAPDU: 80 11 00 00 [18:20:06]Write to MH i2c: E2 08 00 7F 73 80 11 00 00 00 00 00 00 6C [18:20:06]Write i2c OK [18:20:06]MH_I2C_Read... [18:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:06]Read from MH i2c: E2 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: E2 17 00 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: E2 17 00 7F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [18:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:20:06]wFMCommunicate OK [18:20:06]CreateOFDProtocolMessage done [18:20:06]OFDSenderStorePacket 103506 [18:20:06]StoreOFDPacket docnum=103506 [18:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF 7E 07 01 B5 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DC CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 94 01 00 35 04 06 00 77 A7 9C 0E 4A 40 A1 0D 58 F2 0B 83 11 43 [18:20:06]CheckFolder [18:20:06]dirname=/storage/ofd_packets [18:20:06]CheckFolder done [18:20:06]ProducePacketName [18:20:06]name=ofd_packets/00103506 [18:20:06]NVStorageSaveData ofd_packets/00103506 [18:20:06]File name is /storage/ofd_packets/00103506 [18:20:06]Write 301 bytes [18:20:06]NVStorageSaveData done [18:20:06]OFDSenderStorePacket done [18:20:06]KKMCreateOFDPacket done [18:20:06]NVStorageSaveData kkm_last_timestamp [18:20:06]File name is /storage/kkm_last_timestamp [18:20:06]Write 4 bytes [18:20:06]NVStorageSaveData done [18:20:06]ExternCall_PrintAddStr [18:20:06]wPrintStart [18:20:06]Write to MH i2c: 01 00 00 80 73 F3 [18:20:06]Write i2c OK [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 07 00 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 07 00 80 73 00 00 00 00 00 FF 0F 08 [18:20:06]RasterBufferAndPrint [18:20:06]line Счет N : (1)672701 [18:20:06]line ИНН: 02508201610067 [18:20:06]line Контрольно-Кассовый Чек [18:20:06]line ПРОДАЖА [18:20:06]line ТРК (МРК, ГНК) : 32 [18:20:06]line Товар: 2710124130 [18:20:06]line Аи-92-К-5 [18:20:06]line 15.070 * 66.40 [18:20:06]line = 1000.65 [18:20:06]line НДС 12% НСП 1% [18:20:06]line > о реализуемом товаре [18:20:06]line ОКРУГЛЕНИЕ: -0.65 [18:20:06]line ИТОГО: 1000.00 [18:20:06]line Внесено: 1000.00 [18:20:06]line СДАЧА: 0.00 [18:20:06]line НСП 1% : 8.85 [18:20:06]line НДС 12% : 106.26 [18:20:06]line Наличными: 1000.00 [18:20:06]line Безнал.: 0.00 [18:20:06]line Место: АЗС № 120 "Партнер Нефть" [18:20:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:20:06]line СНО: Общий режим [18:20:06]line Чек 190 18.06.2024 18:20 [18:20:06]line Смена: 352 ФФД: 1.0 [18:20:06]line ЗНМ: 0300000164 [18:20:06]line РНМ: 0000000000092785 [18:20:06]line Версия ККМ: 001 [18:20:06]line ФМ: 0000000000875093 [18:20:06]line ФД: 103506 [18:20:06]line ФПД: 131561761425984 [18:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103506&fm=131561761425984&tin=02508201610067®Number=0000000000092785&sum=100000 [18:20:06]written 0, free lines is 4095 [18:20:06]OFD Sender: Processing packet 103506 [packets to send 17, broken 16] [18:20:06]ProducePacketName [18:20:06]name=ofd_packets/00103506 [18:20:06]OFD Sender: To server: pG, [18:20:06]CommunicateWithHost lk.salyk.kg:30040 [18:20:06]ConnectInit lk.salyk.kg [18:20:06]Connected sock=11 [18:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF 7E 07 01 B5 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DC CF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 94 01 00 35 04 06 00 77 A7 9C 0E 4A 40 A1 0D 58 F2 0B 83 11 43 [18:20:06]Write to MH i2c: 01 00 00 AB 73 1E [18:20:06]Write i2c OK [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 07 00 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: 01 07 00 AB 73 00 00 00 00 00 E0 0C 11 [18:20:06]RasterBufferAndPrint [18:20:06]line [18:20:06]line [18:20:06]line [18:20:06]line [18:20:06]line [18:20:06]written 0, free lines is 3302 [18:20:06]MH_Cut [18:20:06]Write to MH i2c: D1 01 00 B2 73 01 F7 [18:20:06]Write i2c OK [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: D1 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: D1 01 00 [18:20:06]MH_I2C_Read... [18:20:06]Read from MH i2c: D1 01 00 B2 73 00 F6 [18:20:06]Write to MH i2c: 01 00 00 B3 73 26 [18:20:06]Write i2c OK [18:20:06]MH_I2C_Read... [18:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 22 4D 47 00 49 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 94 01 00 F4 03 04 00 67 76 71 66 B6 04 01 00 00 56 BF 2B 37 56 E0 E2 A2 [18:20:06]CommunicateWithHost err = 0 [18:20:06]CheckOFDResponse [18:20:06]1017 (14) - 77093643461234 [18:20:06]1041 (16) - 0000000000875093 [18:20:06]1040 (4) - 103506 [18:20:06]1012 (4) - 18.06.2024 11:58 [18:20:06]1206 (1) - 0 [18:20:06]OFD Sender: Remove packet 103506 [18:20:06]ProducePacketName [18:20:06]name=ofd_packets/00103506 [18:20:06]NVStorageDeleteData [18:20:07]OFD Sender: No OFD packet to send [18:20:07]*** Cut start [18:20:07]*** Partial cut [18:20:07]*** CUTSNS_PIN = 1 [18:20:07]*** CUTSNS_PIN = 0 [18:20:07]*** Brake cut motor [18:20:07]Read from MH i2c: 01 [18:20:07]MH_I2C_Read... [18:20:07]*** Stop cut motor [18:20:07]*** Cut end [18:20:07]Read from MH i2c: 01 07 00 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: 01 07 00 B3 73 00 00 00 00 00 FF 0F 3B [18:20:07]process_action close_receipt done [18:20:07]requested_data is exist [18:20:07]produce_requested_data [18:20:07]requested_item fm.sn is exist - process it [18:20:07]wFMCommunicate request_size=4 [18:20:07]MH_SAM_APDU [18:20:07]CAPDU: 80 11 00 00 [18:20:07]Write to MH i2c: E2 08 00 B4 73 80 11 00 00 00 00 00 00 A1 [18:20:07]Write i2c OK [18:20:07]MH_I2C_Read... [18:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:07]Read from MH i2c: E2 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 17 00 [18:20:07]MH_I2C_Read... [18:20:07]Read from MH i2c: E2 17 00 B4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [18:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:20:07]wFMCommunicate OK [18:20:07]requested_item fd.num is exist - process it [18:20:07]SAM_PROTO_GetFieldsCounters [18:20:07]wFMCommunicate request_size=4 [18:20:07]MH_SAM_APDU [18:20:07]CAPDU: 80 13 00 00 [18:20:07]Write to MH i2c: E2 08 00 B5 73 80 13 00 00 00 00 00 00 A4 [18:20:07]Write i2c OK [18:20:07]MH_I2C_Read... [18:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:08]Read from MH i2c: E2 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 62 00 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 62 00 B5 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [18:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:08]wFMCommunicate OK [18:20:08]SAM_PROTO_GetFieldsCounters done [18:20:08]requested_item shift.num is exist - process it [18:20:08]requested_item shift.opened is exist - process it [18:20:08]req_shift_opened [18:20:08]FM_GetShiftState [18:20:08]SAM_PROTO_GetShiftState [18:20:08]wFMCommunicate request_size=4 [18:20:08]MH_SAM_APDU [18:20:08]CAPDU: 80 13 01 00 [18:20:08]Write to MH i2c: E2 08 00 B6 73 80 13 01 00 00 00 00 00 A6 [18:20:08]Write i2c OK [18:20:08]MH_I2C_Read... [18:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:08]Read from MH i2c: E2 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 0E 00 [18:20:08]MH_I2C_Read... [18:20:08]Read from MH i2c: E2 0E 00 B6 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 27 [18:20:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:20:08]wFMCommunicate OK [18:20:08]SAM_PROTO_GetShiftState done [18:20:08]FM_GetShiftState done [18:20:08]req_shift_opened done [18:20:08]requested_item shift.open_date is exist - process it [18:20:08]req_shift_open_date [18:20:08]req_shift_open_date done [18:20:08]produce_requested_data done [18:20:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103506,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:20:08]process_action_free close_receipt [18:20:08]json_value_free [18:20:08]json_value_free done [18:20:08]process_json_proto returns [18:20:08]Send response to host [18:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103506,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:20:08]free response buf [18:20:08]execute_script done [18:20:08]execute_script returns [18:20:08]free content buf [18:20:08]Sock 9.Close socket [18:20:08]Sock 9.Thread stoped [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:51]accept exits with 7 [18:21:51]New connection [18:21:51]New thread 3067084132 created [18:21:51]Thread 3067227492 joined [18:21:51]Waiting for new connection... [18:21:51] Sock 7.Parse request [18:21:51]Sock 7.Check first char [18:21:51]Sock 7.First char is OK [18:21:51]request: POST /json_proto HTTP/1.0 [18:21:51]Method: POST [18:21:51]URL: /json_proto [18:21:51]Method is POST - this is cgi request [18:21:51]url: /json_proto [18:21:51]query_string will be loaded in cgi processing [18:21:51]execute_cgi json_proto POST (null) [18:21:51]execute_cgi path=json_proto method=POST [18:21:51]POST find Content-Length [18:21:51]Host: 172.17.38.133:8080 [18:21:51]Content-Length: 1157 [18:21:51]Content-Type: application/json [18:21:51] [18:21:51]POST finish read [18:21:51]Found Content-Length = 1157 [18:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672703\u000A18.06.2024 17:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:51]execute_script... [18:21:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672703\u000A18.06.2024 17:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:51]POST & json_proto [18:21:51]process_json_proto [18:21:51]json parsed OK: [18:21:51]protocol is kg_v1.0 [18:21:51]action value=print_text [18:21:51]process_action print_text [18:21:51]cmd_print_text [18:21:51]ExternCall_PrintAddStr [18:21:51]wPrintStart [18:21:51]Write to MH i2c: 01 00 00 B7 73 2A [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 07 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 07 00 B7 73 00 00 00 00 00 FF 0F 3F [18:21:51]RasterBufferAndPrint [18:21:51]line *****ТОВАРНЫЙ ЧЕК***** [18:21:51]line АЗС 120 [18:21:51]line Партнер нефть [18:21:51]line 02508201610067 [18:21:51]line Кассир : Асанбаев Н. [18:21:51]line Счет N : (1)672703 [18:21:51]line 18.06.2024 17:59 [18:21:51]line ПРОДАЖА [18:21:51]line ТРК (МРК, ГНК): 42 [18:21:51]line Вид ГСМ : 2710124130 [18:21:51]line Аи-92-К-5 [18:21:51]line 30.000 x 66.40 [18:21:51]line ИТОГ: 1992.00 [18:21:51]line Тип оплаты: Талоны: ТК ГПНА Online [18:21:51]line 30086351 [18:21:51]line ______________________ [18:21:51]line (подпись) [18:21:51]written 0, free lines is 4095 [18:21:52]Write to MH i2c: 01 00 00 CB 73 3E [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 07 00 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 07 00 CB 73 00 00 00 00 00 10 0E 63 [18:21:52]RasterBufferAndPrint [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]written 0, free lines is 3602 [18:21:52]MH_Cut [18:21:52]Write to MH i2c: D1 01 00 D2 73 01 17 [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 01 00 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 01 00 D2 73 00 16 [18:21:52]Write to MH i2c: 01 00 00 D3 73 46 [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]OFD Sender: No OFD packet to send [18:21:52]*** Cut start [18:21:52]*** Partial cut [18:21:52]*** CUTSNS_PIN = 1 [18:21:52]*** CUTSNS_PIN = 0 [18:21:52]*** Brake cut motor [18:21:53]Read from MH i2c: 01 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: 01 07 00 [18:21:53]MH_I2C_Read... [18:21:53]*** Stop cut motor [18:21:53]*** Cut end [18:21:53]Read from MH i2c: 01 07 00 D3 73 00 00 00 00 00 FF 0F 5B [18:21:53]process_action print_text done [18:21:53]requested_data is exist [18:21:53]produce_requested_data [18:21:53]requested_item fm.sn is exist - process it [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 11 00 00 [18:21:53]Write to MH i2c: E2 08 00 D4 73 80 11 00 00 00 00 00 00 C1 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 D4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [18:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:21:53]wFMCommunicate OK [18:21:53]requested_item fd.num is exist - process it [18:21:53]SAM_PROTO_GetFieldsCounters [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 13 00 00 [18:21:53]Write to MH i2c: E2 08 00 D5 73 80 13 00 00 00 00 00 00 C4 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 62 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 62 00 D5 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [18:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_GetFieldsCounters done [18:21:53]requested_item shift.num is exist - process it [18:21:53]requested_item shift.opened is exist - process it [18:21:53]req_shift_opened [18:21:53]FM_GetShiftState [18:21:53]SAM_PROTO_GetShiftState [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 13 01 00 [18:21:53]Write to MH i2c: E2 08 00 D6 73 80 13 01 00 00 00 00 00 C6 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0E 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0E 00 D6 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 47 [18:21:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_GetShiftState done [18:21:53]FM_GetShiftState done [18:21:53]req_shift_opened done [18:21:53]requested_item shift.open_date is exist - process it [18:21:53]req_shift_open_date [18:21:53]req_shift_open_date done [18:21:53]produce_requested_data done [18:21:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103506,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:21:53]process_action_free print_text [18:21:53]json_value_free [18:21:53]json_value_free done [18:21:53]process_json_proto returns [18:21:53]Send response to host [18:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103506,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:21:53]free response buf [18:21:53]execute_script done [18:21:53]execute_script returns [18:21:53]free content buf [18:21:53]Sock 7.Close socket [18:21:53]Sock 7.Thread stoped [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:05]accept exits with 9 [18:22:05]New connection [18:22:05]New thread 3067227492 created [18:22:05]Thread 3067084132 joined [18:22:05]Waiting for new connection... [18:22:05] Sock 9.Parse request [18:22:05]Sock 9.Check first char [18:22:05]Sock 9.First char is OK [18:22:05]request: POST /json_proto HTTP/1.0 [18:22:05]Method: POST [18:22:05]URL: /json_proto [18:22:05]Method is POST - this is cgi request [18:22:05]url: /json_proto [18:22:05]query_string will be loaded in cgi processing [18:22:05]execute_cgi json_proto POST (null) [18:22:05]execute_cgi path=json_proto method=POST [18:22:05]POST find Content-Length [18:22:05]Host: 172.17.38.133:8080 [18:22:05]Content-Length: 677 [18:22:05]Content-Type: application/json [18:22:05] [18:22:05]POST finish read [18:22:05]Found Content-Length = 677 [18:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]execute_script... [18:22:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]POST & json_proto [18:22:05]process_json_proto [18:22:05]json parsed OK: [18:22:05]protocol is kg_v1.0 [18:22:05]action value=close_receipt [18:22:05]process_action close_receipt [18:22:05]cmd_close_receipt [18:22:05]MH_GetDate [18:22:05]Write to MH i2c: F0 00 00 D7 73 39 [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 D7 73 00 55 D0 71 66 BD 8F 7C 64 6A [18:22:05]GetLastDocTimeStamp 1718734812 [18:22:05]current date 1718734933 [18:22:05]FM_GetShiftState [18:22:05]SAM_PROTO_GetShiftState [18:22:05]wFMCommunicate request_size=4 [18:22:05]MH_SAM_APDU [18:22:05]CAPDU: 80 13 01 00 [18:22:05]Write to MH i2c: E2 08 00 D8 73 80 13 01 00 00 00 00 00 C8 [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:05]Read from MH i2c: E2 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 D8 73 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 49 [18:22:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:22:05]wFMCommunicate OK [18:22:05]SAM_PROTO_GetShiftState done [18:22:05]FM_GetShiftState done [18:22:05]opened in 1718670284 [18:22:05]opened+sec_in_day 1718756684 [18:22:05]quantity*price = 65005 [18:22:05]sum+1 = 65007 [18:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 191 18.06.2024 18:22 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103507 ФПД: 89642393521024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103507&fm=89642393521024&tin=02508201610067®Number=0000000000092785&sum=65000 [18:22:06]StoreToDocumentArchive [18:22:06]shift 352 fd 103507 [18:22:06]save to /storage/0352/doc_00103507 [18:22:06]save last doc name /storage/0352/doc_00103507 to /storage/kkm_last_doc_name [18:22:06]save OK [18:22:06]Clear old archive folders... [18:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:06]tlvbuf is 0132CDA0 [18:22:06]SAM_PROTO_ClearQueue [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 09 00 00 [18:22:06]Write to MH i2c: E2 08 00 E5 73 80 09 00 00 00 00 00 00 CA [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 E5 73 00 90 00 CC [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]SAM_PROTO_ClearQueue done [18:22:06]KKMCreateOFDPacket [18:22:06]OFDProtocolAddRootSTLVToBuf [18:22:06]FM_MakeSignedData [18:22:06]FM_MakeSignedData [18:22:06]SAM_PROTO_SignData [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 01 02 [18:22:06]Write to MH i2c: E2 08 00 E6 73 80 0D 01 02 00 00 00 00 D2 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 E6 73 00 90 00 CD [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=255 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 55 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 94 01 00 35 04 06 00 51 [18:22:06]Write to MH i2c: E2 02 01 E7 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 55 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 94 01 00 35 04 06 00 51 00 00 AB [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 E7 73 00 90 00 CE [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=10 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 02 02 05 87 7F 05 CB 80 [18:22:06]Write to MH i2c: E2 0D 00 E8 73 80 0D 02 02 05 00 87 7F 05 CB 80 00 00 35 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 E8 73 00 90 00 CF [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 03 02 [18:22:06]Write to MH i2c: E2 08 00 E9 73 80 0D 03 02 00 00 00 00 D7 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 0B 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 0B 00 E9 73 00 0D D0 EB DF 11 97 9B 4F 90 00 11 [18:22:06]RAPDU: 0D D0 EB DF 11 97 9B 4F 90 00 [18:22:06]wFMCommunicate OK [18:22:06]SAM_PROTO_SignData done [18:22:06]FM_MakeSignedData done [18:22:06]CreateOFDProtocolMessage [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 11 00 00 [18:22:06]Write to MH i2c: E2 08 00 EA 73 80 11 00 00 00 00 00 00 D7 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 17 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 17 00 EA 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2A [18:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:22:06]wFMCommunicate OK [18:22:06]CreateOFDProtocolMessage done [18:22:06]OFDSenderStorePacket 103507 [18:22:06]StoreOFDPacket docnum=103507 [18:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 32 AD 07 01 10 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 55 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 94 01 00 35 04 06 00 51 87 7F 05 CB 80 0D D0 EB DF 11 97 9B 4F [18:22:06]CheckFolder [18:22:06]dirname=/storage/ofd_packets [18:22:06]CheckFolder done [18:22:06]ProducePacketName [18:22:06]name=ofd_packets/00103507 [18:22:06]NVStorageSaveData ofd_packets/00103507 [18:22:06]File name is /storage/ofd_packets/00103507 [18:22:06]Write 301 bytes [18:22:06]NVStorageSaveData done [18:22:06]OFDSenderStorePacket done [18:22:06]KKMCreateOFDPacket done [18:22:06]NVStorageSaveData kkm_last_timestamp [18:22:06]File name is /storage/kkm_last_timestamp [18:22:06]Write 4 bytes [18:22:06]NVStorageSaveData done [18:22:06]ExternCall_PrintAddStr [18:22:06]wPrintStart [18:22:06]Write to MH i2c: 01 00 00 EB 73 5E [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 07 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: 01 07 00 EB 73 00 00 00 00 00 FF 0F 73 [18:22:06]RasterBufferAndPrint [18:22:06]line Счет N : (1)672704 [18:22:06]line ИНН: 02508201610067 [18:22:06]line Контрольно-Кассовый Чек [18:22:06]line ПРОДАЖА [18:22:06]line ТРК (МРК, ГНК) : 32 [18:22:06]line Товар: 2710124130 [18:22:06]line Аи-92-К-5 [18:22:06]line 9.790 * 66.40 [18:22:06]line = 650.06 [18:22:06]line НДС 12% НСП 1% [18:22:06]line > о реализуемом товаре [18:22:06]line ОКРУГЛЕНИЕ: -0.06 [18:22:06]line ИТОГО: 650.00 [18:22:06]line Внесено: 650.00 [18:22:06]line СДАЧА: 0.00 [18:22:06]line НСП 1% : 5.75 [18:22:06]line НДС 12% : 69.03 [18:22:06]line Наличными: 650.00 [18:22:06]line Безнал.: 0.00 [18:22:06]line Место: АЗС № 120 "Партнер Нефть" [18:22:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:22:06]line СНО: Общий режим [18:22:06]line Чек 191 18.06.2024 18:22 [18:22:06]line Смена: 352 ФФД: 1.0 [18:22:06]line ЗНМ: 0300000164 [18:22:06]line РНМ: 0000000000092785 [18:22:06]line Версия ККМ: 001 [18:22:06]line ФМ: 0000000000875093 [18:22:06]line ФД: 103507 [18:22:06]line ФПД: 89642393521024 [18:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103507&fm=89642393521024&tin=02508201610067®Number=0000000000092785&sum=65000 [18:22:07]written 0, free lines is 4095 [18:22:07]OFD Sender: Processing packet 103507 [packets to send 17, broken 16] [18:22:07]ProducePacketName [18:22:07]name=ofd_packets/00103507 [18:22:07]OFD Sender: To server: pG, [18:22:07]CommunicateWithHost lk.salyk.kg:30040 [18:22:07]ConnectInit lk.salyk.kg [18:22:07]Connected sock=10 [18:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 32 AD 07 01 10 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 55 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 94 01 00 35 04 06 00 51 87 7F 05 CB 80 0D D0 EB DF 11 97 9B 4F [18:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E6 EF 47 00 34 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 35 30 39 33 10 04 04 00 53 94 01 00 F4 03 04 00 E0 76 71 66 B6 04 01 00 00 4F CE B4 C6 64 3D 18 15 [18:22:07]CommunicateWithHost err = 0 [18:22:07]CheckOFDResponse [18:22:07]1017 (14) - 77093643461234 [18:22:07]1041 (16) - 0000000000875093 [18:22:07]1040 (4) - 103507 [18:22:07]1012 (4) - 18.06.2024 12:00 [18:22:07]1206 (1) - 0 [18:22:07]OFD Sender: Remove packet 103507 [18:22:07]ProducePacketName [18:22:07]name=ofd_packets/00103507 [18:22:07]NVStorageDeleteData [18:22:07]Write to MH i2c: 01 00 00 16 74 8A [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 16 74 00 00 00 00 00 D9 0C 76 [18:22:07]RasterBufferAndPrint [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]written 0, free lines is 3296 [18:22:07]MH_Cut [18:22:07]Write to MH i2c: D1 01 00 1D 74 01 63 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 1D 74 00 62 [18:22:07]Write to MH i2c: 01 00 00 1E 74 92 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:08]OFD Sender: No OFD packet to send [18:22:08]*** Cut start [18:22:08]*** Partial cut [18:22:08]*** CUTSNS_PIN = 1 [18:22:08]*** CUTSNS_PIN = 0 [18:22:08]*** Brake cut motor [18:22:08]Read from MH i2c: 01 [18:22:08]MH_I2C_Read... [18:22:08]*** Stop cut motor [18:22:08]*** Cut end [18:22:08]Read from MH i2c: 01 07 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: 01 07 00 1E 74 00 00 00 00 00 FF 0F A7 [18:22:08]process_action close_receipt done [18:22:08]requested_data is exist [18:22:08]produce_requested_data [18:22:08]requested_item fm.sn is exist - process it [18:22:08]wFMCommunicate request_size=4 [18:22:08]MH_SAM_APDU [18:22:08]CAPDU: 80 11 00 00 [18:22:08]Write to MH i2c: E2 08 00 1F 74 80 11 00 00 00 00 00 00 0D [18:22:08]Write i2c OK [18:22:08]MH_I2C_Read... [18:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:08]Read from MH i2c: E2 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 17 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 17 00 1F 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [18:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:22:08]wFMCommunicate OK [18:22:08]requested_item fd.num is exist - process it [18:22:08]SAM_PROTO_GetFieldsCounters [18:22:08]wFMCommunicate request_size=4 [18:22:08]MH_SAM_APDU [18:22:08]CAPDU: 80 13 00 00 [18:22:08]Write to MH i2c: E2 08 00 20 74 80 13 00 00 00 00 00 00 10 [18:22:08]Write i2c OK [18:22:08]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 20 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 53 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [18:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 53 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetFieldsCounters done [18:22:09]requested_item shift.num is exist - process it [18:22:09]requested_item shift.opened is exist - process it [18:22:09]req_shift_opened [18:22:09]FM_GetShiftState [18:22:09]SAM_PROTO_GetShiftState [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 13 01 00 [18:22:09]Write to MH i2c: E2 08 00 21 74 80 13 01 00 00 00 00 00 12 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 21 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 93 [18:22:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetShiftState done [18:22:09]FM_GetShiftState done [18:22:09]req_shift_opened done [18:22:09]requested_item shift.open_date is exist - process it [18:22:09]req_shift_open_date [18:22:09]req_shift_open_date done [18:22:09]produce_requested_data done [18:22:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103507,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:22:09]process_action_free close_receipt [18:22:09]json_value_free [18:22:09]json_value_free done [18:22:09]process_json_proto returns [18:22:09]Send response to host [18:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103507,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:22:09]free response buf [18:22:09]execute_script done [18:22:09]execute_script returns [18:22:09]free content buf [18:22:09]Sock 9.Close socket [18:22:09]Sock 9.Thread stoped [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:28]accept exits with 7 [18:23:28]New connection [18:23:28]New thread 3067084132 created [18:23:28]Thread 3067227492 joined [18:23:28]Waiting for new connection... [18:23:28] Sock 7.Parse request [18:23:28]Sock 7.Check first char [18:23:28]Sock 7.First char is OK [18:23:28]request: POST /json_proto HTTP/1.0 [18:23:28]Method: POST [18:23:28]URL: /json_proto [18:23:28]Method is POST - this is cgi request [18:23:28]url: /json_proto [18:23:28]query_string will be loaded in cgi processing [18:23:28]execute_cgi json_proto POST (null) [18:23:28]execute_cgi path=json_proto method=POST [18:23:28]POST find Content-Length [18:23:28]Host: 172.17.38.133:8080 [18:23:28]Content-Length: 677 [18:23:28]Content-Type: application/json [18:23:28] [18:23:28]POST finish read [18:23:28]Found Content-Length = 677 [18:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:28]execute_script... [18:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:28]POST & json_proto [18:23:28]process_json_proto [18:23:28]json parsed OK: [18:23:28]protocol is kg_v1.0 [18:23:28]action value=close_receipt [18:23:28]process_action close_receipt [18:23:28]cmd_close_receipt [18:23:28]MH_GetDate [18:23:28]Write to MH i2c: F0 00 00 22 74 85 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: F0 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: F0 09 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: F0 09 00 22 74 00 A8 D0 71 66 BD 8F 7C 64 09 [18:23:28]GetLastDocTimeStamp 1718734933 [18:23:28]current date 1718735016 [18:23:28]FM_GetShiftState [18:23:28]SAM_PROTO_GetShiftState [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 13 01 00 [18:23:28]Write to MH i2c: E2 08 00 23 74 80 13 01 00 00 00 00 00 14 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0E 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0E 00 23 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 95 [18:23:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_GetShiftState done [18:23:28]FM_GetShiftState done [18:23:28]opened in 1718670284 [18:23:28]opened+sec_in_day 1718756684 [18:23:28]quantity*price = 65005 [18:23:28]sum+1 = 65007 [18:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 192 18.06.2024 18:23 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103508 ФПД: 201128389723199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103508&fm=201128389723199&tin=02508201610067®Number=0000000000092785&sum=65000 [18:23:30]StoreToDocumentArchive [18:23:30]shift 352 fd 103508 [18:23:30]save to /storage/0352/doc_00103508 [18:23:30]save last doc name /storage/0352/doc_00103508 to /storage/kkm_last_doc_name [18:23:30]save OK [18:23:30]Clear old archive folders... [18:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:30]tlvbuf is 01446110 [18:23:30]SAM_PROTO_ClearQueue [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 09 00 00 [18:23:30]Write to MH i2c: E2 08 00 30 74 80 09 00 00 00 00 00 00 16 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 30 74 00 90 00 18 [18:23:30]RAPDU: 90 00 [18:23:30]wFMCommunicate OK [18:23:30]SAM_PROTO_ClearQueue done [18:23:30]KKMCreateOFDPacket [18:23:30]OFDProtocolAddRootSTLVToBuf [18:23:30]FM_MakeSignedData [18:23:30]FM_MakeSignedData [18:23:30]SAM_PROTO_SignData [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 0D 01 02 [18:23:30]Write to MH i2c: E2 08 00 31 74 80 0D 01 02 00 00 00 00 1E [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 31 74 00 90 00 19 [18:23:30]RAPDU: 90 00 [18:23:30]wFMCommunicate OK [18:23:30]wFMCommunicate request_size=255 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A9 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 94 01 00 35 04 06 00 B6 [18:23:30]Write to MH i2c: E2 02 01 32 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A9 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 94 01 00 35 04 06 00 B6 00 00 B2 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 32 74 00 90 00 1A [18:23:30]RAPDU: 90 00 [18:23:30]wFMCommunicate OK [18:23:30]wFMCommunicate request_size=10 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 0D 02 02 05 EC DA 39 44 3F [18:23:30]Write to MH i2c: E2 0D 00 33 74 80 0D 02 02 05 00 EC DA 39 44 3F 00 00 AD [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 03 00 33 74 00 90 00 1B [18:23:30]RAPDU: 90 00 [18:23:30]wFMCommunicate OK [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 0D 03 02 [18:23:30]Write to MH i2c: E2 08 00 34 74 80 0D 03 02 00 00 00 00 23 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 0B 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 0B 00 34 74 00 6B 18 D6 4E 14 F0 90 4D 90 00 AC [18:23:30]RAPDU: 6B 18 D6 4E 14 F0 90 4D 90 00 [18:23:30]wFMCommunicate OK [18:23:30]SAM_PROTO_SignData done [18:23:30]FM_MakeSignedData done [18:23:30]CreateOFDProtocolMessage [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 11 00 00 [18:23:30]Write to MH i2c: E2 08 00 35 74 80 11 00 00 00 00 00 00 23 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 35 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [18:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:23:30]wFMCommunicate OK [18:23:30]CreateOFDProtocolMessage done [18:23:30]OFDSenderStorePacket 103508 [18:23:30]StoreOFDPacket docnum=103508 [18:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 04 61 07 01 C8 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A9 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 94 01 00 35 04 06 00 B6 EC DA 39 44 3F 6B 18 D6 4E 14 F0 90 4D [18:23:30]CheckFolder [18:23:30]dirname=/storage/ofd_packets [18:23:30]CheckFolder done [18:23:30]ProducePacketName [18:23:30]name=ofd_packets/00103508 [18:23:30]NVStorageSaveData ofd_packets/00103508 [18:23:30]File name is /storage/ofd_packets/00103508 [18:23:30]Write 301 bytes [18:23:30]NVStorageSaveData done [18:23:30]OFDSenderStorePacket done [18:23:30]KKMCreateOFDPacket done [18:23:30]NVStorageSaveData kkm_last_timestamp [18:23:30]File name is /storage/kkm_last_timestamp [18:23:30]Write 4 bytes [18:23:30]NVStorageSaveData done [18:23:30]ExternCall_PrintAddStr [18:23:30]wPrintStart [18:23:30]Write to MH i2c: 01 00 00 36 74 AA [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: 01 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: 01 07 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: 01 07 00 36 74 00 00 00 00 00 FF 0F BF [18:23:30]RasterBufferAndPrint [18:23:30]line Счет N : (1)672705 [18:23:30]line ИНН: 02508201610067 [18:23:30]line Контрольно-Кассовый Чек [18:23:30]line ПРОДАЖА [18:23:30]line ТРК (МРК, ГНК) : 42 [18:23:30]line Товар: 2710124130 [18:23:30]line Аи-92-К-5 [18:23:30]line 9.790 * 66.40 [18:23:30]line = 650.06 [18:23:30]line НДС 12% НСП 1% [18:23:30]line > о реализуемом товаре [18:23:30]line ОКРУГЛЕНИЕ: -0.06 [18:23:30]line ИТОГО: 650.00 [18:23:30]line Внесено: 650.00 [18:23:30]line СДАЧА: 0.00 [18:23:30]line НСП 1% : 5.75 [18:23:30]line НДС 12% : 69.03 [18:23:30]line Наличными: 650.00 [18:23:30]line Безнал.: 0.00 [18:23:30]line Место: АЗС № 120 "Партнер Нефть" [18:23:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:23:30]line СНО: Общий режим [18:23:30]line Чек 192 18.06.2024 18:23 [18:23:30]line Смена: 352 ФФД: 1.0 [18:23:30]line ЗНМ: 0300000164 [18:23:30]line РНМ: 0000000000092785 [18:23:30]line Версия ККМ: 001 [18:23:30]line ФМ: 0000000000875093 [18:23:30]line ФД: 103508 [18:23:30]line ФПД: 201128389723199 [18:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103508&fm=201128389723199&tin=02508201610067®Number=0000000000092785&sum=65000 [18:23:30]OFD Sender: Processing packet 103508 [packets to send 17, broken 16] [18:23:30]ProducePacketName [18:23:30]name=ofd_packets/00103508 [18:23:30]OFD Sender: To server: pG, [18:23:30]CommunicateWithHost lk.salyk.kg:30040 [18:23:30]ConnectInit lk.salyk.kg [18:23:30]written 0, free lines is 4095 [18:23:31]Connected sock=10 [18:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 04 61 07 01 C8 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A9 D0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 94 01 00 35 04 06 00 B6 EC DA 39 44 3F 6B 18 D6 4E 14 F0 90 4D [18:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5E 34 47 00 69 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 35 30 39 33 10 04 04 00 54 94 01 00 F4 03 04 00 34 77 71 66 B6 04 01 00 00 0F A3 8D 90 5A 12 D4 01 [18:23:31]CommunicateWithHost err = 0 [18:23:31]CheckOFDResponse [18:23:31]1017 (14) - 77093643461234 [18:23:31]1041 (16) - 0000000000875093 [18:23:31]1040 (4) - 103508 [18:23:31]1012 (4) - 18.06.2024 12:01 [18:23:31]1206 (1) - 0 [18:23:31]OFD Sender: Remove packet 103508 [18:23:31]ProducePacketName [18:23:31]name=ofd_packets/00103508 [18:23:31]NVStorageDeleteData [18:23:31]Write to MH i2c: 01 00 00 61 74 D5 [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: 01 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: 01 07 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: 01 07 00 61 74 00 00 00 00 00 D9 0C C1 [18:23:31]RasterBufferAndPrint [18:23:31]line [18:23:31]line [18:23:31]line [18:23:31]line [18:23:31]line [18:23:31]written 0, free lines is 3296 [18:23:31]MH_Cut [18:23:31]Write to MH i2c: D1 01 00 68 74 01 AE [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: D1 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: D1 01 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: D1 01 00 68 74 00 AD [18:23:31]Write to MH i2c: 01 00 00 69 74 DD [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]OFD Sender: No OFD packet to send [18:23:32]*** Cut start [18:23:32]*** Partial cut [18:23:32]*** CUTSNS_PIN = 1 [18:23:32]*** CUTSNS_PIN = 0 [18:23:32]*** Brake cut motor [18:23:32]Read from MH i2c: 01 [18:23:32]MH_I2C_Read... [18:23:32]*** Stop cut motor [18:23:32]*** Cut end [18:23:32]Read from MH i2c: 01 07 00 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: 01 07 00 69 74 00 00 00 00 00 FF 0F F2 [18:23:32]process_action close_receipt done [18:23:32]requested_data is exist [18:23:32]produce_requested_data [18:23:32]requested_item fm.sn is exist - process it [18:23:32]wFMCommunicate request_size=4 [18:23:32]MH_SAM_APDU [18:23:32]CAPDU: 80 11 00 00 [18:23:32]Write to MH i2c: E2 08 00 6A 74 80 11 00 00 00 00 00 00 58 [18:23:32]Write i2c OK [18:23:32]MH_I2C_Read... [18:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:32]Read from MH i2c: E2 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 17 00 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 17 00 6A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [18:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:23:32]wFMCommunicate OK [18:23:32]requested_item fd.num is exist - process it [18:23:32]SAM_PROTO_GetFieldsCounters [18:23:32]wFMCommunicate request_size=4 [18:23:32]MH_SAM_APDU [18:23:32]CAPDU: 80 13 00 00 [18:23:32]Write to MH i2c: E2 08 00 6B 74 80 13 00 00 00 00 00 00 5B [18:23:32]Write i2c OK [18:23:32]MH_I2C_Read... [18:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:32]Read from MH i2c: E2 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 62 00 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 62 00 6B 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 54 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [18:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 54 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:32]wFMCommunicate OK [18:23:32]SAM_PROTO_GetFieldsCounters done [18:23:32]requested_item shift.num is exist - process it [18:23:32]requested_item shift.opened is exist - process it [18:23:32]req_shift_opened [18:23:32]FM_GetShiftState [18:23:32]SAM_PROTO_GetShiftState [18:23:32]wFMCommunicate request_size=4 [18:23:32]MH_SAM_APDU [18:23:32]CAPDU: 80 13 01 00 [18:23:32]Write to MH i2c: E2 08 00 6C 74 80 13 01 00 00 00 00 00 5D [18:23:32]Write i2c OK [18:23:32]MH_I2C_Read... [18:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:32]Read from MH i2c: E2 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 0E 00 [18:23:32]MH_I2C_Read... [18:23:32]Read from MH i2c: E2 0E 00 6C 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DE [18:23:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:23:32]wFMCommunicate OK [18:23:32]SAM_PROTO_GetShiftState done [18:23:32]FM_GetShiftState done [18:23:32]req_shift_opened done [18:23:32]requested_item shift.open_date is exist - process it [18:23:32]req_shift_open_date [18:23:32]req_shift_open_date done [18:23:32]produce_requested_data done [18:23:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103508,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:23:32]process_action_free close_receipt [18:23:32]json_value_free [18:23:32]json_value_free done [18:23:32]process_json_proto returns [18:23:32]Send response to host [18:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103508,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:23:32]free response buf [18:23:32]execute_script done [18:23:32]execute_script returns [18:23:32]free content buf [18:23:32]Sock 7.Close socket [18:23:32]Sock 7.Thread stoped [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]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:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:21]accept exits with 9 [18:46:21]New connection [18:46:21]New thread 3067227492 created [18:46:21]Thread 3067084132 joined [18:46:21]Waiting for new connection... [18:46:21] Sock 9.Parse request [18:46:21]Sock 9.Check first char [18:46:21]Sock 9.First char is OK [18:46:21]request: POST /json_proto HTTP/1.0 [18:46:21]Method: POST [18:46:21]URL: /json_proto [18:46:21]Method is POST - this is cgi request [18:46:21]url: /json_proto [18:46:21]query_string will be loaded in cgi processing [18:46:21]execute_cgi json_proto POST (null) [18:46:21]execute_cgi path=json_proto method=POST [18:46:21]POST find Content-Length [18:46:21]Host: 172.17.38.133:8080 [18:46:21]Content-Length: 819 [18:46:21]Content-Type: application/json [18:46:21] [18:46:21]POST finish read [18:46:21]Found Content-Length = 819 [18:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.510, "sum" : 2424.26, "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" : 2424.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:21]execute_script... [18:46:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.510, "sum" : 2424.26, "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" : 2424.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:21]POST & json_proto [18:46:21]process_json_proto [18:46:21]json parsed OK: [18:46:21]protocol is kg_v1.0 [18:46:21]action value=close_receipt [18:46:21]process_action close_receipt [18:46:21]cmd_close_receipt [18:46:21]MH_GetDate [18:46:21]Write to MH i2c: F0 00 00 6D 74 D0 [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: F0 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: F0 09 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: F0 09 00 6D 74 00 05 D6 71 66 BD 8F 7C 64 B7 [18:46:21]GetLastDocTimeStamp 1718735017 [18:46:21]current date 1718736389 [18:46:21]FM_GetShiftState [18:46:21]SAM_PROTO_GetShiftState [18:46:21]wFMCommunicate request_size=4 [18:46:21]MH_SAM_APDU [18:46:21]CAPDU: 80 13 01 00 [18:46:21]Write to MH i2c: E2 08 00 6E 74 80 13 01 00 00 00 00 00 5F [18:46:21]Write i2c OK [18:46:21]MH_I2C_Read... [18:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:21]Read from MH i2c: E2 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: E2 0E 00 [18:46:21]MH_I2C_Read... [18:46:21]Read from MH i2c: E2 0E 00 6E 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E0 [18:46:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:46:21]wFMCommunicate OK [18:46:21]SAM_PROTO_GetShiftState done [18:46:21]FM_GetShiftState done [18:46:21]opened in 1718670284 [18:46:21]opened+sec_in_day 1718756684 [18:46:21]quantity*price = 242426 [18:46:21]sum+1 = 242427 [18:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2424.26 НСП 1% : 21.45 НДС 12% : 257.44 Наличными: 0.00 Безнал.: 2424.26 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 193 18.06.2024 18:46 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103509 ФПД: 147775632159782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T184629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103509&fm=147775632159782&tin=02508201610067®Number=0000000000092785&sum=242426 [18:46:22]StoreToDocumentArchive [18:46:22]shift 352 fd 103509 [18:46:22]save to /storage/0352/doc_00103509 [18:46:22]save last doc name /storage/0352/doc_00103509 to /storage/kkm_last_doc_name [18:46:22]save OK [18:46:22]Clear old archive folders... [18:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:22]tlvbuf is 01410B70 [18:46:22]SAM_PROTO_ClearQueue [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 09 00 00 [18:46:22]Write to MH i2c: E2 08 00 7B 74 80 09 00 00 00 00 00 00 61 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 7B 74 00 90 00 63 [18:46:22]RAPDU: 90 00 [18:46:22]wFMCommunicate OK [18:46:22]SAM_PROTO_ClearQueue done [18:46:22]KKMCreateOFDPacket [18:46:22]OFDProtocolAddRootSTLVToBuf [18:46:22]FM_MakeSignedData [18:46:22]FM_MakeSignedData [18:46:22]SAM_PROTO_SignData [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 0D 01 02 [18:46:22]Write to MH i2c: E2 08 00 7C 74 80 0D 01 02 00 00 00 00 69 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 7C 74 00 90 00 64 [18:46:22]RAPDU: 90 00 [18:46:22]wFMCommunicate OK [18:46:22]wFMCommunicate request_size=255 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 8E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FA B2 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B2 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 64 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B2 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 D6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 94 01 00 35 04 06 00 86 [18:46:22]Write to MH i2c: E2 02 01 7D 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 8E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FA B2 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B2 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 64 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B2 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 D6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 94 01 00 35 04 06 00 86 00 00 5C [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 7D 74 00 90 00 65 [18:46:22]RAPDU: 90 00 [18:46:22]wFMCommunicate OK [18:46:22]wFMCommunicate request_size=10 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 0D 02 02 05 66 B2 0F B4 26 [18:46:22]Write to MH i2c: E2 0D 00 7E 74 80 0D 02 02 05 00 66 B2 0F B4 26 00 00 77 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 03 00 7E 74 00 90 00 66 [18:46:22]RAPDU: 90 00 [18:46:22]wFMCommunicate OK [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 0D 03 02 [18:46:22]Write to MH i2c: E2 08 00 7F 74 80 0D 03 02 00 00 00 00 6E [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0B 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 0B 00 7F 74 00 E2 36 F7 93 95 8E 18 B3 90 00 FF [18:46:22]RAPDU: E2 36 F7 93 95 8E 18 B3 90 00 [18:46:22]wFMCommunicate OK [18:46:22]SAM_PROTO_SignData done [18:46:22]FM_MakeSignedData done [18:46:22]CreateOFDProtocolMessage [18:46:22]wFMCommunicate request_size=4 [18:46:22]MH_SAM_APDU [18:46:22]CAPDU: 80 11 00 00 [18:46:22]Write to MH i2c: E2 08 00 80 74 80 11 00 00 00 00 00 00 6E [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:22]Read from MH i2c: E2 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: E2 17 00 80 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [18:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:46:22]wFMCommunicate OK [18:46:22]CreateOFDProtocolMessage done [18:46:22]OFDSenderStorePacket 103509 [18:46:22]StoreOFDPacket docnum=103509 [18:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 93 07 01 69 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 8E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FA B2 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B2 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 64 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B2 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 D6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 94 01 00 35 04 06 00 86 66 B2 0F B4 26 E2 36 F7 93 95 8E 18 B3 [18:46:22]CheckFolder [18:46:22]dirname=/storage/ofd_packets [18:46:22]CheckFolder done [18:46:22]ProducePacketName [18:46:22]name=ofd_packets/00103509 [18:46:22]NVStorageSaveData ofd_packets/00103509 [18:46:22]File name is /storage/ofd_packets/00103509 [18:46:22]Write 301 bytes [18:46:22]NVStorageSaveData done [18:46:22]OFDSenderStorePacket done [18:46:22]KKMCreateOFDPacket done [18:46:22]NVStorageSaveData kkm_last_timestamp [18:46:22]File name is /storage/kkm_last_timestamp [18:46:22]Write 4 bytes [18:46:22]NVStorageSaveData done [18:46:22]ExternCall_PrintAddStr [18:46:22]wPrintStart [18:46:22]Write to MH i2c: 01 00 00 81 74 F5 [18:46:22]Write i2c OK [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 07 00 [18:46:22]MH_I2C_Read... [18:46:22]Read from MH i2c: 01 07 00 81 74 00 00 00 00 00 FF 0F 0A [18:46:22]RasterBufferAndPrint [18:46:22]line Счет N : (1)672711 [18:46:22]line ИНН: 02508201610067 [18:46:22]line Контрольно-Кассовый Чек [18:46:22]line ПРОДАЖА [18:46:22]line ТРК (МРК, ГНК) : 32 [18:46:22]line Товар: 2710124130 [18:46:22]line Аи-92-К-5 [18:46:22]line 36.510 * 66.40 [18:46:22]line = 2424.26 [18:46:22]line НДС 12% НСП 1% [18:46:22]line > о реализуемом товаре [18:46:22]line ИТОГО: 2424.26 [18:46:22]line НСП 1% : 21.45 [18:46:22]line НДС 12% : 257.44 [18:46:22]line Наличными: 0.00 [18:46:22]line Безнал.: 2424.26 [18:46:22]line Место: АЗС № 120 "Партнер Нефть" [18:46:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:46:22]line СНО: Общий режим [18:46:22]line Чек 193 18.06.2024 18:46 [18:46:22]line Смена: 352 ФФД: 1.0 [18:46:22]line ЗНМ: 0300000164 [18:46:22]line РНМ: 0000000000092785 [18:46:22]line Версия ККМ: 001 [18:46:22]line Платежная система: Бакай Банк [18:46:22]line ФМ: 0000000000875093 [18:46:22]line ФД: 103509 [18:46:22]line ФПД: 147775632159782 [18:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T184629&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103509&fm=147775632159782&tin=02508201610067®Number=0000000000092785&sum=242426 [18:46:23]written 0, free lines is 4095 [18:46:23]OFD Sender: Processing packet 103509 [packets to send 17, broken 16] [18:46:23]ProducePacketName [18:46:23]name=ofd_packets/00103509 [18:46:23]OFD Sender: To server: pG, [18:46:23]CommunicateWithHost lk.salyk.kg:30040 [18:46:23]ConnectInit lk.salyk.kg [18:46:23]Connected sock=10 [18:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 93 07 01 69 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 8E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FA B2 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B2 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 64 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B2 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 05 D6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 94 01 00 35 04 06 00 86 66 B2 0F B4 26 E2 36 F7 93 95 8E 18 B3 [18:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B7 82 47 00 07 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 35 30 39 33 10 04 04 00 55 94 01 00 F4 03 04 00 90 7C 71 66 B6 04 01 00 00 20 E6 8D C6 8F 2F E9 1D [18:46:23]CommunicateWithHost err = 0 [18:46:23]CheckOFDResponse [18:46:23]1017 (14) - 77093643461234 [18:46:23]1041 (16) - 0000000000875093 [18:46:23]1040 (4) - 103509 [18:46:23]1012 (4) - 18.06.2024 12:24 [18:46:23]1206 (1) - 0 [18:46:23]OFD Sender: Remove packet 103509 [18:46:23]ProducePacketName [18:46:23]name=ofd_packets/00103509 [18:46:23]NVStorageDeleteData [18:46:23]Write to MH i2c: 01 00 00 AB 74 1F [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: 01 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: 01 07 00 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: 01 07 00 AB 74 00 00 00 00 00 00 0D 33 [18:46:23]RasterBufferAndPrint [18:46:23]line [18:46:23]line [18:46:23]line [18:46:23]line [18:46:23]line [18:46:23]written 0, free lines is 3333 [18:46:23]MH_Cut [18:46:23]Write to MH i2c: D1 01 00 B2 74 01 F8 [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: D1 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: D1 01 00 [18:46:23]MH_I2C_Read... [18:46:23]Read from MH i2c: D1 01 00 B2 74 00 F7 [18:46:23]Write to MH i2c: 01 00 00 B3 74 27 [18:46:23]Write i2c OK [18:46:23]MH_I2C_Read... [18:46:24]OFD Sender: No OFD packet to send [18:46:24]*** Cut start [18:46:24]*** Partial cut [18:46:24]*** CUTSNS_PIN = 1 [18:46:24]*** CUTSNS_PIN = 0 [18:46:24]*** Brake cut motor [18:46:24]Read from MH i2c: 01 [18:46:24]MH_I2C_Read... [18:46:24]*** Stop cut motor [18:46:24]*** Cut end [18:46:24]Read from MH i2c: 01 07 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: 01 07 00 B3 74 00 00 00 00 00 FF 0F 3C [18:46:24]process_action close_receipt done [18:46:24]requested_data is exist [18:46:24]produce_requested_data [18:46:24]requested_item fm.sn is exist - process it [18:46:24]wFMCommunicate request_size=4 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 11 00 00 [18:46:24]Write to MH i2c: E2 08 00 B4 74 80 11 00 00 00 00 00 00 A2 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:24]Read from MH i2c: E2 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 17 00 [18:46:24]MH_I2C_Read... [18:46:24]Read from MH i2c: E2 17 00 B4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [18:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:46:24]wFMCommunicate OK [18:46:24]requested_item fd.num is exist - process it [18:46:24]SAM_PROTO_GetFieldsCounters [18:46:24]wFMCommunicate request_size=4 [18:46:24]MH_SAM_APDU [18:46:24]CAPDU: 80 13 00 00 [18:46:24]Write to MH i2c: E2 08 00 B5 74 80 13 00 00 00 00 00 00 A5 [18:46:24]Write i2c OK [18:46:24]MH_I2C_Read... [18:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 62 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 62 00 B5 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [18:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:25]wFMCommunicate OK [18:46:25]SAM_PROTO_GetFieldsCounters done [18:46:25]requested_item shift.num is exist - process it [18:46:25]requested_item shift.opened is exist - process it [18:46:25]req_shift_opened [18:46:25]FM_GetShiftState [18:46:25]SAM_PROTO_GetShiftState [18:46:25]wFMCommunicate request_size=4 [18:46:25]MH_SAM_APDU [18:46:25]CAPDU: 80 13 01 00 [18:46:25]Write to MH i2c: E2 08 00 B6 74 80 13 01 00 00 00 00 00 A7 [18:46:25]Write i2c OK [18:46:25]MH_I2C_Read... [18:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:25]Read from MH i2c: E2 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 [18:46:25]MH_I2C_Read... [18:46:25]Read from MH i2c: E2 0E 00 B6 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 28 [18:46:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:46:25]wFMCommunicate OK [18:46:25]SAM_PROTO_GetShiftState done [18:46:25]FM_GetShiftState done [18:46:25]req_shift_opened done [18:46:25]requested_item shift.open_date is exist - process it [18:46:25]req_shift_open_date [18:46:25]req_shift_open_date done [18:46:25]produce_requested_data done [18:46:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:46:25]process_action_free close_receipt [18:46:25]json_value_free [18:46:25]json_value_free done [18:46:25]process_json_proto returns [18:46:25]Send response to host [18:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:46:25]free response buf [18:46:25]execute_script done [18:46:25]execute_script returns [18:46:25]free content buf [18:46:25]Sock 9.Close socket [18:46:25]Sock 9.Thread stoped [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:14]accept exits with 7 [18:47:14]New connection [18:47:14]New thread 3067084132 created [18:47:14]Thread 3067227492 joined [18:47:14]Waiting for new connection... [18:47:14] Sock 7.Parse request [18:47:14]Sock 7.Check first char [18:47:14]Sock 7.First char is OK [18:47:14]request: POST /json_proto HTTP/1.0 [18:47:14]Method: POST [18:47:14]URL: /json_proto [18:47:14]Method is POST - this is cgi request [18:47:14]url: /json_proto [18:47:14]query_string will be loaded in cgi processing [18:47:14]execute_cgi json_proto POST (null) [18:47:14]execute_cgi path=json_proto method=POST [18:47:14]POST find Content-Length [18:47:14]Host: 172.17.38.133:8080 [18:47:14]Content-Length: 1157 [18:47:14]Content-Type: application/json [18:47:14] [18:47:14]POST finish read [18:47:14]Found Content-Length = 1157 [18:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672712\u000A18.06.2024 18:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:14]execute_script... [18:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672712\u000A18.06.2024 18:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:14]POST & json_proto [18:47:14]process_json_proto [18:47:14]json parsed OK: [18:47:14]protocol is kg_v1.0 [18:47:14]action value=print_text [18:47:14]process_action print_text [18:47:14]cmd_print_text [18:47:14]ExternCall_PrintAddStr [18:47:14]wPrintStart [18:47:14]Write to MH i2c: 01 00 00 B7 74 2B [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 B7 74 00 00 00 00 00 FF 0F 40 [18:47:14]RasterBufferAndPrint [18:47:14]line *****ТОВАРНЫЙ ЧЕК***** [18:47:14]line АЗС 120 [18:47:14]line Партнер нефть [18:47:14]line 02508201610067 [18:47:14]line Кассир : Асанбаев Н. [18:47:14]line Счет N : (1)672712 [18:47:14]line 18.06.2024 18:24 [18:47:14]line ПРОДАЖА [18:47:14]line ТРК (МРК, ГНК): 42 [18:47:14]line Вид ГСМ : 2710124130 [18:47:14]line Аи-92-К-5 [18:47:14]line 15.070 x 66.40 [18:47:14]line ИТОГ: 1000.65 [18:47:14]line Тип оплаты: Талоны: ТК ГПНА Online [18:47:14]line 30086492 [18:47:14]line ______________________ [18:47:14]line (подпись) [18:47:14]written 0, free lines is 4095 [18:47:14]Write to MH i2c: 01 00 00 CB 74 3F [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 CB 74 00 00 00 00 00 11 0E 65 [18:47:14]RasterBufferAndPrint [18:47:14]line [18:47:14]line [18:47:14]line [18:47:14]line [18:47:14]line [18:47:14]written 0, free lines is 3603 [18:47:14]MH_Cut [18:47:14]Write to MH i2c: D1 01 00 D2 74 01 18 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: D1 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: D1 01 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: D1 01 00 D2 74 00 17 [18:47:14]Write to MH i2c: 01 00 00 D3 74 47 [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:15]*** Cut start [18:47:15]*** Partial cut [18:47:15]*** CUTSNS_PIN = 1 [18:47:15]*** CUTSNS_PIN = 0 [18:47:15]*** Brake cut motor [18:47:15]Read from MH i2c: 01 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: 01 07 00 [18:47:15]MH_I2C_Read... [18:47:15]*** Stop cut motor [18:47:15]*** Cut end [18:47:15]Read from MH i2c: 01 07 00 D3 74 00 00 00 00 00 FF 0F 5C [18:47:15]process_action print_text done [18:47:15]requested_data is exist [18:47:15]produce_requested_data [18:47:15]requested_item fm.sn is exist - process it [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 11 00 00 [18:47:15]Write to MH i2c: E2 08 00 D4 74 80 11 00 00 00 00 00 00 C2 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 17 00 D4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [18:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:47:15]wFMCommunicate OK [18:47:15]requested_item fd.num is exist - process it [18:47:15]SAM_PROTO_GetFieldsCounters [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 13 00 00 [18:47:15]Write to MH i2c: E2 08 00 D5 74 80 13 00 00 00 00 00 00 C5 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 62 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 62 00 D5 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [18: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:15]wFMCommunicate OK [18:47:15]SAM_PROTO_GetFieldsCounters done [18:47:15]requested_item shift.num is exist - process it [18:47:15]requested_item shift.opened is exist - process it [18:47:15]req_shift_opened [18:47:15]FM_GetShiftState [18:47:15]SAM_PROTO_GetShiftState [18:47:15]wFMCommunicate request_size=4 [18:47:15]MH_SAM_APDU [18:47:15]CAPDU: 80 13 01 00 [18:47:15]Write to MH i2c: E2 08 00 D6 74 80 13 01 00 00 00 00 00 C7 [18:47:15]Write i2c OK [18:47:15]MH_I2C_Read... [18:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:15]Read from MH i2c: E2 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 0E 00 [18:47:15]MH_I2C_Read... [18:47:15]Read from MH i2c: E2 0E 00 D6 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 48 [18:47:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:47:15]wFMCommunicate OK [18:47:15]SAM_PROTO_GetShiftState done [18:47:15]FM_GetShiftState done [18:47:15]req_shift_opened done [18:47:15]requested_item shift.open_date is exist - process it [18:47:15]req_shift_open_date [18:47:15]req_shift_open_date done [18:47:15]produce_requested_data done [18:47:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:47:15]process_action_free print_text [18:47:15]json_value_free [18:47:15]json_value_free done [18:47:15]process_json_proto returns [18:47:15]Send response to host [18:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:47:15]free response buf [18:47:15]execute_script done [18:47:15]execute_script returns [18:47:15]free content buf [18:47:15]Sock 7.Close socket [18:47:15]Sock 7.Thread stoped [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:51:59]accept exits with 9 [18:51:59]New connection [18:51:59]New thread 3067227492 created [18:51:59]Thread 3067084132 joined [18:51:59]Waiting for new connection... [18:51:59] Sock 9.Parse request [18:51:59]Sock 9.Check first char [18:51:59]Sock 9.First char is OK [18:51:59]request: POST /json_proto HTTP/1.0 [18:51:59]Method: POST [18:51:59]URL: /json_proto [18:51:59]Method is POST - this is cgi request [18:51:59]url: /json_proto [18:51:59]query_string will be loaded in cgi processing [18:51:59]execute_cgi json_proto POST (null) [18:51:59]execute_cgi path=json_proto method=POST [18:51:59]POST find Content-Length [18:51:59]Host: 172.17.38.133:8080 [18:51:59]Content-Length: 1157 [18:51:59]Content-Type: application/json [18:51:59] [18:51:59]POST finish read [18:51:59]Found Content-Length = 1157 [18:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672713\u000A18.06.2024 18:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:59]execute_script... [18:51:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672713\u000A18.06.2024 18:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:59]POST & json_proto [18:51:59]process_json_proto [18:51:59]json parsed OK: [18:51:59]protocol is kg_v1.0 [18:51:59]action value=print_text [18:51:59]process_action print_text [18:51:59]cmd_print_text [18:51:59]ExternCall_PrintAddStr [18:51:59]wPrintStart [18:51:59]Write to MH i2c: 01 00 00 D7 74 4B [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: 01 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: 01 07 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: 01 07 00 D7 74 00 00 00 00 00 FF 0F 60 [18:51:59]RasterBufferAndPrint [18:51:59]line *****ТОВАРНЫЙ ЧЕК***** [18:51:59]line АЗС 120 [18:51:59]line Партнер нефть [18:51:59]line 02508201610067 [18:51:59]line Кассир : Асанбаев Н. [18:51:59]line Счет N : (1)672713 [18:51:59]line 18.06.2024 18:29 [18:51:59]line ПРОДАЖА [18:51:59]line ТРК (МРК, ГНК): 32 [18:51:59]line Вид ГСМ : 2710124130 [18:51:59]line Аи-92-К-5 [18:51:59]line 20.000 x 66.40 [18:51:59]line ИТОГ: 1328.00 [18:51:59]line Тип оплаты: Талоны: ТК ГПНА Online [18:51:59]line 30086351 [18:51:59]line ______________________ [18:51:59]line (подпись) [18:51:59]written 0, free lines is 4095 [18:52:00]Write to MH i2c: 01 00 00 EB 74 5F [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 EB 74 00 00 00 00 00 11 0E 85 [18:52:00]RasterBufferAndPrint [18:52:00]line [18:52:00]line [18:52:00]line [18:52:00]line [18:52:00]line [18:52:00]written 0, free lines is 3603 [18:52:00]MH_Cut [18:52:00]Write to MH i2c: D1 01 00 F2 74 01 38 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: D1 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: D1 01 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: D1 01 00 F2 74 00 37 [18:52:00]Write to MH i2c: 01 00 00 F3 74 67 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** Cut start [18:52:00]*** Partial cut [18:52:00]*** CUTSNS_PIN = 1 [18:52:00]*** CUTSNS_PIN = 0 [18:52:00]*** Brake cut motor [18:52:01]Read from MH i2c: 01 [18:52:01]MH_I2C_Read... [18:52:01]*** Stop cut motor [18:52:01]*** Cut end [18:52:01]Read from MH i2c: 01 07 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 F3 74 00 00 00 00 00 FF 0F 7C [18:52:01]process_action print_text done [18:52:01]requested_data is exist [18:52:01]produce_requested_data [18:52:01]requested_item fm.sn is exist - process it [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 11 00 00 [18:52:01]Write to MH i2c: E2 08 00 F4 74 80 11 00 00 00 00 00 00 E2 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 F4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [18:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:52:01]wFMCommunicate OK [18:52:01]requested_item fd.num is exist - process it [18:52:01]SAM_PROTO_GetFieldsCounters [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 00 00 [18:52:01]Write to MH i2c: E2 08 00 F5 74 80 13 00 00 00 00 00 00 E5 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 F5 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [18:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetFieldsCounters done [18:52:01]requested_item shift.num is exist - process it [18:52:01]requested_item shift.opened is exist - process it [18:52:01]req_shift_opened [18:52:01]FM_GetShiftState [18:52:01]SAM_PROTO_GetShiftState [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 01 00 [18:52:01]Write to MH i2c: E2 08 00 F6 74 80 13 01 00 00 00 00 00 E7 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 F6 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 68 [18:52:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetShiftState done [18:52:01]FM_GetShiftState done [18:52:01]req_shift_opened done [18:52:01]requested_item shift.open_date is exist - process it [18:52:01]req_shift_open_date [18:52:01]req_shift_open_date done [18:52:01]produce_requested_data done [18:52:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:52:01]process_action_free print_text [18:52:01]json_value_free [18:52:01]json_value_free done [18:52:01]process_json_proto returns [18:52:01]Send response to host [18:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103509,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:52:01]free response buf [18:52:01]execute_script done [18:52:01]execute_script returns [18:52:01]free content buf [18:52:01]Sock 9.Close socket [18:52:01]Sock 9.Thread stoped [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]accept exits with 7 [18:54:59]New connection [18:54:59]New thread 3067084132 created [18:54:59]Thread 3067227492 joined [18:54:59]Waiting for new connection... [18:54:59] Sock 7.Parse request [18:54:59]Sock 7.Check first char [18:54:59]Sock 7.First char is OK [18:54:59]request: POST /json_proto HTTP/1.0 [18:54:59]Method: POST [18:54:59]URL: /json_proto [18:54:59]Method is POST - this is cgi request [18:54:59]url: /json_proto [18:54:59]query_string will be loaded in cgi processing [18:54:59]execute_cgi json_proto POST (null) [18:54:59]execute_cgi path=json_proto method=POST [18:54:59]POST find Content-Length [18:54:59]Host: 172.17.38.133:8080 [18:54:59]Content-Length: 677 [18:54:59]Content-Type: application/json [18:54:59] [18:54:59]POST finish read [18:54:59]Found Content-Length = 677 [18:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:59]execute_script... [18:54:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:59]POST & json_proto [18:54:59]process_json_proto [18:54:59]json parsed OK: [18:54:59]protocol is kg_v1.0 [18:54:59]action value=close_receipt [18:54:59]process_action close_receipt [18:54:59]cmd_close_receipt [18:54:59]MH_GetDate [18:54:59]Write to MH i2c: F0 00 00 F7 74 5A [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: F0 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: F0 09 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: F0 09 00 F7 74 00 0B D8 71 66 BD 8F 7C 64 49 [18:54:59]GetLastDocTimeStamp 1718736389 [18:54:59]current date 1718736907 [18:54:59]FM_GetShiftState [18:54:59]SAM_PROTO_GetShiftState [18:54:59]wFMCommunicate request_size=4 [18:54:59]MH_SAM_APDU [18:54:59]CAPDU: 80 13 01 00 [18:54:59]Write to MH i2c: E2 08 00 F8 74 80 13 01 00 00 00 00 00 E9 [18:54:59]Write i2c OK [18:54:59]MH_I2C_Read... [18:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:59]Read from MH i2c: E2 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0E 00 [18:54:59]MH_I2C_Read... [18:54:59]Read from MH i2c: E2 0E 00 F8 74 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6A [18:54:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:54:59]wFMCommunicate OK [18:54:59]SAM_PROTO_GetShiftState done [18:54:59]FM_GetShiftState done [18:54:59]opened in 1718670284 [18:54:59]opened+sec_in_day 1718756684 [18:54:59]quantity*price = 40039 [18:54:59]sum+1 = 40040 [18:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 194 18.06.2024 18:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103510 ФПД: 49187493759215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185507&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103510&fm=49187493759215&tin=02508201610067®Number=0000000000092785&sum=40000 [18:55:00]StoreToDocumentArchive [18:55:00]shift 352 fd 103510 [18:55:00]save to /storage/0352/doc_00103510 [18:55:00]save last doc name /storage/0352/doc_00103510 to /storage/kkm_last_doc_name [18:55:00]save OK [18:55:00]Clear old archive folders... [18:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:00]tlvbuf is 0145E030 [18:55:00]SAM_PROTO_ClearQueue [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 09 00 00 [18:55:00]Write to MH i2c: E2 08 00 05 75 80 09 00 00 00 00 00 00 EC [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 05 75 00 90 00 EE [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]SAM_PROTO_ClearQueue done [18:55:00]KKMCreateOFDPacket [18:55:00]OFDProtocolAddRootSTLVToBuf [18:55:00]FM_MakeSignedData [18:55:00]FM_MakeSignedData [18:55:00]SAM_PROTO_SignData [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 01 02 [18:55:00]Write to MH i2c: E2 08 00 06 75 80 0D 01 02 00 00 00 00 F4 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 06 75 00 90 00 EF [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=255 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0B D8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 94 01 00 35 04 06 00 2C [18:55:00]Write to MH i2c: E2 02 01 07 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0B D8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 94 01 00 35 04 06 00 2C 00 00 70 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 07 75 00 90 00 F0 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=10 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 02 02 05 BC 5B 17 C8 EF [18:55:00]Write to MH i2c: E2 0D 00 08 75 80 0D 02 02 05 00 BC 5B 17 C8 EF 00 00 E6 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 08 75 00 90 00 F1 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 03 02 [18:55:00]Write to MH i2c: E2 08 00 09 75 80 0D 03 02 00 00 00 00 F9 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 0B 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 0B 00 09 75 00 0D B1 48 38 A0 A9 42 32 90 00 F5 [18:55:00]RAPDU: 0D B1 48 38 A0 A9 42 32 90 00 [18:55:00]wFMCommunicate OK [18:55:00]SAM_PROTO_SignData done [18:55:00]FM_MakeSignedData done [18:55:00]CreateOFDProtocolMessage [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 11 00 00 [18:55:00]Write to MH i2c: E2 08 00 0A 75 80 11 00 00 00 00 00 00 F9 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 17 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 17 00 0A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [18:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:55:00]wFMCommunicate OK [18:55:00]CreateOFDProtocolMessage done [18:55:00]OFDSenderStorePacket 103510 [18:55:00]StoreOFDPacket docnum=103510 [18:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 21 07 01 29 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0B D8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 94 01 00 35 04 06 00 2C BC 5B 17 C8 EF 0D B1 48 38 A0 A9 42 32 [18:55:00]CheckFolder [18:55:00]dirname=/storage/ofd_packets [18:55:00]CheckFolder done [18:55:00]ProducePacketName [18:55:00]name=ofd_packets/00103510 [18:55:00]NVStorageSaveData ofd_packets/00103510 [18:55:00]File name is /storage/ofd_packets/00103510 [18:55:00]Write 301 bytes [18:55:00]NVStorageSaveData done [18:55:00]OFDSenderStorePacket done [18:55:00]KKMCreateOFDPacket done [18:55:00]NVStorageSaveData kkm_last_timestamp [18:55:00]File name is /storage/kkm_last_timestamp [18:55:00]Write 4 bytes [18:55:00]NVStorageSaveData done [18:55:00]ExternCall_PrintAddStr [18:55:00]wPrintStart [18:55:00]Write to MH i2c: 01 00 00 0B 75 80 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: 01 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: 01 07 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: 01 07 00 0B 75 00 00 00 00 00 FF 0F 95 [18:55:00]RasterBufferAndPrint [18:55:00]line Счет N : (1)672715 [18:55:00]line ИНН: 02508201610067 [18:55:00]line Контрольно-Кассовый Чек [18:55:00]line ПРОДАЖА [18:55:00]line ТРК (МРК, ГНК) : 32 [18:55:00]line Товар: 2710124130 [18:55:00]line Аи-92-К-5 [18:55:00]line 6.030 * 66.40 [18:55:00]line = 400.39 [18:55:00]line НДС 12% НСП 1% [18:55:00]line > о реализуемом товаре [18:55:01]line ОКРУГЛЕНИЕ: -0.39 [18:55:01]line ИТОГО: 400.00 [18:55:01]line Внесено: 400.00 [18:55:01]line СДАЧА: 0.00 [18:55:01]line НСП 1% : 3.54 [18:55:01]line НДС 12% : 42.52 [18:55:01]line Наличными: 400.00 [18:55:01]line Безнал.: 0.00 [18:55:01]line Место: АЗС № 120 "Партнер Нефть" [18:55:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:55:01]line СНО: Общий режим [18:55:01]line Чек 194 18.06.2024 18:55 [18:55:01]line Смена: 352 ФФД: 1.0 [18:55:01]line ЗНМ: 0300000164 [18:55:01]line РНМ: 0000000000092785 [18:55:01]line Версия ККМ: 001 [18:55:01]line ФМ: 0000000000875093 [18:55:01]line ФД: 103510 [18:55:01]line ФПД: 49187493759215 [18:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185507&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103510&fm=49187493759215&tin=02508201610067®Number=0000000000092785&sum=40000 [18:55:01]OFD Sender: Processing packet 103510 [packets to send 17, broken 16] [18:55:01]ProducePacketName [18:55:01]name=ofd_packets/00103510 [18:55:01]OFD Sender: To server: pG, [18:55:01]CommunicateWithHost lk.salyk.kg:30040 [18:55:01]ConnectInit lk.salyk.kg [18:55:01]written 0, free lines is 4095 [18:55:01]Connected sock=11 [18:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 21 07 01 29 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0B D8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 94 01 00 35 04 06 00 2C BC 5B 17 C8 EF 0D B1 48 38 A0 A9 42 32 [18:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 26 49 47 00 EC 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 94 01 00 F4 03 04 00 96 7E 71 66 B6 04 01 00 00 D2 04 42 B4 37 88 19 C0 [18:55:01]CommunicateWithHost err = 0 [18:55:01]CheckOFDResponse [18:55:01]1017 (14) - 77093643461234 [18:55:01]1041 (16) - 0000000000875093 [18:55:01]1040 (4) - 103510 [18:55:01]1012 (4) - 18.06.2024 12:33 [18:55:01]1206 (1) - 0 [18:55:01]OFD Sender: Remove packet 103510 [18:55:01]ProducePacketName [18:55:01]name=ofd_packets/00103510 [18:55:01]NVStorageDeleteData [18:55:01]Write to MH i2c: 01 00 00 36 75 AB [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 36 75 00 00 00 00 00 EC 0C AA [18:55:01]RasterBufferAndPrint [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]written 0, free lines is 3314 [18:55:01]MH_Cut [18:55:01]Write to MH i2c: D1 01 00 3D 75 01 84 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 01 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 01 00 3D 75 00 83 [18:55:01]Write to MH i2c: 01 00 00 3E 75 B3 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:02]OFD Sender: No OFD packet to send [18:55:02]*** Cut start [18:55:02]*** Partial cut [18:55:02]*** CUTSNS_PIN = 1 [18:55:02]*** CUTSNS_PIN = 0 [18:55:02]*** Brake cut motor [18:55:03]Read from MH i2c: 01 [18:55:03]MH_I2C_Read... [18:55:03]*** Stop cut motor [18:55:03]*** Cut end [18:55:03]Read from MH i2c: 01 07 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: 01 07 00 3E 75 00 00 00 00 00 FF 0F C8 [18:55:03]process_action close_receipt done [18:55:03]requested_data is exist [18:55:03]produce_requested_data [18:55:03]requested_item fm.sn is exist - process it [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 11 00 00 [18:55:03]Write to MH i2c: E2 08 00 3F 75 80 11 00 00 00 00 00 00 2E [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 17 00 3F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [18:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:55:03]wFMCommunicate OK [18:55:03]requested_item fd.num is exist - process it [18:55:03]SAM_PROTO_GetFieldsCounters [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 00 00 [18:55:03]Write to MH i2c: E2 08 00 40 75 80 13 00 00 00 00 00 00 31 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 62 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 62 00 40 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetFieldsCounters done [18:55:03]requested_item shift.num is exist - process it [18:55:03]requested_item shift.opened is exist - process it [18:55:03]req_shift_opened [18:55:03]FM_GetShiftState [18:55:03]SAM_PROTO_GetShiftState [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 01 00 [18:55:03]Write to MH i2c: E2 08 00 41 75 80 13 01 00 00 00 00 00 33 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 41 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B4 [18:55:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetShiftState done [18:55:03]FM_GetShiftState done [18:55:03]req_shift_opened done [18:55:03]requested_item shift.open_date is exist - process it [18:55:03]req_shift_open_date [18:55:03]req_shift_open_date done [18:55:03]produce_requested_data done [18:55:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103510,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:55:03]process_action_free close_receipt [18:55:03]json_value_free [18:55:03]json_value_free done [18:55:03]process_json_proto returns [18:55:03]Send response to host [18:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103510,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:55:03]free response buf [18:55:03]execute_script done [18:55:03]execute_script returns [18:55:03]free content buf [18:55:03]Sock 7.Close socket [18:55:03]Sock 7.Thread stoped [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:04]accept exits with 9 [18:59:04]New connection [18:59:04]New thread 3067227492 created [18:59:04]Thread 3067084132 joined [18:59:04]Waiting for new connection... [18:59:04] Sock 9.Parse request [18:59:04]Sock 9.Check first char [18:59:04]Sock 9.First char is OK [18:59:04]request: POST /json_proto HTTP/1.0 [18:59:04]Method: POST [18:59:04]URL: /json_proto [18:59:04]Method is POST - this is cgi request [18:59:04]url: /json_proto [18:59:04]query_string will be loaded in cgi processing [18:59:04]execute_cgi json_proto POST (null) [18:59:04]execute_cgi path=json_proto method=POST [18:59:04]POST find Content-Length [18:59:04]Host: 172.17.38.133:8080 [18:59:04]Content-Length: 811 [18:59:04]Content-Type: application/json [18:59:04] [18:59:04]POST finish read [18:59:04]Found Content-Length = 811 [18:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]execute_script... [18:59:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]POST & json_proto [18:59:04]process_json_proto [18:59:04]json parsed OK: [18:59:04]protocol is kg_v1.0 [18:59:04]action value=close_receipt [18:59:04]process_action close_receipt [18:59:04]cmd_close_receipt [18:59:04]MH_GetDate [18:59:04]Write to MH i2c: F0 00 00 42 75 A6 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 42 75 00 00 D9 71 66 BD 8F 7C 64 8B [18:59:04]GetLastDocTimeStamp 1718736907 [18:59:04]current date 1718737152 [18:59:04]FM_GetShiftState [18:59:04]SAM_PROTO_GetShiftState [18:59:04]wFMCommunicate request_size=4 [18:59:04]MH_SAM_APDU [18:59:04]CAPDU: 80 13 01 00 [18:59:04]Write to MH i2c: E2 08 00 43 75 80 13 01 00 00 00 00 00 35 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:04]Read from MH i2c: E2 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 43 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B6 [18:59:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:59:04]wFMCommunicate OK [18:59:04]SAM_PROTO_GetShiftState done [18:59:04]FM_GetShiftState done [18:59:04]opened in 1718670284 [18:59:04]opened+sec_in_day 1718756684 [18:59:04]quantity*price = 1000042 [18:59:04]sum+1 = 1000043 [18:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 195 18.06.2024 18:59 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103511 ФПД: 47732329287969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185913&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103511&fm=47732329287969&tin=02508201610067®Number=0000000000092785&sum=1000042 [18:59:05]StoreToDocumentArchive [18:59:05]shift 352 fd 103511 [18:59:05]save to /storage/0352/doc_00103511 [18:59:05]save last doc name /storage/0352/doc_00103511 to /storage/kkm_last_doc_name [18:59:05]save OK [18:59:05]Clear old archive folders... [18:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:59:05]tlvbuf is 01395120 [18:59:05]SAM_PROTO_ClearQueue [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 09 00 00 [18:59:05]Write to MH i2c: E2 08 00 50 75 80 09 00 00 00 00 00 00 37 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 50 75 00 90 00 39 [18:59:05]RAPDU: 90 00 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_ClearQueue done [18:59:05]KKMCreateOFDPacket [18:59:05]OFDProtocolAddRootSTLVToBuf [18:59:05]FM_MakeSignedData [18:59:05]FM_MakeSignedData [18:59:05]SAM_PROTO_SignData [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 0D 01 02 [18:59:05]Write to MH i2c: E2 08 00 51 75 80 0D 01 02 00 00 00 00 3F [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 51 75 00 90 00 3A [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=255 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 01 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 94 01 00 35 04 06 00 [18:59:06]Write to MH i2c: E2 02 01 52 75 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 01 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 94 01 00 35 04 06 00 00 00 31 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 52 75 00 90 00 3B [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=11 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 02 02 06 2B 69 8C 88 11 21 [18:59:06]Write to MH i2c: E2 0E 00 53 75 80 0D 02 02 06 00 2B 69 8C 88 11 21 00 00 28 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 53 75 00 90 00 3C [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 03 02 [18:59:06]Write to MH i2c: E2 08 00 54 75 80 0D 03 02 00 00 00 00 44 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 54 75 00 DF 23 97 81 CB 55 B9 F8 90 00 30 [18:59:06]RAPDU: DF 23 97 81 CB 55 B9 F8 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_SignData done [18:59:06]FM_MakeSignedData done [18:59:06]CreateOFDProtocolMessage [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 11 00 00 [18:59:06]Write to MH i2c: E2 08 00 55 75 80 11 00 00 00 00 00 00 44 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 55 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [18:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:59:06]wFMCommunicate OK [18:59:06]CreateOFDProtocolMessage done [18:59:06]OFDSenderStorePacket 103511 [18:59:06]StoreOFDPacket docnum=103511 [18:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DF 2D 08 01 61 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 01 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 94 01 00 35 04 06 00 2B 69 8C 88 11 21 DF 23 97 81 CB 55 B9 F8 [18:59:06]CheckFolder [18:59:06]dirname=/storage/ofd_packets [18:59:06]CheckFolder done [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00103511 [18:59:06]NVStorageSaveData ofd_packets/00103511 [18:59:06]File name is /storage/ofd_packets/00103511 [18:59:06]Write 302 bytes [18:59:06]NVStorageSaveData done [18:59:06]OFDSenderStorePacket done [18:59:06]KKMCreateOFDPacket done [18:59:06]NVStorageSaveData kkm_last_timestamp [18:59:06]File name is /storage/kkm_last_timestamp [18:59:06]Write 4 bytes [18:59:06]NVStorageSaveData done [18:59:06]ExternCall_PrintAddStr [18:59:06]wPrintStart [18:59:06]Write to MH i2c: 01 00 00 56 75 CB [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 56 75 00 00 00 00 00 FF 0F E0 [18:59:06]RasterBufferAndPrint [18:59:06]line Счет N : (1)672714 [18:59:06]line ИНН: 02508201610067 [18:59:06]line Контрольно-Кассовый Чек [18:59:06]line ПРОДАЖА [18:59:06]line ТРК (МРК, ГНК) : 11 [18:59:06]line Товар: 2710194210 [18:59:06]line ДТ(л)-К-5 [18:59:06]line 137.180 * 72.90 [18:59:06]line = 10000.42 [18:59:06]line НДС 12% НСП 1% [18:59:06]line > о реализуемом товаре [18:59:06]line ИТОГО: 10000.42 [18:59:06]line НСП 1% : 88.50 [18:59:06]line НДС 12% : 1061.99 [18:59:06]line Наличными: 0.00 [18:59:06]line Безнал.: 10000.42 [18:59:06]line Место: АЗС № 120 "Партнер Нефть" [18:59:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:59:06]line СНО: Общий режим [18:59:06]line Чек 195 18.06.2024 18:59 [18:59:06]line Смена: 352 ФФД: 1.0 [18:59:06]line ЗНМ: 0300000164 [18:59:06]line РНМ: 0000000000092785 [18:59:06]line Версия ККМ: 001 [18:59:06]line Платежная система: O! деньги [18:59:06]line ФМ: 0000000000875093 [18:59:06]line ФД: 103511 [18:59:06]line ФПД: 47732329287969 [18:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185913&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103511&fm=47732329287969&tin=02508201610067®Number=0000000000092785&sum=1000042 [18:59:06]written 0, free lines is 4095 [18:59:06]OFD Sender: Processing packet 103511 [packets to send 17, broken 16] [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00103511 [18:59:06]OFD Sender: To server: pG, [18:59:06]CommunicateWithHost lk.salyk.kg:30040 [18:59:06]ConnectInit lk.salyk.kg [18:59:07]Write to MH i2c: 01 00 00 80 75 F5 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 80 75 00 00 00 00 00 F7 0C FF [18:59:07]RasterBufferAndPrint [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]written 0, free lines is 3324 [18:59:07]MH_Cut [18:59:07]Write to MH i2c: D1 01 00 87 75 01 CE [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 87 75 00 CD [18:59:07]Write to MH i2c: 01 00 00 88 75 FD [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:08]*** Cut start [18:59:08]*** Partial cut [18:59:08]*** CUTSNS_PIN = 1 [18:59:08]*** CUTSNS_PIN = 0 [18:59:08]*** Brake cut motor [18:59:08]Read from MH i2c: 01 [18:59:08]MH_I2C_Read... [18:59:08]*** Stop cut motor [18:59:08]*** Cut end [18:59:08]Read from MH i2c: 01 07 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 88 75 00 00 00 00 00 FF 0F 12 [18:59:08]process_action close_receipt done [18:59:08]requested_data is exist [18:59:08]produce_requested_data [18:59:08]requested_item fm.sn is exist - process it [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 11 00 00 [18:59:08]Write to MH i2c: E2 08 00 89 75 80 11 00 00 00 00 00 00 78 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 89 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [18:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:59:08]wFMCommunicate OK [18:59:08]requested_item fd.num is exist - process it [18:59:08]SAM_PROTO_GetFieldsCounters [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 13 00 00 [18:59:08]Write to MH i2c: E2 08 00 8A 75 80 13 00 00 00 00 00 00 7B [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 62 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 62 00 8A 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_GetFieldsCounters done [18:59:08]requested_item shift.num is exist - process it [18:59:08]requested_item shift.opened is exist - process it [18:59:08]req_shift_opened [18:59:08]FM_GetShiftState [18:59:08]SAM_PROTO_GetShiftState [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 13 01 00 [18:59:08]Write to MH i2c: E2 08 00 8B 75 80 13 01 00 00 00 00 00 7D [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 8B 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FE [18:59:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_GetShiftState done [18:59:08]FM_GetShiftState done [18:59:08]req_shift_opened done [18:59:08]requested_item shift.open_date is exist - process it [18:59:08]req_shift_open_date [18:59:08]req_shift_open_date done [18:59:08]produce_requested_data done [18:59:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103511,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [18:59:08]process_action_free close_receipt [18:59:08]json_value_free [18:59:08]json_value_free done [18:59:08]process_json_proto returns [18:59:08]Send response to host [18:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103511,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [18:59:08]free response buf [18:59:08]execute_script done [18:59:08]execute_script returns [18:59:08]free content buf [18:59:08]Sock 9.Close socket [18:59:08]Sock 9.Thread stoped [19:01:20]ConnectInit Can't connect to host [19:01:20]CommunicateWithHost connect error [19:01:20]CommunicateWithHost err = -1 [19:01:20]OFD Sender: Server communicate error [19:01:25]OFD Sender: Processing packet 103511 [packets to send 17, broken 16] [19:01:25]ProducePacketName [19:01:25]name=ofd_packets/00103511 [19:01:25]OFD Sender: To server: pG, [19:01:25]CommunicateWithHost lk.salyk.kg:30040 [19:01:25]ConnectInit lk.salyk.kg [19:01:25]Connected sock=9 [19:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DF 2D 08 01 61 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 01 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 94 01 00 35 04 06 00 2B 69 8C 88 11 21 DF 23 97 81 CB 55 B9 F8 [19:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 04 8A 47 00 C6 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 35 30 39 33 10 04 04 00 57 94 01 00 F4 03 04 00 16 80 71 66 B6 04 01 00 00 5F BA 2F 14 D1 22 A2 D1 [19:01:25]CommunicateWithHost err = 0 [19:01:25]CheckOFDResponse [19:01:25]1017 (14) - 77093643461234 [19:01:25]1041 (16) - 0000000000875093 [19:01:25]1040 (4) - 103511 [19:01:25]1012 (4) - 18.06.2024 12:39 [19:01:25]1206 (1) - 0 [19:01:25]OFD Sender: Remove packet 103511 [19:01:25]ProducePacketName [19:01:25]name=ofd_packets/00103511 [19:01:25]NVStorageDeleteData [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:02:01]OFD Sender: No OFD packet to send [19:02:04]accept exits with 7 [19:02:04]New connection [19:02:04]New thread 3067084132 created [19:02:04]Thread 3067227492 joined [19:02:04]Waiting for new connection... [19:02:04] Sock 7.Parse request [19:02:04]Sock 7.Check first char [19:02:04]Sock 7.First char is OK [19:02:04]request: POST /json_proto HTTP/1.0 [19:02:04]Method: POST [19:02:04]URL: /json_proto [19:02:04]Method is POST - this is cgi request [19:02:04]url: /json_proto [19:02:04]query_string will be loaded in cgi processing [19:02:04]execute_cgi json_proto POST (null) [19:02:04]execute_cgi path=json_proto method=POST [19:02:04]POST find Content-Length [19:02:04]Host: 172.17.38.133:8080 [19:02:04]Content-Length: 682 [19:02:04]Content-Type: application/json [19:02:04] [19:02:04]POST finish read [19:02:04]Found Content-Length = 682 [19:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [19:02:04]execute_script... [19:02:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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" ] } } [19:02:04]POST & json_proto [19:02:04]process_json_proto [19:02:04]json parsed OK: [19:02:04]protocol is kg_v1.0 [19:02:04]action value=close_receipt [19:02:04]process_action close_receipt [19:02:04]cmd_close_receipt [19:02:04]MH_GetDate [19:02:04]Write to MH i2c: F0 00 00 8C 75 F0 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 8C 75 00 B4 D9 71 66 BD 8F 7C 64 89 [19:02:04]GetLastDocTimeStamp 1718737153 [19:02:04]current date 1718737332 [19:02:04]FM_GetShiftState [19:02:04]SAM_PROTO_GetShiftState [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 13 01 00 [19:02:04]Write to MH i2c: E2 08 00 8D 75 80 13 01 00 00 00 00 00 7F [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 8D 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 00 [19:02:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:02:04]wFMCommunicate OK [19:02:04]SAM_PROTO_GetShiftState done [19:02:04]FM_GetShiftState done [19:02:04]opened in 1718670284 [19:02:04]opened+sec_in_day 1718756684 [19:02:04]quantity*price = 150017 [19:02:04]sum+1 = 150018 [19:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 196 18.06.2024 19:02 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103512 ФПД: 254654196620754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190212&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103512&fm=254654196620754&tin=02508201610067®Number=0000000000092785&sum=150000 [19:02:05]StoreToDocumentArchive [19:02:05]shift 352 fd 103512 [19:02:05]save to /storage/0352/doc_00103512 [19:02:05]save last doc name /storage/0352/doc_00103512 to /storage/kkm_last_doc_name [19:02:05]save OK [19:02:05]Clear old archive folders... [19:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:05]tlvbuf is 014623E0 [19:02:05]SAM_PROTO_ClearQueue [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 09 00 00 [19:02:05]Write to MH i2c: E2 08 00 9A 75 80 09 00 00 00 00 00 00 81 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 9A 75 00 90 00 83 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_ClearQueue done [19:02:05]KKMCreateOFDPacket [19:02:05]OFDProtocolAddRootSTLVToBuf [19:02:05]FM_MakeSignedData [19:02:05]FM_MakeSignedData [19:02:05]SAM_PROTO_SignData [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 01 02 [19:02:05]Write to MH i2c: E2 08 00 9B 75 80 0D 01 02 00 00 00 00 89 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 9B 75 00 90 00 84 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=255 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 C4 00 00 00 F4 03 04 00 B4 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 94 01 00 35 04 06 00 E7 [19:02:05]Write to MH i2c: E2 02 01 9C 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 C4 00 00 00 F4 03 04 00 B4 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 94 01 00 35 04 06 00 E7 00 00 00 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:06]OFD Sender: No OFD packet to send [19:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 9C 75 00 90 00 85 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]wFMCommunicate request_size=10 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 02 02 05 9B 4C EE 1D D2 [19:02:06]Write to MH i2c: E2 0D 00 9D 75 80 0D 02 02 05 00 9B 4C EE 1D D2 00 00 5A [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 03 00 9D 75 00 90 00 86 [19:02:06]RAPDU: 90 00 [19:02:06]wFMCommunicate OK [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 0D 03 02 [19:02:06]Write to MH i2c: E2 08 00 9E 75 80 0D 03 02 00 00 00 00 8E [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0B 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0B 00 9E 75 00 82 0B 16 CD 4D 84 09 06 90 00 DF [19:02:06]RAPDU: 82 0B 16 CD 4D 84 09 06 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_SignData done [19:02:06]FM_MakeSignedData done [19:02:06]CreateOFDProtocolMessage [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 11 00 00 [19:02:06]Write to MH i2c: E2 08 00 9F 75 80 11 00 00 00 00 00 00 8E [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 9F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [19:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:02:06]wFMCommunicate OK [19:02:06]CreateOFDProtocolMessage done [19:02:06]OFDSenderStorePacket 103512 [19:02:06]StoreOFDPacket docnum=103512 [19:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F1 D5 07 01 D9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 C4 00 00 00 F4 03 04 00 B4 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 94 01 00 35 04 06 00 E7 9B 4C EE 1D D2 82 0B 16 CD 4D 84 09 06 [19:02:06]CheckFolder [19:02:06]dirname=/storage/ofd_packets [19:02:06]CheckFolder done [19:02:06]ProducePacketName [19:02:06]name=ofd_packets/00103512 [19:02:06]NVStorageSaveData ofd_packets/00103512 [19:02:06]File name is /storage/ofd_packets/00103512 [19:02:06]Write 301 bytes [19:02:06]NVStorageSaveData done [19:02:06]OFDSenderStorePacket done [19:02:06]KKMCreateOFDPacket done [19:02:06]NVStorageSaveData kkm_last_timestamp [19:02:06]File name is /storage/kkm_last_timestamp [19:02:06]Write 4 bytes [19:02:06]NVStorageSaveData done [19:02:06]ExternCall_PrintAddStr [19:02:06]wPrintStart [19:02:06]Write to MH i2c: 01 00 00 A0 75 15 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 A0 75 00 00 00 00 00 FF 0F 2A [19:02:06]RasterBufferAndPrint [19:02:06]line Счет N : (1)672717 [19:02:06]line ИНН: 02508201610067 [19:02:06]line Контрольно-Кассовый Чек [19:02:06]line ПРОДАЖА [19:02:06]line ТРК (МРК, ГНК) : 41 [19:02:06]line Товар: 2710124500 [19:02:06]line Аи-95-К-5 [19:02:06]line 20.300 * 73.90 [19:02:06]line = 1500.17 [19:02:06]line НДС 12% НСП 1% [19:02:06]line > о реализуемом товаре [19:02:06]line ОКРУГЛЕНИЕ: -0.17 [19:02:06]line ИТОГО: 1500.00 [19:02:06]line Внесено: 1500.00 [19:02:06]line СДАЧА: 0.00 [19:02:06]line НСП 1% : 13.28 [19:02:06]line НДС 12% : 159.31 [19:02:06]line Наличными: 1500.00 [19:02:06]line Безнал.: 0.00 [19:02:06]line Место: АЗС № 120 "Партнер Нефть" [19:02:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:02:06]line СНО: Общий режим [19:02:06]line Чек 196 18.06.2024 19:02 [19:02:06]line Смена: 352 ФФД: 1.0 [19:02:06]line ЗНМ: 0300000164 [19:02:06]line РНМ: 0000000000092785 [19:02:06]line Версия ККМ: 001 [19:02:06]line ФМ: 0000000000875093 [19:02:06]line ФД: 103512 [19:02:06]line ФПД: 254654196620754 [19:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190212&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103512&fm=254654196620754&tin=02508201610067®Number=0000000000092785&sum=150000 [19:02:06]OFD Sender: Processing packet 103512 [packets to send 17, broken 16] [19:02:06]ProducePacketName [19:02:06]name=ofd_packets/00103512 [19:02:06]OFD Sender: To server: pG, [19:02:06]CommunicateWithHost lk.salyk.kg:30040 [19:02:06]ConnectInit lk.salyk.kg [19:02:06]written 0, free lines is 4095 [19:02:06]Connected sock=10 [19:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F1 D5 07 01 D9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 C4 00 00 00 F4 03 04 00 B4 D9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 94 01 00 35 04 06 00 E7 9B 4C EE 1D D2 82 0B 16 CD 4D 84 09 06 [19:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7C C8 47 00 E3 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 94 01 00 F4 03 04 00 40 80 71 66 B6 04 01 00 00 D9 66 12 E0 56 C8 56 2D [19:02:07]CommunicateWithHost err = 0 [19:02:07]CheckOFDResponse [19:02:07]1017 (14) - 77093643461234 [19:02:07]1041 (16) - 0000000000875093 [19:02:07]1040 (4) - 103512 [19:02:07]1012 (4) - 18.06.2024 12:40 [19:02:07]1206 (1) - 0 [19:02:07]OFD Sender: Remove packet 103512 [19:02:07]ProducePacketName [19:02:07]name=ofd_packets/00103512 [19:02:07]NVStorageDeleteData [19:02:07]Write to MH i2c: 01 00 00 CB 75 40 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 CB 75 00 00 00 00 00 ED 0C 40 [19:02:07]RasterBufferAndPrint [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]line [19:02:07]written 0, free lines is 3315 [19:02:07]MH_Cut [19:02:07]Write to MH i2c: D1 01 00 D2 75 01 19 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 01 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: D1 01 00 D2 75 00 18 [19:02:07]Write to MH i2c: 01 00 00 D3 75 48 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]OFD Sender: No OFD packet to send [19:02:07]*** Cut start [19:02:07]*** Partial cut [19:02:07]*** CUTSNS_PIN = 1 [19:02:07]*** CUTSNS_PIN = 0 [19:02:08]*** Brake cut motor [19:02:08]Read from MH i2c: 01 [19:02:08]MH_I2C_Read... [19:02:08]*** Stop cut motor [19:02:08]*** Cut end [19:02:08]Read from MH i2c: 01 07 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: 01 07 00 D3 75 00 00 00 00 00 FF 0F 5D [19:02:08]process_action close_receipt done [19:02:08]requested_data is exist [19:02:08]produce_requested_data [19:02:08]requested_item fm.sn is exist - process it [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 11 00 00 [19:02:08]Write to MH i2c: E2 08 00 D4 75 80 11 00 00 00 00 00 00 C3 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 17 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 17 00 D4 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [19:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:02:08]wFMCommunicate OK [19:02:08]requested_item fd.num is exist - process it [19:02:08]SAM_PROTO_GetFieldsCounters [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 00 00 [19:02:08]Write to MH i2c: E2 08 00 D5 75 80 13 00 00 00 00 00 00 C6 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 D5 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [19:02:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetFieldsCounters done [19:02:08]requested_item shift.num is exist - process it [19:02:08]requested_item shift.opened is exist - process it [19:02:08]req_shift_opened [19:02:08]FM_GetShiftState [19:02:08]SAM_PROTO_GetShiftState [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 01 00 [19:02:08]Write to MH i2c: E2 08 00 D6 75 80 13 01 00 00 00 00 00 C8 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 D6 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 49 [19:02:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetShiftState done [19:02:08]FM_GetShiftState done [19:02:08]req_shift_opened done [19:02:08]requested_item shift.open_date is exist - process it [19:02:08]req_shift_open_date [19:02:08]req_shift_open_date done [19:02:08]produce_requested_data done [19:02:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103512,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:02:08]process_action_free close_receipt [19:02:08]json_value_free [19:02:08]json_value_free done [19:02:08]process_json_proto returns [19:02:08]Send response to host [19:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103512,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:02:08]free response buf [19:02:08]execute_script done [19:02:08]execute_script returns [19:02:08]free content buf [19:02:08]Sock 7.Close socket [19:02:08]Sock 7.Thread stoped [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:04:59]accept exits with 9 [19:04:59]New connection [19:04:59]New thread 3067227492 created [19:04:59]Thread 3067084132 joined [19:04:59]Waiting for new connection... [19:04:59] Sock 9.Parse request [19:04:59]Sock 9.Check first char [19:04:59]Sock 9.First char is OK [19:04:59]request: POST /json_proto HTTP/1.0 [19:04:59]Method: POST [19:04:59]URL: /json_proto [19:04:59]Method is POST - this is cgi request [19:04:59]url: /json_proto [19:04:59]query_string will be loaded in cgi processing [19:04:59]execute_cgi json_proto POST (null) [19:04:59]execute_cgi path=json_proto method=POST [19:04:59]POST find Content-Length [19:04:59]Host: 172.17.38.133:8080 [19:04:59]Content-Length: 677 [19:04:59]Content-Type: application/json [19:04:59] [19:04:59]POST finish read [19:04:59]Found Content-Length = 677 [19:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.220, "sum" : 280.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:59]execute_script... [19:04:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.220, "sum" : 280.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:59]POST & json_proto [19:04:59]process_json_proto [19:04:59]json parsed OK: [19:04:59]protocol is kg_v1.0 [19:04:59]action value=close_receipt [19:04:59]process_action close_receipt [19:04:59]cmd_close_receipt [19:04:59]MH_GetDate [19:04:59]Write to MH i2c: F0 00 00 D7 75 3B [19:04:59]Write i2c OK [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: F0 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: F0 09 00 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: F0 09 00 D7 75 00 64 DA 71 66 BD 8F 7C 64 85 [19:04:59]GetLastDocTimeStamp 1718737332 [19:04:59]current date 1718737508 [19:04:59]FM_GetShiftState [19:04:59]SAM_PROTO_GetShiftState [19:04:59]wFMCommunicate request_size=4 [19:04:59]MH_SAM_APDU [19:04:59]CAPDU: 80 13 01 00 [19:04:59]Write to MH i2c: E2 08 00 D8 75 80 13 01 00 00 00 00 00 CA [19:04:59]Write i2c OK [19:04:59]MH_I2C_Read... [19:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:59]Read from MH i2c: E2 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 0E 00 [19:04:59]MH_I2C_Read... [19:04:59]Read from MH i2c: E2 0E 00 D8 75 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4B [19:04:59]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:04:59]wFMCommunicate OK [19:04:59]SAM_PROTO_GetShiftState done [19:04:59]FM_GetShiftState done [19:04:59]opened in 1718670284 [19:04:59]opened+sec_in_day 1718756684 [19:04:59]quantity*price = 28020 [19:04:59]sum+1 = 28022 [19:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.76 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 197 18.06.2024 19:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103513 ФПД: 154982929568860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190508&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103513&fm=154982929568860&tin=02508201610067®Number=0000000000092785&sum=28000 [19:05:01]StoreToDocumentArchive [19:05:01]shift 352 fd 103513 [19:05:01]save to /storage/0352/doc_00103513 [19:05:01]save last doc name /storage/0352/doc_00103513 to /storage/kkm_last_doc_name [19:05:01]save OK [19:05:01]Clear old archive folders... [19:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:01]tlvbuf is 0132D1E0 [19:05:01]SAM_PROTO_ClearQueue [19:05:01]wFMCommunicate request_size=4 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 09 00 00 [19:05:01]Write to MH i2c: E2 08 00 E5 75 80 09 00 00 00 00 00 00 CC [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:01]Read from MH i2c: E2 03 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 E5 75 00 90 00 CE [19:05:01]RAPDU: 90 00 [19:05:01]wFMCommunicate OK [19:05:01]SAM_PROTO_ClearQueue done [19:05:01]KKMCreateOFDPacket [19:05:01]OFDProtocolAddRootSTLVToBuf [19:05:01]FM_MakeSignedData [19:05:01]FM_MakeSignedData [19:05:01]SAM_PROTO_SignData [19:05:01]wFMCommunicate request_size=4 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 0D 01 02 [19:05:01]Write to MH i2c: E2 08 00 E6 75 80 0D 01 02 00 00 00 00 D4 [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 E6 75 00 90 00 CF [19:05:01]RAPDU: 90 00 [19:05:01]wFMCommunicate OK [19:05:01]wFMCommunicate request_size=255 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 64 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 94 01 00 35 04 06 00 8C [19:05:01]Write to MH i2c: E2 02 01 E7 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 64 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 94 01 00 35 04 06 00 8C 00 00 4D [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 E7 75 00 90 00 D0 [19:05:01]RAPDU: 90 00 [19:05:01]wFMCommunicate OK [19:05:01]wFMCommunicate request_size=10 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 0D 02 02 05 F4 C6 76 94 5C [19:05:01]Write to MH i2c: E2 0D 00 E8 75 80 0D 02 02 05 00 F4 C6 76 94 5C 00 00 01 [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 03 00 E8 75 00 90 00 D1 [19:05:01]RAPDU: 90 00 [19:05:01]wFMCommunicate OK [19:05:01]wFMCommunicate request_size=4 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 0D 03 02 [19:05:01]Write to MH i2c: E2 08 00 E9 75 80 0D 03 02 00 00 00 00 D9 [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 0B 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 0B 00 E9 75 00 E8 18 1D FB 16 94 61 69 90 00 66 [19:05:01]RAPDU: E8 18 1D FB 16 94 61 69 90 00 [19:05:01]wFMCommunicate OK [19:05:01]SAM_PROTO_SignData done [19:05:01]FM_MakeSignedData done [19:05:01]CreateOFDProtocolMessage [19:05:01]wFMCommunicate request_size=4 [19:05:01]MH_SAM_APDU [19:05:01]CAPDU: 80 11 00 00 [19:05:01]Write to MH i2c: E2 08 00 EA 75 80 11 00 00 00 00 00 00 D9 [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:01]Read from MH i2c: E2 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 17 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: E2 17 00 EA 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2C [19:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:01]wFMCommunicate OK [19:05:01]CreateOFDProtocolMessage done [19:05:01]OFDSenderStorePacket 103513 [19:05:01]StoreOFDPacket docnum=103513 [19:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F7 CD 07 01 0E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 64 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 94 01 00 35 04 06 00 8C F4 C6 76 94 5C E8 18 1D FB 16 94 61 69 [19:05:01]CheckFolder [19:05:01]dirname=/storage/ofd_packets [19:05:01]CheckFolder done [19:05:01]ProducePacketName [19:05:01]name=ofd_packets/00103513 [19:05:01]NVStorageSaveData ofd_packets/00103513 [19:05:01]File name is /storage/ofd_packets/00103513 [19:05:01]Write 301 bytes [19:05:01]NVStorageSaveData done [19:05:01]OFDSenderStorePacket done [19:05:01]KKMCreateOFDPacket done [19:05:01]NVStorageSaveData kkm_last_timestamp [19:05:01]File name is /storage/kkm_last_timestamp [19:05:01]Write 4 bytes [19:05:01]NVStorageSaveData done [19:05:01]ExternCall_PrintAddStr [19:05:01]wPrintStart [19:05:01]Write to MH i2c: 01 00 00 EB 75 60 [19:05:01]Write i2c OK [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: 01 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: 01 07 00 [19:05:01]MH_I2C_Read... [19:05:01]Read from MH i2c: 01 07 00 EB 75 00 00 00 00 00 FF 0F 75 [19:05:01]RasterBufferAndPrint [19:05:01]line Счет N : (1)672719 [19:05:01]line ИНН: 02508201610067 [19:05:01]line Контрольно-Кассовый Чек [19:05:01]line ПРОДАЖА [19:05:01]line ТРК (МРК, ГНК) : 42 [19:05:01]line Товар: 2710124130 [19:05:01]line Аи-92-К-5 [19:05:01]line 4.220 * 66.40 [19:05:01]line = 280.21 [19:05:01]line НДС 12% НСП 1% [19:05:01]line > о реализуемом товаре [19:05:01]line ОКРУГЛЕНИЕ: -0.21 [19:05:01]line ИТОГО: 280.00 [19:05:01]line Внесено: 280.00 [19:05:01]line СДАЧА: 0.00 [19:05:01]line НСП 1% : 2.48 [19:05:01]line НДС 12% : 29.76 [19:05:01]line Наличными: 280.00 [19:05:01]line Безнал.: 0.00 [19:05:01]line Место: АЗС № 120 "Партнер Нефть" [19:05:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:05:01]line СНО: Общий режим [19:05:01]line Чек 197 18.06.2024 19:05 [19:05:01]line Смена: 352 ФФД: 1.0 [19:05:01]line ЗНМ: 0300000164 [19:05:01]line РНМ: 0000000000092785 [19:05:01]line Версия ККМ: 001 [19:05:01]line ФМ: 0000000000875093 [19:05:01]line ФД: 103513 [19:05:01]line ФПД: 154982929568860 [19:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190508&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103513&fm=154982929568860&tin=02508201610067®Number=0000000000092785&sum=28000 [19:05:01]OFD Sender: Processing packet 103513 [packets to send 17, broken 16] [19:05:01]ProducePacketName [19:05:01]name=ofd_packets/00103513 [19:05:01]OFD Sender: To server: pG, [19:05:01]CommunicateWithHost lk.salyk.kg:30040 [19:05:01]ConnectInit lk.salyk.kg [19:05:01]written 0, free lines is 4095 [19:05:02]Write to MH i2c: 01 00 00 16 76 8C [19:05:02]Write i2c OK [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: 01 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: 01 07 00 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: 01 07 00 16 76 00 00 00 00 00 E1 0C 80 [19:05:02]RasterBufferAndPrint [19:05:02]line [19:05:02]line [19:05:02]line [19:05:02]line [19:05:02]line [19:05:02]written 0, free lines is 3303 [19:05:02]MH_Cut [19:05:02]Write to MH i2c: D1 01 00 1D 76 01 65 [19:05:02]Write i2c OK [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: D1 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: D1 01 00 [19:05:02]MH_I2C_Read... [19:05:02]Read from MH i2c: D1 01 00 1D 76 00 64 [19:05:02]Write to MH i2c: 01 00 00 1E 76 94 [19:05:02]Write i2c OK [19:05:02]MH_I2C_Read... [19:05:03]*** Cut start [19:05:03]*** Partial cut [19:05:03]*** CUTSNS_PIN = 1 [19:05:03]*** CUTSNS_PIN = 0 [19:05:03]*** Brake cut motor [19:05:03]Read from MH i2c: 01 [19:05:03]MH_I2C_Read... [19:05:03]*** Stop cut motor [19:05:03]*** Cut end [19:05:03]Read from MH i2c: 01 07 00 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: 01 07 00 1E 76 00 00 00 00 00 FF 0F A9 [19:05:03]process_action close_receipt done [19:05:03]requested_data is exist [19:05:03]produce_requested_data [19:05:03]requested_item fm.sn is exist - process it [19:05:03]wFMCommunicate request_size=4 [19:05:03]MH_SAM_APDU [19:05:03]CAPDU: 80 11 00 00 [19:05:03]Write to MH i2c: E2 08 00 1F 76 80 11 00 00 00 00 00 00 0F [19:05:03]Write i2c OK [19:05:03]MH_I2C_Read... [19:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:03]Read from MH i2c: E2 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 17 00 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 17 00 1F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [19:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:03]wFMCommunicate OK [19:05:03]requested_item fd.num is exist - process it [19:05:03]SAM_PROTO_GetFieldsCounters [19:05:03]wFMCommunicate request_size=4 [19:05:03]MH_SAM_APDU [19:05:03]CAPDU: 80 13 00 00 [19:05:03]Write to MH i2c: E2 08 00 20 76 80 13 00 00 00 00 00 00 12 [19:05:03]Write i2c OK [19:05:03]MH_I2C_Read... [19:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:03]Read from MH i2c: E2 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 62 00 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 62 00 20 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:03]wFMCommunicate OK [19:05:03]SAM_PROTO_GetFieldsCounters done [19:05:03]requested_item shift.num is exist - process it [19:05:03]requested_item shift.opened is exist - process it [19:05:03]req_shift_opened [19:05:03]FM_GetShiftState [19:05:03]SAM_PROTO_GetShiftState [19:05:03]wFMCommunicate request_size=4 [19:05:03]MH_SAM_APDU [19:05:03]CAPDU: 80 13 01 00 [19:05:03]Write to MH i2c: E2 08 00 21 76 80 13 01 00 00 00 00 00 14 [19:05:03]Write i2c OK [19:05:03]MH_I2C_Read... [19:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:03]Read from MH i2c: E2 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 0E 00 [19:05:03]MH_I2C_Read... [19:05:03]Read from MH i2c: E2 0E 00 21 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 95 [19:05:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:05:03]wFMCommunicate OK [19:05:03]SAM_PROTO_GetShiftState done [19:05:03]FM_GetShiftState done [19:05:03]req_shift_opened done [19:05:03]requested_item shift.open_date is exist - process it [19:05:03]req_shift_open_date [19:05:03]req_shift_open_date done [19:05:03]produce_requested_data done [19:05:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103513,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:05:03]process_action_free close_receipt [19:05:03]json_value_free [19:05:03]json_value_free done [19:05:03]process_json_proto returns [19:05:03]Send response to host [19:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103513,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:05:03]free response buf [19:05:03]execute_script done [19:05:03]execute_script returns [19:05:03]free content buf [19:05:03]Sock 9.Close socket [19:05:03]Sock 9.Thread stoped [19:05:10]accept exits with 7 [19:05:10]New connection [19:05:10]New thread 3067084132 created [19:05:10]Thread 3067227492 joined [19:05:10]Waiting for new connection... [19:05:10] Sock 7.Parse request [19:05:10]Sock 7.Check first char [19:05:10]Sock 7.First char is OK [19:05:10]request: POST /json_proto HTTP/1.0 [19:05:10]Method: POST [19:05:10]URL: /json_proto [19:05:10]Method is POST - this is cgi request [19:05:10]url: /json_proto [19:05:10]query_string will be loaded in cgi processing [19:05:10]execute_cgi json_proto POST (null) [19:05:10]execute_cgi path=json_proto method=POST [19:05:10]POST find Content-Length [19:05:10]Host: 172.17.38.133:8080 [19:05:10]Content-Length: 1198 [19:05:10]Content-Type: application/json [19:05:10] [19:05:10]POST finish read [19:05:10]Found Content-Length = 1198 [19:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672718\u000A18.06.2024 18:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:10]execute_script... [19:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672718\u000A18.06.2024 18:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:10]POST & json_proto [19:05:10]process_json_proto [19:05:10]json parsed OK: [19:05:10]protocol is kg_v1.0 [19:05:10]action value=print_text [19:05:10]process_action print_text [19:05:10]cmd_print_text [19:05:10]ExternCall_PrintAddStr [19:05:10]wPrintStart [19:05:10]Write to MH i2c: 01 00 00 22 76 98 [19:05:10]Write i2c OK [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 07 00 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 07 00 22 76 00 00 00 00 00 FF 0F AD [19:05:10]RasterBufferAndPrint [19:05:10]line *****ТОВАРНЫЙ ЧЕК***** [19:05:10]line АЗС 120 [19:05:10]line Партнер нефть [19:05:10]line 02508201610067 [19:05:10]line Кассир : Асанбаев Н. [19:05:10]line Счет N : (1)672718 [19:05:10]line 18.06.2024 18:42 [19:05:10]line ПРОДАЖА [19:05:10]line ТРК (МРК, ГНК): 21 [19:05:10]line Вид ГСМ : 2710194210 [19:05:10]line ДТ(л)-К-5 [19:05:10]line 6.000 x 72.90 [19:05:10]line ИТОГ: 437.40 [19:05:10]line Тип оплаты: Талоны: Топливная Карта [19:05:10]line 00562 [19:05:10]line ______________________ [19:05:10]line (подпись) [19:05:10]written 0, free lines is 4095 [19:05:11]Write to MH i2c: 01 00 00 36 76 AC [19:05:11]Write i2c OK [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: 01 [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: 01 07 00 [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: 01 07 00 36 76 00 00 00 00 00 10 0E D1 [19:05:11]RasterBufferAndPrint [19:05:11]line [19:05:11]line [19:05:11]line [19:05:11]line [19:05:11]line [19:05:11]written 0, free lines is 3601 [19:05:11]MH_Cut [19:05:11]Write to MH i2c: D1 01 00 3D 76 01 85 [19:05:11]Write i2c OK [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: D1 [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: D1 01 00 [19:05:11]MH_I2C_Read... [19:05:11]Read from MH i2c: D1 01 00 3D 76 00 84 [19:05:11]Write to MH i2c: 01 00 00 3E 76 B4 [19:05:11]Write i2c OK [19:05:11]MH_I2C_Read... [19:05:11]*** Cut start [19:05:11]*** Partial cut [19:05:11]*** CUTSNS_PIN = 1 [19:05:11]*** CUTSNS_PIN = 0 [19:05:11]*** Brake cut motor [19:05:12]Read from MH i2c: 01 [19:05:12]MH_I2C_Read... [19:05:12]*** Stop cut motor [19:05:12]*** Cut end [19:05:12]Read from MH i2c: 01 07 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: 01 07 00 3E 76 00 00 00 00 00 FF 0F C9 [19:05:12]process_action print_text done [19:05:12]requested_data is exist [19:05:12]produce_requested_data [19:05:12]requested_item fm.sn is exist - process it [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 11 00 00 [19:05:12]Write to MH i2c: E2 08 00 3F 76 80 11 00 00 00 00 00 00 2F [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 17 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 17 00 3F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [19:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:12]wFMCommunicate OK [19:05:12]requested_item fd.num is exist - process it [19:05:12]SAM_PROTO_GetFieldsCounters [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 13 00 00 [19:05:12]Write to MH i2c: E2 08 00 40 76 80 13 00 00 00 00 00 00 32 [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 62 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 62 00 40 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [19:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:12]wFMCommunicate OK [19:05:12]SAM_PROTO_GetFieldsCounters done [19:05:12]requested_item shift.num is exist - process it [19:05:12]requested_item shift.opened is exist - process it [19:05:12]req_shift_opened [19:05:12]FM_GetShiftState [19:05:12]SAM_PROTO_GetShiftState [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 13 01 00 [19:05:12]Write to MH i2c: E2 08 00 41 76 80 13 01 00 00 00 00 00 34 [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:12]Read from MH i2c: E2 0E 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 0E 00 41 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [19:05:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:05:12]wFMCommunicate OK [19:05:12]SAM_PROTO_GetShiftState done [19:05:12]FM_GetShiftState done [19:05:12]req_shift_opened done [19:05:12]requested_item shift.open_date is exist - process it [19:05:12]req_shift_open_date [19:05:12]req_shift_open_date done [19:05:12]produce_requested_data done [19:05:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103513,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:05:12]process_action_free print_text [19:05:12]json_value_free [19:05:12]json_value_free done [19:05:12]process_json_proto returns [19:05:12]Send response to host [19:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103513,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:05:12]free response buf [19:05:12]execute_script done [19:05:12]execute_script returns [19:05:12]free content buf [19:05:12]Sock 7.Close socket [19:05:12]Sock 7.Thread stoped [19:05:48]accept exits with 9 [19:05:48]New connection [19:05:48]New thread 3067227492 created [19:05:48]Thread 3067084132 joined [19:05:48]Waiting for new connection... [19:05:48] Sock 9.Parse request [19:05:48]Sock 9.Check first char [19:05:48]Sock 9.First char is OK [19:05:48]request: POST /json_proto HTTP/1.0 [19:05:48]Method: POST [19:05:48]URL: /json_proto [19:05:48]Method is POST - this is cgi request [19:05:48]url: /json_proto [19:05:48]query_string will be loaded in cgi processing [19:05:48]execute_cgi json_proto POST (null) [19:05:48]execute_cgi path=json_proto method=POST [19:05:48]POST find Content-Length [19:05:48]Host: 172.17.38.133:8080 [19:05:48]Content-Length: 811 [19:05:48]Content-Type: application/json [19:05:48] [19:05:48]POST finish read [19:05:48]Found Content-Length = 811 [19:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:48]execute_script... [19:05: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)672716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:48]POST & json_proto [19:05:48]process_json_proto [19:05:48]json parsed OK: [19:05:48]protocol is kg_v1.0 [19:05:48]action value=close_receipt [19:05:48]process_action close_receipt [19:05:48]cmd_close_receipt [19:05:48]MH_GetDate [19:05:48]Write to MH i2c: F0 00 00 42 76 A7 [19:05:48]Write i2c OK [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 09 00 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 09 00 42 76 00 94 DA 71 66 BD 8F 7C 64 21 [19:05:48]GetLastDocTimeStamp 1718737508 [19:05:48]current date 1718737556 [19:05:48]FM_GetShiftState [19:05:48]SAM_PROTO_GetShiftState [19:05:48]wFMCommunicate request_size=4 [19:05:48]MH_SAM_APDU [19:05:48]CAPDU: 80 13 01 00 [19:05:48]Write to MH i2c: E2 08 00 43 76 80 13 01 00 00 00 00 00 36 [19:05:48]Write i2c OK [19:05:48]MH_I2C_Read... [19:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:48]Read from MH i2c: E2 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: E2 0E 00 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: E2 0E 00 43 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [19:05:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:05:48]wFMCommunicate OK [19:05:48]SAM_PROTO_GetShiftState done [19:05:48]FM_GetShiftState done [19:05:48]opened in 1718670284 [19:05:48]opened+sec_in_day 1718756684 [19:05:48]quantity*price = 1000042 [19:05:48]sum+1 = 1000043 [19:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 198 18.06.2024 19:05 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103514 ФПД: 202723140330915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103514&fm=202723140330915&tin=02508201610067®Number=0000000000092785&sum=1000042 [19:05:49]StoreToDocumentArchive [19:05:49]shift 352 fd 103514 [19:05:49]save to /storage/0352/doc_00103514 [19:05:49]save last doc name /storage/0352/doc_00103514 to /storage/kkm_last_doc_name [19:05:49]save OK [19:05:49]Clear old archive folders... [19:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:05:49]tlvbuf is B6DEB460 [19:05:49]SAM_PROTO_ClearQueue [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 09 00 00 [19:05:49]Write to MH i2c: E2 08 00 50 76 80 09 00 00 00 00 00 00 38 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 50 76 00 90 00 3A [19:05:49]RAPDU: 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_ClearQueue done [19:05:49]KKMCreateOFDPacket [19:05:49]OFDProtocolAddRootSTLVToBuf [19:05:49]FM_MakeSignedData [19:05:49]FM_MakeSignedData [19:05:49]SAM_PROTO_SignData [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 0D 01 02 [19:05:49]Write to MH i2c: E2 08 00 51 76 80 0D 01 02 00 00 00 00 40 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 51 76 00 90 00 3B [19:05:49]RAPDU: 90 00 [19:05:49]wFMCommunicate OK [19:05:49]wFMCommunicate request_size=255 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 94 01 00 35 04 06 00 [19:05:49]Write to MH i2c: E2 02 01 52 76 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 94 01 00 35 04 06 00 00 00 CC [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 52 76 00 90 00 3C [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=11 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 02 02 06 B8 60 28 C4 65 A3 [19:05:50]Write to MH i2c: E2 0E 00 53 76 80 0D 02 02 06 00 B8 60 28 C4 65 A3 00 00 5B [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 53 76 00 90 00 3D [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 03 02 [19:05:50]Write to MH i2c: E2 08 00 54 76 80 0D 03 02 00 00 00 00 45 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 0B 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 0B 00 54 76 00 05 71 CA C3 E7 F3 EC F0 90 00 FF [19:05:50]RAPDU: 05 71 CA C3 E7 F3 EC F0 90 00 [19:05:50]wFMCommunicate OK [19:05:50]SAM_PROTO_SignData done [19:05:50]FM_MakeSignedData done [19:05:50]CreateOFDProtocolMessage [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 11 00 00 [19:05:50]Write to MH i2c: E2 08 00 55 76 80 11 00 00 00 00 00 00 45 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 17 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 17 00 55 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [19:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:50]wFMCommunicate OK [19:05:50]CreateOFDProtocolMessage done [19:05:50]OFDSenderStorePacket 103514 [19:05:50]StoreOFDPacket docnum=103514 [19:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 2C 90 08 01 BA 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 94 01 00 35 04 06 00 B8 60 28 C4 65 A3 05 71 CA C3 E7 F3 EC F0 [19:05:50]CheckFolder [19:05:50]dirname=/storage/ofd_packets [19:05:50]CheckFolder done [19:05:50]ProducePacketName [19:05:50]name=ofd_packets/00103514 [19:05:50]NVStorageSaveData ofd_packets/00103514 [19:05:50]File name is /storage/ofd_packets/00103514 [19:05:50]Write 302 bytes [19:05:50]NVStorageSaveData done [19:05:50]OFDSenderStorePacket done [19:05:50]KKMCreateOFDPacket done [19:05:50]NVStorageSaveData kkm_last_timestamp [19:05:50]File name is /storage/kkm_last_timestamp [19:05:50]Write 4 bytes [19:05:50]NVStorageSaveData done [19:05:50]ExternCall_PrintAddStr [19:05:50]wPrintStart [19:05:50]Write to MH i2c: 01 00 00 56 76 CC [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 07 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 07 00 56 76 00 00 00 00 00 FF 0F E1 [19:05:50]RasterBufferAndPrint [19:05:50]line Счет N : (1)672716 [19:05:50]line ИНН: 02508201610067 [19:05:50]line Контрольно-Кассовый Чек [19:05:50]line ПРОДАЖА [19:05:50]line ТРК (МРК, ГНК) : 11 [19:05:50]line Товар: 2710194210 [19:05:50]line ДТ(л)-К-5 [19:05:50]line 137.180 * 72.90 [19:05:50]line = 10000.42 [19:05:50]line НДС 12% НСП 1% [19:05:50]line > о реализуемом товаре [19:05:50]line ИТОГО: 10000.42 [19:05:50]line НСП 1% : 88.50 [19:05:50]line НДС 12% : 1061.99 [19:05:50]line Наличными: 0.00 [19:05:50]line Безнал.: 10000.42 [19:05:50]line Место: АЗС № 120 "Партнер Нефть" [19:05:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:05:50]line СНО: Общий режим [19:05:50]line Чек 198 18.06.2024 19:05 [19:05:50]line Смена: 352 ФФД: 1.0 [19:05:50]line ЗНМ: 0300000164 [19:05:50]line РНМ: 0000000000092785 [19:05:50]line Версия ККМ: 001 [19:05:50]line Платежная система: O! деньги [19:05:50]line ФМ: 0000000000875093 [19:05:50]line ФД: 103514 [19:05:50]line ФПД: 202723140330915 [19:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103514&fm=202723140330915&tin=02508201610067®Number=0000000000092785&sum=1000042 [19:05:50]written 0, free lines is 4095 [19:05:51]Write to MH i2c: 01 00 00 80 76 F6 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 80 76 00 00 00 00 00 EF 0C F8 [19:05:51]RasterBufferAndPrint [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]written 0, free lines is 3317 [19:05:51]MH_Cut [19:05:51]Write to MH i2c: D1 01 00 87 76 01 CF [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 87 76 00 CE [19:05:51]Write to MH i2c: 01 00 00 88 76 FE [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** Cut start [19:05:51]*** Partial cut [19:05:51]*** CUTSNS_PIN = 1 [19:05:51]*** CUTSNS_PIN = 0 [19:05:52]*** Brake cut motor [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]*** Stop cut motor [19:05:52]*** Cut end [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 88 76 00 00 00 00 00 FF 0F 13 [19:05:52]process_action close_receipt done [19:05:52]requested_data is exist [19:05:52]produce_requested_data [19:05:52]requested_item fm.sn is exist - process it [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 11 00 00 [19:05:52]Write to MH i2c: E2 08 00 89 76 80 11 00 00 00 00 00 00 79 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 89 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [19:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:52]wFMCommunicate OK [19:05:52]requested_item fd.num is exist - process it [19:05:52]SAM_PROTO_GetFieldsCounters [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 13 00 00 [19:05:52]Write to MH i2c: E2 08 00 8A 76 80 13 00 00 00 00 00 00 7C [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 62 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 62 00 8A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_GetFieldsCounters done [19:05:52]requested_item shift.num is exist - process it [19:05:52]requested_item shift.opened is exist - process it [19:05:52]req_shift_opened [19:05:52]FM_GetShiftState [19:05:52]SAM_PROTO_GetShiftState [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 13 01 00 [19:05:52]Write to MH i2c: E2 08 00 8B 76 80 13 01 00 00 00 00 00 7E [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 8B 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FF [19:05:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_GetShiftState done [19:05:52]FM_GetShiftState done [19:05:52]req_shift_opened done [19:05:52]requested_item shift.open_date is exist - process it [19:05:52]req_shift_open_date [19:05:52]req_shift_open_date done [19:05:52]produce_requested_data done [19:05:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103514,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:05:52]process_action_free close_receipt [19:05:52]json_value_free [19:05:52]json_value_free done [19:05:52]process_json_proto returns [19:05:52]Send response to host [19:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103514,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:05:52]free response buf [19:05:52]execute_script done [19:05:52]execute_script returns [19:05:52]free content buf [19:05:52]Sock 9.Close socket [19:05:52]Sock 9.Thread stoped [19:07:13]ConnectInit Can't connect to host [19:07:13]CommunicateWithHost connect error [19:07:13]CommunicateWithHost err = -1 [19:07:13]OFD Sender: Server communicate error [19:07:13]OFD Sender: Processing packet 103513 [packets to send 18, broken 16] [19:07:13]ProducePacketName [19:07:13]name=ofd_packets/00103513 [19:07:13]OFD Sender: To server: pG, [19:07:13]CommunicateWithHost lk.salyk.kg:30040 [19:07:13]ConnectInit lk.salyk.kg [19:07:13]Connected sock=9 [19:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F7 CD 07 01 0E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 64 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 94 01 00 35 04 06 00 8C F4 C6 76 94 5C E8 18 1D FB 16 94 61 69 [19:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 59 24 47 00 20 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 94 01 00 F4 03 04 00 73 81 71 66 B6 04 01 00 00 C2 B1 29 E4 56 44 CD C6 [19:07:14]CommunicateWithHost err = 0 [19:07:14]CheckOFDResponse [19:07:14]1017 (14) - 77093643461234 [19:07:14]1041 (16) - 0000000000875093 [19:07:14]1040 (4) - 103513 [19:07:14]1012 (4) - 18.06.2024 12:45 [19:07:14]1206 (1) - 0 [19:07:14]OFD Sender: Remove packet 103513 [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00103513 [19:07:14]NVStorageDeleteData [19:07:14]OFD Sender: Processing packet 103514 [packets to send 17, broken 16] [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00103514 [19:07:14]OFD Sender: To server: pG, [19:07:14]CommunicateWithHost lk.salyk.kg:30040 [19:07:14]ConnectInit lk.salyk.kg [19:07:14]Connected sock=9 [19:07:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 2C 90 08 01 BA 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 DA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 94 01 00 35 04 06 00 B8 60 28 C4 65 A3 05 71 CA C3 E7 F3 EC F0 [19:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F1 CE 47 00 B5 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 94 01 00 F4 03 04 00 74 81 71 66 B6 04 01 00 00 B5 C3 4F 6C 32 59 FF 3A [19:07:14]CommunicateWithHost err = 0 [19:07:14]CheckOFDResponse [19:07:14]1017 (14) - 77093643461234 [19:07:14]1041 (16) - 0000000000875093 [19:07:14]1040 (4) - 103514 [19:07:14]1012 (4) - 18.06.2024 12:45 [19:07:14]1206 (1) - 0 [19:07:14]OFD Sender: Remove packet 103514 [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00103514 [19:07:14]NVStorageDeleteData [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:25]accept exits with 7 [19:11:25]New connection [19:11:25]New thread 3067084132 created [19:11:25]Thread 3067227492 joined [19:11:25]Waiting for new connection... [19:11:25] Sock 7.Parse request [19:11:25]Sock 7.Check first char [19:11:25]Sock 7.First char is OK [19:11:25]request: POST /json_proto HTTP/1.0 [19:11:25]Method: POST [19:11:25]URL: /json_proto [19:11:25]Method is POST - this is cgi request [19:11:25]url: /json_proto [19:11:25]query_string will be loaded in cgi processing [19:11:25]execute_cgi json_proto POST (null) [19:11:25]execute_cgi path=json_proto method=POST [19:11:25]POST find Content-Length [19:11:25]Host: 172.17.38.133:8080 [19:11:25]Content-Length: 808 [19:11:25]Content-Type: application/json [19:11:25] [19:11:25]POST finish read [19:11:25]Found Content-Length = 808 [19:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:25]execute_script... [19: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 : (1)672720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:25]POST & json_proto [19:11:25]process_json_proto [19:11:25]json parsed OK: [19:11:25]protocol is kg_v1.0 [19:11:25]action value=close_receipt [19:11:25]process_action close_receipt [19:11:25]cmd_close_receipt [19:11:25]MH_GetDate [19:11:25]Write to MH i2c: F0 00 00 8C 76 F1 [19:11:25]Write i2c OK [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: F0 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: F0 09 00 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: F0 09 00 8C 76 00 E6 DB 71 66 BD 8F 7C 64 BE [19:11:25]GetLastDocTimeStamp 1718737556 [19:11:25]current date 1718737894 [19:11:25]FM_GetShiftState [19:11:25]SAM_PROTO_GetShiftState [19:11:25]wFMCommunicate request_size=4 [19:11:25]MH_SAM_APDU [19:11:25]CAPDU: 80 13 01 00 [19:11:25]Write to MH i2c: E2 08 00 8D 76 80 13 01 00 00 00 00 00 80 [19:11:25]Write i2c OK [19:11:25]MH_I2C_Read... [19:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:25]Read from MH i2c: E2 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 0E 00 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 0E 00 8D 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 01 [19:11:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:11:25]wFMCommunicate OK [19:11:25]SAM_PROTO_GetShiftState done [19:11:25]FM_GetShiftState done [19:11:25]opened in 1718670284 [19:11:25]opened+sec_in_day 1718756684 [19:11:25]quantity*price = 600039 [19:11:25]sum+1 = 600041 [19:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.40 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.40 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 199 18.06.2024 19:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103515 ФПД: 76751821964391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103515&fm=76751821964391&tin=02508201610067®Number=0000000000092785&sum=600040 [19:11:26]StoreToDocumentArchive [19:11:26]shift 352 fd 103515 [19:11:26]save to /storage/0352/doc_00103515 [19:11:26]save last doc name /storage/0352/doc_00103515 to /storage/kkm_last_doc_name [19:11:26]save OK [19:11:26]Clear old archive folders... [19:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:11:26]tlvbuf is 015832C0 [19:11:26]SAM_PROTO_ClearQueue [19:11:26]wFMCommunicate request_size=4 [19:11:26]MH_SAM_APDU [19:11:26]CAPDU: 80 09 00 00 [19:11:26]Write to MH i2c: E2 08 00 9A 76 80 09 00 00 00 00 00 00 82 [19:11:26]Write i2c OK [19:11:26]MH_I2C_Read... [19:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:26]Read from MH i2c: E2 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 03 00 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 03 00 9A 76 00 90 00 84 [19:11:26]RAPDU: 90 00 [19:11:26]wFMCommunicate OK [19:11:26]SAM_PROTO_ClearQueue done [19:11:26]KKMCreateOFDPacket [19:11:26]OFDProtocolAddRootSTLVToBuf [19:11:26]FM_MakeSignedData [19:11:26]FM_MakeSignedData [19:11:26]SAM_PROTO_SignData [19:11:26]wFMCommunicate request_size=4 [19:11:26]MH_SAM_APDU [19:11:26]CAPDU: 80 0D 01 02 [19:11:26]Write to MH i2c: E2 08 00 9B 76 80 0D 01 02 00 00 00 00 8A [19:11:26]Write i2c OK [19:11:26]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 9B 76 00 90 00 85 [19:11:27]RAPDU: 90 00 [19:11:27]wFMCommunicate OK [19:11:27]wFMCommunicate request_size=255 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 E6 DB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 94 01 00 35 04 06 00 [19:11:27]Write to MH i2c: E2 02 01 9C 76 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 E6 DB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 94 01 00 35 04 06 00 00 00 DE [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:27]Read from MH i2c: E2 03 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 9C 76 00 90 00 86 [19:11:27]RAPDU: 90 00 [19:11:27]wFMCommunicate OK [19:11:27]wFMCommunicate request_size=11 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 0D 02 02 06 45 CE 2D 15 84 67 [19:11:27]Write to MH i2c: E2 0E 00 9D 76 80 0D 02 02 06 00 45 CE 2D 15 84 67 00 00 D9 [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 9D 76 00 90 00 87 [19:11:27]RAPDU: 90 00 [19:11:27]wFMCommunicate OK [19:11:27]wFMCommunicate request_size=4 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 0D 03 02 [19:11:27]Write to MH i2c: E2 08 00 9E 76 80 0D 03 02 00 00 00 00 8F [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 0B 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 0B 00 9E 76 00 2C 42 54 24 38 F2 FC CD 90 00 69 [19:11:27]RAPDU: 2C 42 54 24 38 F2 FC CD 90 00 [19:11:27]wFMCommunicate OK [19:11:27]SAM_PROTO_SignData done [19:11:27]FM_MakeSignedData done [19:11:27]CreateOFDProtocolMessage [19:11:27]wFMCommunicate request_size=4 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 11 00 00 [19:11:27]Write to MH i2c: E2 08 00 9F 76 80 11 00 00 00 00 00 00 8F [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 17 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 17 00 9F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [19:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:11:27]wFMCommunicate OK [19:11:27]CreateOFDProtocolMessage done [19:11:27]OFDSenderStorePacket 103515 [19:11:27]StoreOFDPacket docnum=103515 [19:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 69 08 08 01 50 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 E6 DB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 94 01 00 35 04 06 00 45 CE 2D 15 84 67 2C 42 54 24 38 F2 FC CD [19:11:27]CheckFolder [19:11:27]dirname=/storage/ofd_packets [19:11:27]CheckFolder done [19:11:27]ProducePacketName [19:11:27]name=ofd_packets/00103515 [19:11:27]NVStorageSaveData ofd_packets/00103515 [19:11:27]File name is /storage/ofd_packets/00103515 [19:11:27]Write 302 bytes [19:11:27]NVStorageSaveData done [19:11:27]OFDSenderStorePacket done [19:11:27]KKMCreateOFDPacket done [19:11:27]NVStorageSaveData kkm_last_timestamp [19:11:27]File name is /storage/kkm_last_timestamp [19:11:27]Write 4 bytes [19:11:27]NVStorageSaveData done [19:11:27]ExternCall_PrintAddStr [19:11:27]wPrintStart [19:11:27]Write to MH i2c: 01 00 00 A0 76 16 [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: 01 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: 01 07 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: 01 07 00 A0 76 00 00 00 00 00 FF 0F 2B [19:11:27]RasterBufferAndPrint [19:11:27]line Счет N : (1)672720 [19:11:27]line ИНН: 02508201610067 [19:11:27]line Контрольно-Кассовый Чек [19:11:27]line ПРОДАЖА [19:11:27]line ТРК (МРК, ГНК) : 11 [19:11:27]line Товар: 2710194210 [19:11:27]line ДТ(л)-К-5 [19:11:27]line 82.310 * 72.90 [19:11:27]line = 6000.40 [19:11:27]line НДС 12% НСП 1% [19:11:27]line > о реализуемом товаре [19:11:27]line ИТОГО: 6000.40 [19:11:27]line НСП 1% : 53.10 [19:11:27]line НДС 12% : 637.21 [19:11:27]line Наличными: 0.00 [19:11:27]line Безнал.: 6000.40 [19:11:27]line Место: АЗС № 120 "Партнер Нефть" [19:11:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:11:27]line СНО: Общий режим [19:11:27]line Чек 199 18.06.2024 19:11 [19:11:27]line Смена: 352 ФФД: 1.0 [19:11:27]line ЗНМ: 0300000164 [19:11:27]line РНМ: 0000000000092785 [19:11:27]line Версия ККМ: 001 [19:11:27]line Платежная система: O! деньги [19:11:27]line ФМ: 0000000000875093 [19:11:27]line ФД: 103515 [19:11:27]line ФПД: 76751821964391 [19:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103515&fm=76751821964391&tin=02508201610067®Number=0000000000092785&sum=600040 [19:11:27]OFD Sender: Processing packet 103515 [packets to send 17, broken 16] [19:11:27]ProducePacketName [19:11:27]name=ofd_packets/00103515 [19:11:27]OFD Sender: To server: pG, [19:11:27]CommunicateWithHost lk.salyk.kg:30040 [19:11:27]ConnectInit lk.salyk.kg [19:11:27]written 0, free lines is 4095 [19:11:27]Connected sock=10 [19:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 69 08 08 01 50 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 E6 DB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 94 01 00 35 04 06 00 45 CE 2D 15 84 67 2C 42 54 24 38 F2 FC CD [19:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D2 C6 47 00 EC A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 94 01 00 F4 03 04 00 71 82 71 66 B6 04 01 00 00 E5 32 09 40 24 53 3B A5 [19:11:28]CommunicateWithHost err = 0 [19:11:28]CheckOFDResponse [19:11:28]1017 (14) - 77093643461234 [19:11:28]1041 (16) - 0000000000875093 [19:11:28]1040 (4) - 103515 [19:11:28]1012 (4) - 18.06.2024 12:49 [19:11:28]1206 (1) - 0 [19:11:28]OFD Sender: Remove packet 103515 [19:11:28]ProducePacketName [19:11:28]name=ofd_packets/00103515 [19:11:28]NVStorageDeleteData [19:11:28]Write to MH i2c: 01 00 00 CA 76 40 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 07 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 07 00 CA 76 00 00 00 00 00 F5 0C 48 [19:11:28]RasterBufferAndPrint [19:11:28]line [19:11:28]line [19:11:28]line [19:11:28]line [19:11:28]line [19:11:28]written 0, free lines is 3323 [19:11:28]MH_Cut [19:11:28]Write to MH i2c: D1 01 00 D1 76 01 19 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: D1 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: D1 01 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: D1 01 00 D1 76 00 18 [19:11:28]Write to MH i2c: 01 00 00 D2 76 48 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]OFD Sender: No OFD packet to send [19:11:28]*** Cut start [19:11:28]*** Partial cut [19:11:28]*** CUTSNS_PIN = 1 [19:11:29]*** CUTSNS_PIN = 0 [19:11:29]*** Brake cut motor [19:11:29]Read from MH i2c: 01 [19:11:29]MH_I2C_Read... [19:11:29]*** Stop cut motor [19:11:29]*** Cut end [19:11:29]Read from MH i2c: 01 07 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 D2 76 00 00 00 00 00 FF 0F 5D [19:11:29]process_action close_receipt done [19:11:29]requested_data is exist [19:11:29]produce_requested_data [19:11:29]requested_item fm.sn is exist - process it [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 11 00 00 [19:11:29]Write to MH i2c: E2 08 00 D3 76 80 11 00 00 00 00 00 00 C3 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 D3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [19:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:11:29]wFMCommunicate OK [19:11:29]requested_item fd.num is exist - process it [19:11:29]SAM_PROTO_GetFieldsCounters [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 13 00 00 [19:11:29]Write to MH i2c: E2 08 00 D4 76 80 13 00 00 00 00 00 00 C6 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 62 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 62 00 D4 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [19:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_GetFieldsCounters done [19:11:29]requested_item shift.num is exist - process it [19:11:29]requested_item shift.opened is exist - process it [19:11:29]req_shift_opened [19:11:29]FM_GetShiftState [19:11:29]SAM_PROTO_GetShiftState [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 13 01 00 [19:11:29]Write to MH i2c: E2 08 00 D5 76 80 13 01 00 00 00 00 00 C8 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:29]Read from MH i2c: E2 0E 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 0E 00 D5 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 49 [19:11:29]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_GetShiftState done [19:11:29]FM_GetShiftState done [19:11:29]req_shift_opened done [19:11:29]requested_item shift.open_date is exist - process it [19:11:29]req_shift_open_date [19:11:29]req_shift_open_date done [19:11:29]produce_requested_data done [19:11:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103515,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:11:29]process_action_free close_receipt [19:11:29]json_value_free [19:11:29]json_value_free done [19:11:29]process_json_proto returns [19:11:29]Send response to host [19:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103515,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:11:29]free response buf [19:11:29]execute_script done [19:11:29]execute_script returns [19:11:29]free content buf [19:11:29]Sock 7.Close socket [19:11:29]Sock 7.Thread stoped [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:21]accept exits with 9 [19:14:21]New connection [19:14:21]New thread 3067227492 created [19:14:21]Thread 3067084132 joined [19:14:21]Waiting for new connection... [19:14:21] Sock 9.Parse request [19:14:21]Sock 9.Check first char [19:14:21]Sock 9.First char is OK [19:14:21]request: POST /json_proto HTTP/1.0 [19:14:21]Method: POST [19:14:21]URL: /json_proto [19:14:21]Method is POST - this is cgi request [19:14:21]url: /json_proto [19:14:21]query_string will be loaded in cgi processing [19:14:21]execute_cgi json_proto POST (null) [19:14:21]execute_cgi path=json_proto method=POST [19:14:21]POST find Content-Length [19:14:21]Host: 172.17.38.133:8080 [19:14:21]Content-Length: 1157 [19:14:21]Content-Type: application/json [19:14:21] [19:14:21]POST finish read [19:14:21]Found Content-Length = 1157 [19:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672721\u000A18.06.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.750 x 66.40\u000A\u0418\u0422\u041E\u0413: 1975.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:21]execute_script... [19:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672721\u000A18.06.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.750 x 66.40\u000A\u0418\u0422\u041E\u0413: 1975.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:21]POST & json_proto [19:14:21]process_json_proto [19:14:21]json parsed OK: [19:14:21]protocol is kg_v1.0 [19:14:21]action value=print_text [19:14:21]process_action print_text [19:14:21]cmd_print_text [19:14:21]ExternCall_PrintAddStr [19:14:21]wPrintStart [19:14:21]Write to MH i2c: 01 00 00 D6 76 4C [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 D6 76 00 00 00 00 00 FF 0F 61 [19:14:21]RasterBufferAndPrint [19:14:21]line *****ТОВАРНЫЙ ЧЕК***** [19:14:21]line АЗС 120 [19:14:21]line Партнер нефть [19:14:21]line 02508201610067 [19:14:21]line Кассир : Асанбаев Н. [19:14:21]line Счет N : (1)672721 [19:14:21]line 18.06.2024 18:51 [19:14:21]line ПРОДАЖА [19:14:21]line ТРК (МРК, ГНК): 42 [19:14:21]line Вид ГСМ : 2710124130 [19:14:21]line Аи-92-К-5 [19:14:21]line 29.750 x 66.40 [19:14:21]line ИТОГ: 1975.40 [19:14:21]line Тип оплаты: Талоны: ТК ГПНА Online [19:14:21]line 30086492 [19:14:21]line ______________________ [19:14:21]line (подпись) [19:14:21]written 0, free lines is 4095 [19:14:21]Write to MH i2c: 01 00 00 EA 76 60 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 EA 76 00 00 00 00 00 11 0E 86 [19:14:21]RasterBufferAndPrint [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]written 0, free lines is 3603 [19:14:21]MH_Cut [19:14:21]Write to MH i2c: D1 01 00 F1 76 01 39 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 01 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 01 00 F1 76 00 38 [19:14:21]Write to MH i2c: 01 00 00 F2 76 68 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:22]*** Cut start [19:14:22]*** Partial cut [19:14:22]*** CUTSNS_PIN = 1 [19:14:22]*** CUTSNS_PIN = 0 [19:14:22]*** Brake cut motor [19:14:22]Read from MH i2c: 01 [19:14:22]MH_I2C_Read... [19:14:22]*** Stop cut motor [19:14:22]*** Cut end [19:14:22]Read from MH i2c: 01 07 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 07 00 F2 76 00 00 00 00 00 FF 0F 7D [19:14:22]process_action print_text done [19:14:22]requested_data is exist [19:14:22]produce_requested_data [19:14:22]requested_item fm.sn is exist - process it [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 11 00 00 [19:14:22]Write to MH i2c: E2 08 00 F3 76 80 11 00 00 00 00 00 00 E3 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 17 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 17 00 F3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [19:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:14:22]wFMCommunicate OK [19:14:22]requested_item fd.num is exist - process it [19:14:22]SAM_PROTO_GetFieldsCounters [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 13 00 00 [19:14:22]Write to MH i2c: E2 08 00 F4 76 80 13 00 00 00 00 00 00 E6 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 62 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 62 00 F4 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [19:14:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:22]wFMCommunicate OK [19:14:22]SAM_PROTO_GetFieldsCounters done [19:14:22]requested_item shift.num is exist - process it [19:14:22]requested_item shift.opened is exist - process it [19:14:22]req_shift_opened [19:14:22]FM_GetShiftState [19:14:22]SAM_PROTO_GetShiftState [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 13 01 00 [19:14:22]Write to MH i2c: E2 08 00 F5 76 80 13 01 00 00 00 00 00 E8 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0E 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0E 00 F5 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 69 [19:14:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:14:22]wFMCommunicate OK [19:14:22]SAM_PROTO_GetShiftState done [19:14:22]FM_GetShiftState done [19:14:22]req_shift_opened done [19:14:22]requested_item shift.open_date is exist - process it [19:14:22]req_shift_open_date [19:14:22]req_shift_open_date done [19:14:22]produce_requested_data done [19:14:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103515,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:14:22]process_action_free print_text [19:14:22]json_value_free [19:14:22]json_value_free done [19:14:22]process_json_proto returns [19:14:22]Send response to host [19:14:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103515,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:14:22]free response buf [19:14:22]execute_script done [19:14:22]execute_script returns [19:14:22]free content buf [19:14:22]Sock 9.Close socket [19:14:22]Sock 9.Thread stoped [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:57]accept exits with 7 [19:15:57]New connection [19:15:57]New thread 3067084132 created [19:15:57]Thread 3067227492 joined [19:15:57]Waiting for new connection... [19:15:57] Sock 7.Parse request [19:15:57]Sock 7.Check first char [19:15:57]Sock 7.First char is OK [19:15:57]request: POST /json_proto HTTP/1.0 [19:15:57]Method: POST [19:15:57]URL: /json_proto [19:15:57]Method is POST - this is cgi request [19:15:57]url: /json_proto [19:15:57]query_string will be loaded in cgi processing [19:15:57]execute_cgi json_proto POST (null) [19:15:57]execute_cgi path=json_proto method=POST [19:15:57]POST find Content-Length [19:15:57]Host: 172.17.38.133:8080 [19:15:57]Content-Length: 682 [19:15:57]Content-Type: application/json [19:15:57] [19:15:57]POST finish read [19:15:57]Found Content-Length = 682 [19:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.750, "sum" : 1975.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1975.00, "total" : 1975.00, "payments": [ { "type": 0, "sum" : 1975.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]execute_script... [19:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.750, "sum" : 1975.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1975.00, "total" : 1975.00, "payments": [ { "type": 0, "sum" : 1975.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]POST & json_proto [19:15:57]process_json_proto [19:15:57]json parsed OK: [19:15:57]protocol is kg_v1.0 [19:15:57]action value=close_receipt [19:15:57]process_action close_receipt [19:15:57]cmd_close_receipt [19:15:57]MH_GetDate [19:15:57]Write to MH i2c: F0 00 00 F6 76 5B [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 F6 76 00 F5 DC 71 66 BD 8F 7C 64 38 [19:15:57]GetLastDocTimeStamp 1718737894 [19:15:57]current date 1718738165 [19:15:57]FM_GetShiftState [19:15:57]SAM_PROTO_GetShiftState [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 13 01 00 [19:15:57]Write to MH i2c: E2 08 00 F7 76 80 13 01 00 00 00 00 00 EA [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 F7 76 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6B [19:15:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:15:57]wFMCommunicate OK [19:15:57]SAM_PROTO_GetShiftState done [19:15:57]FM_GetShiftState done [19:15:57]opened in 1718670284 [19:15:57]opened+sec_in_day 1718756684 [19:15:57]quantity*price = 197540 [19:15:57]sum+1 = 197541 [19:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1975.00 Внесено: 1975.00 СДАЧА: 0.00 НСП 1% : 17.48 НДС 12% : 209.78 Наличными: 1975.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 200 18.06.2024 19:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103516 ФПД: 149190389714207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191605&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103516&fm=149190389714207&tin=02508201610067®Number=0000000000092785&sum=197500 [19:15:58]StoreToDocumentArchive [19:15:58]shift 352 fd 103516 [19:15:58]save to /storage/0352/doc_00103516 [19:15:58]save last doc name /storage/0352/doc_00103516 to /storage/kkm_last_doc_name [19:15:58]save OK [19:15:58]Clear old archive folders... [19:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:58]tlvbuf is 013740C0 [19:15:58]SAM_PROTO_ClearQueue [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 09 00 00 [19:15:58]Write to MH i2c: E2 08 00 04 77 80 09 00 00 00 00 00 00 ED [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 04 77 00 90 00 EF [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]SAM_PROTO_ClearQueue done [19:15:58]KKMCreateOFDPacket [19:15:58]OFDProtocolAddRootSTLVToBuf [19:15:58]FM_MakeSignedData [19:15:58]FM_MakeSignedData [19:15:58]SAM_PROTO_SignData [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 01 02 [19:15:58]Write to MH i2c: E2 08 00 05 77 80 0D 01 02 00 00 00 00 F5 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 05 77 00 90 00 F0 [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]wFMCommunicate request_size=255 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F5 DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 94 01 00 35 04 06 00 87 [19:15:58]Write to MH i2c: E2 02 01 06 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F5 DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 94 01 00 35 04 06 00 87 00 00 CC [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 06 77 00 90 00 F1 [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]wFMCommunicate request_size=10 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 02 02 05 B0 18 2E CD 1F [19:15:58]Write to MH i2c: E2 0D 00 07 77 80 0D 02 02 05 00 B0 18 2E CD 1F 00 00 E4 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 07 77 00 90 00 F2 [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 03 02 [19:15:58]Write to MH i2c: E2 08 00 08 77 80 0D 03 02 00 00 00 00 FA [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 0B 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 0B 00 08 77 00 65 73 5D D7 08 02 64 B0 90 00 25 [19:15:58]RAPDU: 65 73 5D D7 08 02 64 B0 90 00 [19:15:58]wFMCommunicate OK [19:15:58]SAM_PROTO_SignData done [19:15:58]FM_MakeSignedData done [19:15:58]CreateOFDProtocolMessage [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 11 00 00 [19:15:58]Write to MH i2c: E2 08 00 09 77 80 11 00 00 00 00 00 00 FA [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 17 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 17 00 09 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [19:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:15:58]wFMCommunicate OK [19:15:58]CreateOFDProtocolMessage done [19:15:58]OFDSenderStorePacket 103516 [19:15:58]StoreOFDPacket docnum=103516 [19:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 75 C1 07 01 94 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F5 DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 94 01 00 35 04 06 00 87 B0 18 2E CD 1F 65 73 5D D7 08 02 64 B0 [19:15:58]CheckFolder [19:15:58]dirname=/storage/ofd_packets [19:15:58]CheckFolder done [19:15:58]ProducePacketName [19:15:58]name=ofd_packets/00103516 [19:15:58]NVStorageSaveData ofd_packets/00103516 [19:15:58]File name is /storage/ofd_packets/00103516 [19:15:58]Write 301 bytes [19:15:58]NVStorageSaveData done [19:15:58]OFDSenderStorePacket done [19:15:58]KKMCreateOFDPacket done [19:15:58]NVStorageSaveData kkm_last_timestamp [19:15:58]File name is /storage/kkm_last_timestamp [19:15:58]Write 4 bytes [19:15:58]NVStorageSaveData done [19:15:58]ExternCall_PrintAddStr [19:15:58]wPrintStart [19:15:58]Write to MH i2c: 01 00 00 0A 77 81 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: 01 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: 01 07 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: 01 07 00 0A 77 00 00 00 00 00 FF 0F 96 [19:15:58]RasterBufferAndPrint [19:15:58]line Счет N : (1)672722 [19:15:58]line ИНН: 02508201610067 [19:15:58]line Контрольно-Кассовый Чек [19:15:58]line ПРОДАЖА [19:15:58]line ТРК (МРК, ГНК) : 42 [19:15:58]line Товар: 2710124130 [19:15:58]line Аи-92-К-5 [19:15:58]line 29.750 * 66.40 [19:15:58]line = 1975.40 [19:15:58]line НДС 12% НСП 1% [19:15:58]line > о реализуемом товаре [19:15:58]line ОКРУГЛЕНИЕ: -0.40 [19:15:58]line ИТОГО: 1975.00 [19:15:58]line Внесено: 1975.00 [19:15:58]line СДАЧА: 0.00 [19:15:58]line НСП 1% : 17.48 [19:15:58]line НДС 12% : 209.78 [19:15:58]line Наличными: 1975.00 [19:15:58]line Безнал.: 0.00 [19:15:58]line Место: АЗС № 120 "Партнер Нефть" [19:15:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:15:58]line СНО: Общий режим [19:15:58]line Чек 200 18.06.2024 19:16 [19:15:58]line Смена: 352 ФФД: 1.0 [19:15:58]line ЗНМ: 0300000164 [19:15:58]line РНМ: 0000000000092785 [19:15:58]line Версия ККМ: 001 [19:15:58]line ФМ: 0000000000875093 [19:15:58]line ФД: 103516 [19:15:58]line ФПД: 149190389714207 [19:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191605&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103516&fm=149190389714207&tin=02508201610067®Number=0000000000092785&sum=197500 [19:15:59]OFD Sender: Processing packet 103516 [packets to send 17, broken 16] [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00103516 [19:15:59]OFD Sender: To server: pG, [19:15:59]CommunicateWithHost lk.salyk.kg:30040 [19:15:59]ConnectInit lk.salyk.kg [19:15:59]written 0, free lines is 4095 [19:15:59]Connected sock=10 [19:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 75 C1 07 01 94 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F5 DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 94 01 00 35 04 06 00 87 B0 18 2E CD 1F 65 73 5D D7 08 02 64 B0 [19:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 78 71 47 00 27 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 94 01 00 F4 03 04 00 80 83 71 66 B6 04 01 00 00 31 F7 43 3E D4 A9 40 7C [19:15:59]CommunicateWithHost err = 0 [19:15:59]CheckOFDResponse [19:15:59]1017 (14) - 77093643461234 [19:15:59]1041 (16) - 0000000000875093 [19:15:59]1040 (4) - 103516 [19:15:59]1012 (4) - 18.06.2024 12:54 [19:15:59]1206 (1) - 0 [19:15:59]OFD Sender: Remove packet 103516 [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00103516 [19:15:59]NVStorageDeleteData [19:15:59]Write to MH i2c: 01 00 00 35 77 AC [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 35 77 00 00 00 00 00 E5 0C A4 [19:15:59]RasterBufferAndPrint [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]written 0, free lines is 3307 [19:15:59]MH_Cut [19:15:59]Write to MH i2c: D1 01 00 3C 77 01 85 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 01 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 01 00 3C 77 00 84 [19:15:59]Write to MH i2c: 01 00 00 3D 77 B4 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:16:00]OFD Sender: No OFD packet to send [19:16:00]*** Cut start [19:16:00]*** Partial cut [19:16:00]*** CUTSNS_PIN = 1 [19:16:00]*** CUTSNS_PIN = 0 [19:16:00]*** Brake cut motor [19:16:00]Read from MH i2c: 01 [19:16:00]MH_I2C_Read... [19:16:00]*** Stop cut motor [19:16:00]*** Cut end [19:16:00]Read from MH i2c: 01 07 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: 01 07 00 3D 77 00 00 00 00 00 FF 0F C9 [19:16:00]process_action close_receipt done [19:16:00]requested_data is exist [19:16:00]produce_requested_data [19:16:00]requested_item fm.sn is exist - process it [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 11 00 00 [19:16:00]Write to MH i2c: E2 08 00 3E 77 80 11 00 00 00 00 00 00 2F [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:00]Read from MH i2c: E2 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 17 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 17 00 3E 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [19:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:16:00]wFMCommunicate OK [19:16:00]requested_item fd.num is exist - process it [19:16:00]SAM_PROTO_GetFieldsCounters [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 13 00 00 [19:16:00]Write to MH i2c: E2 08 00 3F 77 80 13 00 00 00 00 00 00 32 [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 62 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 62 00 3F 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:01]wFMCommunicate OK [19:16:01]SAM_PROTO_GetFieldsCounters done [19:16:01]requested_item shift.num is exist - process it [19:16:01]requested_item shift.opened is exist - process it [19:16:01]req_shift_opened [19:16:01]FM_GetShiftState [19:16:01]SAM_PROTO_GetShiftState [19:16:01]wFMCommunicate request_size=4 [19:16:01]MH_SAM_APDU [19:16:01]CAPDU: 80 13 01 00 [19:16:01]Write to MH i2c: E2 08 00 40 77 80 13 01 00 00 00 00 00 34 [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 40 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [19:16:01]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:16:01]wFMCommunicate OK [19:16:01]SAM_PROTO_GetShiftState done [19:16:01]FM_GetShiftState done [19:16:01]req_shift_opened done [19:16:01]requested_item shift.open_date is exist - process it [19:16:01]req_shift_open_date [19:16:01]req_shift_open_date done [19:16:01]produce_requested_data done [19:16:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103516,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:16:01]process_action_free close_receipt [19:16:01]json_value_free [19:16:01]json_value_free done [19:16:01]process_json_proto returns [19:16:01]Send response to host [19:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103516,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:16:01]free response buf [19:16:01]execute_script done [19:16:01]execute_script returns [19:16:01]free content buf [19:16:01]Sock 7.Close socket [19:16:01]Sock 7.Thread stoped [19:16:04]accept exits with 9 [19:16:04]New connection [19:16:04]New thread 3067227492 created [19:16:04]Thread 3067084132 joined [19:16:04]Waiting for new connection... [19:16:04] Sock 9.Parse request [19:16:04]Sock 9.Check first char [19:16:04]Sock 9.First char is OK [19:16:04]request: POST /json_proto HTTP/1.0 [19:16:04]Method: POST [19:16:04]URL: /json_proto [19:16:04]Method is POST - this is cgi request [19:16:04]url: /json_proto [19:16:04]query_string will be loaded in cgi processing [19:16:04]execute_cgi json_proto POST (null) [19:16:04]execute_cgi path=json_proto method=POST [19:16:04]POST find Content-Length [19:16:04]Host: 172.17.38.133:8080 [19:16:04]Content-Length: 739 [19:16:04]Content-Type: application/json [19:16:04] [19:16:04]POST finish read [19:16:04]Found Content-Length = 739 [19:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103516, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.750, "sum" : 1975.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1975.00, "total" : 1975.00, "payments": [ { "type": 0, "sum" : 1975.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:04]execute_script... [19:16:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103516, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.750, "sum" : 1975.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1975.00, "total" : 1975.00, "payments": [ { "type": 0, "sum" : 1975.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:04]POST & json_proto [19:16:04]process_json_proto [19:16:04]json parsed OK: [19:16:04]protocol is kg_v1.0 [19:16:04]action value=close_receipt [19:16:04]process_action close_receipt [19:16:04]cmd_close_receipt [19:16:04]MH_GetDate [19:16:04]Write to MH i2c: F0 00 00 41 77 A7 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: F0 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: F0 09 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: F0 09 00 41 77 00 FC DC 71 66 BD 8F 7C 64 8B [19:16:04]GetLastDocTimeStamp 1718738165 [19:16:04]current date 1718738172 [19:16:04]FM_GetShiftState [19:16:04]SAM_PROTO_GetShiftState [19:16:04]wFMCommunicate request_size=4 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 13 01 00 [19:16:04]Write to MH i2c: E2 08 00 42 77 80 13 01 00 00 00 00 00 36 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0E 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0E 00 42 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [19:16:04]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:16:04]wFMCommunicate OK [19:16:04]SAM_PROTO_GetShiftState done [19:16:04]FM_GetShiftState done [19:16:04]opened in 1718670284 [19:16:04]opened+sec_in_day 1718756684 [19:16:04]quantity*price = 197540 [19:16:04]sum+1 = 197541 [19:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1975.00 НСП 1% : 17.48 НДС 12% : 209.78 Наличными: 1975.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 201 18.06.2024 19:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103516 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103517 ФПД: 46623118442018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191612&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103517&fm=46623118442018&tin=02508201610067®Number=0000000000092785&sum=197500 [19:16:05]StoreToDocumentArchive [19:16:05]shift 352 fd 103517 [19:16:05]save to /storage/0352/doc_00103517 [19:16:05]save last doc name /storage/0352/doc_00103517 to /storage/kkm_last_doc_name [19:16:05]save OK [19:16:05]Clear old archive folders... [19:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=279 [19:16:05]tlvbuf is B6EEB750 [19:16:05]SAM_PROTO_ClearQueue [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 09 00 00 [19:16:05]Write to MH i2c: E2 08 00 51 77 80 09 00 00 00 00 00 00 3A [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 03 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 03 00 51 77 00 90 00 3C [19:16:05]RAPDU: 90 00 [19:16:05]wFMCommunicate OK [19:16:05]SAM_PROTO_ClearQueue done [19:16:05]KKMCreateOFDPacket [19:16:05]OFDProtocolAddRootSTLVToBuf [19:16:05]FM_MakeSignedData [19:16:05]FM_MakeSignedData [19:16:05]SAM_PROTO_SignData [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 0D 01 02 [19:16:05]Write to MH i2c: E2 08 00 52 77 80 0D 01 02 00 00 00 00 42 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 03 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 03 00 52 77 00 90 00 3D [19:16:05]RAPDU: 90 00 [19:16:05]wFMCommunicate OK [19:16:05]wFMCommunicate request_size=255 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FC DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 5C 94 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [19:16:05]Write to MH i2c: E2 02 01 53 77 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FC DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 5C 94 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 FC [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:06]Read from MH i2c: E2 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 03 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 03 00 53 77 00 90 00 3E [19:16:06]RAPDU: 90 00 [19:16:06]wFMCommunicate OK [19:16:06]wFMCommunicate request_size=38 [19:16:06]MH_SAM_APDU [19:16:06]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 94 01 00 35 04 06 00 2A 67 4A 69 BE 22 [19:16:06]Write to MH i2c: E2 29 00 54 77 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 94 01 00 35 04 06 00 2A 67 4A 69 BE 22 00 00 E4 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:06]Read from MH i2c: E2 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 03 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 03 00 54 77 00 90 00 3F [19:16:06]RAPDU: 90 00 [19:16:06]wFMCommunicate OK [19:16:06]wFMCommunicate request_size=4 [19:16:06]MH_SAM_APDU [19:16:06]CAPDU: 80 0D 03 02 [19:16:06]Write to MH i2c: E2 08 00 55 77 80 0D 03 02 00 00 00 00 47 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:06]Read from MH i2c: E2 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 0B 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 0B 00 55 77 00 8C 6C D7 36 77 94 E1 06 90 00 3F [19:16:06]RAPDU: 8C 6C D7 36 77 94 E1 06 90 00 [19:16:06]wFMCommunicate OK [19:16:06]SAM_PROTO_SignData done [19:16:06]FM_MakeSignedData done [19:16:06]CreateOFDProtocolMessage [19:16:06]wFMCommunicate request_size=4 [19:16:06]MH_SAM_APDU [19:16:06]CAPDU: 80 11 00 00 [19:16:06]Write to MH i2c: E2 08 00 56 77 80 11 00 00 00 00 00 00 47 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:06]Read from MH i2c: E2 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 17 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: E2 17 00 56 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [19:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:16:06]wFMCommunicate OK [19:16:06]CreateOFDProtocolMessage done [19:16:06]OFDSenderStorePacket 103517 [19:16:06]StoreOFDPacket docnum=103517 [19:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 45 23 23 01 61 C3 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FC DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 5C 94 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 94 01 00 35 04 06 00 2A 67 4A 69 BE 22 8C 6C D7 36 77 94 E1 06 [19:16:06]CheckFolder [19:16:06]dirname=/storage/ofd_packets [19:16:06]CheckFolder done [19:16:06]ProducePacketName [19:16:06]name=ofd_packets/00103517 [19:16:06]NVStorageSaveData ofd_packets/00103517 [19:16:06]File name is /storage/ofd_packets/00103517 [19:16:06]Write 329 bytes [19:16:06]NVStorageSaveData done [19:16:06]OFDSenderStorePacket done [19:16:06]KKMCreateOFDPacket done [19:16:06]NVStorageSaveData kkm_last_timestamp [19:16:06]File name is /storage/kkm_last_timestamp [19:16:06]Write 4 bytes [19:16:06]NVStorageSaveData done [19:16:06]ExternCall_PrintAddStr [19:16:06]wPrintStart [19:16:06]Write to MH i2c: 01 00 00 57 77 CE [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 07 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 07 00 57 77 00 00 00 00 00 FF 0F E3 [19:16:06]RasterBufferAndPrint [19:16:06]line Счет N : (1)672722 [19:16:06]line ИНН: 02508201610067 [19:16:06]line Контрольно-Кассовый Чек [19:16:06]line ВОЗВРАТ ПРОДАЖИ [19:16:06]line ТРК (МРК, ГНК) : 42 [19:16:06]line Товар: 2710124130 [19:16:06]line Аи-92-К-5 [19:16:06]line 29.750 * 66.40 [19:16:06]line = 1975.40 [19:16:06]line НДС 12% НСП 1% [19:16:06]line > о реализуемом товаре [19:16:06]line ОКРУГЛЕНИЕ: -0.40 [19:16:06]line ИТОГО: 1975.00 [19:16:06]line НСП 1% : 17.48 [19:16:06]line НДС 12% : 209.78 [19:16:06]line Наличными: 1975.00 [19:16:06]line Безнал.: 0.00 [19:16:06]line Место: АЗС № 120 "Партнер Нефть" [19:16:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:16:06]line СНО: Общий режим [19:16:06]line Чек 201 18.06.2024 19:16 [19:16:06]line Смена: 352 ФФД: 1.0 [19:16:06]line ЗНМ: 0300000164 [19:16:06]line РНМ: 0000000000092785 [19:16:06]line Версия ККМ: 001 [19:16:06]line ФД осн.: 103516 [19:16:06]line ФМ осн.: 0000000000875093 [19:16:06]line ФМ: 0000000000875093 [19:16:06]line ФД: 103517 [19:16:06]line ФПД: 46623118442018 [19:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191612&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103517&fm=46623118442018&tin=02508201610067®Number=0000000000092785&sum=197500 [19:16:06]written 0, free lines is 4095 [19:16:06]OFD Sender: Processing packet 103517 [packets to send 17, broken 16] [19:16:06]ProducePacketName [19:16:06]name=ofd_packets/00103517 [19:16:06]OFD Sender: To server: pG, [19:16:06]CommunicateWithHost lk.salyk.kg:30040 [19:16:06]ConnectInit lk.salyk.kg [19:16:06]Connected sock=10 [19:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 45 23 23 01 61 C3 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 74 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 51 00 00 00 00 07 04 06 00 7C 03 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FC DC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 5C 94 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 94 01 00 35 04 06 00 2A 67 4A 69 BE 22 8C 6C D7 36 77 94 E1 06 [19:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A6 DE 47 00 59 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 94 01 00 F4 03 04 00 87 83 71 66 B6 04 01 00 00 A8 9A 91 D1 51 5E 79 EE [19:16:06]CommunicateWithHost err = 0 [19:16:06]CheckOFDResponse [19:16:06]1017 (14) - 77093643461234 [19:16:06]1041 (16) - 0000000000875093 [19:16:06]1040 (4) - 103517 [19:16:06]1012 (4) - 18.06.2024 12:54 [19:16:06]1206 (1) - 0 [19:16:06]OFD Sender: Remove packet 103517 [19:16:06]ProducePacketName [19:16:06]name=ofd_packets/00103517 [19:16:06]NVStorageDeleteData [19:16:06]Write to MH i2c: 01 00 00 82 77 F9 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 07 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: 01 07 00 82 77 00 00 00 00 00 01 0D 0E [19:16:06]RasterBufferAndPrint [19:16:06]line [19:16:06]line [19:16:06]line [19:16:06]line [19:16:06]line [19:16:06]written 0, free lines is 3341 [19:16:06]MH_Cut [19:16:06]Write to MH i2c: D1 01 00 89 77 01 D2 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: D1 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: D1 01 00 [19:16:06]MH_I2C_Read... [19:16:06]Read from MH i2c: D1 01 00 89 77 00 D1 [19:16:06]Write to MH i2c: 01 00 00 8A 77 01 [19:16:06]Write i2c OK [19:16:06]MH_I2C_Read... [19:16:07]OFD Sender: No OFD packet to send [19:16:07]*** Cut start [19:16:07]*** Partial cut [19:16:07]*** CUTSNS_PIN = 1 [19:16:07]*** CUTSNS_PIN = 0 [19:16:07]*** Brake cut motor [19:16:08]Read from MH i2c: 01 [19:16:08]MH_I2C_Read... [19:16:08]*** Stop cut motor [19:16:08]*** Cut end [19:16:08]Read from MH i2c: 01 07 00 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: 01 07 00 8A 77 00 00 00 00 00 FF 0F 16 [19:16:08]process_action close_receipt done [19:16:08]requested_data is exist [19:16:08]produce_requested_data [19:16:08]requested_item fm.sn is exist - process it [19:16:08]wFMCommunicate request_size=4 [19:16:08]MH_SAM_APDU [19:16:08]CAPDU: 80 11 00 00 [19:16:08]Write to MH i2c: E2 08 00 8B 77 80 11 00 00 00 00 00 00 7C [19:16:08]Write i2c OK [19:16:08]MH_I2C_Read... [19:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:08]Read from MH i2c: E2 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 17 00 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 17 00 8B 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [19:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:16:08]wFMCommunicate OK [19:16:08]requested_item fd.num is exist - process it [19:16:08]SAM_PROTO_GetFieldsCounters [19:16:08]wFMCommunicate request_size=4 [19:16:08]MH_SAM_APDU [19:16:08]CAPDU: 80 13 00 00 [19:16:08]Write to MH i2c: E2 08 00 8C 77 80 13 00 00 00 00 00 00 7F [19:16:08]Write i2c OK [19:16:08]MH_I2C_Read... [19:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:08]Read from MH i2c: E2 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 62 00 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 62 00 8C 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [19:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:08]wFMCommunicate OK [19:16:08]SAM_PROTO_GetFieldsCounters done [19:16:08]requested_item shift.num is exist - process it [19:16:08]requested_item shift.opened is exist - process it [19:16:08]req_shift_opened [19:16:08]FM_GetShiftState [19:16:08]SAM_PROTO_GetShiftState [19:16:08]wFMCommunicate request_size=4 [19:16:08]MH_SAM_APDU [19:16:08]CAPDU: 80 13 01 00 [19:16:08]Write to MH i2c: E2 08 00 8D 77 80 13 01 00 00 00 00 00 81 [19:16:08]Write i2c OK [19:16:08]MH_I2C_Read... [19:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:08]Read from MH i2c: E2 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 0E 00 [19:16:08]MH_I2C_Read... [19:16:08]Read from MH i2c: E2 0E 00 8D 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 02 [19:16:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:16:08]wFMCommunicate OK [19:16:08]SAM_PROTO_GetShiftState done [19:16:08]FM_GetShiftState done [19:16:08]req_shift_opened done [19:16:08]requested_item shift.open_date is exist - process it [19:16:08]req_shift_open_date [19:16:08]req_shift_open_date done [19:16:08]produce_requested_data done [19:16:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103517,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:16:08]process_action_free close_receipt [19:16:08]json_value_free [19:16:08]json_value_free done [19:16:08]process_json_proto returns [19:16:08]Send response to host [19:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103517,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:16:08]free response buf [19:16:08]execute_script done [19:16:08]execute_script returns [19:16:08]free content buf [19:16:08]Sock 9.Close socket [19:16:08]Sock 9.Thread stoped [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:09]accept exits with 7 [19:17:09]New connection [19:17:09]New thread 3067084132 created [19:17:09]Thread 3067227492 joined [19:17:09]Waiting for new connection... [19:17:09] Sock 7.Parse request [19:17:09]Sock 7.Check first char [19:17:09]Sock 7.First char is OK [19:17:09]request: POST /json_proto HTTP/1.0 [19:17:09]Method: POST [19:17:09]URL: /json_proto [19:17:09]Method is POST - this is cgi request [19:17:09]url: /json_proto [19:17:09]query_string will be loaded in cgi processing [19:17:09]execute_cgi json_proto POST (null) [19:17:09]execute_cgi path=json_proto method=POST [19:17:09]POST find Content-Length [19:17:09]Host: 172.17.38.133:8080 [19:17:09]Content-Length: 775 [19:17:09]Content-Type: application/json [19:17:09] [19:17:09]POST finish read [19:17:09]Found Content-Length = 775 [19:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184056", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:09]execute_script... [19:17: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)184056", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:09]POST & json_proto [19:17:09]process_json_proto [19:17:09]json parsed OK: [19:17:09]protocol is kg_v1.0 [19:17:09]action value=close_receipt [19:17:09]process_action close_receipt [19:17:09]cmd_close_receipt [19:17:09]MH_GetDate [19:17:09]Write to MH i2c: F0 00 00 8E 77 F4 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: F0 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: F0 09 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: F0 09 00 8E 77 00 3E DD 71 66 BD 8F 7C 64 1B [19:17:09]GetLastDocTimeStamp 1718738172 [19:17:09]current date 1718738238 [19:17:09]FM_GetShiftState [19:17:09]SAM_PROTO_GetShiftState [19:17:09]wFMCommunicate request_size=4 [19:17:09]MH_SAM_APDU [19:17:09]CAPDU: 80 13 01 00 [19:17:09]Write to MH i2c: E2 08 00 8F 77 80 13 01 00 00 00 00 00 83 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:09]Read from MH i2c: E2 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 0E 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 0E 00 8F 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [19:17:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:17:09]wFMCommunicate OK [19:17:09]SAM_PROTO_GetShiftState done [19:17:09]FM_GetShiftState done [19:17:09]opened in 1718670284 [19:17:09]opened+sec_in_day 1718756684 [19:17:09]quantity*price = 21000 [19:17:09]sum+1 = 21001 [19:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 0.00 Безнал.: 210.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 202 18.06.2024 19:17 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103518 ФПД: 94590219015146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191718&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103518&fm=94590219015146&tin=02508201610067®Number=0000000000092785&sum=21000 0 [19:17:11]StoreToDocumentArchive [19:17:11]shift 352 fd 103518 [19:17:11]save to /storage/0352/doc_00103518 [19:17:11]save last doc name /storage/0352/doc_00103518 to /storage/kkm_last_doc_name [19:17:11]save OK [19:17:11]Clear old archive folders... [19:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=266 [19:17:11]tlvbuf is 01337D20 [19:17:11]SAM_PROTO_ClearQueue [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 09 00 00 [19:17:11]Write to MH i2c: E2 08 00 9C 77 80 09 00 00 00 00 00 00 85 [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 9C 77 00 90 00 87 [19:17:11]RAPDU: 90 00 [19:17:11]wFMCommunicate OK [19:17:11]SAM_PROTO_ClearQueue done [19:17:11]KKMCreateOFDPacket [19:17:11]OFDProtocolAddRootSTLVToBuf [19:17:11]FM_MakeSignedData [19:17:11]FM_MakeSignedData [19:17:11]SAM_PROTO_SignData [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 0D 01 02 [19:17:11]Write to MH i2c: E2 08 00 9D 77 80 0D 01 02 00 00 00 00 8D [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 9D 77 00 90 00 88 [19:17:11]RAPDU: 90 00 [19:17:11]wFMCommunicate OK [19:17:11]wFMCommunicate request_size=255 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3E DD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [19:17:11]Write to MH i2c: E2 02 01 9E 77 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3E DD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 8D [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 9E 77 00 90 00 89 [19:17:11]RAPDU: 90 00 [19:17:11]wFMCommunicate OK [19:17:11]wFMCommunicate request_size=25 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 0D 02 02 14 39 33 10 04 04 00 5E 94 01 00 35 04 06 00 56 07 80 67 53 EA [19:17:11]Write to MH i2c: E2 1C 00 9F 77 80 0D 02 02 14 00 39 33 10 04 04 00 5E 94 01 00 35 04 06 00 56 07 80 67 53 EA 00 00 EF [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 03 00 9F 77 00 90 00 8A [19:17:11]RAPDU: 90 00 [19:17:11]wFMCommunicate OK [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 0D 03 02 [19:17:11]Write to MH i2c: E2 08 00 A0 77 80 0D 03 02 00 00 00 00 92 [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 0B 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 0B 00 A0 77 00 70 2F C7 B0 C2 8F E1 89 90 00 64 [19:17:11]RAPDU: 70 2F C7 B0 C2 8F E1 89 90 00 [19:17:11]wFMCommunicate OK [19:17:11]SAM_PROTO_SignData done [19:17:11]FM_MakeSignedData done [19:17:11]CreateOFDProtocolMessage [19:17:11]wFMCommunicate request_size=4 [19:17:11]MH_SAM_APDU [19:17:11]CAPDU: 80 11 00 00 [19:17:11]Write to MH i2c: E2 08 00 A1 77 80 11 00 00 00 00 00 00 92 [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:11]Read from MH i2c: E2 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 17 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: E2 17 00 A1 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [19:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:17:11]wFMCommunicate OK [19:17:11]CreateOFDProtocolMessage done [19:17:11]OFDSenderStorePacket 103518 [19:17:11]StoreOFDPacket docnum=103518 [19:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 1E 01 00 00 FD 57 16 01 88 25 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3E DD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 94 01 00 35 04 06 00 56 07 80 67 53 EA 70 2F C7 B0 C2 8F E1 89 [19:17:11]CheckFolder [19:17:11]dirname=/storage/ofd_packets [19:17:11]CheckFolder done [19:17:11]ProducePacketName [19:17:11]name=ofd_packets/00103518 [19:17:11]NVStorageSaveData ofd_packets/00103518 [19:17:11]File name is /storage/ofd_packets/00103518 [19:17:11]Write 316 bytes [19:17:11]NVStorageSaveData done [19:17:11]OFDSenderStorePacket done [19:17:11]KKMCreateOFDPacket done [19:17:11]NVStorageSaveData kkm_last_timestamp [19:17:11]File name is /storage/kkm_last_timestamp [19:17:11]Write 4 bytes [19:17:11]NVStorageSaveData done [19:17:11]ExternCall_PrintAddStr [19:17:11]wPrintStart [19:17:11]Write to MH i2c: 01 00 00 A2 77 19 [19:17:11]Write i2c OK [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: 01 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: 01 07 00 [19:17:11]MH_I2C_Read... [19:17:11]Read from MH i2c: 01 07 00 A2 77 00 00 00 00 00 FF 0F 2E [19:17:11]RasterBufferAndPrint [19:17:11]line Счет N : (3)184056 [19:17:11]line ИНН: 02508201610067 [19:17:11]line Контрольно-Кассовый Чек [19:17:11]line ПРОДАЖА [19:17:11]line Товар: 4870001570095 [19:17:11]line Напиток Pepsi 2л [19:17:11]line 1.000 * 210.00 [19:17:11]line = 210.00 [19:17:11]line НДС 12% НСП 1% [19:17:11]line > о реализуемом товаре [19:17:11]line ИТОГО: 210.00 [19:17:11]line НСП 1% : 1.86 [19:17:11]line НДС 12% : 22.30 [19:17:11]line Наличными: 0.00 [19:17:11]line Безнал.: 210.00 [19:17:11]line Место: АЗС № 120 "Партнер Нефть" [19:17:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:17:11]line СНО: Общий режим [19:17:11]line Чек 202 18.06.2024 19:17 [19:17:11]line Смена: 352 ФФД: 1.0 [19:17:11]line ЗНМ: 0300000164 [19:17:11]line РНМ: 0000000000092785 [19:17:11]line Версия ККМ: 001 [19:17:11]line Платежная система: O! деньги [19:17:11]line ФМ: 0000000000875093 [19:17:11]line ФД: 103518 [19:17:11]line ФПД: 94590219015146 [19:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191718&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103518&fm=94590219015146&tin=02508201610067®Number=0000000000092785&sum=21000 [19:17:12]OFD Sender: Processing packet 103518 [packets to send 17, broken 16] [19:17:12]ProducePacketName [19:17:12]name=ofd_packets/00103518 [19:17:12]OFD Sender: To server: pG, [19:17:12]CommunicateWithHost lk.salyk.kg:30040 [19:17:12]ConnectInit lk.salyk.kg [19:17:12]line 0 [19:17:12]written 0, free lines is 4095 [19:17:12]Connected sock=10 [19:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 1E 01 00 00 FD 57 16 01 88 25 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3E DD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 94 01 00 35 04 06 00 56 07 80 67 53 EA 70 2F C7 B0 C2 8F E1 89 [19:17:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0A BE 47 00 90 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 35 30 39 33 10 04 04 00 5E 94 01 00 F4 03 04 00 C9 83 71 66 B6 04 01 00 00 D1 A2 FC 80 31 EB 27 7A [19:17:12]CommunicateWithHost err = 0 [19:17:12]CheckOFDResponse [19:17:12]1017 (14) - 77093643461234 [19:17:12]1041 (16) - 0000000000875093 [19:17:12]1040 (4) - 103518 [19:17:12]1012 (4) - 18.06.2024 12:55 [19:17:12]1206 (1) - 0 [19:17:12]OFD Sender: Remove packet 103518 [19:17:12]ProducePacketName [19:17:12]name=ofd_packets/00103518 [19:17:12]NVStorageDeleteData [19:17:12]Write to MH i2c: 01 00 00 CC 77 43 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 07 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: 01 07 00 CC 77 00 00 00 00 00 01 0D 58 [19:17:12]RasterBufferAndPrint [19:17:12]line [19:17:12]line [19:17:12]line [19:17:12]line [19:17:12]line [19:17:12]written 0, free lines is 3335 [19:17:12]MH_Cut [19:17:12]Write to MH i2c: D1 01 00 D3 77 01 1C [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: D1 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: D1 01 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: D1 01 00 D3 77 00 1B [19:17:12]Write to MH i2c: 01 00 00 D4 77 4B [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]OFD Sender: No OFD packet to send [19:17:13]*** Cut start [19:17:13]*** Partial cut [19:17:13]*** CUTSNS_PIN = 1 [19:17:13]*** CUTSNS_PIN = 0 [19:17:13]*** Brake cut motor [19:17:13]Read from MH i2c: 01 [19:17:13]MH_I2C_Read... [19:17:13]*** Stop cut motor [19:17:13]*** Cut end [19:17:13]Read from MH i2c: 01 07 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: 01 07 00 D4 77 00 00 00 00 00 FF 0F 60 [19:17:13]process_action close_receipt done [19:17:13]requested_data is exist [19:17:13]produce_requested_data [19:17:13]requested_item fm.sn is exist - process it [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 11 00 00 [19:17:13]Write to MH i2c: E2 08 00 D5 77 80 11 00 00 00 00 00 00 C6 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:13]Read from MH i2c: E2 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 17 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 17 00 D5 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [19:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:17:13]wFMCommunicate OK [19:17:13]requested_item fd.num is exist - process it [19:17:13]SAM_PROTO_GetFieldsCounters [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 13 00 00 [19:17:13]Write to MH i2c: E2 08 00 D6 77 80 13 00 00 00 00 00 00 C9 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 62 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 62 00 D6 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [19:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetFieldsCounters done [19:17:14]requested_item shift.num is exist - process it [19:17:14]requested_item shift.opened is exist - process it [19:17:14]req_shift_opened [19:17:14]FM_GetShiftState [19:17:14]SAM_PROTO_GetShiftState [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 13 01 00 [19:17:14]Write to MH i2c: E2 08 00 D7 77 80 13 01 00 00 00 00 00 CB [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 D7 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4C [19:17:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetShiftState done [19:17:14]FM_GetShiftState done [19:17:14]req_shift_opened done [19:17:14]requested_item shift.open_date is exist - process it [19:17:14]req_shift_open_date [19:17:14]req_shift_open_date done [19:17:14]produce_requested_data done [19:17:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103518,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:17:14]process_action_free close_receipt [19:17:14]json_value_free [19:17:14]json_value_free done [19:17:14]process_json_proto returns [19:17:14]Send response to host [19:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103518,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:17:14]free response buf [19:17:14]execute_script done [19:17:14]execute_script returns [19:17:14]free content buf [19:17:14]Sock 7.Close socket [19:17:14]Sock 7.Thread stoped [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:05]accept exits with 9 [19:25:05]New connection [19:25:05]New thread 3067227492 created [19:25:05]Thread 3067084132 joined [19:25:05]Waiting for new connection... [19:25:05] Sock 9.Parse request [19:25:05]Sock 9.Check first char [19:25:05]Sock 9.First char is OK [19:25:05]request: POST /json_proto HTTP/1.0 [19:25:05]Method: POST [19:25:05]URL: /json_proto [19:25:05]Method is POST - this is cgi request [19:25:05]url: /json_proto [19:25:05]query_string will be loaded in cgi processing [19:25:05]execute_cgi json_proto POST (null) [19:25:05]execute_cgi path=json_proto method=POST [19:25:05]POST find Content-Length [19:25:05]Host: 172.17.38.133:8080 [19:25:05]Content-Length: 677 [19:25:05]Content-Type: application/json [19:25:05] [19:25:05]POST finish read [19:25:05]Found Content-Length = 677 [19:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:25:05]execute_script... [19:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:25:05]POST & json_proto [19:25:05]process_json_proto [19:25:05]json parsed OK: [19:25:05]protocol is kg_v1.0 [19:25:05]action value=close_receipt [19:25:05]process_action close_receipt [19:25:05]cmd_close_receipt [19:25:05]MH_GetDate [19:25:05]Write to MH i2c: F0 00 00 D8 77 3E [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: F0 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: F0 09 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: F0 09 00 D8 77 00 19 DF 71 66 BD 8F 7C 64 42 [19:25:05]GetLastDocTimeStamp 1718738238 [19:25:05]current date 1718738713 [19:25:05]FM_GetShiftState [19:25:05]SAM_PROTO_GetShiftState [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 13 01 00 [19:25:05]Write to MH i2c: E2 08 00 D9 77 80 13 01 00 00 00 00 00 CD [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 0E 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 0E 00 D9 77 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4E [19:25:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:25:05]wFMCommunicate OK [19:25:05]SAM_PROTO_GetShiftState done [19:25:05]FM_GetShiftState done [19:25:05]opened in 1718670284 [19:25:05]opened+sec_in_day 1718756684 [19:25:05]quantity*price = 50065 [19:25:05]sum+1 = 50067 [19:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 203 18.06.2024 19:25 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103519 ФПД: 35049619081016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T192513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103519&fm=35049619081016&tin=02508201610067®Number=0000000000092785&sum=50000 [19:25:06]StoreToDocumentArchive [19:25:06]shift 352 fd 103519 [19:25:06]save to /storage/0352/doc_00103519 [19:25:06]save last doc name /storage/0352/doc_00103519 to /storage/kkm_last_doc_name [19:25:06]save OK [19:25:06]Clear old archive folders... [19:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:06]tlvbuf is B6DEB560 [19:25:06]SAM_PROTO_ClearQueue [19:25:06]wFMCommunicate request_size=4 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 09 00 00 [19:25:06]Write to MH i2c: E2 08 00 E6 77 80 09 00 00 00 00 00 00 CF [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:06]Read from MH i2c: E2 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 03 00 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 03 00 E6 77 00 90 00 D1 [19:25:06]RAPDU: 90 00 [19:25:06]wFMCommunicate OK [19:25:06]SAM_PROTO_ClearQueue done [19:25:06]KKMCreateOFDPacket [19:25:06]OFDProtocolAddRootSTLVToBuf [19:25:06]FM_MakeSignedData [19:25:06]FM_MakeSignedData [19:25:06]SAM_PROTO_SignData [19:25:06]wFMCommunicate request_size=4 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 0D 01 02 [19:25:06]Write to MH i2c: E2 08 00 E7 77 80 0D 01 02 00 00 00 00 D7 [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:06]Read from MH i2c: E2 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 03 00 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 03 00 E7 77 00 90 00 D2 [19:25:06]RAPDU: 90 00 [19:25:06]wFMCommunicate OK [19:25:06]wFMCommunicate request_size=255 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 19 DF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 94 01 00 35 04 06 00 1F [19:25:06]Write to MH i2c: E2 02 01 E8 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 19 DF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 94 01 00 35 04 06 00 1F 00 00 9F [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 03 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 03 00 E8 77 00 90 00 D3 [19:25:07]RAPDU: 90 00 [19:25:07]wFMCommunicate OK [19:25:07]wFMCommunicate request_size=10 [19:25:07]MH_SAM_APDU [19:25:07]CAPDU: 80 0D 02 02 05 E0 A0 18 47 38 [19:25:07]Write to MH i2c: E2 0D 00 E9 77 80 0D 02 02 05 00 E0 A0 18 47 38 00 00 FB [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 03 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 03 00 E9 77 00 90 00 D4 [19:25:07]RAPDU: 90 00 [19:25:07]wFMCommunicate OK [19:25:07]wFMCommunicate request_size=4 [19:25:07]MH_SAM_APDU [19:25:07]CAPDU: 80 0D 03 02 [19:25:07]Write to MH i2c: E2 08 00 EA 77 80 0D 03 02 00 00 00 00 DC [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 0B 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 0B 00 EA 77 00 43 61 E6 C7 52 2D AF DF 90 00 3B [19:25:07]RAPDU: 43 61 E6 C7 52 2D AF DF 90 00 [19:25:07]wFMCommunicate OK [19:25:07]SAM_PROTO_SignData done [19:25:07]FM_MakeSignedData done [19:25:07]CreateOFDProtocolMessage [19:25:07]wFMCommunicate request_size=4 [19:25:07]MH_SAM_APDU [19:25:07]CAPDU: 80 11 00 00 [19:25:07]Write to MH i2c: E2 08 00 EB 77 80 11 00 00 00 00 00 00 DC [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 17 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 17 00 EB 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [19:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:25:07]wFMCommunicate OK [19:25:07]CreateOFDProtocolMessage done [19:25:07]OFDSenderStorePacket 103519 [19:25:07]StoreOFDPacket docnum=103519 [19:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 00 74 07 01 0D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 19 DF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 94 01 00 35 04 06 00 1F E0 A0 18 47 38 43 61 E6 C7 52 2D AF DF [19:25:07]CheckFolder [19:25:07]dirname=/storage/ofd_packets [19:25:07]CheckFolder done [19:25:07]ProducePacketName [19:25:07]name=ofd_packets/00103519 [19:25:07]NVStorageSaveData ofd_packets/00103519 [19:25:07]File name is /storage/ofd_packets/00103519 [19:25:07]Write 301 bytes [19:25:07]NVStorageSaveData done [19:25:07]OFDSenderStorePacket done [19:25:07]KKMCreateOFDPacket done [19:25:07]NVStorageSaveData kkm_last_timestamp [19:25:07]File name is /storage/kkm_last_timestamp [19:25:07]Write 4 bytes [19:25:07]NVStorageSaveData done [19:25:07]ExternCall_PrintAddStr [19:25:07]wPrintStart [19:25:07]Write to MH i2c: 01 00 00 EC 77 63 [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: 01 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: 01 07 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: 01 07 00 EC 77 00 00 00 00 00 FF 0F 78 [19:25:07]RasterBufferAndPrint [19:25:07]line Счет N : (1)672724 [19:25:07]line ИНН: 02508201610067 [19:25:07]line Контрольно-Кассовый Чек [19:25:07]line ПРОДАЖА [19:25:07]line ТРК (МРК, ГНК) : 32 [19:25:07]line Товар: 2710124130 [19:25:07]line Аи-92-К-5 [19:25:07]line 7.540 * 66.40 [19:25:07]line = 500.66 [19:25:07]line НДС 12% НСП 1% [19:25:07]line > о реализуемом товаре [19:25:07]line ОКРУГЛЕНИЕ: -0.66 [19:25:07]line ИТОГО: 500.00 [19:25:07]line Внесено: 500.00 [19:25:07]line СДАЧА: 0.00 [19:25:07]line НСП 1% : 4.43 [19:25:07]line НДС 12% : 53.17 [19:25:07]line Наличными: 500.00 [19:25:07]line Безнал.: 0.00 [19:25:07]line Место: АЗС № 120 "Партнер Нефть" [19:25:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:25:07]line СНО: Общий режим [19:25:07]line Чек 203 18.06.2024 19:25 [19:25:07]line Смена: 352 ФФД: 1.0 [19:25:07]line ЗНМ: 0300000164 [19:25:07]line РНМ: 0000000000092785 [19:25:07]line Версия ККМ: 001 [19:25:07]line ФМ: 0000000000875093 [19:25:07]line ФД: 103519 [19:25:07]line ФПД: 35049619081016 [19:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T192513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103519&fm=35049619081016&tin=02508201610067®Number=0000000000092785&sum=50000 [19:25:07]written 0, free lines is 4095 [19:25:07]OFD Sender: Processing packet 103519 [packets to send 17, broken 16] [19:25:07]ProducePacketName [19:25:07]name=ofd_packets/00103519 [19:25:07]OFD Sender: To server: pG, [19:25:07]CommunicateWithHost lk.salyk.kg:30040 [19:25:07]ConnectInit lk.salyk.kg [19:25:07]Connected sock=10 [19:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 00 74 07 01 0D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 19 DF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 94 01 00 35 04 06 00 1F E0 A0 18 47 38 43 61 E6 C7 52 2D AF DF [19:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C5 7D 47 00 DC E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 94 01 00 F4 03 04 00 A5 85 71 66 B6 04 01 00 00 46 74 CF D6 BA A2 6A F9 [19:25:07]CommunicateWithHost err = 0 [19:25:07]CheckOFDResponse [19:25:07]1017 (14) - 77093643461234 [19:25:07]1041 (16) - 0000000000875093 [19:25:07]1040 (4) - 103519 [19:25:07]1012 (4) - 18.06.2024 13:03 [19:25:07]1206 (1) - 0 [19:25:07]OFD Sender: Remove packet 103519 [19:25:07]ProducePacketName [19:25:07]name=ofd_packets/00103519 [19:25:07]NVStorageDeleteData [19:25:08]Write to MH i2c: 01 00 00 17 78 8F [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: 01 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: 01 07 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: 01 07 00 17 78 00 00 00 00 00 D8 0C 7A [19:25:08]RasterBufferAndPrint [19:25:08]line [19:25:08]line [19:25:08]line [19:25:08]line [19:25:08]line [19:25:08]written 0, free lines is 3295 [19:25:08]MH_Cut [19:25:08]Write to MH i2c: D1 01 00 1E 78 01 68 [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: D1 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: D1 01 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: D1 01 00 1E 78 00 67 [19:25:08]Write to MH i2c: 01 00 00 1F 78 97 [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]OFD Sender: No OFD packet to send [19:25:08]*** Cut start [19:25:08]*** Partial cut [19:25:08]*** CUTSNS_PIN = 1 [19:25:08]*** CUTSNS_PIN = 0 [19:25:09]*** Brake cut motor [19:25:09]Read from MH i2c: 01 [19:25:09]MH_I2C_Read... [19:25:09]*** Stop cut motor [19:25:09]*** Cut end [19:25:09]Read from MH i2c: 01 07 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 07 00 1F 78 00 00 00 00 00 FF 0F AC [19:25:09]process_action close_receipt done [19:25:09]requested_data is exist [19:25:09]produce_requested_data [19:25:09]requested_item fm.sn is exist - process it [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 11 00 00 [19:25:09]Write to MH i2c: E2 08 00 20 78 80 11 00 00 00 00 00 00 12 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 17 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 17 00 20 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [19:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:25:09]wFMCommunicate OK [19:25:09]requested_item fd.num is exist - process it [19:25:09]SAM_PROTO_GetFieldsCounters [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 13 00 00 [19:25:09]Write to MH i2c: E2 08 00 21 78 80 13 00 00 00 00 00 00 15 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 62 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 62 00 21 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:09]wFMCommunicate OK [19:25:09]SAM_PROTO_GetFieldsCounters done [19:25:09]requested_item shift.num is exist - process it [19:25:09]requested_item shift.opened is exist - process it [19:25:09]req_shift_opened [19:25:09]FM_GetShiftState [19:25:09]SAM_PROTO_GetShiftState [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 13 01 00 [19:25:09]Write to MH i2c: E2 08 00 22 78 80 13 01 00 00 00 00 00 17 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0E 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0E 00 22 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [19:25:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:25:09]wFMCommunicate OK [19:25:09]SAM_PROTO_GetShiftState done [19:25:09]FM_GetShiftState done [19:25:09]req_shift_opened done [19:25:09]requested_item shift.open_date is exist - process it [19:25:09]req_shift_open_date [19:25:09]req_shift_open_date done [19:25:09]produce_requested_data done [19:25:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:25:09]process_action_free close_receipt [19:25:09]json_value_free [19:25:09]json_value_free done [19:25:09]process_json_proto returns [19:25:09]Send response to host [19:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:25:09]free response buf [19:25:09]execute_script done [19:25:09]execute_script returns [19:25:09]free content buf [19:25:09]Sock 9.Close socket [19:25:09]Sock 9.Thread stoped [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:15]accept exits with 7 [19:27:15]New connection [19:27:15]New thread 3067084132 created [19:27:15]Thread 3067227492 joined [19:27:15]Waiting for new connection... [19:27:15] Sock 7.Parse request [19:27:15]Sock 7.Check first char [19:27:15]Sock 7.First char is OK [19:27:15]request: POST /json_proto HTTP/1.0 [19:27:15]Method: POST [19:27:15]URL: /json_proto [19:27:15]Method is POST - this is cgi request [19:27:15]url: /json_proto [19:27:15]query_string will be loaded in cgi processing [19:27:15]execute_cgi json_proto POST (null) [19:27:15]execute_cgi path=json_proto method=POST [19:27:15]POST find Content-Length [19:27:15]Host: 172.17.38.133:8080 [19:27:15]Content-Length: 1195 [19:27:15]Content-Type: application/json [19:27:15] [19:27:15]POST finish read [19:27:15]Found Content-Length = 1195 [19:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672723\u000A18.06.2024 19:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 80.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 5312.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72680\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:15]execute_script... [19:27:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672723\u000A18.06.2024 19:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 80.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 5312.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A72680\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:15]POST & json_proto [19:27:15]process_json_proto [19:27:15]json parsed OK: [19:27:15]protocol is kg_v1.0 [19:27:15]action value=print_text [19:27:15]process_action print_text [19:27:15]cmd_print_text [19:27:15]ExternCall_PrintAddStr [19:27:15]wPrintStart [19:27:15]Write to MH i2c: 01 00 00 23 78 9B [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 23 78 00 00 00 00 00 FF 0F B0 [19:27:15]RasterBufferAndPrint [19:27:15]line *****ТОВАРНЫЙ ЧЕК***** [19:27:15]line АЗС 120 [19:27:15]line Партнер нефть [19:27:15]line 02508201610067 [19:27:15]line Кассир : Асанбаев Н. [19:27:15]line Счет N : (1)672723 [19:27:15]line 18.06.2024 19:04 [19:27:15]line ПРОДАЖА [19:27:15]line ТРК (МРК, ГНК): 42 [19:27:15]line Вид ГСМ : 2710124130 [19:27:15]line Аи-92-К-5 [19:27:15]line 80.000 x 66.40 [19:27:15]line ИТОГ: 5312.00 [19:27:15]line Тип оплаты: Талоны: Топливная Карта [19:27:15]line 72680 [19:27:15]line ______________________ [19:27:15]line (подпись) [19:27:15]written 0, free lines is 4095 [19:27:15]Write to MH i2c: 01 00 00 37 78 AF [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 37 78 00 00 00 00 00 10 0E D4 [19:27:15]RasterBufferAndPrint [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]written 0, free lines is 3602 [19:27:15]MH_Cut [19:27:15]Write to MH i2c: D1 01 00 3E 78 01 88 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 3E 78 00 87 [19:27:15]Write to MH i2c: 01 00 00 3F 78 B7 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** Cut start [19:27:15]*** Partial cut [19:27:15]*** CUTSNS_PIN = 1 [19:27:15]*** CUTSNS_PIN = 0 [19:27:16]*** Brake cut motor [19:27:16]Read from MH i2c: 01 [19:27:16]MH_I2C_Read... [19:27:16]*** Stop cut motor [19:27:16]*** Cut end [19:27:16]Read from MH i2c: 01 07 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 3F 78 00 00 00 00 00 FF 0F CC [19:27:16]process_action print_text done [19:27:16]requested_data is exist [19:27:16]produce_requested_data [19:27:16]requested_item fm.sn is exist - process it [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 11 00 00 [19:27:16]Write to MH i2c: E2 08 00 40 78 80 11 00 00 00 00 00 00 32 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 40 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [19:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:27:16]wFMCommunicate OK [19:27:16]requested_item fd.num is exist - process it [19:27:16]SAM_PROTO_GetFieldsCounters [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 00 00 [19:27:16]Write to MH i2c: E2 08 00 41 78 80 13 00 00 00 00 00 00 35 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 41 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetFieldsCounters done [19:27:16]requested_item shift.num is exist - process it [19:27:16]requested_item shift.opened is exist - process it [19:27:16]req_shift_opened [19:27:16]FM_GetShiftState [19:27:16]SAM_PROTO_GetShiftState [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 01 00 [19:27:16]Write to MH i2c: E2 08 00 42 78 80 13 01 00 00 00 00 00 37 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 42 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B8 [19:27:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetShiftState done [19:27:16]FM_GetShiftState done [19:27:16]req_shift_opened done [19:27:16]requested_item shift.open_date is exist - process it [19:27:16]req_shift_open_date [19:27:16]req_shift_open_date done [19:27:16]produce_requested_data done [19:27:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:27:16]process_action_free print_text [19:27:16]json_value_free [19:27:16]json_value_free done [19:27:16]process_json_proto returns [19:27:16]Send response to host [19:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:27:16]free response buf [19:27:16]execute_script done [19:27:16]execute_script returns [19:27:16]free content buf [19:27:16]Sock 7.Close socket [19:27:16]Sock 7.Thread stoped [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:33]accept exits with 9 [19:30:33]New connection [19:30:33]New thread 3067227492 created [19:30:33]Thread 3067084132 joined [19:30:33]Waiting for new connection... [19:30:33] Sock 9.Parse request [19:30:33]Sock 9.Check first char [19:30:33]Sock 9.First char is OK [19:30:33]request: POST /json_proto HTTP/1.0 [19:30:33]Method: POST [19:30:33]URL: /json_proto [19:30:33]Method is POST - this is cgi request [19:30:33]url: /json_proto [19:30:33]query_string will be loaded in cgi processing [19:30:33]execute_cgi json_proto POST (null) [19:30:33]execute_cgi path=json_proto method=POST [19:30:33]POST find Content-Length [19:30:33]Host: 172.17.38.133:8080 [19:30:33]Content-Length: 1200 [19:30:33]Content-Type: application/json [19:30:33] [19:30:33]POST finish read [19:30:33]Found Content-Length = 1200 [19:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672725\u000A18.06.2024 19:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:33]execute_script... [19:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672725\u000A18.06.2024 19:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:33]POST & json_proto [19:30:33]process_json_proto [19:30:33]json parsed OK: [19:30:33]protocol is kg_v1.0 [19:30:33]action value=print_text [19:30:33]process_action print_text [19:30:33]cmd_print_text [19:30:33]ExternCall_PrintAddStr [19:30:33]wPrintStart [19:30:33]Write to MH i2c: 01 00 00 43 78 BB [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 07 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 07 00 43 78 00 00 00 00 00 FF 0F D0 [19:30:33]RasterBufferAndPrint [19:30:33]line *****ТОВАРНЫЙ ЧЕК***** [19:30:33]line АЗС 120 [19:30:33]line Партнер нефть [19:30:33]line 02508201610067 [19:30:33]line Кассир : Асанбаев Н. [19:30:33]line Счет N : (1)672725 [19:30:33]line 18.06.2024 19:08 [19:30:33]line ПРОДАЖА [19:30:33]line ТРК (МРК, ГНК): 21 [19:30:33]line Вид ГСМ : 2710194210 [19:30:33]line ДТ(л)-К-5 [19:30:33]line 50.000 x 72.90 [19:30:33]line ИТОГ: 3645.00 [19:30:33]line Тип оплаты: Талоны: Топливная Карта [19:30:33]line 43416 [19:30:33]line ______________________ [19:30:33]line (подпись) [19:30:33]written 0, free lines is 4095 [19:30:34]Write to MH i2c: 01 00 00 57 78 CF [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: 01 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: 01 07 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: 01 07 00 57 78 00 00 00 00 00 10 0E F4 [19:30:34]RasterBufferAndPrint [19:30:34]line [19:30:34]line [19:30:34]line [19:30:34]line [19:30:34]line [19:30:34]written 0, free lines is 3601 [19:30:34]MH_Cut [19:30:34]Write to MH i2c: D1 01 00 5E 78 01 A8 [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: D1 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: D1 01 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: D1 01 00 5E 78 00 A7 [19:30:34]Write to MH i2c: 01 00 00 5F 78 D7 [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]*** Cut start [19:30:34]*** Partial cut [19:30:34]*** CUTSNS_PIN = 1 [19:30:34]*** CUTSNS_PIN = 0 [19:30:34]*** Brake cut motor [19:30:35]Read from MH i2c: 01 [19:30:35]MH_I2C_Read... [19:30:35]*** Stop cut motor [19:30:35]*** Cut end [19:30:35]Read from MH i2c: 01 07 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: 01 07 00 5F 78 00 00 00 00 00 FF 0F EC [19:30:35]process_action print_text done [19:30:35]requested_data is exist [19:30:35]produce_requested_data [19:30:35]requested_item fm.sn is exist - process it [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 11 00 00 [19:30:35]Write to MH i2c: E2 08 00 60 78 80 11 00 00 00 00 00 00 52 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 17 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 17 00 60 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [19:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:30:35]wFMCommunicate OK [19:30:35]requested_item fd.num is exist - process it [19:30:35]SAM_PROTO_GetFieldsCounters [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 13 00 00 [19:30:35]Write to MH i2c: E2 08 00 61 78 80 13 00 00 00 00 00 00 55 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 62 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 62 00 61 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_GetFieldsCounters done [19:30:35]requested_item shift.num is exist - process it [19:30:35]requested_item shift.opened is exist - process it [19:30:35]req_shift_opened [19:30:35]FM_GetShiftState [19:30:35]SAM_PROTO_GetShiftState [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 13 01 00 [19:30:35]Write to MH i2c: E2 08 00 62 78 80 13 01 00 00 00 00 00 57 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 62 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D8 [19:30:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_GetShiftState done [19:30:35]FM_GetShiftState done [19:30:35]req_shift_opened done [19:30:35]requested_item shift.open_date is exist - process it [19:30:35]req_shift_open_date [19:30:35]req_shift_open_date done [19:30:35]produce_requested_data done [19:30:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:30:35]process_action_free print_text [19:30:35]json_value_free [19:30:35]json_value_free done [19:30:35]process_json_proto returns [19:30:35]Send response to host [19:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103519,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:30:35]free response buf [19:30:35]execute_script done [19:30:35]execute_script returns [19:30:35]free content buf [19:30:35]Sock 9.Close socket [19:30:35]Sock 9.Thread stoped [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]accept exits with 7 [19:31:53]New connection [19:31:53]New thread 3067084132 created [19:31:53]Thread 3067227492 joined [19:31:53]Waiting for new connection... [19:31:53] Sock 7.Parse request [19:31:53]Sock 7.Check first char [19:31:53]Sock 7.First char is OK [19:31:53]request: POST /json_proto HTTP/1.0 [19:31:53]Method: POST [19:31:53]URL: /json_proto [19:31:53]Method is POST - this is cgi request [19:31:53]url: /json_proto [19:31:53]query_string will be loaded in cgi processing [19:31:53]execute_cgi json_proto POST (null) [19:31:53]execute_cgi path=json_proto method=POST [19:31:53]POST find Content-Length [19:31:53]Host: 172.17.38.133:8080 [19:31:53]Content-Length: 800 [19:31:53]Content-Type: application/json [19:31:53] [19:31:53]POST finish read [19:31:53]Found Content-Length = 800 [19:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:53]execute_script... [19:31:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:53]POST & json_proto [19:31:53]process_json_proto [19:31:53]json parsed OK: [19:31:53]protocol is kg_v1.0 [19:31:53]action value=close_receipt [19:31:53]process_action close_receipt [19:31:53]cmd_close_receipt [19:31:53]MH_GetDate [19:31:53]Write to MH i2c: F0 00 00 63 78 CA [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 09 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: F0 09 00 63 78 00 B1 E0 71 66 BD 8F 7C 64 67 [19:31:53]GetLastDocTimeStamp 1718738713 [19:31:53]current date 1718739121 [19:31:53]FM_GetShiftState [19:31:53]SAM_PROTO_GetShiftState [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 13 01 00 [19:31:53]Write to MH i2c: E2 08 00 64 78 80 13 01 00 00 00 00 00 59 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 64 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DA [19:31:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetShiftState done [19:31:53]FM_GetShiftState done [19:31:53]opened in 1718670284 [19:31:53]opened+sec_in_day 1718756684 [19:31:53]quantity*price = 50065 [19:31:53]sum+1 = 50067 [19:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 204 18.06.2024 19:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103520 ФПД: 100644360329050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193201&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103520&fm=100644360329050&tin=02508201610067®Number=0000000000092785&sum=50066 [19:31:54]StoreToDocumentArchive [19:31:54]shift 352 fd 103520 [19:31:54]save to /storage/0352/doc_00103520 [19:31:54]save last doc name /storage/0352/doc_00103520 to /storage/kkm_last_doc_name [19:31:54]save OK [19:31:54]Clear old archive folders... [19:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:54]tlvbuf is 01369410 [19:31:54]SAM_PROTO_ClearQueue [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 09 00 00 [19:31:54]Write to MH i2c: E2 08 00 71 78 80 09 00 00 00 00 00 00 5B [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]SAM_PROTO_ClearQueue done [19:31:54]KKMCreateOFDPacket [19:31:54]OFDProtocolAddRootSTLVToBuf [19:31:54]FM_MakeSignedData [19:31:54]FM_MakeSignedData [19:31:54]SAM_PROTO_SignData [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 01 02 [19:31:54]Write to MH i2c: E2 08 00 72 78 80 0D 01 02 00 00 00 00 63 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 03 00 72 78 00 90 00 5E [19:31:54]RAPDU: 90 00 [19:31:54]wFMCommunicate OK [19:31:54]wFMCommunicate request_size=255 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 B1 E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 94 01 00 35 04 06 00 5B [19:31:54]Write to MH i2c: E2 02 01 73 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 B1 E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 94 01 00 35 04 06 00 5B 00 00 86 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 03 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 03 00 73 78 00 90 00 5F [19:31:55]RAPDU: 90 00 [19:31:55]wFMCommunicate OK [19:31:55]wFMCommunicate request_size=10 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 0D 02 02 05 89 17 58 97 5A [19:31:55]Write to MH i2c: E2 0D 00 74 78 80 0D 02 02 05 00 89 17 58 97 5A 00 00 59 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 03 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 03 00 74 78 00 90 00 60 [19:31:55]RAPDU: 90 00 [19:31:55]wFMCommunicate OK [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 0D 03 02 [19:31:55]Write to MH i2c: E2 08 00 75 78 80 0D 03 02 00 00 00 00 68 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0B 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0B 00 75 78 00 C9 60 20 C0 EF 5A 3C 29 90 00 20 [19:31:55]RAPDU: C9 60 20 C0 EF 5A 3C 29 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_SignData done [19:31:55]FM_MakeSignedData done [19:31:55]CreateOFDProtocolMessage [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 11 00 00 [19:31:55]Write to MH i2c: E2 08 00 76 78 80 11 00 00 00 00 00 00 68 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 17 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 17 00 76 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [19:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:31:55]wFMCommunicate OK [19:31:55]CreateOFDProtocolMessage done [19:31:55]OFDSenderStorePacket 103520 [19:31:55]StoreOFDPacket docnum=103520 [19:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 70 0E 07 01 6F F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 B1 E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 94 01 00 35 04 06 00 5B 89 17 58 97 5A C9 60 20 C0 EF 5A 3C 29 [19:31:55]CheckFolder [19:31:55]dirname=/storage/ofd_packets [19:31:55]CheckFolder done [19:31:55]ProducePacketName [19:31:55]name=ofd_packets/00103520 [19:31:55]NVStorageSaveData ofd_packets/00103520 [19:31:55]File name is /storage/ofd_packets/00103520 [19:31:55]Write 301 bytes [19:31:55]NVStorageSaveData done [19:31:55]OFDSenderStorePacket done [19:31:55]KKMCreateOFDPacket done [19:31:55]NVStorageSaveData kkm_last_timestamp [19:31:55]File name is /storage/kkm_last_timestamp [19:31:55]Write 4 bytes [19:31:55]NVStorageSaveData done [19:31:55]ExternCall_PrintAddStr [19:31:55]wPrintStart [19:31:55]Write to MH i2c: 01 00 00 77 78 EF [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: 01 07 00 77 78 00 00 00 00 00 FF 0F 04 [19:31:55]RasterBufferAndPrint [19:31:55]line Счет N : (1)672726 [19:31:55]line ИНН: 02508201610067 [19:31:55]line Контрольно-Кассовый Чек [19:31:55]line ПРОДАЖА [19:31:55]line ТРК (МРК, ГНК) : 42 [19:31:55]line Товар: 2710124130 [19:31:55]line Аи-92-К-5 [19:31:55]line 7.540 * 66.40 [19:31:55]line = 500.66 [19:31:55]line НДС 12% НСП 1% [19:31:55]line > о реализуемом товаре [19:31:55]line ИТОГО: 500.66 [19:31:55]line НСП 1% : 4.43 [19:31:55]line НДС 12% : 53.17 [19:31:55]line Наличными: 0.00 [19:31:55]line Безнал.: 500.66 [19:31:55]line Место: АЗС № 120 "Партнер Нефть" [19:31:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:31:55]line СНО: Общий режим [19:31:55]line Чек 204 18.06.2024 19:32 [19:31:55]line Смена: 352 ФФД: 1.0 [19:31:55]line ЗНМ: 0300000164 [19:31:55]line РНМ: 0000000000092785 [19:31:55]line Версия ККМ: 001 [19:31:55]line Платежная система: O! деньги [19:31:55]line ФМ: 0000000000875093 [19:31:55]line ФД: 103520 [19:31:55]line ФПД: 100644360329050 [19:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193201&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103520&fm=100644360329050&tin=02508201610067®Number=0000000000092785&sum=50066 [19:31:55]OFD Sender: Processing packet 103520 [packets to send 17, broken 16] [19:31:55]ProducePacketName [19:31:55]name=ofd_packets/00103520 [19:31:55]OFD Sender: To server: pG, [19:31:55]CommunicateWithHost lk.salyk.kg:30040 [19:31:55]ConnectInit lk.salyk.kg [19:31:55]written 0, free lines is 4095 [19:31:55]Connected sock=10 [19:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 70 0E 07 01 6F F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 B1 E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 94 01 00 35 04 06 00 5B 89 17 58 97 5A C9 60 20 C0 EF 5A 3C 29 [19:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E3 CD 47 00 71 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 94 01 00 F4 03 04 00 3D 87 71 66 B6 04 01 00 00 42 7B E5 6E 1E 06 35 4B [19:31:55]CommunicateWithHost err = 0 [19:31:55]CheckOFDResponse [19:31:55]1017 (14) - 77093643461234 [19:31:55]1041 (16) - 0000000000875093 [19:31:55]1040 (4) - 103520 [19:31:55]1012 (4) - 18.06.2024 13:10 [19:31:55]1206 (1) - 0 [19:31:55]OFD Sender: Remove packet 103520 [19:31:55]ProducePacketName [19:31:55]name=ofd_packets/00103520 [19:31:55]NVStorageDeleteData [19:31:56]Write to MH i2c: 01 00 00 A1 78 19 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 07 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: 01 07 00 A1 78 00 00 00 00 00 F0 0C 1C [19:31:56]RasterBufferAndPrint [19:31:56]line [19:31:56]line [19:31:56]line [19:31:56]line [19:31:56]line [19:31:56]written 0, free lines is 3319 [19:31:56]MH_Cut [19:31:56]Write to MH i2c: D1 01 00 A8 78 01 F2 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: D1 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: D1 01 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: D1 01 00 A8 78 00 F1 [19:31:56]Write to MH i2c: 01 00 00 A9 78 21 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]OFD Sender: No OFD packet to send [19:31:56]*** Cut start [19:31:56]*** Partial cut [19:31:56]*** CUTSNS_PIN = 1 [19:31:56]*** CUTSNS_PIN = 0 [19:31:56]*** Brake cut motor [19:31:57]Read from MH i2c: 01 [19:31:57]MH_I2C_Read... [19:31:57]*** Stop cut motor [19:31:57]*** Cut end [19:31:57]Read from MH i2c: 01 07 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 A9 78 00 00 00 00 00 FF 0F 36 [19:31:57]process_action close_receipt done [19:31:57]requested_data is exist [19:31:57]produce_requested_data [19:31:57]requested_item fm.sn is exist - process it [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 11 00 00 [19:31:57]Write to MH i2c: E2 08 00 AA 78 80 11 00 00 00 00 00 00 9C [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 AA 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [19:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:31:57]wFMCommunicate OK [19:31:57]requested_item fd.num is exist - process it [19:31:57]SAM_PROTO_GetFieldsCounters [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 13 00 00 [19:31:57]Write to MH i2c: E2 08 00 AB 78 80 13 00 00 00 00 00 00 9F [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 62 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 62 00 AB 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_GetFieldsCounters done [19:31:57]requested_item shift.num is exist - process it [19:31:57]requested_item shift.opened is exist - process it [19:31:57]req_shift_opened [19:31:57]FM_GetShiftState [19:31:57]SAM_PROTO_GetShiftState [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 13 01 00 [19:31:57]Write to MH i2c: E2 08 00 AC 78 80 13 01 00 00 00 00 00 A1 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0E 00 AC 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 22 [19:31:57]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_GetShiftState done [19:31:57]FM_GetShiftState done [19:31:57]req_shift_opened done [19:31:57]requested_item shift.open_date is exist - process it [19:31:57]req_shift_open_date [19:31:57]req_shift_open_date done [19:31:57]produce_requested_data done [19:31:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103520,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:31:57]process_action_free close_receipt [19:31:57]json_value_free [19:31:57]json_value_free done [19:31:57]process_json_proto returns [19:31:57]Send response to host [19:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103520,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:31:57]free response buf [19:31:57]execute_script done [19:31:57]execute_script returns [19:31:57]free content buf [19:31:57]Sock 7.Close socket [19:31:57]Sock 7.Thread stoped [19:32:01]OFD Sender: No OFD packet to send [19:32:03]accept exits with 9 [19:32:03]New connection [19:32:03]New thread 3067227492 created [19:32:03]Thread 3067084132 joined [19:32:03]Waiting for new connection... [19:32:03] Sock 9.Parse request [19:32:03]Sock 9.Check first char [19:32:03]Sock 9.First char is OK [19:32:03]request: POST /json_proto HTTP/1.0 [19:32:03]Method: POST [19:32:03]URL: /json_proto [19:32:03]Method is POST - this is cgi request [19:32:03]url: /json_proto [19:32:03]query_string will be loaded in cgi processing [19:32:03]execute_cgi json_proto POST (null) [19:32:03]execute_cgi path=json_proto method=POST [19:32:03]POST find Content-Length [19:32:03]Host: 172.17.38.133:8080 [19:32:03]Content-Length: 677 [19:32:03]Content-Type: application/json [19:32:03] [19:32:03]POST finish read [19:32:03]Found Content-Length = 677 [19:32:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:32:03]execute_script... [19:32:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:32:03]POST & json_proto [19:32:03]process_json_proto [19:32:03]json parsed OK: [19:32:03]protocol is kg_v1.0 [19:32:03]action value=close_receipt [19:32:03]process_action close_receipt [19:32:03]cmd_close_receipt [19:32:03]MH_GetDate [19:32:03]Write to MH i2c: F0 00 00 AD 78 14 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: F0 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: F0 09 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: F0 09 00 AD 78 00 BB E0 71 66 BD 8F 7C 64 BB [19:32:03]GetLastDocTimeStamp 1718739121 [19:32:03]current date 1718739131 [19:32:03]FM_GetShiftState [19:32:03]SAM_PROTO_GetShiftState [19:32:03]wFMCommunicate request_size=4 [19:32:03]MH_SAM_APDU [19:32:03]CAPDU: 80 13 01 00 [19:32:03]Write to MH i2c: E2 08 00 AE 78 80 13 01 00 00 00 00 00 A3 [19:32:03]Write i2c OK [19:32:03]MH_I2C_Read... [19:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:03]Read from MH i2c: E2 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0E 00 [19:32:03]MH_I2C_Read... [19:32:03]Read from MH i2c: E2 0E 00 AE 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 24 [19:32:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:32:03]wFMCommunicate OK [19:32:03]SAM_PROTO_GetShiftState done [19:32:03]FM_GetShiftState done [19:32:03]opened in 1718670284 [19:32:03]opened+sec_in_day 1718756684 [19:32:03]quantity*price = 50065 [19:32:03]sum+1 = 50067 [19:32:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 205 18.06.2024 19:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103521 ФПД: 171139269475887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103521&fm=171139269475887&tin=02508201610067®Number=0000000000092785&sum=50000 [19:32:04]StoreToDocumentArchive [19:32:04]shift 352 fd 103521 [19:32:04]save to /storage/0352/doc_00103521 [19:32:04]save last doc name /storage/0352/doc_00103521 to /storage/kkm_last_doc_name [19:32:04]save OK [19:32:04]Clear old archive folders... [19:32:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:04]tlvbuf is B6DEB1C0 [19:32:04]SAM_PROTO_ClearQueue [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 09 00 00 [19:32:04]Write to MH i2c: E2 08 00 BB 78 80 09 00 00 00 00 00 00 A5 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]SAM_PROTO_ClearQueue done [19:32:04]KKMCreateOFDPacket [19:32:04]OFDProtocolAddRootSTLVToBuf [19:32:04]FM_MakeSignedData [19:32:04]FM_MakeSignedData [19:32:04]SAM_PROTO_SignData [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 01 02 [19:32:04]Write to MH i2c: E2 08 00 BC 78 80 0D 01 02 00 00 00 00 AD [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]wFMCommunicate request_size=255 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BB E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 94 01 00 35 04 06 00 9B [19:32:04]Write to MH i2c: E2 02 01 BD 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BB E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 94 01 00 35 04 06 00 9B 00 00 98 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 BD 78 00 90 00 A9 [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]wFMCommunicate request_size=10 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 02 02 05 A6 77 5D 3E 2F [19:32:04]Write to MH i2c: E2 0D 00 BE 78 80 0D 02 02 05 00 A6 77 5D 3E 2F 00 00 A1 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 03 00 BE 78 00 90 00 AA [19:32:04]RAPDU: 90 00 [19:32:04]wFMCommunicate OK [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 0D 03 02 [19:32:04]Write to MH i2c: E2 08 00 BF 78 80 0D 03 02 00 00 00 00 B2 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 0B 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 0B 00 BF 78 00 43 7B 06 82 F0 0C 2F 52 90 00 76 [19:32:04]RAPDU: 43 7B 06 82 F0 0C 2F 52 90 00 [19:32:04]wFMCommunicate OK [19:32:04]SAM_PROTO_SignData done [19:32:04]FM_MakeSignedData done [19:32:04]CreateOFDProtocolMessage [19:32:04]wFMCommunicate request_size=4 [19:32:04]MH_SAM_APDU [19:32:04]CAPDU: 80 11 00 00 [19:32:04]Write to MH i2c: E2 08 00 C0 78 80 11 00 00 00 00 00 00 B2 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:04]Read from MH i2c: E2 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 17 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: E2 17 00 C0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [19:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:32:04]wFMCommunicate OK [19:32:04]CreateOFDProtocolMessage done [19:32:04]OFDSenderStorePacket 103521 [19:32:04]StoreOFDPacket docnum=103521 [19:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 66 5A 07 01 BD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BB E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 94 01 00 35 04 06 00 9B A6 77 5D 3E 2F 43 7B 06 82 F0 0C 2F 52 [19:32:04]CheckFolder [19:32:04]dirname=/storage/ofd_packets [19:32:04]CheckFolder done [19:32:04]ProducePacketName [19:32:04]name=ofd_packets/00103521 [19:32:04]NVStorageSaveData ofd_packets/00103521 [19:32:04]File name is /storage/ofd_packets/00103521 [19:32:04]Write 301 bytes [19:32:04]NVStorageSaveData done [19:32:04]OFDSenderStorePacket done [19:32:04]KKMCreateOFDPacket done [19:32:04]NVStorageSaveData kkm_last_timestamp [19:32:04]File name is /storage/kkm_last_timestamp [19:32:04]Write 4 bytes [19:32:04]NVStorageSaveData done [19:32:04]ExternCall_PrintAddStr [19:32:04]wPrintStart [19:32:04]Write to MH i2c: 01 00 00 C1 78 39 [19:32:04]Write i2c OK [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 07 00 [19:32:04]MH_I2C_Read... [19:32:04]Read from MH i2c: 01 07 00 C1 78 00 00 00 00 00 FF 0F 4E [19:32:04]RasterBufferAndPrint [19:32:04]line Счет N : (1)672727 [19:32:04]line ИНН: 02508201610067 [19:32:04]line Контрольно-Кассовый Чек [19:32:04]line ПРОДАЖА [19:32:04]line ТРК (МРК, ГНК) : 32 [19:32:04]line Товар: 2710124130 [19:32:04]line Аи-92-К-5 [19:32:04]line 7.540 * 66.40 [19:32:04]line = 500.66 [19:32:04]line НДС 12% НСП 1% [19:32:04]line > о реализуемом товаре [19:32:04]line ОКРУГЛЕНИЕ: -0.66 [19:32:04]line ИТОГО: 500.00 [19:32:04]line Внесено: 500.00 [19:32:04]line СДАЧА: 0.00 [19:32:04]line НСП 1% : 4.43 [19:32:04]line НДС 12% : 53.17 [19:32:04]line Наличными: 500.00 [19:32:04]line Безнал.: 0.00 [19:32:04]line Место: АЗС № 120 "Партнер Нефть" [19:32:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:32:04]line СНО: Общий режим [19:32:04]line Чек 205 18.06.2024 19:32 [19:32:04]line Смена: 352 ФФД: 1.0 [19:32:04]line ЗНМ: 0300000164 [19:32:04]line РНМ: 0000000000092785 [19:32:04]line Версия ККМ: 001 [19:32:04]line ФМ: 0000000000875093 [19:32:04]line ФД: 103521 [19:32:04]line ФПД: 171139269475887 [19:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103521&fm=171139269475887&tin=02508201610067®Number=0000000000092785&sum=50000 [19:32:04]OFD Sender: Processing packet 103521 [packets to send 17, broken 16] [19:32:04]ProducePacketName [19:32:04]name=ofd_packets/00103521 [19:32:04]OFD Sender: To server: pG, [19:32:04]CommunicateWithHost lk.salyk.kg:30040 [19:32:04]ConnectInit lk.salyk.kg [19:32:05]Connected sock=10 [19:32:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 written 0, free lines is 4095 [19:32:05]30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 66 5A 07 01 BD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BB E0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 94 01 00 35 04 06 00 9B A6 77 5D 3E 2F 43 7B 06 82 F0 0C 2F 52 [19:32:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A0 56 47 00 23 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 94 01 00 F4 03 04 00 46 87 71 66 B6 04 01 00 00 F3 0E 8D 4E 95 38 42 FC [19:32:05]CommunicateWithHost err = 0 [19:32:05]CheckOFDResponse [19:32:05]1017 (14) - 77093643461234 [19:32:05]1041 (16) - 0000000000875093 [19:32:05]1040 (4) - 103521 [19:32:05]1012 (4) - 18.06.2024 13:10 [19:32:05]1206 (1) - 0 [19:32:05]OFD Sender: Remove packet 103521 [19:32:05]ProducePacketName [19:32:05]name=ofd_packets/00103521 [19:32:05]NVStorageDeleteData [19:32:05]Write to MH i2c: 01 00 00 EC 78 64 [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 07 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: 01 07 00 EC 78 00 00 00 00 00 E0 0C 57 [19:32:05]RasterBufferAndPrint [19:32:05]line [19:32:05]line [19:32:05]line [19:32:05]line [19:32:05]line [19:32:05]written 0, free lines is 3304 [19:32:05]MH_Cut [19:32:05]Write to MH i2c: D1 01 00 F3 78 01 3D [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: D1 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: D1 01 00 [19:32:05]MH_I2C_Read... [19:32:05]Read from MH i2c: D1 01 00 F3 78 00 3C [19:32:05]Write to MH i2c: 01 00 00 F4 78 6C [19:32:05]Write i2c OK [19:32:05]MH_I2C_Read... [19:32:05]OFD Sender: No OFD packet to send [19:32:06]*** Cut start [19:32:06]*** Partial cut [19:32:06]*** CUTSNS_PIN = 1 [19:32:06]*** CUTSNS_PIN = 0 [19:32:06]*** Brake cut motor [19:32:07]Read from MH i2c: 01 [19:32:07]MH_I2C_Read... [19:32:07]*** Stop cut motor [19:32:07]*** Cut end [19:32:07]Read from MH i2c: 01 07 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: 01 07 00 F4 78 00 00 00 00 00 FF 0F 81 [19:32:07]process_action close_receipt done [19:32:07]requested_data is exist [19:32:07]produce_requested_data [19:32:07]requested_item fm.sn is exist - process it [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 11 00 00 [19:32:07]Write to MH i2c: E2 08 00 F5 78 80 11 00 00 00 00 00 00 E7 [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 17 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 17 00 F5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [19:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:32:07]wFMCommunicate OK [19:32:07]requested_item fd.num is exist - process it [19:32:07]SAM_PROTO_GetFieldsCounters [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 13 00 00 [19:32:07]Write to MH i2c: E2 08 00 F6 78 80 13 00 00 00 00 00 00 EA [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 62 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 62 00 F6 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [19:32:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:07]wFMCommunicate OK [19:32:07]SAM_PROTO_GetFieldsCounters done [19:32:07]requested_item shift.num is exist - process it [19:32:07]requested_item shift.opened is exist - process it [19:32:07]req_shift_opened [19:32:07]FM_GetShiftState [19:32:07]SAM_PROTO_GetShiftState [19:32:07]wFMCommunicate request_size=4 [19:32:07]MH_SAM_APDU [19:32:07]CAPDU: 80 13 01 00 [19:32:07]Write to MH i2c: E2 08 00 F7 78 80 13 01 00 00 00 00 00 EC [19:32:07]Write i2c OK [19:32:07]MH_I2C_Read... [19:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:07]Read from MH i2c: E2 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 0E 00 [19:32:07]MH_I2C_Read... [19:32:07]Read from MH i2c: E2 0E 00 F7 78 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6D [19:32:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:32:07]wFMCommunicate OK [19:32:07]SAM_PROTO_GetShiftState done [19:32:07]FM_GetShiftState done [19:32:07]req_shift_opened done [19:32:07]requested_item shift.open_date is exist - process it [19:32:07]req_shift_open_date [19:32:07]req_shift_open_date done [19:32:07]produce_requested_data done [19:32:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103521,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:32:07]process_action_free close_receipt [19:32:07]json_value_free [19:32:07]json_value_free done [19:32:07]process_json_proto returns [19:32:07]Send response to host [19:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103521,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:32:07]free response buf [19:32:07]execute_script done [19:32:07]execute_script returns [19:32:07]free content buf [19:32:07]Sock 9.Close socket [19:32:07]Sock 9.Thread stoped [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32: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:06]accept exits with 7 [19:34:06]New connection [19:34:06]New thread 3067084132 created [19:34:06]Thread 3067227492 joined [19:34:06]Waiting for new connection... [19:34:06] Sock 7.Parse request [19:34:06]Sock 7.Check first char [19:34:06]Sock 7.First char is OK [19:34:06]request: POST /json_proto HTTP/1.0 [19:34:06]Method: POST [19:34:06]URL: /json_proto [19:34:06]Method is POST - this is cgi request [19:34:06]url: /json_proto [19:34:06]query_string will be loaded in cgi processing [19:34:06]execute_cgi json_proto POST (null) [19:34:06]execute_cgi path=json_proto method=POST [19:34:06]POST find Content-Length [19:34:06]Host: 172.17.38.133:8080 [19:34:06]Content-Length: 1156 [19:34:06]Content-Type: application/json [19:34:06] [19:34:06]POST finish read [19:34:06]Found Content-Length = 1156 [19:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672728\u000A18.06.2024 19:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:06]execute_script... [19:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672728\u000A18.06.2024 19:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.550 x 66.40\u000A\u0418\u0422\u041E\u0413: 700.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:06]POST & json_proto [19:34:06]process_json_proto [19:34:06]json parsed OK: [19:34:06]protocol is kg_v1.0 [19:34:06]action value=print_text [19:34:06]process_action print_text [19:34:06]cmd_print_text [19:34:06]ExternCall_PrintAddStr [19:34:06]wPrintStart [19:34:06]Write to MH i2c: 01 00 00 F8 78 70 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 F8 78 00 00 00 00 00 FF 0F 85 [19:34:06]RasterBufferAndPrint [19:34:06]line *****ТОВАРНЫЙ ЧЕК***** [19:34:06]line АЗС 120 [19:34:06]line Партнер нефть [19:34:06]line 02508201610067 [19:34:06]line Кассир : Асанбаев Н. [19:34:06]line Счет N : (1)672728 [19:34:06]line 18.06.2024 19:11 [19:34:06]line ПРОДАЖА [19:34:06]line ТРК (МРК, ГНК): 42 [19:34:06]line Вид ГСМ : 2710124130 [19:34:06]line Аи-92-К-5 [19:34:06]line 10.550 x 66.40 [19:34:06]line ИТОГ: 700.52 [19:34:06]line Тип оплаты: Талоны: ТК ГПНА Online [19:34:06]line 30086492 [19:34:06]line ______________________ [19:34:06]line (подпись) [19:34:06]written 0, free lines is 4095 [19:34:06]Write to MH i2c: 01 00 00 0C 79 85 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 0C 79 00 00 00 00 00 10 0E AA [19:34:06]RasterBufferAndPrint [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]written 0, free lines is 3601 [19:34:06]MH_Cut [19:34:06]Write to MH i2c: D1 01 00 13 79 01 5E [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 13 79 00 5D [19:34:06]Write to MH i2c: 01 00 00 14 79 8D [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:07]*** Cut start [19:34:07]*** Partial cut [19:34:07]*** CUTSNS_PIN = 1 [19:34:07]*** CUTSNS_PIN = 0 [19:34:07]*** Brake cut motor [19:34:07]Read from MH i2c: 01 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: 01 07 00 [19:34:07]MH_I2C_Read... [19:34:07]*** Stop cut motor [19:34:07]*** Cut end [19:34:07]Read from MH i2c: 01 07 00 14 79 00 00 00 00 00 FF 0F A2 [19:34:07]process_action print_text done [19:34:07]requested_data is exist [19:34:07]produce_requested_data [19:34:07]requested_item fm.sn is exist - process it [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 11 00 00 [19:34:07]Write to MH i2c: E2 08 00 15 79 80 11 00 00 00 00 00 00 08 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 17 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 17 00 15 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [19:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:34:08]wFMCommunicate OK [19:34:08]requested_item fd.num is exist - process it [19:34:08]SAM_PROTO_GetFieldsCounters [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 13 00 00 [19:34:08]Write to MH i2c: E2 08 00 16 79 80 13 00 00 00 00 00 00 0B [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 62 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 62 00 16 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [19:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_GetFieldsCounters done [19:34:08]requested_item shift.num is exist - process it [19:34:08]requested_item shift.opened is exist - process it [19:34:08]req_shift_opened [19:34:08]FM_GetShiftState [19:34:08]SAM_PROTO_GetShiftState [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 13 01 00 [19:34:08]Write to MH i2c: E2 08 00 17 79 80 13 01 00 00 00 00 00 0D [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0E 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0E 00 17 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8E [19:34:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_GetShiftState done [19:34:08]FM_GetShiftState done [19:34:08]req_shift_opened done [19:34:08]requested_item shift.open_date is exist - process it [19:34:08]req_shift_open_date [19:34:08]req_shift_open_date done [19:34:08]produce_requested_data done [19:34:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103521,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:34:08]process_action_free print_text [19:34:08]json_value_free [19:34:08]json_value_free done [19:34:08]process_json_proto returns [19:34:08]Send response to host [19:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103521,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:34:08]free response buf [19:34:08]execute_script done [19:34:08]execute_script returns [19:34:08]free content buf [19:34:08]Sock 7.Close socket [19:34:08]Sock 7.Thread stoped [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:33]accept exits with 9 [19:37:33]New connection [19:37:33]New thread 3067227492 created [19:37:33]Thread 3067084132 joined [19:37:33]Waiting for new connection... [19:37:33] Sock 9.Parse request [19:37:33]Sock 9.Check first char [19:37:33]Sock 9.First char is OK [19:37:33]request: POST /json_proto HTTP/1.0 [19:37:33]Method: POST [19:37:33]URL: /json_proto [19:37:33]Method is POST - this is cgi request [19:37:33]url: /json_proto [19:37:33]query_string will be loaded in cgi processing [19:37:33]execute_cgi json_proto POST (null) [19:37:33]execute_cgi path=json_proto method=POST [19:37:33]POST find Content-Length [19:37:33]Host: 172.17.38.133:8080 [19:37:33]Content-Length: 682 [19:37:33]Content-Type: application/json [19:37:33] [19:37:33]POST finish read [19:37:33]Found Content-Length = 682 [19:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:33]execute_script... [19:37:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:33]POST & json_proto [19:37:33]process_json_proto [19:37:33]json parsed OK: [19:37:33]protocol is kg_v1.0 [19:37:33]action value=close_receipt [19:37:33]process_action close_receipt [19:37:33]cmd_close_receipt [19:37:33]MH_GetDate [19:37:33]Write to MH i2c: F0 00 00 18 79 80 [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 18 79 00 06 E2 71 66 BD 8F 7C 64 74 [19:37:33]GetLastDocTimeStamp 1718739131 [19:37:33]current date 1718739462 [19:37:33]FM_GetShiftState [19:37:33]SAM_PROTO_GetShiftState [19:37:33]wFMCommunicate request_size=4 [19:37:33]MH_SAM_APDU [19:37:33]CAPDU: 80 13 01 00 [19:37:33]Write to MH i2c: E2 08 00 19 79 80 13 01 00 00 00 00 00 0F [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:33]Read from MH i2c: E2 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 19 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 90 [19:37:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:37:33]wFMCommunicate OK [19:37:33]SAM_PROTO_GetShiftState done [19:37:33]FM_GetShiftState done [19:37:33]opened in 1718670284 [19:37:33]opened+sec_in_day 1718756684 [19:37:33]quantity*price = 70056 [19:37:33]sum+1 = 70058 [19:37:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 206 18.06.2024 19:37 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103522 ФПД: 52144916363138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193742&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103522&fm=52144916363138&tin=02508201610067®Number=0000000000092785&sum=70000 [19:37:34]StoreToDocumentArchive [19:37:34]shift 352 fd 103522 [19:37:34]save to /storage/0352/doc_00103522 [19:37:34]save last doc name /storage/0352/doc_00103522 to /storage/kkm_last_doc_name [19:37:34]save OK [19:37:34]Clear old archive folders... [19:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:37:34]tlvbuf is 01358AE0 [19:37:34]SAM_PROTO_ClearQueue [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 09 00 00 [19:37:34]Write to MH i2c: E2 08 00 26 79 80 09 00 00 00 00 00 00 11 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 26 79 00 90 00 13 [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]SAM_PROTO_ClearQueue done [19:37:34]KKMCreateOFDPacket [19:37:34]OFDProtocolAddRootSTLVToBuf [19:37:34]FM_MakeSignedData [19:37:34]FM_MakeSignedData [19:37:34]SAM_PROTO_SignData [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 01 02 [19:37:34]Write to MH i2c: E2 08 00 27 79 80 0D 01 02 00 00 00 00 19 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 27 79 00 90 00 14 [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]wFMCommunicate request_size=255 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 06 E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 94 01 00 35 04 06 00 [19:37:34]Write to MH i2c: E2 02 01 28 79 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 06 E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 94 01 00 35 04 06 00 00 00 E8 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 28 79 00 90 00 15 [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]wFMCommunicate request_size=11 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 0D 02 02 06 2F 6C EF 37 77 82 [19:37:35]Write to MH i2c: E2 0E 00 29 79 80 0D 02 02 06 00 2F 6C EF 37 77 82 00 00 E2 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 03 00 29 79 00 90 00 16 [19:37:35]RAPDU: 90 00 [19:37:35]wFMCommunicate OK [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 0D 03 02 [19:37:35]Write to MH i2c: E2 08 00 2A 79 80 0D 03 02 00 00 00 00 1E [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0B 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 0B 00 2A 79 00 09 1D CB B2 6C 14 DE 4F 90 00 6F [19:37:35]RAPDU: 09 1D CB B2 6C 14 DE 4F 90 00 [19:37:35]wFMCommunicate OK [19:37:35]SAM_PROTO_SignData done [19:37:35]FM_MakeSignedData done [19:37:35]CreateOFDProtocolMessage [19:37:35]wFMCommunicate request_size=4 [19:37:35]MH_SAM_APDU [19:37:35]CAPDU: 80 11 00 00 [19:37:35]Write to MH i2c: E2 08 00 2B 79 80 11 00 00 00 00 00 00 1E [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:35]Read from MH i2c: E2 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 17 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: E2 17 00 2B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [19:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:37:35]wFMCommunicate OK [19:37:35]CreateOFDProtocolMessage done [19:37:35]OFDSenderStorePacket 103522 [19:37:35]StoreOFDPacket docnum=103522 [19:37:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D 19 08 01 D7 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 06 E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 94 01 00 35 04 06 00 2F 6C EF 37 77 82 09 1D CB B2 6C 14 DE 4F [19:37:35]CheckFolder [19:37:35]dirname=/storage/ofd_packets [19:37:35]CheckFolder done [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00103522 [19:37:35]NVStorageSaveData ofd_packets/00103522 [19:37:35]File name is /storage/ofd_packets/00103522 [19:37:35]Write 302 bytes [19:37:35]NVStorageSaveData done [19:37:35]OFDSenderStorePacket done [19:37:35]KKMCreateOFDPacket done [19:37:35]NVStorageSaveData kkm_last_timestamp [19:37:35]File name is /storage/kkm_last_timestamp [19:37:35]Write 4 bytes [19:37:35]NVStorageSaveData done [19:37:35]ExternCall_PrintAddStr [19:37:35]wPrintStart [19:37:35]Write to MH i2c: 01 00 00 2C 79 A5 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 2C 79 00 00 00 00 00 FF 0F BA [19:37:35]RasterBufferAndPrint [19:37:35]line Счет N : (1)672730 [19:37:35]line ИНН: 02508201610067 [19:37:35]line Контрольно-Кассовый Чек [19:37:35]line ПРОДАЖА [19:37:35]line ТРК (МРК, ГНК) : 21 [19:37:35]line Товар: 2710194210 [19:37:35]line ДТ(л)-К-5 [19:37:35]line 9.610 * 72.90 [19:37:35]line = 700.57 [19:37:35]line НДС 12% НСП 1% [19:37:35]line > о реализуемом товаре [19:37:35]line ОКРУГЛЕНИЕ: -0.57 [19:37:35]line ИТОГО: 700.00 [19:37:35]line Внесено: 700.00 [19:37:35]line СДАЧА: 0.00 [19:37:35]line НСП 1% : 6.20 [19:37:35]line НДС 12% : 74.40 [19:37:35]line Наличными: 700.00 [19:37:35]line Безнал.: 0.00 [19:37:35]line Место: АЗС № 120 "Партнер Нефть" [19:37:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:37:35]line СНО: Общий режим [19:37:35]line Чек 206 18.06.2024 19:37 [19:37:35]line Смена: 352 ФФД: 1.0 [19:37:35]line ЗНМ: 0300000164 [19:37:35]line РНМ: 0000000000092785 [19:37:35]line Версия ККМ: 001 [19:37:35]line ФМ: 0000000000875093 [19:37:35]line ФД: 103522 [19:37:35]line ФПД: 52144916363138 [19:37:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193742&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103522&fm=52144916363138&tin=02508201610067®Number=0000000000092785&sum=70000 [19:37:35]written 0, free lines is 4095 [19:37:35]OFD Sender: Processing packet 103522 [packets to send 17, broken 16] [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00103522 [19:37:35]OFD Sender: To server: pG, [19:37:35]CommunicateWithHost lk.salyk.kg:30040 [19:37:35]ConnectInit lk.salyk.kg [19:37:35]Connected sock=10 [19:37:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D 19 08 01 D7 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 06 E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 94 01 00 35 04 06 00 2F 6C EF 37 77 82 09 1D CB B2 6C 14 DE 4F [19:37:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0B 6E 47 00 02 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 35 30 39 33 10 04 04 00 62 94 01 00 F4 03 04 00 91 88 71 66 B6 04 01 00 00 E8 72 EC 11 80 B6 37 AA [19:37:35]CommunicateWithHost err = 0 [19:37:35]CheckOFDResponse [19:37:35]1017 (14) - 77093643461234 [19:37:35]1041 (16) - 0000000000875093 [19:37:35]1040 (4) - 103522 [19:37:35]1012 (4) - 18.06.2024 13:16 [19:37:35]1206 (1) - 0 [19:37:35]OFD Sender: Remove packet 103522 [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00103522 [19:37:35]NVStorageDeleteData [19:37:35]Write to MH i2c: 01 00 00 57 79 D0 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 57 79 00 00 00 00 00 ED 0C D0 [19:37:35]RasterBufferAndPrint [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]written 0, free lines is 3318 [19:37:35]MH_Cut [19:37:35]Write to MH i2c: D1 01 00 5E 79 01 A9 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 01 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 01 00 5E 79 00 A8 [19:37:35]Write to MH i2c: 01 00 00 5F 79 D8 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:36]OFD Sender: No OFD packet to send [19:37:36]*** Cut start [19:37:36]*** Partial cut [19:37:36]*** CUTSNS_PIN = 1 [19:37:36]*** CUTSNS_PIN = 0 [19:37:36]*** Brake cut motor [19:37:37]Read from MH i2c: 01 [19:37:37]MH_I2C_Read... [19:37:37]*** Stop cut motor [19:37:37]*** Cut end [19:37:37]Read from MH i2c: 01 07 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 5F 79 00 00 00 00 00 FF 0F ED [19:37:37]process_action close_receipt done [19:37:37]requested_data is exist [19:37:37]produce_requested_data [19:37:37]requested_item fm.sn is exist - process it [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 11 00 00 [19:37:37]Write to MH i2c: E2 08 00 60 79 80 11 00 00 00 00 00 00 53 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 60 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [19:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:37:37]wFMCommunicate OK [19:37:37]requested_item fd.num is exist - process it [19:37:37]SAM_PROTO_GetFieldsCounters [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 00 00 [19:37:37]Write to MH i2c: E2 08 00 61 79 80 13 00 00 00 00 00 00 56 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 61 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:37:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetFieldsCounters done [19:37:37]requested_item shift.num is exist - process it [19:37:37]requested_item shift.opened is exist - process it [19:37:37]req_shift_opened [19:37:37]FM_GetShiftState [19:37:37]SAM_PROTO_GetShiftState [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 01 00 [19:37:37]Write to MH i2c: E2 08 00 62 79 80 13 01 00 00 00 00 00 58 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 62 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D9 [19:37:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetShiftState done [19:37:37]FM_GetShiftState done [19:37:37]req_shift_opened done [19:37:37]requested_item shift.open_date is exist - process it [19:37:37]req_shift_open_date [19:37:37]req_shift_open_date done [19:37:37]produce_requested_data done [19:37:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103522,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:37:37]process_action_free close_receipt [19:37:37]json_value_free [19:37:37]json_value_free done [19:37:37]process_json_proto returns [19:37:37]Send response to host [19:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103522,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:37:37]free response buf [19:37:37]execute_script done [19:37:37]execute_script returns [19:37:37]free content buf [19:37:37]Sock 9.Close socket [19:37:37]Sock 9.Thread stoped [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:25]accept exits with 7 [19:38:25]New connection [19:38:25]New thread 3067084132 created [19:38:25]Thread 3067227492 joined [19:38:25]Waiting for new connection... [19:38:25] Sock 7.Parse request [19:38:25]Sock 7.Check first char [19:38:25]Sock 7.First char is OK [19:38:25]request: POST /json_proto HTTP/1.0 [19:38:25]Method: POST [19:38:25]URL: /json_proto [19:38:25]Method is POST - this is cgi request [19:38:25]url: /json_proto [19:38:25]query_string will be loaded in cgi processing [19:38:25]execute_cgi json_proto POST (null) [19:38:25]execute_cgi path=json_proto method=POST [19:38:25]POST find Content-Length [19:38:25]Host: 172.17.38.133:8080 [19:38:25]Content-Length: 803 [19:38:25]Content-Type: application/json [19:38:25] [19:38:25]POST finish read [19:38:25]Found Content-Length = 803 [19:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 82.010, "sum" : 5445.46, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5445.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:25]execute_script... [19:38: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)672729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 82.010, "sum" : 5445.46, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5445.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:25]POST & json_proto [19:38:25]process_json_proto [19:38:25]json parsed OK: [19:38:25]protocol is kg_v1.0 [19:38:25]action value=close_receipt [19:38:25]process_action close_receipt [19:38:25]cmd_close_receipt [19:38:25]MH_GetDate [19:38:25]Write to MH i2c: F0 00 00 63 79 CB [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: F0 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: F0 09 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: F0 09 00 63 79 00 3A E2 71 66 BD 8F 7C 64 F3 [19:38:25]GetLastDocTimeStamp 1718739462 [19:38:25]current date 1718739514 [19:38:25]FM_GetShiftState [19:38:25]SAM_PROTO_GetShiftState [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 13 01 00 [19:38:25]Write to MH i2c: E2 08 00 64 79 80 13 01 00 00 00 00 00 5A [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0E 00 64 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DB [19:38:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_GetShiftState done [19:38:26]FM_GetShiftState done [19:38:26]opened in 1718670284 [19:38:26]opened+sec_in_day 1718756684 [19:38:26]quantity*price = 544546 [19:38:26]sum+1 = 544547 [19:38:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5445.46 НСП 1% : 48.19 НДС 12% : 578.28 Наличными: 0.00 Безнал.: 5445.46 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 207 18.06.2024 19:38 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103523 ФПД: 208417365985560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103523&fm=208417365985560&tin=02508201610067®Number=0000000000092785&sum=544546 [19:38:27]StoreToDocumentArchive [19:38:27]shift 352 fd 103523 [19:38:27]save to /storage/0352/doc_00103523 [19:38:27]save last doc name /storage/0352/doc_00103523 to /storage/kkm_last_doc_name [19:38:27]save OK [19:38:27]Clear old archive folders... [19:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:27]tlvbuf is 01395480 [19:38:27]SAM_PROTO_ClearQueue [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 09 00 00 [19:38:27]Write to MH i2c: E2 08 00 71 79 80 09 00 00 00 00 00 00 5C [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 71 79 00 90 00 5E [19:38:27]RAPDU: 90 00 [19:38:27]wFMCommunicate OK [19:38:27]SAM_PROTO_ClearQueue done [19:38:27]KKMCreateOFDPacket [19:38:27]OFDProtocolAddRootSTLVToBuf [19:38:27]FM_MakeSignedData [19:38:27]FM_MakeSignedData [19:38:27]SAM_PROTO_SignData [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 0D 01 02 [19:38:27]Write to MH i2c: E2 08 00 72 79 80 0D 01 02 00 00 00 00 64 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 72 79 00 90 00 5F [19:38:27]RAPDU: 90 00 [19:38:27]wFMCommunicate OK [19:38:27]wFMCommunicate request_size=255 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 40 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 4F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 E1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 94 01 00 35 04 06 00 BD [19:38:27]Write to MH i2c: E2 02 01 73 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 40 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 4F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 E1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 94 01 00 35 04 06 00 BD 00 00 05 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 73 79 00 90 00 60 [19:38:27]RAPDU: 90 00 [19:38:27]wFMCommunicate OK [19:38:27]wFMCommunicate request_size=10 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 0D 02 02 05 8D F3 10 89 18 [19:38:27]Write to MH i2c: E2 0D 00 74 79 80 0D 02 02 05 00 8D F3 10 89 18 00 00 A2 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 03 00 74 79 00 90 00 61 [19:38:27]RAPDU: 90 00 [19:38:27]wFMCommunicate OK [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 0D 03 02 [19:38:27]Write to MH i2c: E2 08 00 75 79 80 0D 03 02 00 00 00 00 69 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0B 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0B 00 75 79 00 7A 36 DF 82 BD 30 B0 2C 90 00 44 [19:38:27]RAPDU: 7A 36 DF 82 BD 30 B0 2C 90 00 [19:38:27]wFMCommunicate OK [19:38:27]SAM_PROTO_SignData done [19:38:27]FM_MakeSignedData done [19:38:27]CreateOFDProtocolMessage [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 11 00 00 [19:38:27]Write to MH i2c: E2 08 00 76 79 80 11 00 00 00 00 00 00 69 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 17 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 17 00 76 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [19:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:38:27]wFMCommunicate OK [19:38:27]CreateOFDProtocolMessage done [19:38:27]OFDSenderStorePacket 103523 [19:38:27]StoreOFDPacket docnum=103523 [19:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B 29 07 01 9E 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 40 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 4F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 E1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 94 01 00 35 04 06 00 BD 8D F3 10 89 18 7A 36 DF 82 BD 30 B0 2C [19:38:27]CheckFolder [19:38:27]dirname=/storage/ofd_packets [19:38:27]CheckFolder done [19:38:27]ProducePacketName [19:38:27]name=ofd_packets/00103523 [19:38:27]NVStorageSaveData ofd_packets/00103523 [19:38:27]File name is /storage/ofd_packets/00103523 [19:38:27]Write 301 bytes [19:38:27]NVStorageSaveData done [19:38:27]OFDSenderStorePacket done [19:38:27]KKMCreateOFDPacket done [19:38:27]NVStorageSaveData kkm_last_timestamp [19:38:27]File name is /storage/kkm_last_timestamp [19:38:27]Write 4 bytes [19:38:27]NVStorageSaveData done [19:38:27]ExternCall_PrintAddStr [19:38:27]wPrintStart [19:38:27]Write to MH i2c: 01 00 00 77 79 F0 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 07 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: 01 07 00 77 79 00 00 00 00 00 FF 0F 05 [19:38:27]RasterBufferAndPrint [19:38:27]line Счет N : (1)672729 [19:38:27]line ИНН: 02508201610067 [19:38:27]line Контрольно-Кассовый Чек [19:38:27]line ПРОДАЖА [19:38:27]line ТРК (МРК, ГНК) : 32 [19:38:27]line Товар: 2710124130 [19:38:27]line Аи-92-К-5 [19:38:27]line 82.010 * 66.40 [19:38:27]line = 5445.46 [19:38:27]line НДС 12% НСП 1% [19:38:27]line > о реализуемом товаре [19:38:27]line ИТОГО: 5445.46 [19:38:27]line НСП 1% : 48.19 [19:38:27]line НДС 12% : 578.28 [19:38:27]line Наличными: 0.00 [19:38:27]line Безнал.: 5445.46 [19:38:27]line Место: АЗС № 120 "Партнер Нефть" [19:38:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:38:27]line СНО: Общий режим [19:38:27]line Чек 207 18.06.2024 19:38 [19:38:27]line Смена: 352 ФФД: 1.0 [19:38:27]line ЗНМ: 0300000164 [19:38:27]line РНМ: 0000000000092785 [19:38:27]line Версия ККМ: 001 [19:38:27]line Платежная система: O! деньги [19:38:27]line ФМ: 0000000000875093 [19:38:27]line ФД: 103523 [19:38:27]line ФПД: 208417365985560 [19:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103523&fm=208417365985560&tin=02508201610067®Number=0000000000092785&sum=544546 [19:38:28]OFD Sender: Processing packet 103523 [packets to send 17, broken 16] [19:38:28]ProducePacketName [19:38:28]name=ofd_packets/00103523 [19:38:28]OFD Sender: To server: pG, [19:38:28]CommunicateWithHost lk.salyk.kg:30040 [19:38:28]ConnectInit lk.salyk.kg [19:38:28]written 0, free lines is 4095 [19:38:28]Connected sock=10 [19:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3B 29 07 01 9E 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 40 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 4F 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 4F 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 E1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 4F 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A E2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 94 01 00 35 04 06 00 BD 8D F3 10 89 18 7A 36 DF 82 BD 30 B0 2C [19:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 64 0D 47 00 E0 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 94 01 00 F4 03 04 00 C5 88 71 66 B6 04 01 00 00 C6 4B D3 BF 7C 40 90 EA [19:38:28]CommunicateWithHost err = 0 [19:38:28]CheckOFDResponse [19:38:28]1017 (14) - 77093643461234 [19:38:28]1041 (16) - 0000000000875093 [19:38:28]1040 (4) - 103523 [19:38:28]1012 (4) - 18.06.2024 13:16 [19:38:28]1206 (1) - 0 [19:38:28]OFD Sender: Remove packet 103523 [19:38:28]ProducePacketName [19:38:28]name=ofd_packets/00103523 [19:38:28]NVStorageDeleteData [19:38:28]Write to MH i2c: 01 00 00 A1 79 1A [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 A1 79 00 00 00 00 00 F8 0C 25 [19:38:28]RasterBufferAndPrint [19:38:28]line [19:38:28]line [19:38:28]line [19:38:28]line [19:38:28]line [19:38:28]written 0, free lines is 3331 [19:38:28]MH_Cut [19:38:28]Write to MH i2c: D1 01 00 A8 79 01 F3 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: D1 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: D1 01 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: D1 01 00 A8 79 00 F2 [19:38:28]Write to MH i2c: 01 00 00 A9 79 22 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]OFD Sender: No OFD packet to send [19:38:29]*** Cut start [19:38:29]*** Partial cut [19:38:29]*** CUTSNS_PIN = 1 [19:38:29]*** CUTSNS_PIN = 0 [19:38:29]*** Brake cut motor [19:38:29]Read from MH i2c: 01 [19:38:29]MH_I2C_Read... [19:38:29]*** Stop cut motor [19:38:29]*** Cut end [19:38:29]Read from MH i2c: 01 07 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 A9 79 00 00 00 00 00 FF 0F 37 [19:38:29]process_action close_receipt done [19:38:29]requested_data is exist [19:38:29]produce_requested_data [19:38:29]requested_item fm.sn is exist - process it [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 11 00 00 [19:38:29]Write to MH i2c: E2 08 00 AA 79 80 11 00 00 00 00 00 00 9D [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 17 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 17 00 AA 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [19:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:38:29]wFMCommunicate OK [19:38:29]requested_item fd.num is exist - process it [19:38:29]SAM_PROTO_GetFieldsCounters [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 13 00 00 [19:38:29]Write to MH i2c: E2 08 00 AB 79 80 13 00 00 00 00 00 00 A0 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 62 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 62 00 AB 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [19:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_GetFieldsCounters done [19:38:29]requested_item shift.num is exist - process it [19:38:29]requested_item shift.opened is exist - process it [19:38:29]req_shift_opened [19:38:29]FM_GetShiftState [19:38:29]SAM_PROTO_GetShiftState [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 13 01 00 [19:38:29]Write to MH i2c: E2 08 00 AC 79 80 13 01 00 00 00 00 00 A2 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:30]Read from MH i2c: E2 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 0E 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 0E 00 AC 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 23 [19:38:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:38:30]wFMCommunicate OK [19:38:30]SAM_PROTO_GetShiftState done [19:38:30]FM_GetShiftState done [19:38:30]req_shift_opened done [19:38:30]requested_item shift.open_date is exist - process it [19:38:30]req_shift_open_date [19:38:30]req_shift_open_date done [19:38:30]produce_requested_data done [19:38:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103523,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:38:30]process_action_free close_receipt [19:38:30]json_value_free [19:38:30]json_value_free done [19:38:30]process_json_proto returns [19:38:30]Send response to host [19:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103523,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:38:30]free response buf [19:38:30]execute_script done [19:38:30]execute_script returns [19:38:30]free content buf [19:38:30]Sock 7.Close socket [19:38:30]Sock 7.Thread stoped [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]accept exits with 9 [19:55:34]New connection [19:55:34]New thread 3067227492 created [19:55:34]Thread 3067084132 joined [19:55:34]Waiting for new connection... [19:55:34] Sock 9.Parse request [19:55:34]Sock 9.Check first char [19:55:34]Sock 9.First char is OK [19:55:34]request: POST /json_proto HTTP/1.0 [19:55:34]Method: POST [19:55:34]URL: /json_proto [19:55:34]Method is POST - this is cgi request [19:55:34]url: /json_proto [19:55:34]query_string will be loaded in cgi processing [19:55:34]execute_cgi json_proto POST (null) [19:55:34]execute_cgi path=json_proto method=POST [19:55:34]POST find Content-Length [19:55:34]Host: 172.17.38.133:8080 [19:55:34]Content-Length: 682 [19:55:34]Content-Type: application/json [19:55:34] [19:55:34]POST finish read [19:55:34]Found Content-Length = 682 [19:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:34]execute_script... [19:55:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:34]POST & json_proto [19:55:34]process_json_proto [19:55:34]json parsed OK: [19:55:34]protocol is kg_v1.0 [19:55:34]action value=close_receipt [19:55:34]process_action close_receipt [19:55:34]cmd_close_receipt [19:55:34]MH_GetDate [19:55:34]Write to MH i2c: F0 00 00 AD 79 15 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: F0 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: F0 09 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: F0 09 00 AD 79 00 3E E6 71 66 BD 8F 7C 64 45 [19:55:34]GetLastDocTimeStamp 1718739514 [19:55:34]current date 1718740542 [19:55:34]FM_GetShiftState [19:55:34]SAM_PROTO_GetShiftState [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 13 01 00 [19:55:34]Write to MH i2c: E2 08 00 AE 79 80 13 01 00 00 00 00 00 A4 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0E 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0E 00 AE 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 25 [19:55:34]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:55:34]wFMCommunicate OK [19:55:34]SAM_PROTO_GetShiftState done [19:55:34]FM_GetShiftState done [19:55:34]opened in 1718670284 [19:55:34]opened+sec_in_day 1718756684 [19:55:34]quantity*price = 300034 [19:55:34]sum+1 = 300035 [19:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 208 18.06.2024 19:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103524 ФПД: 83196115211791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T195542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103524&fm=83196115211791&tin=02508201610067®Number=0000000000092785&sum=300000 [19:55:35]StoreToDocumentArchive [19:55:35]shift 352 fd 103524 [19:55:35]save to /storage/0352/doc_00103524 [19:55:35]save last doc name /storage/0352/doc_00103524 to /storage/kkm_last_doc_name [19:55:35]save OK [19:55:35]Clear old archive folders... [19:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:35]tlvbuf is 015CF960 [19:55:35]SAM_PROTO_ClearQueue [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 09 00 00 [19:55:35]Write to MH i2c: E2 08 00 BB 79 80 09 00 00 00 00 00 00 A6 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 03 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 03 00 BB 79 00 90 00 A8 [19:55:35]RAPDU: 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_ClearQueue done [19:55:35]KKMCreateOFDPacket [19:55:35]OFDProtocolAddRootSTLVToBuf [19:55:35]FM_MakeSignedData [19:55:35]FM_MakeSignedData [19:55:35]SAM_PROTO_SignData [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 0D 01 02 [19:55:35]Write to MH i2c: E2 08 00 BC 79 80 0D 01 02 00 00 00 00 AE [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 03 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 03 00 BC 79 00 90 00 A9 [19:55:35]RAPDU: 90 00 [19:55:35]wFMCommunicate OK [19:55:35]wFMCommunicate request_size=255 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3E E6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 94 01 00 35 04 06 00 4B [19:55:35]Write to MH i2c: E2 02 01 BD 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3E E6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 94 01 00 35 04 06 00 4B 00 00 45 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 BD 79 00 90 00 AA [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=10 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 02 02 05 AA 9A E4 D6 0F [19:55:36]Write to MH i2c: E2 0D 00 BE 79 80 0D 02 02 05 00 AA 9A E4 D6 0F 00 00 C8 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 BE 79 00 90 00 AB [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 03 02 [19:55:36]Write to MH i2c: E2 08 00 BF 79 80 0D 03 02 00 00 00 00 B3 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 0B 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 0B 00 BF 79 00 79 37 B3 FD BB 6B 9B 01 90 00 D6 [19:55:36]RAPDU: 79 37 B3 FD BB 6B 9B 01 90 00 [19:55:36]wFMCommunicate OK [19:55:36]SAM_PROTO_SignData done [19:55:36]FM_MakeSignedData done [19:55:36]CreateOFDProtocolMessage [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 11 00 00 [19:55:36]Write to MH i2c: E2 08 00 C0 79 80 11 00 00 00 00 00 00 B3 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 17 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 17 00 C0 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [19:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:55:36]wFMCommunicate OK [19:55:36]CreateOFDProtocolMessage done [19:55:36]OFDSenderStorePacket 103524 [19:55:36]StoreOFDPacket docnum=103524 [19:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 8F 07 01 A8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3E E6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 94 01 00 35 04 06 00 4B AA 9A E4 D6 0F 79 37 B3 FD BB 6B 9B 01 [19:55:36]CheckFolder [19:55:36]dirname=/storage/ofd_packets [19:55:36]CheckFolder done [19:55:36]ProducePacketName [19:55:36]name=ofd_packets/00103524 [19:55:36]NVStorageSaveData ofd_packets/00103524 [19:55:36]File name is /storage/ofd_packets/00103524 [19:55:36]Write 301 bytes [19:55:36]NVStorageSaveData done [19:55:36]OFDSenderStorePacket done [19:55:36]KKMCreateOFDPacket done [19:55:36]NVStorageSaveData kkm_last_timestamp [19:55:36]File name is /storage/kkm_last_timestamp [19:55:36]Write 4 bytes [19:55:36]NVStorageSaveData done [19:55:36]ExternCall_PrintAddStr [19:55:36]wPrintStart [19:55:36]Write to MH i2c: 01 00 00 C1 79 3A [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 C1 79 00 00 00 00 00 FF 0F 4F [19:55:36]RasterBufferAndPrint [19:55:36]line Счет N : (1)672731 [19:55:36]line ИНН: 02508201610067 [19:55:36]line Контрольно-Кассовый Чек [19:55:36]line ПРОДАЖА [19:55:36]line ТРК (МРК, ГНК) : 41 [19:55:36]line Товар: 2710124500 [19:55:36]line Аи-95-К-5 [19:55:36]line 40.600 * 73.90 [19:55:36]line = 3000.34 [19:55:36]line НДС 12% НСП 1% [19:55:36]line > о реализуемом товаре [19:55:36]line ОКРУГЛЕНИЕ: -0.34 [19:55:36]line ИТОГО: 3000.00 [19:55:36]line Внесено: 3000.00 [19:55:36]line СДАЧА: 0.00 [19:55:36]line НСП 1% : 26.55 [19:55:36]line НДС 12% : 318.62 [19:55:36]line Наличными: 3000.00 [19:55:36]line Безнал.: 0.00 [19:55:36]line Место: АЗС № 120 "Партнер Нефть" [19:55:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:55:36]line СНО: Общий режим [19:55:36]line Чек 208 18.06.2024 19:55 [19:55:36]line Смена: 352 ФФД: 1.0 [19:55:36]line ЗНМ: 0300000164 [19:55:36]line РНМ: 0000000000092785 [19:55:36]line Версия ККМ: 001 [19:55:36]line ФМ: 0000000000875093 [19:55:36]line ФД: 103524 [19:55:36]line ФПД: 83196115211791 [19:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T195542&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103524&fm=83196115211791&tin=02508201610067®Number=0000000000092785&sum=300000 [19:55:36]OFD Sender: Processing packet 103524 [packets to send 17, broken 16] [19:55:36]ProducePacketName [19:55:36]name=ofd_packets/00103524 [19:55:36]OFD Sender: To server: pG, [19:55:36]CommunicateWithHost lk.salyk.kg:30040 [19:55:36]ConnectInit lk.salyk.kg [19:55:36]written 0, free lines is 4095 [19:55:36]Connected sock=10 [19:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 8F 07 01 A8 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3E E6 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 94 01 00 35 04 06 00 4B AA 9A E4 D6 0F 79 37 B3 FD BB 6B 9B 01 [19:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 08 D3 47 00 81 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 94 01 00 F4 03 04 00 CA 8C 71 66 B6 04 01 00 00 B4 8C C2 0E 92 B9 94 21 [19:55:36]CommunicateWithHost err = 0 [19:55:36]CheckOFDResponse [19:55:36]1017 (14) - 77093643461234 [19:55:36]1041 (16) - 0000000000875093 [19:55:36]1040 (4) - 103524 [19:55:36]1012 (4) - 18.06.2024 13:34 [19:55:36]1206 (1) - 0 [19:55:36]OFD Sender: Remove packet 103524 [19:55:36]ProducePacketName [19:55:36]name=ofd_packets/00103524 [19:55:36]NVStorageDeleteData [19:55:36]Write to MH i2c: 01 00 00 EC 79 65 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 EC 79 00 00 00 00 00 DD 0C 55 [19:55:36]RasterBufferAndPrint [19:55:36]line [19:55:36]line [19:55:36]line [19:55:36]line [19:55:36]line [19:55:36]written 0, free lines is 3299 [19:55:36]MH_Cut [19:55:36]Write to MH i2c: D1 01 00 F3 79 01 3E [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: D1 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: D1 01 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: D1 01 00 F3 79 00 3D [19:55:36]Write to MH i2c: 01 00 00 F4 79 6D [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:37]OFD Sender: No OFD packet to send [19:55:37]*** Cut start [19:55:37]*** Partial cut [19:55:37]*** CUTSNS_PIN = 1 [19:55:37]*** CUTSNS_PIN = 0 [19:55:37]*** Brake cut motor [19:55:38]Read from MH i2c: 01 [19:55:38]MH_I2C_Read... [19:55:38]*** Stop cut motor [19:55:38]*** Cut end [19:55:38]Read from MH i2c: 01 07 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: 01 07 00 F4 79 00 00 00 00 00 FF 0F 82 [19:55:38]process_action close_receipt done [19:55:38]requested_data is exist [19:55:38]produce_requested_data [19:55:38]requested_item fm.sn is exist - process it [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 11 00 00 [19:55:38]Write to MH i2c: E2 08 00 F5 79 80 11 00 00 00 00 00 00 E8 [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 17 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 17 00 F5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [19:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:55:38]wFMCommunicate OK [19:55:38]requested_item fd.num is exist - process it [19:55:38]SAM_PROTO_GetFieldsCounters [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 00 00 [19:55:38]Write to MH i2c: E2 08 00 F6 79 80 13 00 00 00 00 00 00 EB [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 62 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 62 00 F6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetFieldsCounters done [19:55:38]requested_item shift.num is exist - process it [19:55:38]requested_item shift.opened is exist - process it [19:55:38]req_shift_opened [19:55:38]FM_GetShiftState [19:55:38]SAM_PROTO_GetShiftState [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 01 00 [19:55:38]Write to MH i2c: E2 08 00 F7 79 80 13 01 00 00 00 00 00 ED [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 F7 79 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6E [19:55:38]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetShiftState done [19:55:38]FM_GetShiftState done [19:55:38]req_shift_opened done [19:55:38]requested_item shift.open_date is exist - process it [19:55:38]req_shift_open_date [19:55:38]req_shift_open_date done [19:55:38]produce_requested_data done [19:55:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103524,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:55:38]process_action_free close_receipt [19:55:38]json_value_free [19:55:38]json_value_free done [19:55:38]process_json_proto returns [19:55:38]Send response to host [19:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103524,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:55:38]free response buf [19:55:38]execute_script done [19:55:38]execute_script returns [19:55:38]free content buf [19:55:38]Sock 9.Close socket [19:55:38]Sock 9.Thread stoped [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:35]accept exits with 7 [19:56:35]New connection [19:56:35]New thread 3067084132 created [19:56:35]Thread 3067227492 joined [19:56:35]Waiting for new connection... [19:56:35] Sock 7.Parse request [19:56:35]Sock 7.Check first char [19:56:35]Sock 7.First char is OK [19:56:35]request: POST /json_proto HTTP/1.0 [19:56:35]Method: POST [19:56:35]URL: /json_proto [19:56:35]Method is POST - this is cgi request [19:56:35]url: /json_proto [19:56:35]query_string will be loaded in cgi processing [19:56:35]execute_cgi json_proto POST (null) [19:56:35]execute_cgi path=json_proto method=POST [19:56:35]POST find Content-Length [19:56:35]Host: 172.17.38.133:8080 [19:56:35]Content-Length: 1155 [19:56:35]Content-Type: application/json [19:56:35] [19:56:35]POST finish read [19:56:35]Found Content-Length = 1155 [19:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672732\u000A18.06.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:35]execute_script... [19:56:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672732\u000A18.06.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:35]POST & json_proto [19:56:35]process_json_proto [19:56:35]json parsed OK: [19:56:35]protocol is kg_v1.0 [19:56:35]action value=print_text [19:56:35]process_action print_text [19:56:35]cmd_print_text [19:56:35]ExternCall_PrintAddStr [19:56:35]wPrintStart [19:56:35]Write to MH i2c: 01 00 00 F8 79 71 [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 F8 79 00 00 00 00 00 FF 0F 86 [19:56:35]RasterBufferAndPrint [19:56:35]line *****ТОВАРНЫЙ ЧЕК***** [19:56:35]line АЗС 120 [19:56:35]line Партнер нефть [19:56:35]line 02508201610067 [19:56:35]line Кассир : Асанбаев Н. [19:56:35]line Счет N : (1)672732 [19:56:35]line 18.06.2024 19:34 [19:56:35]line ПРОДАЖА [19:56:35]line ТРК (МРК, ГНК): 32 [19:56:35]line Вид ГСМ : 2710124130 [19:56:35]line Аи-92-К-5 [19:56:35]line 7.540 x 66.40 [19:56:35]line ИТОГ: 500.66 [19:56:35]line Тип оплаты: Талоны: ТК ГПНА Online [19:56:35]line 30086492 [19:56:35]line ______________________ [19:56:35]line (подпись) [19:56:35]written 0, free lines is 4095 [19:56:35]Write to MH i2c: 01 00 00 0C 7A 86 [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 0C 7A 00 00 00 00 00 10 0E AB [19:56:35]RasterBufferAndPrint [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]written 0, free lines is 3601 [19:56:35]MH_Cut [19:56:35]Write to MH i2c: D1 01 00 13 7A 01 5F [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 01 00 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 01 00 13 7A 00 5E [19:56:35]Write to MH i2c: 01 00 00 14 7A 8E [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:36]*** Cut start [19:56:36]*** Partial cut [19:56:36]*** CUTSNS_PIN = 1 [19:56:36]*** CUTSNS_PIN = 0 [19:56:36]*** Brake cut motor [19:56:36]Read from MH i2c: 01 [19:56:36]MH_I2C_Read... [19:56:36]*** Stop cut motor [19:56:36]*** Cut end [19:56:36]Read from MH i2c: 01 07 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: 01 07 00 14 7A 00 00 00 00 00 FF 0F A3 [19:56:36]process_action print_text done [19:56:36]requested_data is exist [19:56:36]produce_requested_data [19:56:36]requested_item fm.sn is exist - process it [19:56:36]wFMCommunicate request_size=4 [19:56:36]MH_SAM_APDU [19:56:36]CAPDU: 80 11 00 00 [19:56:36]Write to MH i2c: E2 08 00 15 7A 80 11 00 00 00 00 00 00 09 [19:56:36]Write i2c OK [19:56:36]MH_I2C_Read... [19:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:36]Read from MH i2c: E2 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 17 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 17 00 15 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [19:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:56:36]wFMCommunicate OK [19:56:36]requested_item fd.num is exist - process it [19:56:36]SAM_PROTO_GetFieldsCounters [19:56:36]wFMCommunicate request_size=4 [19:56:36]MH_SAM_APDU [19:56:36]CAPDU: 80 13 00 00 [19:56:36]Write to MH i2c: E2 08 00 16 7A 80 13 00 00 00 00 00 00 0C [19:56:36]Write i2c OK [19:56:36]MH_I2C_Read... [19:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:37]Read from MH i2c: E2 [19:56:37]MH_I2C_Read... [19:56:37]Read from MH i2c: E2 62 00 [19:56:37]MH_I2C_Read... [19:56:37]Read from MH i2c: E2 62 00 16 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [19:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:37]wFMCommunicate OK [19:56:37]SAM_PROTO_GetFieldsCounters done [19:56:37]requested_item shift.num is exist - process it [19:56:37]requested_item shift.opened is exist - process it [19:56:37]req_shift_opened [19:56:37]FM_GetShiftState [19:56:37]SAM_PROTO_GetShiftState [19:56:37]wFMCommunicate request_size=4 [19:56:37]MH_SAM_APDU [19:56:37]CAPDU: 80 13 01 00 [19:56:37]Write to MH i2c: E2 08 00 17 7A 80 13 01 00 00 00 00 00 0E [19:56:37]Write i2c OK [19:56:37]MH_I2C_Read... [19:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:37]Read from MH i2c: E2 [19:56:37]MH_I2C_Read... [19:56:37]Read from MH i2c: E2 0E 00 [19:56:37]MH_I2C_Read... [19:56:37]Read from MH i2c: E2 0E 00 17 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8F [19:56:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [19:56:37]wFMCommunicate OK [19:56:37]SAM_PROTO_GetShiftState done [19:56:37]FM_GetShiftState done [19:56:37]req_shift_opened done [19:56:37]requested_item shift.open_date is exist - process it [19:56:37]req_shift_open_date [19:56:37]req_shift_open_date done [19:56:37]produce_requested_data done [19:56:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103524,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [19:56:37]process_action_free print_text [19:56:37]json_value_free [19:56:37]json_value_free done [19:56:37]process_json_proto returns [19:56:37]Send response to host [19:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103524,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [19:56:37]free response buf [19:56:37]execute_script done [19:56:37]execute_script returns [19:56:37]free content buf [19:56:37]Sock 7.Close socket [19:56:37]Sock 7.Thread stoped [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]accept exits with 9 [20:00:02]New connection [20:00:02]New thread 3067227492 created [20:00:02]Thread 3067084132 joined [20:00:02]Waiting for new connection... [20:00:02] Sock 9.Parse request [20:00:02]Sock 9.Check first char [20:00:02]Sock 9.First char is OK [20:00:02]request: POST /json_proto HTTP/1.0 [20:00:02]Method: POST [20:00:02]URL: /json_proto [20:00:02]Method is POST - this is cgi request [20:00:02]url: /json_proto [20:00:02]query_string will be loaded in cgi processing [20:00:02]execute_cgi json_proto POST (null) [20:00:02]execute_cgi path=json_proto method=POST [20:00:02]POST find Content-Length [20:00:02]Host: 172.17.38.133:8080 [20:00:02]Content-Length: 677 [20:00:02]Content-Type: application/json [20:00:02] [20:00:02]POST finish read [20:00:02]Found Content-Length = 677 [20:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:02]execute_script... [20:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:02]POST & json_proto [20:00:02]process_json_proto [20:00:02]json parsed OK: [20:00:02]protocol is kg_v1.0 [20:00:02]action value=close_receipt [20:00:02]process_action close_receipt [20:00:02]cmd_close_receipt [20:00:02]MH_GetDate [20:00:02]Write to MH i2c: F0 00 00 18 7A 81 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 18 7A 00 4B E7 71 66 BD 8F 7C 64 BF [20:00:02]GetLastDocTimeStamp 1718740542 [20:00:02]current date 1718740811 [20:00:02]FM_GetShiftState [20:00:02]SAM_PROTO_GetShiftState [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 13 01 00 [20:00:02]Write to MH i2c: E2 08 00 19 7A 80 13 01 00 00 00 00 00 10 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]OFD Sender: No OFD packet to send [20:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 19 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 91 [20:00:02]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:00:02]wFMCommunicate OK [20:00:02]SAM_PROTO_GetShiftState done [20:00:02]FM_GetShiftState done [20:00:02]opened in 1718670284 [20:00:02]opened+sec_in_day 1718756684 [20:00:02]quantity*price = 20052 [20:00:02]sum+1 = 20054 [20:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 209 18.06.2024 20:00 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103525 ФПД: 207684491674660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T200011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103525&fm=207684491674660&tin=02508201610067®Number=0000000000092785&sum=20000 [20:00:03]StoreToDocumentArchive [20:00:03]shift 352 fd 103525 [20:00:03]save to /storage/0352/doc_00103525 [20:00:03]save last doc name /storage/0352/doc_00103525 to /storage/kkm_last_doc_name [20:00:03]save OK [20:00:03]Clear old archive folders... [20:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:03]tlvbuf is 014E8160 [20:00:03]SAM_PROTO_ClearQueue [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 09 00 00 [20:00:03]Write to MH i2c: E2 08 00 26 7A 80 09 00 00 00 00 00 00 12 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 26 7A 00 90 00 14 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]SAM_PROTO_ClearQueue done [20:00:03]KKMCreateOFDPacket [20:00:03]OFDProtocolAddRootSTLVToBuf [20:00:03]FM_MakeSignedData [20:00:03]FM_MakeSignedData [20:00:03]SAM_PROTO_SignData [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 01 02 [20:00:03]Write to MH i2c: E2 08 00 27 7A 80 0D 01 02 00 00 00 00 1A [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 27 7A 00 90 00 15 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]wFMCommunicate request_size=255 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B E7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 94 01 00 35 04 06 00 BC [20:00:03]Write to MH i2c: E2 02 01 28 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B E7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 94 01 00 35 04 06 00 BC 00 00 84 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 28 7A 00 90 00 16 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]wFMCommunicate request_size=10 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 0D 02 02 05 E3 50 5A 04 24 [20:00:04]Write to MH i2c: E2 0D 00 29 7A 80 0D 02 02 05 00 E3 50 5A 04 24 00 00 DC [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 29 7A 00 90 00 17 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 0D 03 02 [20:00:04]Write to MH i2c: E2 08 00 2A 7A 80 0D 03 02 00 00 00 00 1F [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 0B 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 0B 00 2A 7A 00 B9 62 5C D8 D9 57 8C 52 90 00 7D [20:00:04]RAPDU: B9 62 5C D8 D9 57 8C 52 90 00 [20:00:04]wFMCommunicate OK [20:00:04]SAM_PROTO_SignData done [20:00:04]FM_MakeSignedData done [20:00:04]CreateOFDProtocolMessage [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 11 00 00 [20:00:04]Write to MH i2c: E2 08 00 2B 7A 80 11 00 00 00 00 00 00 1F [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 17 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 17 00 2B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [20:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:00:04]wFMCommunicate OK [20:00:04]CreateOFDProtocolMessage done [20:00:04]OFDSenderStorePacket 103525 [20:00:04]StoreOFDPacket docnum=103525 [20:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 84 47 07 01 D0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B E7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 94 01 00 35 04 06 00 BC E3 50 5A 04 24 B9 62 5C D8 D9 57 8C 52 [20:00:04]CheckFolder [20:00:04]dirname=/storage/ofd_packets [20:00:04]CheckFolder done [20:00:04]ProducePacketName [20:00:04]name=ofd_packets/00103525 [20:00:04]NVStorageSaveData ofd_packets/00103525 [20:00:04]File name is /storage/ofd_packets/00103525 [20:00:04]Write 301 bytes [20:00:04]NVStorageSaveData done [20:00:04]OFDSenderStorePacket done [20:00:04]KKMCreateOFDPacket done [20:00:04]NVStorageSaveData kkm_last_timestamp [20:00:04]File name is /storage/kkm_last_timestamp [20:00:04]Write 4 bytes [20:00:04]NVStorageSaveData done [20:00:04]ExternCall_PrintAddStr [20:00:04]wPrintStart [20:00:04]Write to MH i2c: 01 00 00 2C 7A A6 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 2C 7A 00 00 00 00 00 FF 0F BB [20:00:04]RasterBufferAndPrint [20:00:04]line Счет N : (1)672733 [20:00:04]line ИНН: 02508201610067 [20:00:04]line Контрольно-Кассовый Чек [20:00:04]line ПРОДАЖА [20:00:04]line ТРК (МРК, ГНК) : 32 [20:00:04]line Товар: 2710124130 [20:00:04]line Аи-92-К-5 [20:00:04]line 3.020 * 66.40 [20:00:04]line = 200.53 [20:00:04]line НДС 12% НСП 1% [20:00:04]line > о реализуемом товаре [20:00:04]line ОКРУГЛЕНИЕ: -0.53 [20:00:04]line ИТОГО: 200.00 [20:00:04]line Внесено: 200.00 [20:00:04]line СДАЧА: 0.00 [20:00:04]line НСП 1% : 1.77 [20:00:04]line НДС 12% : 21.29 [20:00:04]line Наличными: 200.00 [20:00:04]line Безнал.: 0.00 [20:00:04]line Место: АЗС № 120 "Партнер Нефть" [20:00:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:00:04]line СНО: Общий режим [20:00:04]line Чек 209 18.06.2024 20:00 [20:00:04]line Смена: 352 ФФД: 1.0 [20:00:04]line ЗНМ: 0300000164 [20:00:04]line РНМ: 0000000000092785 [20:00:04]line Версия ККМ: 001 [20:00:04]line ФМ: 0000000000875093 [20:00:04]line ФД: 103525 [20:00:04]line ФПД: 207684491674660 [20:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T200011&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103525&fm=207684491674660&tin=02508201610067®Number=0000000000092785&sum=20000 [20:00:04]OFD Sender: Processing packet 103525 [packets to send 17, broken 16] [20:00:04]ProducePacketName [20:00:04]name=ofd_packets/00103525 [20:00:04]OFD Sender: To server: pG, [20:00:04]CommunicateWithHost lk.salyk.kg:30040 [20:00:04]ConnectInit lk.salyk.kg [20:00:04]written 0, free lines is 4095 [20:00:04]Connected sock=10 [20:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 84 47 07 01 D0 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4B E7 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 94 01 00 35 04 06 00 BC E3 50 5A 04 24 B9 62 5C D8 D9 57 8C 52 [20:00:05]Write to MH i2c: 01 00 00 57 7A D1 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 57 7A 00 00 00 00 00 E1 0C C5 [20:00:05]RasterBufferAndPrint [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]written 0, free lines is 3303 [20:00:05]MH_Cut [20:00:05]Write to MH i2c: D1 01 00 5E 7A 01 AA [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 01 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 01 00 5E 7A 00 A9 [20:00:05]Write to MH i2c: 01 00 00 5F 7A D9 [20:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D3 4A 47 00 B4 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 35 30 39 33 10 04 04 00 65 94 01 00 F4 03 04 00 D6 8D 71 66 B6 04 01 00 00 4D 7C A6 75 A4 7A E4 85 [20:00:05]CommunicateWithHost err = 0 [20:00:05]CheckOFDResponse [20:00:05]1017 (14) - 77093643461234 [20:00:05]1041 (16) - 0000000000875093 [20:00:05]1040 (4) - 103525 [20:00:05]1012 (4) - 18.06.2024 13:38 [20:00:05]1206 (1) - 0 [20:00:05]OFD Sender: Remove packet 103525 [20:00:05]ProducePacketName [20:00:05]name=ofd_packets/00103525 [20:00:05]NVStorageDeleteData [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]OFD Sender: No OFD packet to send [20:00:05]*** Cut start [20:00:05]*** Partial cut [20:00:05]*** CUTSNS_PIN = 1 [20:00:05]*** CUTSNS_PIN = 0 [20:00:06]*** Brake cut motor [20:00:06]Read from MH i2c: 01 [20:00:06]MH_I2C_Read... [20:00:06]*** Stop cut motor [20:00:06]*** Cut end [20:00:06]Read from MH i2c: 01 07 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: 01 07 00 5F 7A 00 00 00 00 00 FF 0F EE [20:00:06]process_action close_receipt done [20:00:06]requested_data is exist [20:00:06]produce_requested_data [20:00:06]requested_item fm.sn is exist - process it [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 11 00 00 [20:00:06]Write to MH i2c: E2 08 00 60 7A 80 11 00 00 00 00 00 00 54 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 17 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 17 00 60 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [20:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:00:06]wFMCommunicate OK [20:00:06]requested_item fd.num is exist - process it [20:00:06]SAM_PROTO_GetFieldsCounters [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 13 00 00 [20:00:06]Write to MH i2c: E2 08 00 61 7A 80 13 00 00 00 00 00 00 57 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 61 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [20:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetFieldsCounters done [20:00:06]requested_item shift.num is exist - process it [20:00:06]requested_item shift.opened is exist - process it [20:00:06]req_shift_opened [20:00:06]FM_GetShiftState [20:00:06]SAM_PROTO_GetShiftState [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 13 01 00 [20:00:06]Write to MH i2c: E2 08 00 62 7A 80 13 01 00 00 00 00 00 59 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 62 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DA [20:00:06]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetShiftState done [20:00:06]FM_GetShiftState done [20:00:06]req_shift_opened done [20:00:06]requested_item shift.open_date is exist - process it [20:00:06]req_shift_open_date [20:00:06]req_shift_open_date done [20:00:06]produce_requested_data done [20:00:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103525,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:00:06]process_action_free close_receipt [20:00:06]json_value_free [20:00:06]json_value_free done [20:00:06]process_json_proto returns [20:00:06]Send response to host [20:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103525,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:00:06]free response buf [20:00:06]execute_script done [20:00:06]execute_script returns [20:00:06]free content buf [20:00:06]Sock 9.Close socket [20:00:06]Sock 9.Thread stoped [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:13]accept exits with 7 [20:07:13]New connection [20:07:13]New thread 3067084132 created [20:07:13]Thread 3067227492 joined [20:07:13]Waiting for new connection... [20:07:13] Sock 7.Parse request [20:07:13]Sock 7.Check first char [20:07:13]Sock 7.First char is OK [20:07:13]request: POST /json_proto HTTP/1.0 [20:07:13]Method: POST [20:07:13]URL: /json_proto [20:07:13]Method is POST - this is cgi request [20:07:13]url: /json_proto [20:07:13]query_string will be loaded in cgi processing [20:07:13]execute_cgi json_proto POST (null) [20:07:13]execute_cgi path=json_proto method=POST [20:07:13]POST find Content-Length [20:07:13]Host: 172.17.38.133:8080 [20:07:13]Content-Length: 677 [20:07:13]Content-Type: application/json [20:07:13] [20:07:13]POST finish read [20:07:13]Found Content-Length = 677 [20:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:13]execute_script... [20:07: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)672734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:13]POST & json_proto [20:07:13]process_json_proto [20:07:13]json parsed OK: [20:07:13]protocol is kg_v1.0 [20:07:13]action value=close_receipt [20:07:13]process_action close_receipt [20:07:13]cmd_close_receipt [20:07:13]MH_GetDate [20:07:13]Write to MH i2c: F0 00 00 63 7A CC [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: F0 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: F0 09 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: F0 09 00 63 7A 00 F9 E8 71 66 BD 8F 7C 64 B9 [20:07:13]GetLastDocTimeStamp 1718740811 [20:07:13]current date 1718741241 [20:07:13]FM_GetShiftState [20:07:13]SAM_PROTO_GetShiftState [20:07:13]wFMCommunicate request_size=4 [20:07:13]MH_SAM_APDU [20:07:13]CAPDU: 80 13 01 00 [20:07:13]Write to MH i2c: E2 08 00 64 7A 80 13 01 00 00 00 00 00 5B [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:13]Read from MH i2c: E2 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 0E 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 0E 00 64 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 DC [20:07:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:07:13]wFMCommunicate OK [20:07:13]SAM_PROTO_GetShiftState done [20:07:13]FM_GetShiftState done [20:07:13]opened in 1718670284 [20:07:13]opened+sec_in_day 1718756684 [20:07:13]quantity*price = 30012 [20:07:13]sum+1 = 30014 [20:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 210 18.06.2024 20:07 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103526 ФПД: 128600526139330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T200721&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103526&fm=128600526139330&tin=02508201610067®Number=0000000000092785&sum=30000 [20:07:14]StoreToDocumentArchive [20:07:14]shift 352 fd 103526 [20:07:14]save to /storage/0352/doc_00103526 [20:07:14]save last doc name /storage/0352/doc_00103526 to /storage/kkm_last_doc_name [20:07:14]save OK [20:07:14]Clear old archive folders... [20:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:14]tlvbuf is 01388020 [20:07:14]SAM_PROTO_ClearQueue [20:07:14]wFMCommunicate request_size=4 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 09 00 00 [20:07:14]Write to MH i2c: E2 08 00 71 7A 80 09 00 00 00 00 00 00 5D [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:14]Read from MH i2c: E2 03 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 71 7A 00 90 00 5F [20:07:14]RAPDU: 90 00 [20:07:14]wFMCommunicate OK [20:07:14]SAM_PROTO_ClearQueue done [20:07:14]KKMCreateOFDPacket [20:07:14]OFDProtocolAddRootSTLVToBuf [20:07:14]FM_MakeSignedData [20:07:14]FM_MakeSignedData [20:07:14]SAM_PROTO_SignData [20:07:14]wFMCommunicate request_size=4 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 0D 01 02 [20:07:14]Write to MH i2c: E2 08 00 72 7A 80 0D 01 02 00 00 00 00 65 [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 72 7A 00 90 00 60 [20:07:14]RAPDU: 90 00 [20:07:14]wFMCommunicate OK [20:07:14]wFMCommunicate request_size=255 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F9 E8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 94 01 00 35 04 06 00 74 [20:07:14]Write to MH i2c: E2 02 01 73 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F9 E8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 94 01 00 35 04 06 00 74 00 00 17 [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 73 7A 00 90 00 61 [20:07:14]RAPDU: 90 00 [20:07:14]wFMCommunicate OK [20:07:14]wFMCommunicate request_size=10 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 0D 02 02 05 F6 24 AD AF C2 [20:07:14]Write to MH i2c: E2 0D 00 74 7A 80 0D 02 02 05 00 F6 24 AD AF C2 00 00 AA [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 03 00 74 7A 00 90 00 62 [20:07:14]RAPDU: 90 00 [20:07:14]wFMCommunicate OK [20:07:14]wFMCommunicate request_size=4 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 0D 03 02 [20:07:14]Write to MH i2c: E2 08 00 75 7A 80 0D 03 02 00 00 00 00 6A [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 0B 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 0B 00 75 7A 00 A4 15 5F FA AE F9 30 2C 90 00 80 [20:07:14]RAPDU: A4 15 5F FA AE F9 30 2C 90 00 [20:07:14]wFMCommunicate OK [20:07:14]SAM_PROTO_SignData done [20:07:14]FM_MakeSignedData done [20:07:14]CreateOFDProtocolMessage [20:07:14]wFMCommunicate request_size=4 [20:07:14]MH_SAM_APDU [20:07:14]CAPDU: 80 11 00 00 [20:07:14]Write to MH i2c: E2 08 00 76 7A 80 11 00 00 00 00 00 00 6A [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:14]Read from MH i2c: E2 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 17 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: E2 17 00 76 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [20:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:07:14]wFMCommunicate OK [20:07:14]CreateOFDProtocolMessage done [20:07:14]OFDSenderStorePacket 103526 [20:07:14]StoreOFDPacket docnum=103526 [20:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B8 60 07 01 78 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F9 E8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 94 01 00 35 04 06 00 74 F6 24 AD AF C2 A4 15 5F FA AE F9 30 2C [20:07:14]CheckFolder [20:07:14]dirname=/storage/ofd_packets [20:07:14]CheckFolder done [20:07:14]ProducePacketName [20:07:14]name=ofd_packets/00103526 [20:07:14]NVStorageSaveData ofd_packets/00103526 [20:07:14]File name is /storage/ofd_packets/00103526 [20:07:14]Write 301 bytes [20:07:14]NVStorageSaveData done [20:07:14]OFDSenderStorePacket done [20:07:14]KKMCreateOFDPacket done [20:07:14]NVStorageSaveData kkm_last_timestamp [20:07:14]File name is /storage/kkm_last_timestamp [20:07:14]Write 4 bytes [20:07:14]NVStorageSaveData done [20:07:14]ExternCall_PrintAddStr [20:07:14]wPrintStart [20:07:14]Write to MH i2c: 01 00 00 77 7A F1 [20:07:14]Write i2c OK [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: 01 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: 01 07 00 [20:07:14]MH_I2C_Read... [20:07:14]Read from MH i2c: 01 07 00 77 7A 00 00 00 00 00 FF 0F 06 [20:07:14]RasterBufferAndPrint [20:07:14]line Счет N : (1)672734 [20:07:14]line ИНН: 02508201610067 [20:07:14]line Контрольно-Кассовый Чек [20:07:14]line ПРОДАЖА [20:07:14]line ТРК (МРК, ГНК) : 32 [20:07:14]line Товар: 2710124130 [20:07:14]line Аи-92-К-5 [20:07:14]line 4.520 * 66.40 [20:07:14]line = 300.13 [20:07:14]line НДС 12% НСП 1% [20:07:14]line > о реализуемом товаре [20:07:14]line ОКРУГЛЕНИЕ: -0.13 [20:07:14]line ИТОГО: 300.00 [20:07:14]line Внесено: 300.00 [20:07:14]line СДАЧА: 0.00 [20:07:14]line НСП 1% : 2.66 [20:07:14]line НДС 12% : 31.87 [20:07:14]line Наличными: 300.00 [20:07:14]line Безнал.: 0.00 [20:07:14]line Место: АЗС № 120 "Партнер Нефть" [20:07:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:07:14]line СНО: Общий режим [20:07:14]line Чек 210 18.06.2024 20:07 [20:07:14]line Смена: 352 ФФД: 1.0 [20:07:14]line ЗНМ: 0300000164 [20:07:14]line РНМ: 0000000000092785 [20:07:14]line Версия ККМ: 001 [20:07:14]line ФМ: 0000000000875093 [20:07:14]line ФД: 103526 [20:07:14]line ФПД: 128600526139330 [20:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T200721&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103526&fm=128600526139330&tin=02508201610067®Number=0000000000092785&sum=30000 [20:07:15]OFD Sender: Processing packet 103526 [packets to send 17, broken 16] [20:07:15]ProducePacketName [20:07:15]name=ofd_packets/00103526 [20:07:15]OFD Sender: To server: pG, [20:07:15]CommunicateWithHost lk.salyk.kg:30040 [20:07:15]ConnectInit lk.salyk.kg [20:07:15]written 0, free lines is 4095 [20:07:15]Connected sock=10 [20:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B8 60 07 01 78 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F9 E8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 94 01 00 35 04 06 00 74 F6 24 AD AF C2 A4 15 5F FA AE F9 30 2C [20:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F2 67 47 00 38 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 94 01 00 F4 03 04 00 84 8F 71 66 B6 04 01 00 00 D0 75 50 94 DE 4D 61 0E [20:07:15]CommunicateWithHost err = 0 [20:07:15]CheckOFDResponse [20:07:15]1017 (14) - 77093643461234 [20:07:15]1041 (16) - 0000000000875093 [20:07:15]1040 (4) - 103526 [20:07:15]1012 (4) - 18.06.2024 13:45 [20:07:15]1206 (1) - 0 [20:07:15]OFD Sender: Remove packet 103526 [20:07:15]ProducePacketName [20:07:15]name=ofd_packets/00103526 [20:07:15]NVStorageDeleteData [20:07:15]Write to MH i2c: 01 00 00 A2 7A 1C [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: 01 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: 01 07 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: 01 07 00 A2 7A 00 00 00 00 00 DE 0C 0D [20:07:15]RasterBufferAndPrint [20:07:15]line [20:07:15]line [20:07:15]line [20:07:15]line [20:07:15]line [20:07:15]written 0, free lines is 3301 [20:07:15]MH_Cut [20:07:15]Write to MH i2c: D1 01 00 A9 7A 01 F5 [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: D1 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: D1 01 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: D1 01 00 A9 7A 00 F4 [20:07:15]Write to MH i2c: 01 00 00 AA 7A 24 [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:16]OFD Sender: No OFD packet to send [20:07:16]*** Cut start [20:07:16]*** Partial cut [20:07:16]*** CUTSNS_PIN = 1 [20:07:16]*** CUTSNS_PIN = 0 [20:07:16]*** Brake cut motor [20:07:17]Read from MH i2c: 01 [20:07:17]MH_I2C_Read... [20:07:17]*** Stop cut motor [20:07:17]*** Cut end [20:07:17]Read from MH i2c: 01 07 00 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: 01 07 00 AA 7A 00 00 00 00 00 FF 0F 39 [20:07:17]process_action close_receipt done [20:07:17]requested_data is exist [20:07:17]produce_requested_data [20:07:17]requested_item fm.sn is exist - process it [20:07:17]wFMCommunicate request_size=4 [20:07:17]MH_SAM_APDU [20:07:17]CAPDU: 80 11 00 00 [20:07:17]Write to MH i2c: E2 08 00 AB 7A 80 11 00 00 00 00 00 00 9F [20:07:17]Write i2c OK [20:07:17]MH_I2C_Read... [20:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:17]Read from MH i2c: E2 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 17 00 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 17 00 AB 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [20:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:07:17]wFMCommunicate OK [20:07:17]requested_item fd.num is exist - process it [20:07:17]SAM_PROTO_GetFieldsCounters [20:07:17]wFMCommunicate request_size=4 [20:07:17]MH_SAM_APDU [20:07:17]CAPDU: 80 13 00 00 [20:07:17]Write to MH i2c: E2 08 00 AC 7A 80 13 00 00 00 00 00 00 A2 [20:07:17]Write i2c OK [20:07:17]MH_I2C_Read... [20:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:17]Read from MH i2c: E2 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 62 00 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 62 00 AC 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [20:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:17]wFMCommunicate OK [20:07:17]SAM_PROTO_GetFieldsCounters done [20:07:17]requested_item shift.num is exist - process it [20:07:17]requested_item shift.opened is exist - process it [20:07:17]req_shift_opened [20:07:17]FM_GetShiftState [20:07:17]SAM_PROTO_GetShiftState [20:07:17]wFMCommunicate request_size=4 [20:07:17]MH_SAM_APDU [20:07:17]CAPDU: 80 13 01 00 [20:07:17]Write to MH i2c: E2 08 00 AD 7A 80 13 01 00 00 00 00 00 A4 [20:07:17]Write i2c OK [20:07:17]MH_I2C_Read... [20:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:17]Read from MH i2c: E2 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 0E 00 [20:07:17]MH_I2C_Read... [20:07:17]Read from MH i2c: E2 0E 00 AD 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 25 [20:07:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:07:17]wFMCommunicate OK [20:07:17]SAM_PROTO_GetShiftState done [20:07:17]FM_GetShiftState done [20:07:17]req_shift_opened done [20:07:17]requested_item shift.open_date is exist - process it [20:07:17]req_shift_open_date [20:07:17]req_shift_open_date done [20:07:17]produce_requested_data done [20:07:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:07:17]process_action_free close_receipt [20:07:17]json_value_free [20:07:17]json_value_free done [20:07:17]process_json_proto returns [20:07:17]Send response to host [20:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:07:17]free response buf [20:07:17]execute_script done [20:07:17]execute_script returns [20:07:17]free content buf [20:07:17]Sock 7.Close socket [20:07:17]Sock 7.Thread stoped [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:34]accept exits with 9 [20:09:34]New connection [20:09:34]New thread 3067227492 created [20:09:34]Thread 3067084132 joined [20:09:34]Waiting for new connection... [20:09:34] Sock 9.Parse request [20:09:34]Sock 9.Check first char [20:09:34]Sock 9.First char is OK [20:09:34]request: POST /json_proto HTTP/1.0 [20:09:34]Method: POST [20:09:34]URL: /json_proto [20:09:34]Method is POST - this is cgi request [20:09:34]url: /json_proto [20:09:34]query_string will be loaded in cgi processing [20:09:34]execute_cgi json_proto POST (null) [20:09:34]execute_cgi path=json_proto method=POST [20:09:34]POST find Content-Length [20:09:34]Host: 172.17.38.133:8080 [20:09:34]Content-Length: 1157 [20:09:34]Content-Type: application/json [20:09:34] [20:09:34]POST finish read [20:09:34]Found Content-Length = 1157 [20:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672735\u000A18.06.2024 19:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:34]execute_script... [20:09:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672735\u000A18.06.2024 19:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:34]POST & json_proto [20:09:34]process_json_proto [20:09:34]json parsed OK: [20:09:34]protocol is kg_v1.0 [20:09:34]action value=print_text [20:09:34]process_action print_text [20:09:34]cmd_print_text [20:09:34]ExternCall_PrintAddStr [20:09:34]wPrintStart [20:09:34]Write to MH i2c: 01 00 00 AE 7A 28 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 AE 7A 00 00 00 00 00 FF 0F 3D [20:09:34]RasterBufferAndPrint [20:09:34]line *****ТОВАРНЫЙ ЧЕК***** [20:09:34]line АЗС 120 [20:09:34]line Партнер нефть [20:09:34]line 02508201610067 [20:09:34]line Кассир : Асанбаев Н. [20:09:34]line Счет N : (1)672735 [20:09:34]line 18.06.2024 19:47 [20:09:34]line ПРОДАЖА [20:09:34]line ТРК (МРК, ГНК): 32 [20:09:34]line Вид ГСМ : 2710124130 [20:09:34]line Аи-92-К-5 [20:09:34]line 15.070 x 66.40 [20:09:34]line ИТОГ: 1000.65 [20:09:34]line Тип оплаты: Талоны: ТК ГПНА Online [20:09:34]line 30086492 [20:09:34]line ______________________ [20:09:34]line (подпись) [20:09:34]written 0, free lines is 4095 [20:09:34]Write to MH i2c: 01 00 00 C2 7A 3C [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: 01 07 00 C2 7A 00 00 00 00 00 10 0E 61 [20:09:34]RasterBufferAndPrint [20:09:34]line [20:09:34]line [20:09:34]line [20:09:34]line [20:09:34]line [20:09:34]written 0, free lines is 3601 [20:09:34]MH_Cut [20:09:34]Write to MH i2c: D1 01 00 C9 7A 01 15 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: D1 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: D1 01 00 [20:09:34]MH_I2C_Read... [20:09:34]Read from MH i2c: D1 01 00 C9 7A 00 14 [20:09:34]Write to MH i2c: 01 00 00 CA 7A 44 [20:09:34]Write i2c OK [20:09:34]MH_I2C_Read... [20:09:35]*** Cut start [20:09:35]*** Partial cut [20:09:35]*** CUTSNS_PIN = 1 [20:09:35]*** CUTSNS_PIN = 0 [20:09:35]*** Brake cut motor [20:09:35]Read from MH i2c: 01 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: 01 07 00 [20:09:35]MH_I2C_Read... [20:09:35]*** Stop cut motor [20:09:35]*** Cut end [20:09:35]Read from MH i2c: 01 07 00 CA 7A 00 00 00 00 00 FF 0F 59 [20:09:35]process_action print_text done [20:09:35]requested_data is exist [20:09:35]produce_requested_data [20:09:35]requested_item fm.sn is exist - process it [20:09:35]wFMCommunicate request_size=4 [20:09:35]MH_SAM_APDU [20:09:35]CAPDU: 80 11 00 00 [20:09:35]Write to MH i2c: E2 08 00 CB 7A 80 11 00 00 00 00 00 00 BF [20:09:35]Write i2c OK [20:09:35]MH_I2C_Read... [20:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:35]Read from MH i2c: E2 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: E2 17 00 [20:09:35]MH_I2C_Read... [20:09:35]Read from MH i2c: E2 17 00 CB 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [20:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:09:35]wFMCommunicate OK [20:09:35]requested_item fd.num is exist - process it [20:09:35]SAM_PROTO_GetFieldsCounters [20:09:35]wFMCommunicate request_size=4 [20:09:35]MH_SAM_APDU [20:09:35]CAPDU: 80 13 00 00 [20:09:35]Write to MH i2c: E2 08 00 CC 7A 80 13 00 00 00 00 00 00 C2 [20:09:35]Write i2c OK [20:09:35]MH_I2C_Read... [20:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:36]Read from MH i2c: E2 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 62 00 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 62 00 CC 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [20:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:36]wFMCommunicate OK [20:09:36]SAM_PROTO_GetFieldsCounters done [20:09:36]requested_item shift.num is exist - process it [20:09:36]requested_item shift.opened is exist - process it [20:09:36]req_shift_opened [20:09:36]FM_GetShiftState [20:09:36]SAM_PROTO_GetShiftState [20:09:36]wFMCommunicate request_size=4 [20:09:36]MH_SAM_APDU [20:09:36]CAPDU: 80 13 01 00 [20:09:36]Write to MH i2c: E2 08 00 CD 7A 80 13 01 00 00 00 00 00 C4 [20:09:36]Write i2c OK [20:09:36]MH_I2C_Read... [20:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:36]Read from MH i2c: E2 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 0E 00 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 0E 00 CD 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 45 [20:09:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:09:36]wFMCommunicate OK [20:09:36]SAM_PROTO_GetShiftState done [20:09:36]FM_GetShiftState done [20:09:36]req_shift_opened done [20:09:36]requested_item shift.open_date is exist - process it [20:09:36]req_shift_open_date [20:09:36]req_shift_open_date done [20:09:36]produce_requested_data done [20:09:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:09:36]process_action_free print_text [20:09:36]json_value_free [20:09:36]json_value_free done [20:09:36]process_json_proto returns [20:09:36]Send response to host [20:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:09:36]free response buf [20:09:36]execute_script done [20:09:36]execute_script returns [20:09:36]free content buf [20:09:36]Sock 9.Close socket [20:09:36]Sock 9.Thread stoped [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]accept exits with 7 [20:12:11]New connection [20:12:11]New thread 3067084132 created [20:12:11]Thread 3067227492 joined [20:12:11]Waiting for new connection... [20:12:11] Sock 7.Parse request [20:12:11]Sock 7.Check first char [20:12:11]Sock 7.First char is OK [20:12:11]request: POST /json_proto HTTP/1.0 [20:12:11]Method: POST [20:12:11]URL: /json_proto [20:12:11]Method is POST - this is cgi request [20:12:11]url: /json_proto [20:12:11]query_string will be loaded in cgi processing [20:12:11]execute_cgi json_proto POST (null) [20:12:11]execute_cgi path=json_proto method=POST [20:12:11]POST find Content-Length [20:12:11]Host: 172.17.38.133:8080 [20:12:11]Content-Length: 1194 [20:12:11]Content-Type: application/json [20:12:11] [20:12:11]POST finish read [20:12:11]Found Content-Length = 1194 [20:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672736\u000A18.06.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]execute_script... [20:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672736\u000A18.06.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:11]POST & json_proto [20:12:11]process_json_proto [20:12:11]json parsed OK: [20:12:11]protocol is kg_v1.0 [20:12:11]action value=print_text [20:12:11]process_action print_text [20:12:11]cmd_print_text [20:12:11]ExternCall_PrintAddStr [20:12:11]wPrintStart [20:12:11]Write to MH i2c: 01 00 00 CE 7A 48 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 CE 7A 00 00 00 00 00 FF 0F 5D [20:12:11]RasterBufferAndPrint [20:12:11]line *****ТОВАРНЫЙ ЧЕК***** [20:12:11]line АЗС 120 [20:12:11]line Партнер нефть [20:12:11]line 02508201610067 [20:12:11]line Кассир : Асанбаев Н. [20:12:11]line Счет N : (1)672736 [20:12:11]line 18.06.2024 19:49 [20:12:11]line ПРОДАЖА [20:12:11]line ТРК (МРК, ГНК): 32 [20:12:11]line Вид ГСМ : 2710124130 [20:12:11]line Аи-92-К-5 [20:12:11]line 10.000 x 66.40 [20:12:11]line ИТОГ: 664.00 [20:12:11]line Тип оплаты: Талоны: Топливная Карта [20:12:11]line 54664 [20:12:11]line ______________________ [20:12:11]line (подпись) [20:12:11]written 0, free lines is 4095 [20:12:11]Write to MH i2c: 01 00 00 E2 7A 5C [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: 01 07 00 E2 7A 00 00 00 00 00 10 0E 81 [20:12:11]RasterBufferAndPrint [20:12:11]line [20:12:11]line [20:12:11]line [20:12:11]line [20:12:11]line [20:12:11]OFD Sender: No OFD packet to send [20:12:11]written 0, free lines is 3601 [20:12:11]MH_Cut [20:12:11]Write to MH i2c: D1 01 00 E9 7A 01 35 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 E9 7A 00 34 [20:12:11]Write to MH i2c: 01 00 00 EA 7A 64 [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]*** Cut start [20:12:11]*** Partial cut [20:12:11]*** CUTSNS_PIN = 1 [20:12:12]*** CUTSNS_PIN = 0 [20:12:12]*** Brake cut motor [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]*** Stop cut motor [20:12:12]*** Cut end [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 EA 7A 00 00 00 00 00 FF 0F 79 [20:12:12]process_action print_text done [20:12:12]requested_data is exist [20:12:12]produce_requested_data [20:12:12]requested_item fm.sn is exist - process it [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 11 00 00 [20:12:12]Write to MH i2c: E2 08 00 EB 7A 80 11 00 00 00 00 00 00 DF [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 EB 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [20:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:12:12]wFMCommunicate OK [20:12:12]requested_item fd.num is exist - process it [20:12:12]SAM_PROTO_GetFieldsCounters [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 00 00 [20:12:12]Write to MH i2c: E2 08 00 EC 7A 80 13 00 00 00 00 00 00 E2 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 EC 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [20:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetFieldsCounters done [20:12:12]requested_item shift.num is exist - process it [20:12:12]requested_item shift.opened is exist - process it [20:12:12]req_shift_opened [20:12:12]FM_GetShiftState [20:12:12]SAM_PROTO_GetShiftState [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 01 00 [20:12:12]Write to MH i2c: E2 08 00 ED 7A 80 13 01 00 00 00 00 00 E4 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 ED 7A 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 65 [20:12:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetShiftState done [20:12:12]FM_GetShiftState done [20:12:12]req_shift_opened done [20:12:12]requested_item shift.open_date is exist - process it [20:12:12]req_shift_open_date [20:12:12]req_shift_open_date done [20:12:12]produce_requested_data done [20:12:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:12:12]process_action_free print_text [20:12:12]json_value_free [20:12:12]json_value_free done [20:12:12]process_json_proto returns [20:12:12]Send response to host [20:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:12:12]free response buf [20:12:12]execute_script done [20:12:12]execute_script returns [20:12:12]free content buf [20:12:12]Sock 7.Close socket [20:12:12]Sock 7.Thread stoped [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:33]accept exits with 9 [20:15:33]New connection [20:15:33]New thread 3067227492 created [20:15:33]Thread 3067084132 joined [20:15:33]Waiting for new connection... [20:15:33] Sock 9.Parse request [20:15:33]Sock 9.Check first char [20:15:33]Sock 9.First char is OK [20:15:33]request: POST /json_proto HTTP/1.0 [20:15:33]Method: POST [20:15:33]URL: /json_proto [20:15:33]Method is POST - this is cgi request [20:15:33]url: /json_proto [20:15:33]query_string will be loaded in cgi processing [20:15:33]execute_cgi json_proto POST (null) [20:15:33]execute_cgi path=json_proto method=POST [20:15:33]POST find Content-Length [20:15:33]Host: 172.17.38.133:8080 [20:15:33]Content-Length: 1198 [20:15:33]Content-Type: application/json [20:15:33] [20:15:33]POST finish read [20:15:33]Found Content-Length = 1198 [20:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672737\u000A18.06.2024 19:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A30070579\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:33]execute_script... [20:15:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672737\u000A18.06.2024 19:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A30070579\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:33]POST & json_proto [20:15:33]process_json_proto [20:15:33]json parsed OK: [20:15:33]protocol is kg_v1.0 [20:15:33]action value=print_text [20:15:33]process_action print_text [20:15:33]cmd_print_text [20:15:33]ExternCall_PrintAddStr [20:15:33]wPrintStart [20:15:33]Write to MH i2c: 01 00 00 EE 7A 68 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 EE 7A 00 00 00 00 00 FF 0F 7D [20:15:33]RasterBufferAndPrint [20:15:33]line *****ТОВАРНЫЙ ЧЕК***** [20:15:33]line АЗС 120 [20:15:33]line Партнер нефть [20:15:33]line 02508201610067 [20:15:33]line Кассир : Асанбаев Н. [20:15:33]line Счет N : (1)672737 [20:15:33]line 18.06.2024 19:53 [20:15:33]line ПРОДАЖА [20:15:33]line ТРК (МРК, ГНК): 42 [20:15:33]line Вид ГСМ : 2710124130 [20:15:33]line Аи-92-К-5 [20:15:33]line 50.000 x 66.40 [20:15:33]line ИТОГ: 3320.00 [20:15:33]line Тип оплаты: Талоны: Топливная Карта [20:15:33]line 30070579 [20:15:33]line ______________________ [20:15:33]line (подпись) [20:15:33]written 0, free lines is 4095 [20:15:33]Write to MH i2c: 01 00 00 02 7B 7D [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 02 7B 00 00 00 00 00 11 0E A3 [20:15:33]RasterBufferAndPrint [20:15:33]line [20:15:33]line [20:15:33]line [20:15:33]line [20:15:33]line [20:15:33]written 0, free lines is 3603 [20:15:33]MH_Cut [20:15:33]Write to MH i2c: D1 01 00 09 7B 01 56 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: D1 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: D1 01 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: D1 01 00 09 7B 00 55 [20:15:33]Write to MH i2c: 01 00 00 0A 7B 85 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:34]*** Cut start [20:15:34]*** Partial cut [20:15:34]*** CUTSNS_PIN = 1 [20:15:34]*** CUTSNS_PIN = 0 [20:15:34]*** Brake cut motor [20:15:35]Read from MH i2c: 01 [20:15:35]MH_I2C_Read... [20:15:35]*** Stop cut motor [20:15:35]*** Cut end [20:15:35]Read from MH i2c: 01 07 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: 01 07 00 0A 7B 00 00 00 00 00 FF 0F 9A [20:15:35]process_action print_text done [20:15:35]requested_data is exist [20:15:35]produce_requested_data [20:15:35]requested_item fm.sn is exist - process it [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 11 00 00 [20:15:35]Write to MH i2c: E2 08 00 0B 7B 80 11 00 00 00 00 00 00 00 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 17 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 17 00 0B 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [20:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:15:35]wFMCommunicate OK [20:15:35]requested_item fd.num is exist - process it [20:15:35]SAM_PROTO_GetFieldsCounters [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 13 00 00 [20:15:35]Write to MH i2c: E2 08 00 0C 7B 80 13 00 00 00 00 00 00 03 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 62 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 62 00 0C 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [20:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:35]wFMCommunicate OK [20:15:35]SAM_PROTO_GetFieldsCounters done [20:15:35]requested_item shift.num is exist - process it [20:15:35]requested_item shift.opened is exist - process it [20:15:35]req_shift_opened [20:15:35]FM_GetShiftState [20:15:35]SAM_PROTO_GetShiftState [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 13 01 00 [20:15:35]Write to MH i2c: E2 08 00 0D 7B 80 13 01 00 00 00 00 00 05 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 0E 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 0E 00 0D 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 86 [20:15:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:15:35]wFMCommunicate OK [20:15:35]SAM_PROTO_GetShiftState done [20:15:35]FM_GetShiftState done [20:15:35]req_shift_opened done [20:15:35]requested_item shift.open_date is exist - process it [20:15:35]req_shift_open_date [20:15:35]req_shift_open_date done [20:15:35]produce_requested_data done [20:15:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:15:35]process_action_free print_text [20:15:35]json_value_free [20:15:35]json_value_free done [20:15:35]process_json_proto returns [20:15:35]Send response to host [20:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103526,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:15:35]free response buf [20:15:35]execute_script done [20:15:35]execute_script returns [20:15:35]free content buf [20:15:35]Sock 9.Close socket [20:15:35]Sock 9.Thread stoped [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:44]accept exits with 7 [20:19:44]New connection [20:19:44]New thread 3067084132 created [20:19:44]Thread 3067227492 joined [20:19:44]Waiting for new connection... [20:19:44] Sock 7.Parse request [20:19:44]Sock 7.Check first char [20:19:44]Sock 7.First char is OK [20:19:44]request: POST /json_proto HTTP/1.0 [20:19:44]Method: POST [20:19:44]URL: /json_proto [20:19:44]Method is POST - this is cgi request [20:19:44]url: /json_proto [20:19:44]query_string will be loaded in cgi processing [20:19:44]execute_cgi json_proto POST (null) [20:19:44]execute_cgi path=json_proto method=POST [20:19:44]POST find Content-Length [20:19:44]Host: 172.17.38.133:8080 [20:19:44]Content-Length: 682 [20:19:44]Content-Type: application/json [20:19:44] [20:19:44]POST finish read [20:19:44]Found Content-Length = 682 [20:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:44]execute_script... [20:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:44]POST & json_proto [20:19:44]process_json_proto [20:19:44]json parsed OK: [20:19:44]protocol is kg_v1.0 [20:19:44]action value=close_receipt [20:19:44]process_action close_receipt [20:19:44]cmd_close_receipt [20:19:44]MH_GetDate [20:19:44]Write to MH i2c: F0 00 00 0E 7B 78 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: F0 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: F0 09 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: F0 09 00 0E 7B 00 E9 EB 71 66 BD 8F 7C 64 58 [20:19:44]GetLastDocTimeStamp 1718741241 [20:19:44]current date 1718741993 [20:19:44]FM_GetShiftState [20:19:44]SAM_PROTO_GetShiftState [20:19:44]wFMCommunicate request_size=4 [20:19:44]MH_SAM_APDU [20:19:44]CAPDU: 80 13 01 00 [20:19:44]Write to MH i2c: E2 08 00 0F 7B 80 13 01 00 00 00 00 00 07 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:44]Read from MH i2c: E2 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 0F 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 88 [20:19:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:19:44]wFMCommunicate OK [20:19:44]SAM_PROTO_GetShiftState done [20:19:44]FM_GetShiftState done [20:19:44]opened in 1718670284 [20:19:44]opened+sec_in_day 1718756684 [20:19:44]quantity*price = 250003 [20:19:44]sum+1 = 250005 [20:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 211 18.06.2024 20:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103527 ФПД: 226456769235078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201953&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103527&fm=226456769235078&tin=02508201610067®Number=0000000000092785&sum=250000 [20:19:46]StoreToDocumentArchive [20:19:46]shift 352 fd 103527 [20:19:46]save to /storage/0352/doc_00103527 [20:19:46]save last doc name /storage/0352/doc_00103527 to /storage/kkm_last_doc_name [20:19:46]save OK [20:19:46]Clear old archive folders... [20:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:46]tlvbuf is 014B2660 [20:19:46]SAM_PROTO_ClearQueue [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 09 00 00 [20:19:46]Write to MH i2c: E2 08 00 1C 7B 80 09 00 00 00 00 00 00 09 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 1C 7B 00 90 00 0B [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_ClearQueue done [20:19:46]KKMCreateOFDPacket [20:19:46]OFDProtocolAddRootSTLVToBuf [20:19:46]FM_MakeSignedData [20:19:46]FM_MakeSignedData [20:19:46]SAM_PROTO_SignData [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 01 02 [20:19:46]Write to MH i2c: E2 08 00 1D 7B 80 0D 01 02 00 00 00 00 11 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 1D 7B 00 90 00 0C [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]wFMCommunicate request_size=255 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E9 EB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 94 01 00 35 04 06 00 CD [20:19:46]Write to MH i2c: E2 02 01 1E 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E9 EB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 94 01 00 35 04 06 00 CD 00 00 66 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 1E 7B 00 90 00 0D [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]wFMCommunicate request_size=10 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 02 02 05 F6 13 49 88 86 [20:19:46]Write to MH i2c: E2 0D 00 1F 7B 80 0D 02 02 05 00 F6 13 49 88 86 00 00 7E [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 1F 7B 00 90 00 0E [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 03 02 [20:19:46]Write to MH i2c: E2 08 00 20 7B 80 0D 03 02 00 00 00 00 16 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0B 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0B 00 20 7B 00 06 FB 8E DC D3 90 20 44 90 00 49 [20:19:46]RAPDU: 06 FB 8E DC D3 90 20 44 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_SignData done [20:19:46]FM_MakeSignedData done [20:19:46]CreateOFDProtocolMessage [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 11 00 00 [20:19:46]Write to MH i2c: E2 08 00 21 7B 80 11 00 00 00 00 00 00 16 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 17 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 17 00 21 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [20:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:19:46]wFMCommunicate OK [20:19:46]CreateOFDProtocolMessage done [20:19:46]OFDSenderStorePacket 103527 [20:19:46]StoreOFDPacket docnum=103527 [20:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 D2 07 01 BF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E9 EB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 94 01 00 35 04 06 00 CD F6 13 49 88 86 06 FB 8E DC D3 90 20 44 [20:19:46]CheckFolder [20:19:46]dirname=/storage/ofd_packets [20:19:46]CheckFolder done [20:19:46]ProducePacketName [20:19:46]name=ofd_packets/00103527 [20:19:46]NVStorageSaveData ofd_packets/00103527 [20:19:46]File name is /storage/ofd_packets/00103527 [20:19:46]Write 301 bytes [20:19:46]NVStorageSaveData done [20:19:46]OFDSenderStorePacket done [20:19:46]KKMCreateOFDPacket done [20:19:46]NVStorageSaveData kkm_last_timestamp [20:19:46]File name is /storage/kkm_last_timestamp [20:19:46]Write 4 bytes [20:19:46]NVStorageSaveData done [20:19:46]ExternCall_PrintAddStr [20:19:46]wPrintStart [20:19:46]Write to MH i2c: 01 00 00 22 7B 9D [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 22 7B 00 00 00 00 00 FF 0F B2 [20:19:46]RasterBufferAndPrint [20:19:46]line Счет N : (1)672738 [20:19:46]line ИНН: 02508201610067 [20:19:46]line Контрольно-Кассовый Чек [20:19:46]line ПРОДАЖА [20:19:46]line ТРК (МРК, ГНК) : 31 [20:19:46]line Товар: 2710124500 [20:19:46]line Аи-95-К-5 [20:19:46]line 33.830 * 73.90 [20:19:46]line = 2500.04 [20:19:46]line НДС 12% НСП 1% [20:19:46]line > о реализуемом товаре [20:19:46]line ОКРУГЛЕНИЕ: -0.04 [20:19:46]line ИТОГО: 2500.00 [20:19:46]line Внесено: 2500.00 [20:19:46]line СДАЧА: 0.00 [20:19:46]line НСП 1% : 22.12 [20:19:46]line НДС 12% : 265.49 [20:19:46]line Наличными: 2500.00 [20:19:46]line Безнал.: 0.00 [20:19:46]line Место: АЗС № 120 "Партнер Нефть" [20:19:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:19:46]line СНО: Общий режим [20:19:46]line Чек 211 18.06.2024 20:19 [20:19:46]line Смена: 352 ФФД: 1.0 [20:19:46]line ЗНМ: 0300000164 [20:19:46]line РНМ: 0000000000092785 [20:19:46]line Версия ККМ: 001 [20:19:46]line ФМ: 0000000000875093 [20:19:46]line ФД: 103527 [20:19:46]line ФПД: 226456769235078 [20:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201953&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103527&fm=226456769235078&tin=02508201610067®Number=0000000000092785&sum=250000 [20:19:46]OFD Sender: Processing packet 103527 [packets to send 17, broken 16] [20:19:46]ProducePacketName [20:19:46]name=ofd_packets/00103527 [20:19:46]OFD Sender: To server: pG, [20:19:46]CommunicateWithHost lk.salyk.kg:30040 [20:19:46]ConnectInit lk.salyk.kg [20:19:46]written 0, free lines is 4095 [20:19:47]Connected sock=10 [20:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 D2 07 01 BF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E9 EB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 94 01 00 35 04 06 00 CD F6 13 49 88 86 06 FB 8E DC D3 90 20 44 [20:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 48 DD 47 00 6F 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 94 01 00 F4 03 04 00 74 92 71 66 B6 04 01 00 00 86 0D 59 11 D4 40 1D FC [20:19:47]CommunicateWithHost err = 0 [20:19:47]CheckOFDResponse [20:19:47]1017 (14) - 77093643461234 [20:19:47]1041 (16) - 0000000000875093 [20:19:47]1040 (4) - 103527 [20:19:47]1012 (4) - 18.06.2024 13:58 [20:19:47]1206 (1) - 0 [20:19:47]OFD Sender: Remove packet 103527 [20:19:47]ProducePacketName [20:19:47]name=ofd_packets/00103527 [20:19:47]NVStorageDeleteData [20:19:47]Write to MH i2c: 01 00 00 4D 7B C8 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 4D 7B 00 00 00 00 00 E0 0C BB [20:19:47]RasterBufferAndPrint [20:19:47]line [20:19:47]line [20:19:47]line [20:19:47]line [20:19:47]line [20:19:47]written 0, free lines is 3302 [20:19:47]MH_Cut [20:19:47]Write to MH i2c: D1 01 00 54 7B 01 A1 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 01 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 01 00 54 7B 00 A0 [20:19:47]Write to MH i2c: 01 00 00 55 7B D0 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]OFD Sender: No OFD packet to send [20:19:48]*** Cut start [20:19:48]*** Partial cut [20:19:48]*** CUTSNS_PIN = 1 [20:19:48]*** CUTSNS_PIN = 0 [20:19:48]*** Brake cut motor [20:19:48]Read from MH i2c: 01 [20:19:48]MH_I2C_Read... [20:19:48]*** Stop cut motor [20:19:48]*** Cut end [20:19:48]Read from MH i2c: 01 07 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 55 7B 00 00 00 00 00 FF 0F E5 [20:19:48]process_action close_receipt done [20:19:48]requested_data is exist [20:19:48]produce_requested_data [20:19:48]requested_item fm.sn is exist - process it [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 11 00 00 [20:19:48]Write to MH i2c: E2 08 00 56 7B 80 11 00 00 00 00 00 00 4B [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 56 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [20:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:19:48]wFMCommunicate OK [20:19:48]requested_item fd.num is exist - process it [20:19:48]SAM_PROTO_GetFieldsCounters [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 13 00 00 [20:19:48]Write to MH i2c: E2 08 00 57 7B 80 13 00 00 00 00 00 00 4E [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 62 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 62 00 57 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [20:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_GetFieldsCounters done [20:19:48]requested_item shift.num is exist - process it [20:19:48]requested_item shift.opened is exist - process it [20:19:48]req_shift_opened [20:19:48]FM_GetShiftState [20:19:48]SAM_PROTO_GetShiftState [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 13 01 00 [20:19:48]Write to MH i2c: E2 08 00 58 7B 80 13 01 00 00 00 00 00 50 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0E 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0E 00 58 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D1 [20:19:48]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_GetShiftState done [20:19:48]FM_GetShiftState done [20:19:48]req_shift_opened done [20:19:48]requested_item shift.open_date is exist - process it [20:19:48]req_shift_open_date [20:19:48]req_shift_open_date done [20:19:48]produce_requested_data done [20:19:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103527,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:19:48]process_action_free close_receipt [20:19:48]json_value_free [20:19:48]json_value_free done [20:19:48]process_json_proto returns [20:19:48]Send response to host [20:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103527,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:19:48]free response buf [20:19:48]execute_script done [20:19:48]execute_script returns [20:19:48]free content buf [20:19:48]Sock 7.Close socket [20:19:48]Sock 7.Thread stoped [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:09]accept exits with 9 [20:20:09]New connection [20:20:09]New thread 3067227492 created [20:20:09]Thread 3067084132 joined [20:20:09]Waiting for new connection... [20:20:09] Sock 9.Parse request [20:20:09]Sock 9.Check first char [20:20:09]Sock 9.First char is OK [20:20:09]request: POST /json_proto HTTP/1.0 [20:20:09]Method: POST [20:20:09]URL: /json_proto [20:20:09]Method is POST - this is cgi request [20:20:09]url: /json_proto [20:20:09]query_string will be loaded in cgi processing [20:20:09]execute_cgi json_proto POST (null) [20:20:09]execute_cgi path=json_proto method=POST [20:20:09]POST find Content-Length [20:20:09]Host: 172.17.38.133:8080 [20:20:09]Content-Length: 682 [20:20:09]Content-Type: application/json [20:20:09] [20:20:09]POST finish read [20:20:09]Found Content-Length = 682 [20:20:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:09]execute_script... [20:20:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:09]POST & json_proto [20:20:09]process_json_proto [20:20:09]json parsed OK: [20:20:09]protocol is kg_v1.0 [20:20:09]action value=close_receipt [20:20:09]process_action close_receipt [20:20:09]cmd_close_receipt [20:20:09]MH_GetDate [20:20:09]Write to MH i2c: F0 00 00 59 7B C3 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: F0 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: F0 09 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: F0 09 00 59 7B 00 02 EC 71 66 BD 8F 7C 64 BD [20:20:09]GetLastDocTimeStamp 1718741993 [20:20:09]current date 1718742018 [20:20:09]FM_GetShiftState [20:20:09]SAM_PROTO_GetShiftState [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 13 01 00 [20:20:09]Write to MH i2c: E2 08 00 5A 7B 80 13 01 00 00 00 00 00 52 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 5A 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D3 [20:20:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_GetShiftState done [20:20:09]FM_GetShiftState done [20:20:09]opened in 1718670284 [20:20:09]opened+sec_in_day 1718756684 [20:20:09]quantity*price = 100064 [20:20:09]sum+1 = 100066 [20:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 212 18.06.2024 20:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103528 ФПД: 266759155943478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T202018&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103528&fm=266759155943478&tin=02508201610067®Number=0000000000092785&sum=100000 [20:20:11]StoreToDocumentArchive [20:20:11]shift 352 fd 103528 [20:20:11]save to /storage/0352/doc_00103528 [20:20:11]save last doc name /storage/0352/doc_00103528 to /storage/kkm_last_doc_name [20:20:11]save OK [20:20:11]Clear old archive folders... [20:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:11]tlvbuf is 0139DE50 [20:20:11]SAM_PROTO_ClearQueue [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 09 00 00 [20:20:11]Write to MH i2c: E2 08 00 67 7B 80 09 00 00 00 00 00 00 54 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 67 7B 00 90 00 56 [20:20:11]RAPDU: 90 00 [20:20:11]wFMCommunicate OK [20:20:11]SAM_PROTO_ClearQueue done [20:20:11]KKMCreateOFDPacket [20:20:11]OFDProtocolAddRootSTLVToBuf [20:20:11]FM_MakeSignedData [20:20:11]FM_MakeSignedData [20:20:11]SAM_PROTO_SignData [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 0D 01 02 [20:20:11]Write to MH i2c: E2 08 00 68 7B 80 0D 01 02 00 00 00 00 5C [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 68 7B 00 90 00 57 [20:20:11]RAPDU: 90 00 [20:20:11]wFMCommunicate OK [20:20:11]wFMCommunicate request_size=255 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 02 EC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 94 01 00 35 04 06 00 F2 [20:20:11]Write to MH i2c: E2 02 01 69 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 02 EC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 94 01 00 35 04 06 00 F2 00 00 4F [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 69 7B 00 90 00 58 [20:20:11]RAPDU: 90 00 [20:20:11]wFMCommunicate OK [20:20:11]wFMCommunicate request_size=10 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 0D 02 02 05 9D B4 BB 08 36 [20:20:11]Write to MH i2c: E2 0D 00 6A 7B 80 0D 02 02 05 00 9D B4 BB 08 36 00 00 B3 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 03 00 6A 7B 00 90 00 59 [20:20:11]RAPDU: 90 00 [20:20:11]wFMCommunicate OK [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 0D 03 02 [20:20:11]Write to MH i2c: E2 08 00 6B 7B 80 0D 03 02 00 00 00 00 61 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0B 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0B 00 6B 7B 00 0D 50 45 BC 04 3B C3 66 90 00 28 [20:20:11]RAPDU: 0D 50 45 BC 04 3B C3 66 90 00 [20:20:11]wFMCommunicate OK [20:20:11]SAM_PROTO_SignData done [20:20:11]FM_MakeSignedData done [20:20:11]CreateOFDProtocolMessage [20:20:11]wFMCommunicate request_size=4 [20:20:11]MH_SAM_APDU [20:20:11]CAPDU: 80 11 00 00 [20:20:11]Write to MH i2c: E2 08 00 6C 7B 80 11 00 00 00 00 00 00 61 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 17 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 17 00 6C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [20:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:20:11]wFMCommunicate OK [20:20:11]CreateOFDProtocolMessage done [20:20:11]OFDSenderStorePacket 103528 [20:20:11]StoreOFDPacket docnum=103528 [20:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 77 17 07 01 82 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 02 EC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 94 01 00 35 04 06 00 F2 9D B4 BB 08 36 0D 50 45 BC 04 3B C3 66 [20:20:11]CheckFolder [20:20:11]dirname=/storage/ofd_packets [20:20:11]CheckFolder done [20:20:11]ProducePacketName [20:20:11]name=ofd_packets/00103528 [20:20:11]NVStorageSaveData ofd_packets/00103528 [20:20:11]File name is /storage/ofd_packets/00103528 [20:20:11]Write 301 bytes [20:20:11]NVStorageSaveData done [20:20:11]OFDSenderStorePacket done [20:20:11]KKMCreateOFDPacket done [20:20:11]NVStorageSaveData kkm_last_timestamp [20:20:11]File name is /storage/kkm_last_timestamp [20:20:11]Write 4 bytes [20:20:11]NVStorageSaveData done [20:20:11]ExternCall_PrintAddStr [20:20:11]wPrintStart [20:20:11]Write to MH i2c: 01 00 00 6D 7B E8 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 6D 7B 00 00 00 00 00 FF 0F FD [20:20:11]RasterBufferAndPrint [20:20:11]line Счет N : (1)672739 [20:20:11]line ИНН: 02508201610067 [20:20:11]line Контрольно-Кассовый Чек [20:20:11]line ПРОДАЖА [20:20:11]line ТРК (МРК, ГНК) : 42 [20:20:11]line Товар: 2710124130 [20:20:11]line Аи-92-К-5 [20:20:11]line 15.070 * 66.40 [20:20:11]line = 1000.65 [20:20:11]line НДС 12% НСП 1% [20:20:11]line > о реализуемом товаре [20:20:11]line ОКРУГЛЕНИЕ: -0.65 [20:20:11]line ИТОГО: 1000.00 [20:20:11]line Внесено: 1000.00 [20:20:11]line СДАЧА: 0.00 [20:20:11]line НСП 1% : 8.85 [20:20:11]line НДС 12% : 106.26 [20:20:11]line Наличными: 1000.00 [20:20:11]line Безнал.: 0.00 [20:20:11]line Место: АЗС № 120 "Партнер Нефть" [20:20:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:20:11]line СНО: Общий режим [20:20:11]line Чек 212 18.06.2024 20:20 [20:20:11]line Смена: 352 ФФД: 1.0 [20:20:11]line ЗНМ: 0300000164 [20:20:11]line РНМ: 0000000000092785 [20:20:11]line Версия ККМ: 001 [20:20:11]line ФМ: 0000000000875093 [20:20:11]line ФД: 103528 [20:20:11]line ФПД: 266759155943478 [20:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T202018&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103528&fm=266759155943478&tin=02508201610067®Number=0000000000092785&sum=100000 [20:20:11]OFD Sender: Processing packet 103528 [packets to send 17, broken 16] [20:20:11]ProducePacketName [20:20:11]name=ofd_packets/00103528 [20:20:11]OFD Sender: To server: pG, [20:20:11]CommunicateWithHost lk.salyk.kg:30040 [20:20:11]ConnectInit lk.salyk.kg [20:20:11]written 0, free lines is 4095 [20:20:12]Connected sock=10 [20:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 77 17 07 01 82 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 02 EC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 94 01 00 35 04 06 00 F2 9D B4 BB 08 36 0D 50 45 BC 04 3B C3 66 [20:20:12]Write to MH i2c: 01 00 00 98 7B 13 [20:20:12]Write i2c OK [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: 01 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: 01 07 00 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: 01 07 00 98 7B 00 00 00 00 00 E4 0C 0A [20:20:12]RasterBufferAndPrint [20:20:12]line [20:20:12]line [20:20:12]line [20:20:12]line [20:20:12]line [20:20:12]written 0, free lines is 3306 [20:20:12]MH_Cut [20:20:12]Write to MH i2c: D1 01 00 9F 7B 01 EC [20:20:12]Write i2c OK [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: D1 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: D1 01 00 [20:20:12]MH_I2C_Read... [20:20:12]Read from MH i2c: D1 01 00 9F 7B 00 EB [20:20:12]Write to MH i2c: 01 00 00 A0 7B 1B [20:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D6 13 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 35 30 39 33 10 04 04 00 68 94 01 00 F4 03 04 00 8D 92 71 66 B6 04 01 00 00 C2 89 2C A5 6D FA 72 83 [20:20:12]CommunicateWithHost err = 0 [20:20:12]CheckOFDResponse [20:20:12]1017 (14) - 77093643461234 [20:20:12]1041 (16) - 0000000000875093 [20:20:12]1040 (4) - 103528 [20:20:12]1012 (4) - 18.06.2024 13:58 [20:20:12]1206 (1) - 0 [20:20:12]OFD Sender: Remove packet 103528 [20:20:12]ProducePacketName [20:20:12]name=ofd_packets/00103528 [20:20:12]NVStorageDeleteData [20:20:12]Write i2c OK [20:20:12]MH_I2C_Read... [20:20:12]OFD Sender: No OFD packet to send [20:20:13]*** Cut start [20:20:13]*** Partial cut [20:20:13]*** CUTSNS_PIN = 1 [20:20:13]*** CUTSNS_PIN = 0 [20:20:13]*** Brake cut motor [20:20:13]Read from MH i2c: 01 [20:20:13]MH_I2C_Read... [20:20:13]*** Stop cut motor [20:20:13]*** Cut end [20:20:13]Read from MH i2c: 01 07 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: 01 07 00 A0 7B 00 00 00 00 00 FF 0F 30 [20:20:13]process_action close_receipt done [20:20:13]requested_data is exist [20:20:13]produce_requested_data [20:20:13]requested_item fm.sn is exist - process it [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 11 00 00 [20:20:13]Write to MH i2c: E2 08 00 A1 7B 80 11 00 00 00 00 00 00 96 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 17 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 17 00 A1 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [20:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:20:13]wFMCommunicate OK [20:20:13]requested_item fd.num is exist - process it [20:20:13]SAM_PROTO_GetFieldsCounters [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 13 00 00 [20:20:13]Write to MH i2c: E2 08 00 A2 7B 80 13 00 00 00 00 00 00 99 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 62 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 62 00 A2 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_GetFieldsCounters done [20:20:13]requested_item shift.num is exist - process it [20:20:13]requested_item shift.opened is exist - process it [20:20:13]req_shift_opened [20:20:13]FM_GetShiftState [20:20:13]SAM_PROTO_GetShiftState [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 13 01 00 [20:20:13]Write to MH i2c: E2 08 00 A3 7B 80 13 01 00 00 00 00 00 9B [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 A3 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1C [20:20:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_GetShiftState done [20:20:13]FM_GetShiftState done [20:20:13]req_shift_opened done [20:20:13]requested_item shift.open_date is exist - process it [20:20:13]req_shift_open_date [20:20:13]req_shift_open_date done [20:20:13]produce_requested_data done [20:20:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103528,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:20:13]process_action_free close_receipt [20:20:13]json_value_free [20:20:13]json_value_free done [20:20:13]process_json_proto returns [20:20:13]Send response to host [20:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103528,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:20:13]free response buf [20:20:13]execute_script done [20:20:13]execute_script returns [20:20:13]free content buf [20:20:13]Sock 9.Close socket [20:20:13]Sock 9.Thread stoped [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:56]accept exits with 7 [20:26:56]New connection [20:26:56]New thread 3067084132 created [20:26:56]Thread 3067227492 joined [20:26:56]Waiting for new connection... [20:26:56] Sock 7.Parse request [20:26:56]Sock 7.Check first char [20:26:56]Sock 7.First char is OK [20:26:56]request: POST /json_proto HTTP/1.0 [20:26:56]Method: POST [20:26:56]URL: /json_proto [20:26:56]Method is POST - this is cgi request [20:26:56]url: /json_proto [20:26:56]query_string will be loaded in cgi processing [20:26:56]execute_cgi json_proto POST (null) [20:26:56]execute_cgi path=json_proto method=POST [20:26:56]POST find Content-Length [20:26:56]Host: 172.17.38.133:8080 [20:26:56]Content-Length: 682 [20:26:56]Content-Type: application/json [20:26:56] [20:26:56]POST finish read [20:26:56]Found Content-Length = 682 [20:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]execute_script... [20:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]POST & json_proto [20:26:56]process_json_proto [20:26:56]json parsed OK: [20:26:56]protocol is kg_v1.0 [20:26:56]action value=close_receipt [20:26:56]process_action close_receipt [20:26:56]cmd_close_receipt [20:26:56]MH_GetDate [20:26:56]Write to MH i2c: F0 00 00 A4 7B 0E [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 A4 7B 00 99 ED 71 66 BD 8F 7C 64 A0 [20:26:56]GetLastDocTimeStamp 1718742018 [20:26:56]current date 1718742425 [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 A5 7B 80 13 01 00 00 00 00 00 9D [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 A5 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1E [20:26:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]opened in 1718670284 [20:26:56]opened+sec_in_day 1718756684 [20:26:56]quantity*price = 100064 [20:26:56]sum+1 = 100066 [20:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 213 18.06.2024 20:27 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103529 ФПД: 66997002064080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T202705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103529&fm=66997002064080&tin=02508201610067®Number=0000000000092785&sum=100000 [20:26:57]StoreToDocumentArchive [20:26:57]shift 352 fd 103529 [20:26:57]save to /storage/0352/doc_00103529 [20:26:57]save last doc name /storage/0352/doc_00103529 to /storage/kkm_last_doc_name [20:26:57]save OK [20:26:57]Clear old archive folders... [20:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:57]tlvbuf is 01384260 [20:26:57]SAM_PROTO_ClearQueue [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 09 00 00 [20:26:57]Write to MH i2c: E2 08 00 B2 7B 80 09 00 00 00 00 00 00 9F [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 B2 7B 00 90 00 A1 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]SAM_PROTO_ClearQueue done [20:26:58]KKMCreateOFDPacket [20:26:58]OFDProtocolAddRootSTLVToBuf [20:26:58]FM_MakeSignedData [20:26:58]FM_MakeSignedData [20:26:58]SAM_PROTO_SignData [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 01 02 [20:26:58]Write to MH i2c: E2 08 00 B3 7B 80 0D 01 02 00 00 00 00 A7 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 B3 7B 00 90 00 A2 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=255 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 99 ED 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 94 01 00 35 04 06 00 3C [20:26:58]Write to MH i2c: E2 02 01 B4 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 99 ED 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 94 01 00 35 04 06 00 3C 00 00 7E [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]OFD Sender: No OFD packet to send [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 B4 7B 00 90 00 A3 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=10 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 02 02 05 EE F4 82 50 D0 [20:26:58]Write to MH i2c: E2 0D 00 B5 7B 80 0D 02 02 05 00 EE F4 82 50 D0 00 00 38 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 B5 7B 00 90 00 A4 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 03 02 [20:26:58]Write to MH i2c: E2 08 00 B6 7B 80 0D 03 02 00 00 00 00 AC [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 0B 00 B6 7B 00 0A 8F EF 95 04 4A 1A 13 90 00 45 [20:26:58]RAPDU: 0A 8F EF 95 04 4A 1A 13 90 00 [20:26:58]wFMCommunicate OK [20:26:58]SAM_PROTO_SignData done [20:26:58]FM_MakeSignedData done [20:26:58]CreateOFDProtocolMessage [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 11 00 00 [20:26:58]Write to MH i2c: E2 08 00 B7 7B 80 11 00 00 00 00 00 00 AC [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 17 00 B7 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [20:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:26:58]wFMCommunicate OK [20:26:58]CreateOFDProtocolMessage done [20:26:58]OFDSenderStorePacket 103529 [20:26:58]StoreOFDPacket docnum=103529 [20:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 01 E6 07 01 A6 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 99 ED 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 94 01 00 35 04 06 00 3C EE F4 82 50 D0 0A 8F EF 95 04 4A 1A 13 [20:26:58]CheckFolder [20:26:58]dirname=/storage/ofd_packets [20:26:58]CheckFolder done [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00103529 [20:26:58]NVStorageSaveData ofd_packets/00103529 [20:26:58]File name is /storage/ofd_packets/00103529 [20:26:58]Write 301 bytes [20:26:58]NVStorageSaveData done [20:26:58]OFDSenderStorePacket done [20:26:58]KKMCreateOFDPacket done [20:26:58]NVStorageSaveData kkm_last_timestamp [20:26:58]File name is /storage/kkm_last_timestamp [20:26:58]Write 4 bytes [20:26:58]NVStorageSaveData done [20:26:58]ExternCall_PrintAddStr [20:26:58]wPrintStart [20:26:58]Write to MH i2c: 01 00 00 B8 7B 33 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 B8 7B 00 00 00 00 00 FF 0F 48 [20:26:58]RasterBufferAndPrint [20:26:58]line Счет N : (1)672740 [20:26:58]line ИНН: 02508201610067 [20:26:58]line Контрольно-Кассовый Чек [20:26:58]line ПРОДАЖА [20:26:58]line ТРК (МРК, ГНК) : 32 [20:26:58]line Товар: 2710124130 [20:26:58]line Аи-92-К-5 [20:26:58]line 15.070 * 66.40 [20:26:58]line = 1000.65 [20:26:58]line НДС 12% НСП 1% [20:26:58]line > о реализуемом товаре [20:26:58]line ОКРУГЛЕНИЕ: -0.65 [20:26:58]line ИТОГО: 1000.00 [20:26:58]line Внесено: 1000.00 [20:26:58]line СДАЧА: 0.00 [20:26:58]line НСП 1% : 8.85 [20:26:58]line НДС 12% : 106.26 [20:26:58]line Наличными: 1000.00 [20:26:58]line Безнал.: 0.00 [20:26:58]line Место: АЗС № 120 "Партнер Нефть" [20:26:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:26:58]line СНО: Общий режим [20:26:58]line Чек 213 18.06.2024 20:27 [20:26:58]line Смена: 352 ФФД: 1.0 [20:26:58]line ЗНМ: 0300000164 [20:26:58]line РНМ: 0000000000092785 [20:26:58]line Версия ККМ: 001 [20:26:58]line ФМ: 0000000000875093 [20:26:58]line ФД: 103529 [20:26:58]line ФПД: 66997002064080 [20:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T202705&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103529&fm=66997002064080&tin=02508201610067®Number=0000000000092785&sum=100000 [20:26:58]OFD Sender: Processing packet 103529 [packets to send 17, broken 16] [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00103529 [20:26:58]OFD Sender: To server: pG, [20:26:58]CommunicateWithHost lk.salyk.kg:30040 [20:26:58]ConnectInit lk.salyk.kg [20:26:58]written 0, free lines is 4095 [20:26:58]Connected sock=9 [20:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 01 E6 07 01 A6 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 99 ED 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 94 01 00 35 04 06 00 3C EE F4 82 50 D0 0A 8F EF 95 04 4A 1A 13 [20:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 43 6D 47 00 FC 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 94 01 00 F4 03 04 00 24 94 71 66 B6 04 01 00 00 FA EB 38 C0 96 E8 7C 45 [20:26:59]CommunicateWithHost err = 0 [20:26:59]CheckOFDResponse [20:26:59]1017 (14) - 77093643461234 [20:26:59]1041 (16) - 0000000000875093 [20:26:59]1040 (4) - 103529 [20:26:59]1012 (4) - 18.06.2024 14:05 [20:26:59]1206 (1) - 0 [20:26:59]OFD Sender: Remove packet 103529 [20:26:59]ProducePacketName [20:26:59]name=ofd_packets/00103529 [20:26:59]NVStorageDeleteData [20:26:59]Write to MH i2c: 01 00 00 E3 7B 5E [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 E3 7B 00 00 00 00 00 E4 0C 55 [20:26:59]RasterBufferAndPrint [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]line [20:26:59]written 0, free lines is 3306 [20:26:59]MH_Cut [20:26:59]Write to MH i2c: D1 01 00 EA 7B 01 37 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 01 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: D1 01 00 EA 7B 00 36 [20:26:59]Write to MH i2c: 01 00 00 EB 7B 66 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]OFD Sender: No OFD packet to send [20:27:00]*** Cut start [20:27:00]*** Partial cut [20:27:00]*** CUTSNS_PIN = 1 [20:27:00]*** CUTSNS_PIN = 0 [20:27:00]*** Brake cut motor [20:27:00]Read from MH i2c: 01 [20:27:00]MH_I2C_Read... [20:27:00]*** Stop cut motor [20:27:00]*** Cut end [20:27:00]Read from MH i2c: 01 07 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: 01 07 00 EB 7B 00 00 00 00 00 FF 0F 7B [20:27:00]process_action close_receipt done [20:27:00]requested_data is exist [20:27:00]produce_requested_data [20:27:00]requested_item fm.sn is exist - process it [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 11 00 00 [20:27:00]Write to MH i2c: E2 08 00 EC 7B 80 11 00 00 00 00 00 00 E1 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 17 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 17 00 EC 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [20:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:27:00]wFMCommunicate OK [20:27:00]requested_item fd.num is exist - process it [20:27:00]SAM_PROTO_GetFieldsCounters [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 13 00 00 [20:27:00]Write to MH i2c: E2 08 00 ED 7B 80 13 00 00 00 00 00 00 E4 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 62 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 62 00 ED 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [20:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:00]wFMCommunicate OK [20:27:00]SAM_PROTO_GetFieldsCounters done [20:27:00]requested_item shift.num is exist - process it [20:27:00]requested_item shift.opened is exist - process it [20:27:00]req_shift_opened [20:27:00]FM_GetShiftState [20:27:00]SAM_PROTO_GetShiftState [20:27:00]wFMCommunicate request_size=4 [20:27:00]MH_SAM_APDU [20:27:00]CAPDU: 80 13 01 00 [20:27:00]Write to MH i2c: E2 08 00 EE 7B 80 13 01 00 00 00 00 00 E6 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:00]Read from MH i2c: E2 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 0E 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: E2 0E 00 EE 7B 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 67 [20:27:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:27:00]wFMCommunicate OK [20:27:00]SAM_PROTO_GetShiftState done [20:27:00]FM_GetShiftState done [20:27:00]req_shift_opened done [20:27:00]requested_item shift.open_date is exist - process it [20:27:00]req_shift_open_date [20:27:00]req_shift_open_date done [20:27:00]produce_requested_data done [20:27:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103529,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:27:00]process_action_free close_receipt [20:27:00]json_value_free [20:27:00]json_value_free done [20:27:00]process_json_proto returns [20:27:00]Send response to host [20:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103529,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:27:00]free response buf [20:27:00]execute_script done [20:27:00]execute_script returns [20:27:00]free content buf [20:27:00]Sock 7.Close socket [20:27:00]Sock 7.Thread stoped [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]accept exits with 10 [20:32:09]New connection [20:32:09]New thread 3067227492 created [20:32:09]Thread 3067084132 joined [20:32:09]Waiting for new connection... [20:32:09] Sock 10.Parse request [20:32:09]Sock 10.Check first char [20:32:09]Sock 10.First char is OK [20:32:09]request: POST /json_proto HTTP/1.0 [20:32:09]Method: POST [20:32:09]URL: /json_proto [20:32:09]Method is POST - this is cgi request [20:32:09]url: /json_proto [20:32:09]query_string will be loaded in cgi processing [20:32:09]execute_cgi json_proto POST (null) [20:32:09]execute_cgi path=json_proto method=POST [20:32:09]POST find Content-Length [20:32:09]Host: 172.17.38.133:8080 [20:32:09]Content-Length: 1185 [20:32:09]Content-Type: application/json [20:32:09] [20:32:09]POST finish read [20:32:09]Found Content-Length = 1185 [20:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672741\u000A18.06.2024 20:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3060369\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:09]execute_script... [20:32:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672741\u000A18.06.2024 20:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3060369\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:09]POST & json_proto [20:32:09]process_json_proto [20:32:09]json parsed OK: [20:32:09]protocol is kg_v1.0 [20:32:09]action value=print_text [20:32:09]process_action print_text [20:32:09]cmd_print_text [20:32:09]ExternCall_PrintAddStr [20:32:09]wPrintStart [20:32:09]Write to MH i2c: 01 00 00 EF 7B 6A [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 EF 7B 00 00 00 00 00 FF 0F 7F [20:32:09]RasterBufferAndPrint [20:32:09]line *****ТОВАРНЫЙ ЧЕК***** [20:32:09]line АЗС 120 [20:32:09]line Партнер нефть [20:32:09]line 02508201610067 [20:32:09]line Кассир : Асанбаев Н. [20:32:09]line Счет N : (1)672741 [20:32:09]line 18.06.2024 20:09 [20:32:09]line ПРОДАЖА [20:32:09]line ТРК (МРК, ГНК): 32 [20:32:09]line Вид ГСМ : 2710124130 [20:32:09]line Аи-92-К-5 [20:32:09]line 20.000 x 66.40 [20:32:09]line ИТОГ: 1328.00 [20:32:09]line Тип оплаты: Талоны: Партнер нефть [20:32:09]line 3060369 [20:32:09]line ______________________ [20:32:09]line (подпись) [20:32:09]written 0, free lines is 4095 [20:32:09]Write to MH i2c: 01 00 00 03 7C 7F [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 03 7C 00 00 00 00 00 12 0E A6 [20:32:09]RasterBufferAndPrint [20:32:09]line [20:32:09]line [20:32:09]line [20:32:09]line [20:32:09]line [20:32:09]written 0, free lines is 3604 [20:32:09]MH_Cut [20:32:09]Write to MH i2c: D1 01 00 0A 7C 01 58 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: D1 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: D1 01 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: D1 01 00 0A 7C 00 57 [20:32:09]Write to MH i2c: 01 00 00 0B 7C 87 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]OFD Sender: No OFD packet to send [20:32:10]*** Cut start [20:32:10]*** Partial cut [20:32:10]*** CUTSNS_PIN = 1 [20:32:10]*** CUTSNS_PIN = 0 [20:32:10]*** Brake cut motor [20:32:10]Read from MH i2c: 01 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 [20:32:10]MH_I2C_Read... [20:32:10]*** Stop cut motor [20:32:10]*** Cut end [20:32:10]Read from MH i2c: 01 07 00 0B 7C 00 00 00 00 00 FF 0F 9C [20:32:10]process_action print_text done [20:32:10]requested_data is exist [20:32:10]produce_requested_data [20:32:10]requested_item fm.sn is exist - process it [20:32:10]wFMCommunicate request_size=4 [20:32:10]MH_SAM_APDU [20:32:10]CAPDU: 80 11 00 00 [20:32:10]Write to MH i2c: E2 08 00 0C 7C 80 11 00 00 00 00 00 00 02 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:10]Read from MH i2c: E2 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: E2 17 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: E2 17 00 0C 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [20:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:32:10]wFMCommunicate OK [20:32:10]requested_item fd.num is exist - process it [20:32:10]SAM_PROTO_GetFieldsCounters [20:32:10]wFMCommunicate request_size=4 [20:32:10]MH_SAM_APDU [20:32:10]CAPDU: 80 13 00 00 [20:32:10]Write to MH i2c: E2 08 00 0D 7C 80 13 00 00 00 00 00 00 05 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:10]Read from MH i2c: E2 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: E2 62 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: E2 62 00 0D 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:10]wFMCommunicate OK [20:32:10]SAM_PROTO_GetFieldsCounters done [20:32:10]requested_item shift.num is exist - process it [20:32:10]requested_item shift.opened is exist - process it [20:32:10]req_shift_opened [20:32:10]FM_GetShiftState [20:32:10]SAM_PROTO_GetShiftState [20:32:10]wFMCommunicate request_size=4 [20:32:10]MH_SAM_APDU [20:32:10]CAPDU: 80 13 01 00 [20:32:10]Write to MH i2c: E2 08 00 0E 7C 80 13 01 00 00 00 00 00 07 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:11]Read from MH i2c: E2 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: E2 0E 00 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: E2 0E 00 0E 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 88 [20:32:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:32:11]wFMCommunicate OK [20:32:11]SAM_PROTO_GetShiftState done [20:32:11]FM_GetShiftState done [20:32:11]req_shift_opened done [20:32:11]requested_item shift.open_date is exist - process it [20:32:11]req_shift_open_date [20:32:11]req_shift_open_date done [20:32:11]produce_requested_data done [20:32:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103529,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:32:11]process_action_free print_text [20:32:11]json_value_free [20:32:11]json_value_free done [20:32:11]process_json_proto returns [20:32:11]Send response to host [20:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103529,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:32:11]free response buf [20:32:11]execute_script done [20:32:11]execute_script returns [20:32:11]free content buf [20:32:11]Sock 10.Close socket [20:32:11]Sock 10.Thread stoped [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:09]accept exits with 7 [20:41:09]New connection [20:41:09]New thread 3067084132 created [20:41:09]Thread 3067227492 joined [20:41:09]Waiting for new connection... [20:41:09] Sock 7.Parse request [20:41:09]Sock 7.Check first char [20:41:09]Sock 7.First char is OK [20:41:09]request: POST /json_proto HTTP/1.0 [20:41:09]Method: POST [20:41:09]URL: /json_proto [20:41:09]Method is POST - this is cgi request [20:41:09]url: /json_proto [20:41:09]query_string will be loaded in cgi processing [20:41:09]execute_cgi json_proto POST (null) [20:41:09]execute_cgi path=json_proto method=POST [20:41:09]POST find Content-Length [20:41:09]Host: 172.17.38.133:8080 [20:41:09]Content-Length: 678 [20:41:09]Content-Type: application/json [20:41:09] [20:41:09]POST finish read [20:41:09]Found Content-Length = 678 [20:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:09]execute_script... [20:41:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:09]POST & json_proto [20:41:09]process_json_proto [20:41:09]json parsed OK: [20:41:09]protocol is kg_v1.0 [20:41:09]action value=close_receipt [20:41:09]process_action close_receipt [20:41:09]cmd_close_receipt [20:41:09]MH_GetDate [20:41:09]Write to MH i2c: F0 00 00 0F 7C 7A [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: F0 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: F0 09 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: F0 09 00 0F 7C 00 ED F0 71 66 BD 8F 7C 64 63 [20:41:09]GetLastDocTimeStamp 1718742425 [20:41:09]current date 1718743277 [20:41:09]FM_GetShiftState [20:41:09]SAM_PROTO_GetShiftState [20:41:09]wFMCommunicate request_size=4 [20:41:09]MH_SAM_APDU [20:41:09]CAPDU: 80 13 01 00 [20:41:09]Write to MH i2c: E2 08 00 10 7C 80 13 01 00 00 00 00 00 09 [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 0E 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 0E 00 10 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8A [20:41:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:41:09]wFMCommunicate OK [20:41:09]SAM_PROTO_GetShiftState done [20:41:09]FM_GetShiftState done [20:41:09]opened in 1718670284 [20:41:09]opened+sec_in_day 1718756684 [20:41:09]quantity*price = 70052 [20:41:09]sum+1 = 70053 [20:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 214 18.06.2024 20:41 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103530 ФПД: 212024214486924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204117&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103530&fm=212024214486924&tin=02508201610067®Number=0000000000092785&sum=70000 [20:41:10]StoreToDocumentArchive [20:41:10]shift 352 fd 103530 [20:41:10]save to /storage/0352/doc_00103530 [20:41:10]save last doc name /storage/0352/doc_00103530 to /storage/kkm_last_doc_name [20:41:10]save OK [20:41:10]Clear old archive folders... [20:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:10]tlvbuf is 01395000 [20:41:10]SAM_PROTO_ClearQueue [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 09 00 00 [20:41:10]Write to MH i2c: E2 08 00 1D 7C 80 09 00 00 00 00 00 00 0B [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 1D 7C 00 90 00 0D [20:41:10]RAPDU: 90 00 [20:41:10]wFMCommunicate OK [20:41:10]SAM_PROTO_ClearQueue done [20:41:10]KKMCreateOFDPacket [20:41:10]OFDProtocolAddRootSTLVToBuf [20:41:10]FM_MakeSignedData [20:41:10]FM_MakeSignedData [20:41:10]SAM_PROTO_SignData [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 0D 01 02 [20:41:10]Write to MH i2c: E2 08 00 1E 7C 80 0D 01 02 00 00 00 00 13 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 1E 7C 00 90 00 0E [20:41:10]RAPDU: 90 00 [20:41:10]wFMCommunicate OK [20:41:10]wFMCommunicate request_size=255 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 ED F0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 94 01 00 35 04 06 00 C0 [20:41:10]Write to MH i2c: E2 02 01 1F 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 ED F0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 94 01 00 35 04 06 00 C0 00 00 89 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]OFD Sender: No OFD packet to send [20:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 1F 7C 00 90 00 0F [20:41:10]RAPDU: 90 00 [20:41:10]wFMCommunicate OK [20:41:10]wFMCommunicate request_size=10 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 0D 02 02 05 D5 BB FC FF 8C [20:41:10]Write to MH i2c: E2 0D 00 20 7C 80 0D 02 02 05 00 D5 BB FC FF 8C 00 00 37 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 03 00 20 7C 00 90 00 10 [20:41:10]RAPDU: 90 00 [20:41:10]wFMCommunicate OK [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 0D 03 02 [20:41:10]Write to MH i2c: E2 08 00 21 7C 80 0D 03 02 00 00 00 00 18 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 0B 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 0B 00 21 7C 00 7F 32 61 67 F3 3E 5E 84 90 00 A5 [20:41:10]RAPDU: 7F 32 61 67 F3 3E 5E 84 90 00 [20:41:10]wFMCommunicate OK [20:41:10]SAM_PROTO_SignData done [20:41:10]FM_MakeSignedData done [20:41:10]CreateOFDProtocolMessage [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 11 00 00 [20:41:10]Write to MH i2c: E2 08 00 22 7C 80 11 00 00 00 00 00 00 18 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 17 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 17 00 22 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [20:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:10]wFMCommunicate OK [20:41:10]CreateOFDProtocolMessage done [20:41:10]OFDSenderStorePacket 103530 [20:41:10]StoreOFDPacket docnum=103530 [20:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 7B 07 01 09 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 ED F0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 94 01 00 35 04 06 00 C0 D5 BB FC FF 8C 7F 32 61 67 F3 3E 5E 84 [20:41:10]CheckFolder [20:41:10]dirname=/storage/ofd_packets [20:41:10]CheckFolder done [20:41:10]ProducePacketName [20:41:10]name=ofd_packets/00103530 [20:41:10]NVStorageSaveData ofd_packets/00103530 [20:41:10]File name is /storage/ofd_packets/00103530 [20:41:10]Write 301 bytes [20:41:10]NVStorageSaveData done [20:41:10]OFDSenderStorePacket done [20:41:10]KKMCreateOFDPacket done [20:41:10]NVStorageSaveData kkm_last_timestamp [20:41:10]File name is /storage/kkm_last_timestamp [20:41:10]Write 4 bytes [20:41:10]NVStorageSaveData done [20:41:10]ExternCall_PrintAddStr [20:41:10]wPrintStart [20:41:10]Write to MH i2c: 01 00 00 23 7C 9F [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 07 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 07 00 23 7C 00 00 00 00 00 FF 0F B4 [20:41:10]RasterBufferAndPrint [20:41:10]line Счет N : (1)672742 [20:41:10]line ИНН: 02508201610067 [20:41:10]line Контрольно-Кассовый Чек [20:41:10]line ПРОДАЖА [20:41:10]line ТРК (МРК, ГНК) : 42 [20:41:10]line Товар: 2710124130 [20:41:10]line Аи-92-К-5 [20:41:10]line 10.550 * 66.40 [20:41:10]line = 700.52 [20:41:10]line НДС 12% НСП 1% [20:41:10]line > о реализуемом товаре [20:41:10]line ОКРУГЛЕНИЕ: -0.52 [20:41:10]line ИТОГО: 700.00 [20:41:10]line Внесено: 700.00 [20:41:10]line СДАЧА: 0.00 [20:41:10]line НСП 1% : 6.20 [20:41:10]line НДС 12% : 74.39 [20:41:10]line Наличными: 700.00 [20:41:10]line Безнал.: 0.00 [20:41:10]line Место: АЗС № 120 "Партнер Нефть" [20:41:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:41:10]line СНО: Общий режим [20:41:10]line Чек 214 18.06.2024 20:41 [20:41:10]line Смена: 352 ФФД: 1.0 [20:41:10]line ЗНМ: 0300000164 [20:41:10]line РНМ: 0000000000092785 [20:41:10]line Версия ККМ: 001 [20:41:10]line ФМ: 0000000000875093 [20:41:10]line ФД: 103530 [20:41:10]line ФПД: 212024214486924 [20:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204117&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103530&fm=212024214486924&tin=02508201610067®Number=0000000000092785&sum=70000 [20:41:11]OFD Sender: Processing packet 103530 [packets to send 17, broken 16] [20:41:11]ProducePacketName [20:41:11]name=ofd_packets/00103530 [20:41:11]OFD Sender: To server: pG, [20:41:11]CommunicateWithHost lk.salyk.kg:30040 [20:41:11]ConnectInit lk.salyk.kg [20:41:11]written 0, free lines is 4095 [20:41:11]Connected sock=10 [20:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 7B 07 01 09 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 ED F0 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 94 01 00 35 04 06 00 C0 D5 BB FC FF 8C 7F 32 61 67 F3 3E 5E 84 [20:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D6 FE 47 00 1D 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 35 30 39 33 10 04 04 00 6A 94 01 00 F4 03 04 00 78 97 71 66 B6 04 01 00 00 10 89 E1 94 07 11 50 10 [20:41:11]CommunicateWithHost err = 0 [20:41:11]CheckOFDResponse [20:41:11]1017 (14) - 77093643461234 [20:41:11]1041 (16) - 0000000000875093 [20:41:11]1040 (4) - 103530 [20:41:11]1012 (4) - 18.06.2024 14:19 [20:41:11]1206 (1) - 0 [20:41:11]OFD Sender: Remove packet 103530 [20:41:11]ProducePacketName [20:41:11]name=ofd_packets/00103530 [20:41:11]NVStorageDeleteData [20:41:11]Write to MH i2c: 01 00 00 4E 7C CA [20:41:11]Write i2c OK [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: 01 [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: 01 07 00 [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: 01 07 00 4E 7C 00 00 00 00 00 D8 0C B5 [20:41:11]RasterBufferAndPrint [20:41:11]line [20:41:11]line [20:41:11]line [20:41:11]line [20:41:11]line [20:41:11]written 0, free lines is 3296 [20:41:11]MH_Cut [20:41:11]Write to MH i2c: D1 01 00 55 7C 01 A3 [20:41:11]Write i2c OK [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: D1 [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: D1 01 00 [20:41:11]MH_I2C_Read... [20:41:11]Read from MH i2c: D1 01 00 55 7C 00 A2 [20:41:11]Write to MH i2c: 01 00 00 56 7C D2 [20:41:11]Write i2c OK [20:41:11]MH_I2C_Read... [20:41:12]OFD Sender: No OFD packet to send [20:41:12]*** Cut start [20:41:12]*** Partial cut [20:41:12]*** CUTSNS_PIN = 1 [20:41:12]*** CUTSNS_PIN = 0 [20:41:12]*** Brake cut motor [20:41:12]Read from MH i2c: 01 [20:41:12]MH_I2C_Read... [20:41:12]*** Stop cut motor [20:41:12]*** Cut end [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 56 7C 00 00 00 00 00 FF 0F E7 [20:41:12]process_action close_receipt done [20:41:12]requested_data is exist [20:41:12]produce_requested_data [20:41:12]requested_item fm.sn is exist - process it [20:41:12]wFMCommunicate request_size=4 [20:41:12]MH_SAM_APDU [20:41:12]CAPDU: 80 11 00 00 [20:41:12]Write to MH i2c: E2 08 00 57 7C 80 11 00 00 00 00 00 00 4D [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:12]Read from MH i2c: E2 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: E2 17 00 [20:41:12]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 17 00 57 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [20:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:13]wFMCommunicate OK [20:41:13]requested_item fd.num is exist - process it [20:41:13]SAM_PROTO_GetFieldsCounters [20:41:13]wFMCommunicate request_size=4 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 13 00 00 [20:41:13]Write to MH i2c: E2 08 00 58 7C 80 13 00 00 00 00 00 00 50 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 62 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 62 00 58 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:13]wFMCommunicate OK [20:41:13]SAM_PROTO_GetFieldsCounters done [20:41:13]requested_item shift.num is exist - process it [20:41:13]requested_item shift.opened is exist - process it [20:41:13]req_shift_opened [20:41:13]FM_GetShiftState [20:41:13]SAM_PROTO_GetShiftState [20:41:13]wFMCommunicate request_size=4 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 13 01 00 [20:41:13]Write to MH i2c: E2 08 00 59 7C 80 13 01 00 00 00 00 00 52 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 0E 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 0E 00 59 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D3 [20:41:13]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:41:13]wFMCommunicate OK [20:41:13]SAM_PROTO_GetShiftState done [20:41:13]FM_GetShiftState done [20:41:13]req_shift_opened done [20:41:13]requested_item shift.open_date is exist - process it [20:41:13]req_shift_open_date [20:41:13]req_shift_open_date done [20:41:13]produce_requested_data done [20:41:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103530,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:41:13]process_action_free close_receipt [20:41:13]json_value_free [20:41:13]json_value_free done [20:41:13]process_json_proto returns [20:41:13]Send response to host [20:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103530,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:41:13]free response buf [20:41:13]execute_script done [20:41:13]execute_script returns [20:41:13]free content buf [20:41:13]Sock 7.Close socket [20:41:13]Sock 7.Thread stoped [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:51]accept exits with 9 [20:41:51]New connection [20:41:51]New thread 3067227492 created [20:41:51]Thread 3067084132 joined [20:41:51]Waiting for new connection... [20:41:51] Sock 9.Parse request [20:41:51]Sock 9.Check first char [20:41:51]Sock 9.First char is OK [20:41:51]request: POST /json_proto HTTP/1.0 [20:41:51]Method: POST [20:41:51]URL: /json_proto [20:41:51]Method is POST - this is cgi request [20:41:51]url: /json_proto [20:41:51]query_string will be loaded in cgi processing [20:41:51]execute_cgi json_proto POST (null) [20:41:51]execute_cgi path=json_proto method=POST [20:41:51]POST find Content-Length [20:41:51]Host: 172.17.38.133:8080 [20:41:51]Content-Length: 682 [20:41:51]Content-Type: application/json [20:41:51] [20:41:51]POST finish read [20:41:51]Found Content-Length = 682 [20:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:51]execute_script... [20:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:51]POST & json_proto [20:41:51]process_json_proto [20:41:51]json parsed OK: [20:41:51]protocol is kg_v1.0 [20:41:51]action value=close_receipt [20:41:51]process_action close_receipt [20:41:51]cmd_close_receipt [20:41:51]MH_GetDate [20:41:51]Write to MH i2c: F0 00 00 5A 7C C5 [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 09 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 09 00 5A 7C 00 18 F1 71 66 BD 8F 7C 64 DA [20:41:51]GetLastDocTimeStamp 1718743277 [20:41:51]current date 1718743320 [20:41:51]FM_GetShiftState [20:41:51]SAM_PROTO_GetShiftState [20:41:51]wFMCommunicate request_size=4 [20:41:51]MH_SAM_APDU [20:41:51]CAPDU: 80 13 01 00 [20:41:51]Write to MH i2c: E2 08 00 5B 7C 80 13 01 00 00 00 00 00 54 [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:51]Read from MH i2c: E2 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0E 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0E 00 5B 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D5 [20:41:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:41:51]wFMCommunicate OK [20:41:51]SAM_PROTO_GetShiftState done [20:41:51]FM_GetShiftState done [20:41:51]opened in 1718670284 [20:41:51]opened+sec_in_day 1718756684 [20:41:51]quantity*price = 100060 [20:41:51]sum+1 = 100062 [20:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 215 18.06.2024 20:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103531 ФПД: 224933510697758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204200&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103531&fm=224933510697758&tin=02508201610067®Number=0000000000092785&sum=100000 [20:41:52]StoreToDocumentArchive [20:41:52]shift 352 fd 103531 [20:41:52]save to /storage/0352/doc_00103531 [20:41:52]save last doc name /storage/0352/doc_00103531 to /storage/kkm_last_doc_name [20:41:52]save OK [20:41:52]Clear old archive folders... [20:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:52]tlvbuf is 013A2190 [20:41:52]SAM_PROTO_ClearQueue [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 09 00 00 [20:41:52]Write to MH i2c: E2 08 00 68 7C 80 09 00 00 00 00 00 00 56 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 68 7C 00 90 00 58 [20:41:52]RAPDU: 90 00 [20:41:52]wFMCommunicate OK [20:41:52]SAM_PROTO_ClearQueue done [20:41:52]KKMCreateOFDPacket [20:41:52]OFDProtocolAddRootSTLVToBuf [20:41:52]FM_MakeSignedData [20:41:52]FM_MakeSignedData [20:41:52]SAM_PROTO_SignData [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 0D 01 02 [20:41:52]Write to MH i2c: E2 08 00 69 7C 80 0D 01 02 00 00 00 00 5E [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 69 7C 00 90 00 59 [20:41:53]RAPDU: 90 00 [20:41:53]wFMCommunicate OK [20:41:53]wFMCommunicate request_size=255 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 18 F1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 94 01 00 35 04 06 00 CC [20:41:53]Write to MH i2c: E2 02 01 6A 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 18 F1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 94 01 00 35 04 06 00 CC 00 00 3D [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 6A 7C 00 90 00 5A [20:41:53]RAPDU: 90 00 [20:41:53]wFMCommunicate OK [20:41:53]wFMCommunicate request_size=10 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 0D 02 02 05 93 6A 00 D3 1E [20:41:53]Write to MH i2c: E2 0D 00 6B 7C 80 0D 02 02 05 00 93 6A 00 D3 1E 00 00 59 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 03 00 6B 7C 00 90 00 5B [20:41:53]RAPDU: 90 00 [20:41:53]wFMCommunicate OK [20:41:53]wFMCommunicate request_size=4 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 0D 03 02 [20:41:53]Write to MH i2c: E2 08 00 6C 7C 80 0D 03 02 00 00 00 00 63 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 0B 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 0B 00 6C 7C 00 8E B0 74 E0 4D 1B 31 04 90 00 93 [20:41:53]RAPDU: 8E B0 74 E0 4D 1B 31 04 90 00 [20:41:53]wFMCommunicate OK [20:41:53]SAM_PROTO_SignData done [20:41:53]FM_MakeSignedData done [20:41:53]CreateOFDProtocolMessage [20:41:53]wFMCommunicate request_size=4 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 11 00 00 [20:41:53]Write to MH i2c: E2 08 00 6D 7C 80 11 00 00 00 00 00 00 63 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 17 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 17 00 6D 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [20:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:53]wFMCommunicate OK [20:41:53]CreateOFDProtocolMessage done [20:41:53]OFDSenderStorePacket 103531 [20:41:53]StoreOFDPacket docnum=103531 [20:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 04 07 01 E8 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 18 F1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 94 01 00 35 04 06 00 CC 93 6A 00 D3 1E 8E B0 74 E0 4D 1B 31 04 [20:41:53]CheckFolder [20:41:53]dirname=/storage/ofd_packets [20:41:53]CheckFolder done [20:41:53]ProducePacketName [20:41:53]name=ofd_packets/00103531 [20:41:53]NVStorageSaveData ofd_packets/00103531 [20:41:53]File name is /storage/ofd_packets/00103531 [20:41:53]Write 301 bytes [20:41:53]NVStorageSaveData done [20:41:53]OFDSenderStorePacket done [20:41:53]KKMCreateOFDPacket done [20:41:53]NVStorageSaveData kkm_last_timestamp [20:41:53]File name is /storage/kkm_last_timestamp [20:41:53]Write 4 bytes [20:41:53]NVStorageSaveData done [20:41:53]ExternCall_PrintAddStr [20:41:53]wPrintStart [20:41:53]Write to MH i2c: 01 00 00 6E 7C EA [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 07 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 07 00 6E 7C 00 00 00 00 00 FF 0F FF [20:41:53]RasterBufferAndPrint [20:41:53]line Счет N : (1)672743 [20:41:53]line ИНН: 02508201610067 [20:41:53]line Контрольно-Кассовый Чек [20:41:53]line ПРОДАЖА [20:41:53]line ТРК (МРК, ГНК) : 31 [20:41:53]line Товар: 2710124500 [20:41:53]line Аи-95-К-5 [20:41:53]line 13.540 * 73.90 [20:41:53]line = 1000.61 [20:41:53]line НДС 12% НСП 1% [20:41:53]line > о реализуемом товаре [20:41:53]line ОКРУГЛЕНИЕ: -0.61 [20:41:53]line ИТОГО: 1000.00 [20:41:53]line Внесено: 1000.00 [20:41:53]line СДАЧА: 0.00 [20:41:53]line НСП 1% : 8.85 [20:41:53]line НДС 12% : 106.26 [20:41:53]line Наличными: 1000.00 [20:41:53]line Безнал.: 0.00 [20:41:53]line Место: АЗС № 120 "Партнер Нефть" [20:41:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:41:53]line СНО: Общий режим [20:41:53]line Чек 215 18.06.2024 20:42 [20:41:53]line Смена: 352 ФФД: 1.0 [20:41:53]line ЗНМ: 0300000164 [20:41:53]line РНМ: 0000000000092785 [20:41:53]line Версия ККМ: 001 [20:41:53]line ФМ: 0000000000875093 [20:41:53]line ФД: 103531 [20:41:53]line ФПД: 224933510697758 [20:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204200&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103531&fm=224933510697758&tin=02508201610067®Number=0000000000092785&sum=100000 [20:41:53]OFD Sender: Processing packet 103531 [packets to send 17, broken 16] [20:41:53]ProducePacketName [20:41:53]name=ofd_packets/00103531 [20:41:53]OFD Sender: To server: pG, [20:41:53]CommunicateWithHost lk.salyk.kg:30040 [20:41:53]ConnectInit lk.salyk.kg [20:41:53]written 0, free lines is 4095 [20:41:53]Connected sock=10 [20:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 04 07 01 E8 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 18 F1 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 94 01 00 35 04 06 00 CC 93 6A 00 D3 1E 8E B0 74 E0 4D 1B 31 04 [20:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 68 1F 47 00 D1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 94 01 00 F4 03 04 00 A3 97 71 66 B6 04 01 00 00 E8 D1 E3 BC 9E 80 CB F9 [20:41:54]CommunicateWithHost err = 0 [20:41:54]CheckOFDResponse [20:41:54]1017 (14) - 77093643461234 [20:41:54]1041 (16) - 0000000000875093 [20:41:54]1040 (4) - 103531 [20:41:54]1012 (4) - 18.06.2024 14:20 [20:41:54]1206 (1) - 0 [20:41:54]OFD Sender: Remove packet 103531 [20:41:54]ProducePacketName [20:41:54]name=ofd_packets/00103531 [20:41:54]NVStorageDeleteData [20:41:54]Write to MH i2c: 01 00 00 99 7C 15 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 07 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 07 00 99 7C 00 00 00 00 00 D8 0C 00 [20:41:54]RasterBufferAndPrint [20:41:54]line [20:41:54]line [20:41:54]line [20:41:54]line [20:41:54]line [20:41:54]written 0, free lines is 3296 [20:41:54]MH_Cut [20:41:54]Write to MH i2c: D1 01 00 A0 7C 01 EE [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: D1 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: D1 01 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: D1 01 00 A0 7C 00 ED [20:41:54]Write to MH i2c: 01 00 00 A1 7C 1D [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]OFD Sender: No OFD packet to send [20:41:54]*** Cut start [20:41:54]*** Partial cut [20:41:54]*** CUTSNS_PIN = 1 [20:41:55]*** CUTSNS_PIN = 0 [20:41:55]*** Brake cut motor [20:41:55]Read from MH i2c: 01 [20:41:55]MH_I2C_Read... [20:41:55]*** Stop cut motor [20:41:55]*** Cut end [20:41:55]Read from MH i2c: 01 07 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: 01 07 00 A1 7C 00 00 00 00 00 FF 0F 32 [20:41:55]process_action close_receipt done [20:41:55]requested_data is exist [20:41:55]produce_requested_data [20:41:55]requested_item fm.sn is exist - process it [20:41:55]wFMCommunicate request_size=4 [20:41:55]MH_SAM_APDU [20:41:55]CAPDU: 80 11 00 00 [20:41:55]Write to MH i2c: E2 08 00 A2 7C 80 11 00 00 00 00 00 00 98 [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 17 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 17 00 A2 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EB [20:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:55]wFMCommunicate OK [20:41:55]requested_item fd.num is exist - process it [20:41:55]SAM_PROTO_GetFieldsCounters [20:41:55]wFMCommunicate request_size=4 [20:41:55]MH_SAM_APDU [20:41:55]CAPDU: 80 13 00 00 [20:41:55]Write to MH i2c: E2 08 00 A3 7C 80 13 00 00 00 00 00 00 9B [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 62 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 62 00 A3 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [20:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:55]wFMCommunicate OK [20:41:55]SAM_PROTO_GetFieldsCounters done [20:41:55]requested_item shift.num is exist - process it [20:41:55]requested_item shift.opened is exist - process it [20:41:55]req_shift_opened [20:41:55]FM_GetShiftState [20:41:55]SAM_PROTO_GetShiftState [20:41:55]wFMCommunicate request_size=4 [20:41:55]MH_SAM_APDU [20:41:55]CAPDU: 80 13 01 00 [20:41:55]Write to MH i2c: E2 08 00 A4 7C 80 13 01 00 00 00 00 00 9D [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 0E 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 0E 00 A4 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 1E [20:41:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:41:55]wFMCommunicate OK [20:41:55]SAM_PROTO_GetShiftState done [20:41:55]FM_GetShiftState done [20:41:55]req_shift_opened done [20:41:55]requested_item shift.open_date is exist - process it [20:41:55]req_shift_open_date [20:41:55]req_shift_open_date done [20:41:55]produce_requested_data done [20:41:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103531,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:41:55]process_action_free close_receipt [20:41:55]json_value_free [20:41:55]json_value_free done [20:41:55]process_json_proto returns [20:41:55]Send response to host [20:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103531,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:41:55]free response buf [20:41:55]execute_script done [20:41:55]execute_script returns [20:41:55]free content buf [20:41:55]Sock 9.Close socket [20:41:55]Sock 9.Thread stoped [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:21]accept exits with 7 [20:47:21]New connection [20:47:21]New thread 3067084132 created [20:47:21]Thread 3067227492 joined [20:47:21]Waiting for new connection... [20:47:21] Sock 7.Parse request [20:47:21]Sock 7.Check first char [20:47:21]Sock 7.First char is OK [20:47:21]request: POST /json_proto HTTP/1.0 [20:47:21]Method: POST [20:47:21]URL: /json_proto [20:47:21]Method is POST - this is cgi request [20:47:21]url: /json_proto [20:47:21]query_string will be loaded in cgi processing [20:47:21]execute_cgi json_proto POST (null) [20:47:21]execute_cgi path=json_proto method=POST [20:47:21]POST find Content-Length [20:47:21]Host: 172.17.38.133:8080 [20:47:21]Content-Length: 678 [20:47:21]Content-Type: application/json [20:47:21] [20:47:21]POST finish read [20:47:21]Found Content-Length = 678 [20:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:21]execute_script... [20:47:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:21]POST & json_proto [20:47:21]process_json_proto [20:47:21]json parsed OK: [20:47:21]protocol is kg_v1.0 [20:47:21]action value=close_receipt [20:47:21]process_action close_receipt [20:47:21]cmd_close_receipt [20:47:21]MH_GetDate [20:47:21]Write to MH i2c: F0 00 00 A5 7C 10 [20:47:21]Write i2c OK [20:47:21]MH_I2C_Read... [20:47:21]Read from MH i2c: F0 [20:47:21]MH_I2C_Read... [20:47:21]Read from MH i2c: F0 09 00 [20:47:21]MH_I2C_Read... [20:47:21]Read from MH i2c: F0 09 00 A5 7C 00 61 F2 71 66 BD 8F 7C 64 6F [20:47:21]GetLastDocTimeStamp 1718743320 [20:47:21]current date 1718743649 [20:47:21]FM_GetShiftState [20:47:21]SAM_PROTO_GetShiftState [20:47:21]wFMCommunicate request_size=4 [20:47:21]MH_SAM_APDU [20:47:21]CAPDU: 80 13 01 00 [20:47:21]Write to MH i2c: E2 08 00 A6 7C 80 13 01 00 00 00 00 00 9F [20:47:21]Write i2c OK [20:47:21]MH_I2C_Read... [20:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:21]Read from MH i2c: E2 [20:47:21]MH_I2C_Read... [20:47:21]Read from MH i2c: E2 0E 00 [20:47:21]MH_I2C_Read... [20:47:21]Read from MH i2c: E2 0E 00 A6 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 20 [20:47:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:47:21]wFMCommunicate OK [20:47:21]SAM_PROTO_GetShiftState done [20:47:21]FM_GetShiftState done [20:47:21]opened in 1718670284 [20:47:21]opened+sec_in_day 1718756684 [20:47:21]quantity*price = 70052 [20:47:21]sum+1 = 70053 [20:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 216 18.06.2024 20:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103532 ФПД: 96280775313557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204729&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103532&fm=96280775313557&tin=02508201610067®Number=0000000000092785&sum=70000 [20:47:22]StoreToDocumentArchive [20:47:22]shift 352 fd 103532 [20:47:22]save to /storage/0352/doc_00103532 [20:47:22]save last doc name /storage/0352/doc_00103532 to /storage/kkm_last_doc_name [20:47:22]save OK [20:47:22]Clear old archive folders... [20:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:22]tlvbuf is 014F3D30 [20:47:22]SAM_PROTO_ClearQueue [20:47:22]wFMCommunicate request_size=4 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 09 00 00 [20:47:22]Write to MH i2c: E2 08 00 B3 7C 80 09 00 00 00 00 00 00 A1 [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 B3 7C 00 90 00 A3 [20:47:22]RAPDU: 90 00 [20:47:22]wFMCommunicate OK [20:47:22]SAM_PROTO_ClearQueue done [20:47:22]KKMCreateOFDPacket [20:47:22]OFDProtocolAddRootSTLVToBuf [20:47:22]FM_MakeSignedData [20:47:22]FM_MakeSignedData [20:47:22]SAM_PROTO_SignData [20:47:22]wFMCommunicate request_size=4 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 0D 01 02 [20:47:22]Write to MH i2c: E2 08 00 B4 7C 80 0D 01 02 00 00 00 00 A9 [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 B4 7C 00 90 00 A4 [20:47:22]RAPDU: 90 00 [20:47:22]wFMCommunicate OK [20:47:22]wFMCommunicate request_size=255 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 61 F2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 94 01 00 35 04 06 00 57 [20:47:22]Write to MH i2c: E2 02 01 B5 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 61 F2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 94 01 00 35 04 06 00 57 00 00 30 [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 B5 7C 00 90 00 A5 [20:47:22]RAPDU: 90 00 [20:47:22]wFMCommunicate OK [20:47:22]wFMCommunicate request_size=10 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 0D 02 02 05 91 1D 69 48 95 [20:47:22]Write to MH i2c: E2 0D 00 B6 7C 80 0D 02 02 05 00 91 1D 69 48 95 00 00 AA [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 03 00 B6 7C 00 90 00 A6 [20:47:22]RAPDU: 90 00 [20:47:22]wFMCommunicate OK [20:47:22]wFMCommunicate request_size=4 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 0D 03 02 [20:47:22]Write to MH i2c: E2 08 00 B7 7C 80 0D 03 02 00 00 00 00 AE [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 0B 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 0B 00 B7 7C 00 FD 6E 22 04 4D 01 B8 C3 90 00 09 [20:47:22]RAPDU: FD 6E 22 04 4D 01 B8 C3 90 00 [20:47:22]wFMCommunicate OK [20:47:22]SAM_PROTO_SignData done [20:47:22]FM_MakeSignedData done [20:47:22]CreateOFDProtocolMessage [20:47:22]wFMCommunicate request_size=4 [20:47:22]MH_SAM_APDU [20:47:22]CAPDU: 80 11 00 00 [20:47:22]Write to MH i2c: E2 08 00 B8 7C 80 11 00 00 00 00 00 00 AE [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:22]Read from MH i2c: E2 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 17 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: E2 17 00 B8 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 01 [20:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:47:22]wFMCommunicate OK [20:47:22]CreateOFDProtocolMessage done [20:47:22]OFDSenderStorePacket 103532 [20:47:22]StoreOFDPacket docnum=103532 [20:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BE 09 07 01 B9 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 61 F2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 94 01 00 35 04 06 00 57 91 1D 69 48 95 FD 6E 22 04 4D 01 B8 C3 [20:47:22]CheckFolder [20:47:22]dirname=/storage/ofd_packets [20:47:22]CheckFolder done [20:47:22]ProducePacketName [20:47:22]name=ofd_packets/00103532 [20:47:22]NVStorageSaveData ofd_packets/00103532 [20:47:22]File name is /storage/ofd_packets/00103532 [20:47:22]Write 301 bytes [20:47:22]NVStorageSaveData done [20:47:22]OFDSenderStorePacket done [20:47:22]KKMCreateOFDPacket done [20:47:22]NVStorageSaveData kkm_last_timestamp [20:47:22]File name is /storage/kkm_last_timestamp [20:47:22]Write 4 bytes [20:47:22]NVStorageSaveData done [20:47:22]ExternCall_PrintAddStr [20:47:22]wPrintStart [20:47:22]Write to MH i2c: 01 00 00 B9 7C 35 [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 B9 7C 00 00 00 00 00 FF 0F 4A [20:47:22]RasterBufferAndPrint [20:47:22]line Счет N : (1)672744 [20:47:22]line ИНН: 02508201610067 [20:47:22]line Контрольно-Кассовый Чек [20:47:22]line ПРОДАЖА [20:47:22]line ТРК (МРК, ГНК) : 42 [20:47:22]line Товар: 2710124130 [20:47:22]line Аи-92-К-5 [20:47:22]line 10.550 * 66.40 [20:47:22]line = 700.52 [20:47:22]line НДС 12% НСП 1% [20:47:22]line > о реализуемом товаре [20:47:22]line ОКРУГЛЕНИЕ: -0.52 [20:47:22]line ИТОГО: 700.00 [20:47:22]line Внесено: 700.00 [20:47:22]line СДАЧА: 0.00 [20:47:22]line НСП 1% : 6.20 [20:47:22]line НДС 12% : 74.39 [20:47:22]line Наличными: 700.00 [20:47:22]line Безнал.: 0.00 [20:47:22]line Место: АЗС № 120 "Партнер Нефть" [20:47:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:47:22]line СНО: Общий режим [20:47:22]line Чек 216 18.06.2024 20:47 [20:47:22]line Смена: 352 ФФД: 1.0 [20:47:22]line ЗНМ: 0300000164 [20:47:22]line РНМ: 0000000000092785 [20:47:22]line Версия ККМ: 001 [20:47:22]line ФМ: 0000000000875093 [20:47:22]line ФД: 103532 [20:47:22]line ФПД: 96280775313557 [20:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204729&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103532&fm=96280775313557&tin=02508201610067®Number=0000000000092785&sum=70000 [20:47:23]written 0, free lines is 4095 [20:47:23]OFD Sender: Processing packet 103532 [packets to send 17, broken 16] [20:47:23]ProducePacketName [20:47:23]name=ofd_packets/00103532 [20:47:23]OFD Sender: To server: pG, [20:47:23]CommunicateWithHost lk.salyk.kg:30040 [20:47:23]ConnectInit lk.salyk.kg [20:47:23]Connected sock=10 [20:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BE 09 07 01 B9 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 61 F2 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 94 01 00 35 04 06 00 57 91 1D 69 48 95 FD 6E 22 04 4D 01 B8 C3 [20:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 15 3B 47 00 6E 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 35 30 39 33 10 04 04 00 6C 94 01 00 F4 03 04 00 EC 98 71 66 B6 04 01 00 00 20 FD 69 6C 13 8B 96 B5 [20:47:23]CommunicateWithHost err = 0 [20:47:23]CheckOFDResponse [20:47:23]1017 (14) - 77093643461234 [20:47:23]1041 (16) - 0000000000875093 [20:47:23]1040 (4) - 103532 [20:47:23]1012 (4) - 18.06.2024 14:25 [20:47:23]1206 (1) - 0 [20:47:23]OFD Sender: Remove packet 103532 [20:47:23]ProducePacketName [20:47:23]name=ofd_packets/00103532 [20:47:23]NVStorageDeleteData [20:47:23]Write to MH i2c: 01 00 00 E4 7C 60 [20:47:23]Write i2c OK [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: 01 [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: 01 07 00 [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: 01 07 00 E4 7C 00 00 00 00 00 D4 0C 47 [20:47:23]RasterBufferAndPrint [20:47:23]line [20:47:23]line [20:47:23]line [20:47:23]line [20:47:23]line [20:47:23]written 0, free lines is 3292 [20:47:23]MH_Cut [20:47:23]Write to MH i2c: D1 01 00 EB 7C 01 39 [20:47:23]Write i2c OK [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: D1 [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: D1 01 00 [20:47:23]MH_I2C_Read... [20:47:23]Read from MH i2c: D1 01 00 EB 7C 00 38 [20:47:23]Write to MH i2c: 01 00 00 EC 7C 68 [20:47:23]Write i2c OK [20:47:23]MH_I2C_Read... [20:47:23]OFD Sender: No OFD packet to send [20:47:24]*** Cut start [20:47:24]*** Partial cut [20:47:24]*** CUTSNS_PIN = 1 [20:47:24]*** CUTSNS_PIN = 0 [20:47:24]*** Brake cut motor [20:47:24]Read from MH i2c: 01 [20:47:24]MH_I2C_Read... [20:47:24]*** Stop cut motor [20:47:24]*** Cut end [20:47:24]Read from MH i2c: 01 07 00 [20:47:24]MH_I2C_Read... [20:47:24]Read from MH i2c: 01 07 00 EC 7C 00 00 00 00 00 FF 0F 7D [20:47:24]process_action close_receipt done [20:47:24]requested_data is exist [20:47:24]produce_requested_data [20:47:24]requested_item fm.sn is exist - process it [20:47:24]wFMCommunicate request_size=4 [20:47:24]MH_SAM_APDU [20:47:24]CAPDU: 80 11 00 00 [20:47:24]Write to MH i2c: E2 08 00 ED 7C 80 11 00 00 00 00 00 00 E3 [20:47:24]Write i2c OK [20:47:24]MH_I2C_Read... [20:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:24]Read from MH i2c: E2 [20:47:24]MH_I2C_Read... [20:47:24]Read from MH i2c: E2 17 00 [20:47:24]MH_I2C_Read... [20:47:24]Read from MH i2c: E2 17 00 ED 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [20:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:47:24]wFMCommunicate OK [20:47:24]requested_item fd.num is exist - process it [20:47:24]SAM_PROTO_GetFieldsCounters [20:47:24]wFMCommunicate request_size=4 [20:47:24]MH_SAM_APDU [20:47:24]CAPDU: 80 13 00 00 [20:47:24]Write to MH i2c: E2 08 00 EE 7C 80 13 00 00 00 00 00 00 E6 [20:47:24]Write i2c OK [20:47:24]MH_I2C_Read... [20:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:25]Read from MH i2c: E2 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 62 00 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 62 00 EE 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [20:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:25]wFMCommunicate OK [20:47:25]SAM_PROTO_GetFieldsCounters done [20:47:25]requested_item shift.num is exist - process it [20:47:25]requested_item shift.opened is exist - process it [20:47:25]req_shift_opened [20:47:25]FM_GetShiftState [20:47:25]SAM_PROTO_GetShiftState [20:47:25]wFMCommunicate request_size=4 [20:47:25]MH_SAM_APDU [20:47:25]CAPDU: 80 13 01 00 [20:47:25]Write to MH i2c: E2 08 00 EF 7C 80 13 01 00 00 00 00 00 E8 [20:47:25]Write i2c OK [20:47:25]MH_I2C_Read... [20:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:25]Read from MH i2c: E2 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 0E 00 [20:47:25]MH_I2C_Read... [20:47:25]Read from MH i2c: E2 0E 00 EF 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 69 [20:47:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:47:25]wFMCommunicate OK [20:47:25]SAM_PROTO_GetShiftState done [20:47:25]FM_GetShiftState done [20:47:25]req_shift_opened done [20:47:25]requested_item shift.open_date is exist - process it [20:47:25]req_shift_open_date [20:47:25]req_shift_open_date done [20:47:25]produce_requested_data done [20:47:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103532,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:47:25]process_action_free close_receipt [20:47:25]json_value_free [20:47:25]json_value_free done [20:47:25]process_json_proto returns [20:47:25]Send response to host [20:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103532,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:47:25]free response buf [20:47:25]execute_script done [20:47:25]execute_script returns [20:47:25]free content buf [20:47:25]Sock 7.Close socket [20:47:25]Sock 7.Thread stoped [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:43]accept exits with 9 [20:52:43]New connection [20:52:43]New thread 3067227492 created [20:52:43]Thread 3067084132 joined [20:52:43]Waiting for new connection... [20:52:43] Sock 9.Parse request [20:52:43]Sock 9.Check first char [20:52:43]Sock 9.First char is OK [20:52:43]request: POST /json_proto HTTP/1.0 [20:52:43]Method: POST [20:52:43]URL: /json_proto [20:52:43]Method is POST - this is cgi request [20:52:43]url: /json_proto [20:52:43]query_string will be loaded in cgi processing [20:52:43]execute_cgi json_proto POST (null) [20:52:43]execute_cgi path=json_proto method=POST [20:52:43]POST find Content-Length [20:52:43]Host: 172.17.38.133:8080 [20:52:43]Content-Length: 682 [20:52:43]Content-Type: application/json [20:52:43] [20:52:43]POST finish read [20:52:43]Found Content-Length = 682 [20:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:43]execute_script... [20:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:43]POST & json_proto [20:52:43]process_json_proto [20:52:43]json parsed OK: [20:52:43]protocol is kg_v1.0 [20:52:43]action value=close_receipt [20:52:43]process_action close_receipt [20:52:43]cmd_close_receipt [20:52:43]MH_GetDate [20:52:43]Write to MH i2c: F0 00 00 F0 7C 5B [20:52:43]Write i2c OK [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: F0 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: F0 09 00 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: F0 09 00 F0 7C 00 A4 F3 71 66 BD 8F 7C 64 FE [20:52:43]GetLastDocTimeStamp 1718743649 [20:52:43]current date 1718743972 [20:52:43]FM_GetShiftState [20:52:43]SAM_PROTO_GetShiftState [20:52:43]wFMCommunicate request_size=4 [20:52:43]MH_SAM_APDU [20:52:43]CAPDU: 80 13 01 00 [20:52:43]Write to MH i2c: E2 08 00 F1 7C 80 13 01 00 00 00 00 00 EA [20:52:43]Write i2c OK [20:52:43]MH_I2C_Read... [20:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:43]Read from MH i2c: E2 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: E2 0E 00 [20:52:43]MH_I2C_Read... [20:52:43]Read from MH i2c: E2 0E 00 F1 7C 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 6B [20:52:43]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:52:43]wFMCommunicate OK [20:52:43]SAM_PROTO_GetShiftState done [20:52:43]FM_GetShiftState done [20:52:43]opened in 1718670284 [20:52:43]opened+sec_in_day 1718756684 [20:52:43]quantity*price = 30034 [20:52:43]sum+1 = 30036 [20:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 217 18.06.2024 20:52 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103533 ФПД: 266081133769753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205252&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103533&fm=266081133769753&tin=02508201610067®Number=0000000000092785&sum=30000 [20:52:44]StoreToDocumentArchive [20:52:44]shift 352 fd 103533 [20:52:44]save to /storage/0352/doc_00103533 [20:52:44]save last doc name /storage/0352/doc_00103533 to /storage/kkm_last_doc_name [20:52:44]save OK [20:52:44]Clear old archive folders... [20:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:52:44]tlvbuf is B6F9BC60 [20:52:44]SAM_PROTO_ClearQueue [20:52:44]wFMCommunicate request_size=4 [20:52:44]MH_SAM_APDU [20:52:44]CAPDU: 80 09 00 00 [20:52:44]Write to MH i2c: E2 08 00 FE 7C 80 09 00 00 00 00 00 00 EC [20:52:44]Write i2c OK [20:52:44]MH_I2C_Read... [20:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:44]Read from MH i2c: E2 [20:52:44]MH_I2C_Read... [20:52:44]Read from MH i2c: E2 03 00 [20:52:44]MH_I2C_Read... [20:52:44]Read from MH i2c: E2 03 00 FE 7C 00 90 00 EE [20:52:44]RAPDU: 90 00 [20:52:44]wFMCommunicate OK [20:52:44]SAM_PROTO_ClearQueue done [20:52:44]KKMCreateOFDPacket [20:52:44]OFDProtocolAddRootSTLVToBuf [20:52:44]FM_MakeSignedData [20:52:44]FM_MakeSignedData [20:52:44]SAM_PROTO_SignData [20:52:44]wFMCommunicate request_size=4 [20:52:44]MH_SAM_APDU [20:52:44]CAPDU: 80 0D 01 02 [20:52:44]Write to MH i2c: E2 08 00 FF 7C 80 0D 01 02 00 00 00 00 F4 [20:52:44]Write i2c OK [20:52:44]MH_I2C_Read... [20:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:44]Read from MH i2c: E2 [20:52:44]MH_I2C_Read... [20:52:44]Read from MH i2c: E2 03 00 [20:52:44]MH_I2C_Read... [20:52:44]Read from MH i2c: E2 03 00 FF 7C 00 90 00 EF [20:52:44]RAPDU: 90 00 [20:52:44]wFMCommunicate OK [20:52:44]wFMCommunicate request_size=255 [20:52:44]MH_SAM_APDU [20:52:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D9 00 00 00 F4 03 04 00 A4 F3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 94 01 00 35 04 06 00 [20:52:44]Write to MH i2c: E2 02 01 00 7D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D9 00 00 00 F4 03 04 00 A4 F3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 94 01 00 35 04 06 00 00 00 47 [20:52:44]Write i2c OK [20:52:44]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 03 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 03 00 00 7D 00 90 00 F1 [20:52:45]RAPDU: 90 00 [20:52:45]wFMCommunicate OK [20:52:45]wFMCommunicate request_size=11 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 0D 02 02 06 F1 FF D7 75 B4 19 [20:52:45]Write to MH i2c: E2 0E 00 01 7D 80 0D 02 02 06 00 F1 FF D7 75 B4 19 00 00 0D [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 03 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 03 00 01 7D 00 90 00 F2 [20:52:45]RAPDU: 90 00 [20:52:45]wFMCommunicate OK [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 0D 03 02 [20:52:45]Write to MH i2c: E2 08 00 02 7D 80 0D 03 02 00 00 00 00 FA [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0B 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0B 00 02 7D 00 E3 85 00 61 7C DA 5D 08 90 00 7F [20:52:45]RAPDU: E3 85 00 61 7C DA 5D 08 90 00 [20:52:45]wFMCommunicate OK [20:52:45]SAM_PROTO_SignData done [20:52:45]FM_MakeSignedData done [20:52:45]CreateOFDProtocolMessage [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 11 00 00 [20:52:45]Write to MH i2c: E2 08 00 03 7D 80 11 00 00 00 00 00 00 FA [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 17 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 17 00 03 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [20:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:52:45]wFMCommunicate OK [20:52:45]CreateOFDProtocolMessage done [20:52:45]OFDSenderStorePacket 103533 [20:52:45]StoreOFDPacket docnum=103533 [20:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 92 17 08 01 64 E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D9 00 00 00 F4 03 04 00 A4 F3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 94 01 00 35 04 06 00 F1 FF D7 75 B4 19 E3 85 00 61 7C DA 5D 08 [20:52:45]CheckFolder [20:52:45]dirname=/storage/ofd_packets [20:52:45]CheckFolder done [20:52:45]ProducePacketName [20:52:45]name=ofd_packets/00103533 [20:52:45]NVStorageSaveData ofd_packets/00103533 [20:52:45]File name is /storage/ofd_packets/00103533 [20:52:45]Write 302 bytes [20:52:45]NVStorageSaveData done [20:52:45]OFDSenderStorePacket done [20:52:45]KKMCreateOFDPacket done [20:52:45]NVStorageSaveData kkm_last_timestamp [20:52:45]File name is /storage/kkm_last_timestamp [20:52:45]Write 4 bytes [20:52:45]NVStorageSaveData done [20:52:45]ExternCall_PrintAddStr [20:52:45]wPrintStart [20:52:45]Write to MH i2c: 01 00 00 04 7D 81 [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: 01 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: 01 07 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: 01 07 00 04 7D 00 00 00 00 00 FF 0F 96 [20:52:45]RasterBufferAndPrint [20:52:45]line Счет N : (1)672745 [20:52:45]line ИНН: 02508201610067 [20:52:45]line Контрольно-Кассовый Чек [20:52:45]line ПРОДАЖА [20:52:45]line ТРК (МРК, ГНК) : 21 [20:52:45]line Товар: 2710194210 [20:52:45]line ДТ(л)-К-5 [20:52:45]line 4.120 * 72.90 [20:52:45]line = 300.35 [20:52:45]line НДС 12% НСП 1% [20:52:45]line > о реализуемом товаре [20:52:45]line ОКРУГЛЕНИЕ: -0.35 [20:52:45]line ИТОГО: 300.00 [20:52:45]line Внесено: 300.00 [20:52:45]line СДАЧА: 0.00 [20:52:45]line НСП 1% : 2.66 [20:52:45]line НДС 12% : 31.90 [20:52:45]line Наличными: 300.00 [20:52:45]line Безнал.: 0.00 [20:52:45]line Место: АЗС № 120 "Партнер Нефть" [20:52:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:52:45]line СНО: Общий режим [20:52:45]line Чек 217 18.06.2024 20:52 [20:52:45]line Смена: 352 ФФД: 1.0 [20:52:45]line ЗНМ: 0300000164 [20:52:45]line РНМ: 0000000000092785 [20:52:45]line Версия ККМ: 001 [20:52:45]line ФМ: 0000000000875093 [20:52:45]line ФД: 103533 [20:52:45]line ФПД: 266081133769753 [20:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205252&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103533&fm=266081133769753&tin=02508201610067®Number=0000000000092785&sum=30000 [20:52:45]OFD Sender: Processing packet 103533 [packets to send 17, broken 16] [20:52:45]ProducePacketName [20:52:45]name=ofd_packets/00103533 [20:52:45]OFD Sender: To server: pG, [20:52:45]CommunicateWithHost lk.salyk.kg:30040 [20:52:45]ConnectInit lk.salyk.kg [20:52:45]written 0, free lines is 4095 [20:52:45]Connected sock=10 [20:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 92 17 08 01 64 E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D9 00 00 00 F4 03 04 00 A4 F3 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 94 01 00 35 04 06 00 F1 FF D7 75 B4 19 E3 85 00 61 7C DA 5D 08 [20:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3D F8 47 00 DB 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 94 01 00 F4 03 04 00 2F 9A 71 66 B6 04 01 00 00 F7 C2 7E 44 78 C1 A0 0B [20:52:45]CommunicateWithHost err = 0 [20:52:45]CheckOFDResponse [20:52:45]1017 (14) - 77093643461234 [20:52:45]1041 (16) - 0000000000875093 [20:52:45]1040 (4) - 103533 [20:52:45]1012 (4) - 18.06.2024 14:31 [20:52:45]1206 (1) - 0 [20:52:45]OFD Sender: Remove packet 103533 [20:52:45]ProducePacketName [20:52:45]name=ofd_packets/00103533 [20:52:45]NVStorageDeleteData [20:52:46]Write to MH i2c: 01 00 00 2F 7D AC [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: 01 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: 01 07 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: 01 07 00 2F 7D 00 00 00 00 00 D4 0C 93 [20:52:46]RasterBufferAndPrint [20:52:46]line [20:52:46]line [20:52:46]line [20:52:46]line [20:52:46]line [20:52:46]written 0, free lines is 3292 [20:52:46]MH_Cut [20:52:46]Write to MH i2c: D1 01 00 36 7D 01 85 [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: D1 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: D1 01 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: D1 01 00 36 7D 00 84 [20:52:46]Write to MH i2c: 01 00 00 37 7D B4 [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]OFD Sender: No OFD packet to send [20:52:46]*** Cut start [20:52:46]*** Partial cut [20:52:46]*** CUTSNS_PIN = 1 [20:52:46]*** CUTSNS_PIN = 0 [20:52:47]*** Brake cut motor [20:52:47]Read from MH i2c: 01 [20:52:47]MH_I2C_Read... [20:52:47]*** Stop cut motor [20:52:47]*** Cut end [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 37 7D 00 00 00 00 00 FF 0F C9 [20:52:47]process_action close_receipt done [20:52:47]requested_data is exist [20:52:47]produce_requested_data [20:52:47]requested_item fm.sn is exist - process it [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 11 00 00 [20:52:47]Write to MH i2c: E2 08 00 38 7D 80 11 00 00 00 00 00 00 2F [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 38 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [20:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:52:47]wFMCommunicate OK [20:52:47]requested_item fd.num is exist - process it [20:52:47]SAM_PROTO_GetFieldsCounters [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 13 00 00 [20:52:47]Write to MH i2c: E2 08 00 39 7D 80 13 00 00 00 00 00 00 32 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 62 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 62 00 39 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [20:52: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:47]wFMCommunicate OK [20:52:47]SAM_PROTO_GetFieldsCounters done [20:52:47]requested_item shift.num is exist - process it [20:52:47]requested_item shift.opened is exist - process it [20:52:47]req_shift_opened [20:52:47]FM_GetShiftState [20:52:47]SAM_PROTO_GetShiftState [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 13 01 00 [20:52:47]Write to MH i2c: E2 08 00 3A 7D 80 13 01 00 00 00 00 00 34 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0E 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0E 00 3A 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B5 [20:52:47]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:52:47]wFMCommunicate OK [20:52:47]SAM_PROTO_GetShiftState done [20:52:47]FM_GetShiftState done [20:52:47]req_shift_opened done [20:52:47]requested_item shift.open_date is exist - process it [20:52:47]req_shift_open_date [20:52:47]req_shift_open_date done [20:52:47]produce_requested_data done [20:52:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103533,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:52:47]process_action_free close_receipt [20:52:47]json_value_free [20:52:47]json_value_free done [20:52:47]process_json_proto returns [20:52:47]Send response to host [20:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103533,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:52:47]free response buf [20:52:47]execute_script done [20:52:47]execute_script returns [20:52:47]free content buf [20:52:47]Sock 9.Close socket [20:52:47]Sock 9.Thread stoped [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:33]accept exits with 7 [20:54:33]New connection [20:54:33]New thread 3067084132 created [20:54:33]Thread 3067227492 joined [20:54:33]Waiting for new connection... [20:54:33] Sock 7.Parse request [20:54:33]Sock 7.Check first char [20:54:33]Sock 7.First char is OK [20:54:33]request: POST /json_proto HTTP/1.0 [20:54:33]Method: POST [20:54:33]URL: /json_proto [20:54:33]Method is POST - this is cgi request [20:54:33]url: /json_proto [20:54:33]query_string will be loaded in cgi processing [20:54:33]execute_cgi json_proto POST (null) [20:54:33]execute_cgi path=json_proto method=POST [20:54:33]POST find Content-Length [20:54:33]Host: 172.17.38.133:8080 [20:54:33]Content-Length: 687 [20:54:33]Content-Type: application/json [20:54:33] [20:54:33]POST finish read [20:54:33]Found Content-Length = 687 [20:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:33]execute_script... [20:54:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:33]POST & json_proto [20:54:33]process_json_proto [20:54:33]json parsed OK: [20:54:33]protocol is kg_v1.0 [20:54:33]action value=close_receipt [20:54:33]process_action close_receipt [20:54:33]cmd_close_receipt [20:54:33]MH_GetDate [20:54:33]Write to MH i2c: F0 00 00 3B 7D A7 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: F0 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: F0 09 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: F0 09 00 3B 7D 00 11 F4 71 66 BD 8F 7C 64 B8 [20:54:33]GetLastDocTimeStamp 1718743972 [20:54:33]current date 1718744081 [20:54:33]FM_GetShiftState [20:54:33]SAM_PROTO_GetShiftState [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 13 01 00 [20:54:33]Write to MH i2c: E2 08 00 3C 7D 80 13 01 00 00 00 00 00 36 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 0E 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 0E 00 3C 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 B7 [20:54:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:54:33]wFMCommunicate OK [20:54:33]SAM_PROTO_GetShiftState done [20:54:33]FM_GetShiftState done [20:54:33]opened in 1718670284 [20:54:33]opened+sec_in_day 1718756684 [20:54:33]quantity*price = 100018 [20:54:33]sum+1 = 100020 [20:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 218 18.06.2024 20:54 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103534 ФПД: 70673950085473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205441&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103534&fm=70673950085473&tin=02508201610067®Number=0000000000092785&sum=100000 [20:54:34]StoreToDocumentArchive [20:54:34]shift 352 fd 103534 [20:54:34]save to /storage/0352/doc_00103534 [20:54:34]save last doc name /storage/0352/doc_00103534 to /storage/kkm_last_doc_name [20:54:34]save OK [20:54:34]Clear old archive folders... [20:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:54:34]tlvbuf is 013EBE70 [20:54:34]SAM_PROTO_ClearQueue [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 09 00 00 [20:54:34]Write to MH i2c: E2 08 00 49 7D 80 09 00 00 00 00 00 00 38 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 49 7D 00 90 00 3A [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_ClearQueue done [20:54:34]KKMCreateOFDPacket [20:54:34]OFDProtocolAddRootSTLVToBuf [20:54:34]FM_MakeSignedData [20:54:34]FM_MakeSignedData [20:54:34]SAM_PROTO_SignData [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 01 02 [20:54:34]Write to MH i2c: E2 08 00 4A 7D 80 0D 01 02 00 00 00 00 40 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 4A 7D 00 90 00 3B [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]wFMCommunicate request_size=255 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 11 F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 94 01 00 35 04 06 00 [20:54:34]Write to MH i2c: E2 02 01 4B 7D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 11 F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 94 01 00 35 04 06 00 00 00 AE [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 4B 7D 00 90 00 3C [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]wFMCommunicate request_size=11 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 02 02 06 40 47 0F B0 91 61 [20:54:34]Write to MH i2c: E2 0E 00 4C 7D 80 0D 02 02 06 00 40 47 0F B0 91 61 00 00 87 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 4C 7D 00 90 00 3D [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 03 02 [20:54:34]Write to MH i2c: E2 08 00 4D 7D 80 0D 03 02 00 00 00 00 45 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0B 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0B 00 4D 7D 00 B4 85 72 BD 27 38 2A 58 90 00 8F [20:54:34]RAPDU: B4 85 72 BD 27 38 2A 58 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_SignData done [20:54:34]FM_MakeSignedData done [20:54:34]CreateOFDProtocolMessage [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 11 00 00 [20:54:34]Write to MH i2c: E2 08 00 4E 7D 80 11 00 00 00 00 00 00 45 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 17 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 17 00 4E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [20:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:54:34]wFMCommunicate OK [20:54:34]CreateOFDProtocolMessage done [20:54:34]OFDSenderStorePacket 103534 [20:54:34]StoreOFDPacket docnum=103534 [20:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F5 D6 08 01 BF A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 11 F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 94 01 00 35 04 06 00 40 47 0F B0 91 61 B4 85 72 BD 27 38 2A 58 [20:54:34]CheckFolder [20:54:34]dirname=/storage/ofd_packets [20:54:34]CheckFolder done [20:54:34]ProducePacketName [20:54:34]name=ofd_packets/00103534 [20:54:34]NVStorageSaveData ofd_packets/00103534 [20:54:34]File name is /storage/ofd_packets/00103534 [20:54:34]Write 302 bytes [20:54:34]NVStorageSaveData done [20:54:34]OFDSenderStorePacket done [20:54:34]KKMCreateOFDPacket done [20:54:34]NVStorageSaveData kkm_last_timestamp [20:54:34]File name is /storage/kkm_last_timestamp [20:54:34]Write 4 bytes [20:54:34]NVStorageSaveData done [20:54:34]ExternCall_PrintAddStr [20:54:34]wPrintStart [20:54:34]Write to MH i2c: 01 00 00 4F 7D CC [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 4F 7D 00 00 00 00 00 FF 0F E1 [20:54:34]RasterBufferAndPrint [20:54:34]line Счет N : (1)672746 [20:54:34]line ИНН: 02508201610067 [20:54:34]line Контрольно-Кассовый Чек [20:54:34]line ПРОДАЖА [20:54:34]line ТРК (МРК, ГНК) : 21 [20:54:34]line Товар: 2710194210 [20:54:34]line ДТ(л)-К-5 [20:54:34]line 13.720 * 72.90 [20:54:34]line = 1000.19 [20:54:34]line НДС 12% НСП 1% [20:54:34]line > о реализуемом товаре [20:54:34]line ОКРУГЛЕНИЕ: -0.19 [20:54:34]line ИТОГО: 1000.00 [20:54:34]line Внесено: 1000.00 [20:54:34]line СДАЧА: 0.00 [20:54:34]line НСП 1% : 8.85 [20:54:34]line НДС 12% : 106.21 [20:54:34]line Наличными: 1000.00 [20:54:34]line Безнал.: 0.00 [20:54:34]line Место: АЗС № 120 "Партнер Нефть" [20:54:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:54:34]line СНО: Общий режим [20:54:34]line Чек 218 18.06.2024 20:54 [20:54:34]line Смена: 352 ФФД: 1.0 [20:54:34]line ЗНМ: 0300000164 [20:54:34]line РНМ: 0000000000092785 [20:54:34]line Версия ККМ: 001 [20:54:34]line ФМ: 0000000000875093 [20:54:34]line ФД: 103534 [20:54:34]line ФПД: 70673950085473 [20:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205441&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103534&fm=70673950085473&tin=02508201610067®Number=0000000000092785&sum=100000 [20:54:35]OFD Sender: Processing packet 103534 [packets to send 17, broken 16] [20:54:35]ProducePacketName [20:54:35]name=ofd_packets/00103534 [20:54:35]OFD Sender: To server: pG, [20:54:35]CommunicateWithHost lk.salyk.kg:30040 [20:54:35]ConnectInit lk.salyk.kg [20:54:35]written 0, free lines is 4095 [20:54:35]Connected sock=10 [20:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F5 D6 08 01 BF A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 11 F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 94 01 00 35 04 06 00 40 47 0F B0 91 61 B4 85 72 BD 27 38 2A 58 [20:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4B 5F 47 00 6F 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 35 30 39 33 10 04 04 00 6E 94 01 00 F4 03 04 00 9C 9A 71 66 B6 04 01 00 00 10 81 4D 48 34 C2 19 E3 [20:54:35]CommunicateWithHost err = 0 [20:54:35]CheckOFDResponse [20:54:35]1017 (14) - 77093643461234 [20:54:35]1041 (16) - 0000000000875093 [20:54:35]1040 (4) - 103534 [20:54:35]1012 (4) - 18.06.2024 14:33 [20:54:35]1206 (1) - 0 [20:54:35]OFD Sender: Remove packet 103534 [20:54:35]ProducePacketName [20:54:35]name=ofd_packets/00103534 [20:54:35]NVStorageDeleteData [20:54:35]Write to MH i2c: 01 00 00 7A 7D F7 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 07 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 07 00 7A 7D 00 00 00 00 00 DA 0C E4 [20:54:35]RasterBufferAndPrint [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]written 0, free lines is 3300 [20:54:35]MH_Cut [20:54:35]Write to MH i2c: D1 01 00 81 7D 01 D0 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 01 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 01 00 81 7D 00 CF [20:54:35]Write to MH i2c: 01 00 00 82 7D FF [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:36]OFD Sender: No OFD packet to send [20:54:36]*** Cut start [20:54:36]*** Partial cut [20:54:36]*** CUTSNS_PIN = 1 [20:54:36]*** CUTSNS_PIN = 0 [20:54:36]*** Brake cut motor [20:54:36]Read from MH i2c: 01 [20:54:37]MH_I2C_Read... [20:54:37]*** Stop cut motor [20:54:37]*** Cut end [20:54:37]Read from MH i2c: 01 07 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: 01 07 00 82 7D 00 00 00 00 00 FF 0F 14 [20:54:37]process_action close_receipt done [20:54:37]requested_data is exist [20:54:37]produce_requested_data [20:54:37]requested_item fm.sn is exist - process it [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 11 00 00 [20:54:37]Write to MH i2c: E2 08 00 83 7D 80 11 00 00 00 00 00 00 7A [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:37]Read from MH i2c: E2 17 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 17 00 83 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [20:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:54:37]wFMCommunicate OK [20:54:37]requested_item fd.num is exist - process it [20:54:37]SAM_PROTO_GetFieldsCounters [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 13 00 00 [20:54:37]Write to MH i2c: E2 08 00 84 7D 80 13 00 00 00 00 00 00 7D [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 62 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 62 00 84 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [20:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:37]wFMCommunicate OK [20:54:37]SAM_PROTO_GetFieldsCounters done [20:54:37]requested_item shift.num is exist - process it [20:54:37]requested_item shift.opened is exist - process it [20:54:37]req_shift_opened [20:54:37]FM_GetShiftState [20:54:37]SAM_PROTO_GetShiftState [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 13 01 00 [20:54:37]Write to MH i2c: E2 08 00 85 7D 80 13 01 00 00 00 00 00 7F [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 0E 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 0E 00 85 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 00 [20:54:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:54:37]wFMCommunicate OK [20:54:37]SAM_PROTO_GetShiftState done [20:54:37]FM_GetShiftState done [20:54:37]req_shift_opened done [20:54:37]requested_item shift.open_date is exist - process it [20:54:37]req_shift_open_date [20:54:37]req_shift_open_date done [20:54:37]produce_requested_data done [20:54:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103534,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:54:37]process_action_free close_receipt [20:54:37]json_value_free [20:54:37]json_value_free done [20:54:37]process_json_proto returns [20:54:37]Send response to host [20:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103534,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:54:37]free response buf [20:54:37]execute_script done [20:54:37]execute_script returns [20:54:37]free content buf [20:54:37]Sock 7.Close socket [20:54:37]Sock 7.Thread stoped [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:35]accept exits with 9 [20:56:35]New connection [20:56:35]New thread 3067227492 created [20:56:35]Thread 3067084132 joined [20:56:35]Waiting for new connection... [20:56:35] Sock 9.Parse request [20:56:35]Sock 9.Check first char [20:56:35]Sock 9.First char is OK [20:56:35]request: POST /json_proto HTTP/1.0 [20:56:35]Method: POST [20:56:35]URL: /json_proto [20:56:35]Method is POST - this is cgi request [20:56:35]url: /json_proto [20:56:35]query_string will be loaded in cgi processing [20:56:35]execute_cgi json_proto POST (null) [20:56:35]execute_cgi path=json_proto method=POST [20:56:35]POST find Content-Length [20:56:35]Host: 172.17.38.133:8080 [20:56:35]Content-Length: 816 [20:56:35]Content-Type: application/json [20:56:35] [20:56:35]POST finish read [20:56:35]Found Content-Length = 816 [20:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:35]execute_script... [20:56: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)672747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:35]POST & json_proto [20:56:35]process_json_proto [20:56:35]json parsed OK: [20:56:35]protocol is kg_v1.0 [20:56:35]action value=close_receipt [20:56:35]process_action close_receipt [20:56:35]cmd_close_receipt [20:56:35]MH_GetDate [20:56:35]Write to MH i2c: F0 00 00 86 7D F2 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 09 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: F0 09 00 86 7D 00 8B F4 71 66 BD 8F 7C 64 7D [20:56:35]GetLastDocTimeStamp 1718744081 [20:56:35]current date 1718744203 [20:56:35]FM_GetShiftState [20:56:35]SAM_PROTO_GetShiftState [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 13 01 00 [20:56:35]Write to MH i2c: E2 08 00 87 7D 80 13 01 00 00 00 00 00 81 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0E 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0E 00 87 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 02 [20:56:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:56:35]wFMCommunicate OK [20:56:35]SAM_PROTO_GetShiftState done [20:56:35]FM_GetShiftState done [20:56:35]opened in 1718670284 [20:56:35]opened+sec_in_day 1718756684 [20:56:35]quantity*price = 50065 [20:56:35]sum+1 = 50067 [20:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 219 18.06.2024 20:56 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103535 ФПД: 250625895635518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205643&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103535&fm=250625895635518&tin=02508201610067®Number=0000000000092785&sum=50066 [20:56:36]StoreToDocumentArchive [20:56:36]shift 352 fd 103535 [20:56:36]save to /storage/0352/doc_00103535 [20:56:36]save last doc name /storage/0352/doc_00103535 to /storage/kkm_last_doc_name [20:56:36]save OK [20:56:36]Clear old archive folders... [20:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:36]tlvbuf is 015942A0 [20:56:36]SAM_PROTO_ClearQueue [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 09 00 00 [20:56:36]Write to MH i2c: E2 08 00 94 7D 80 09 00 00 00 00 00 00 83 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 94 7D 00 90 00 85 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]SAM_PROTO_ClearQueue done [20:56:36]KKMCreateOFDPacket [20:56:36]OFDProtocolAddRootSTLVToBuf [20:56:36]FM_MakeSignedData [20:56:36]FM_MakeSignedData [20:56:36]SAM_PROTO_SignData [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 01 02 [20:56:36]Write to MH i2c: E2 08 00 95 7D 80 0D 01 02 00 00 00 00 8B [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 95 7D 00 90 00 86 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]wFMCommunicate request_size=255 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8B F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 94 01 00 35 04 06 00 E3 [20:56:36]Write to MH i2c: E2 02 01 96 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8B F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 94 01 00 35 04 06 00 E3 00 00 42 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 96 7D 00 90 00 87 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]wFMCommunicate request_size=10 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 02 02 05 F1 63 7B 1A 3E [20:56:36]Write to MH i2c: E2 0D 00 97 7D 80 0D 02 02 05 00 F1 63 7B 1A 3E 00 00 BF [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 03 00 97 7D 00 90 00 88 [20:56:36]RAPDU: 90 00 [20:56:36]wFMCommunicate OK [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 0D 03 02 [20:56:36]Write to MH i2c: E2 08 00 98 7D 80 0D 03 02 00 00 00 00 90 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 0B 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 0B 00 98 7D 00 7B F4 7D 86 B3 21 97 38 90 00 A6 [20:56:36]RAPDU: 7B F4 7D 86 B3 21 97 38 90 00 [20:56:36]wFMCommunicate OK [20:56:36]SAM_PROTO_SignData done [20:56:36]FM_MakeSignedData done [20:56:36]CreateOFDProtocolMessage [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 11 00 00 [20:56:36]Write to MH i2c: E2 08 00 99 7D 80 11 00 00 00 00 00 00 90 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 17 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 17 00 99 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [20:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:56:36]wFMCommunicate OK [20:56:36]CreateOFDProtocolMessage done [20:56:36]OFDSenderStorePacket 103535 [20:56:36]StoreOFDPacket docnum=103535 [20:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 FD 07 01 6C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8B F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 94 01 00 35 04 06 00 E3 F1 63 7B 1A 3E 7B F4 7D 86 B3 21 97 38 [20:56:36]CheckFolder [20:56:36]dirname=/storage/ofd_packets [20:56:36]CheckFolder done [20:56:36]ProducePacketName [20:56:36]name=ofd_packets/00103535 [20:56:36]NVStorageSaveData ofd_packets/00103535 [20:56:36]File name is /storage/ofd_packets/00103535 [20:56:36]Write 301 bytes [20:56:36]NVStorageSaveData done [20:56:36]OFDSenderStorePacket done [20:56:36]KKMCreateOFDPacket done [20:56:36]NVStorageSaveData kkm_last_timestamp [20:56:36]File name is /storage/kkm_last_timestamp [20:56:36]Write 4 bytes [20:56:36]NVStorageSaveData done [20:56:36]ExternCall_PrintAddStr [20:56:36]wPrintStart [20:56:36]Write to MH i2c: 01 00 00 9A 7D 17 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 07 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 07 00 9A 7D 00 00 00 00 00 FF 0F 2C [20:56:36]RasterBufferAndPrint [20:56:36]line Счет N : (1)672747 [20:56:36]line ИНН: 02508201610067 [20:56:36]line Контрольно-Кассовый Чек [20:56:36]line ПРОДАЖА [20:56:36]line ТРК (МРК, ГНК) : 42 [20:56:36]line Товар: 2710124130 [20:56:36]line Аи-92-К-5 [20:56:36]line 7.540 * 66.40 [20:56:36]line = 500.66 [20:56:36]line НДС 12% НСП 1% [20:56:36]line > о реализуемом товаре [20:56:36]line ИТОГО: 500.66 [20:56:36]line НСП 1% : 4.43 [20:56:36]line НДС 12% : 53.17 [20:56:36]line Наличными: 0.00 [20:56:36]line Безнал.: 500.66 [20:56:36]line Место: АЗС № 120 "Партнер Нефть" [20:56:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:56:36]line СНО: Общий режим [20:56:36]line Чек 219 18.06.2024 20:56 [20:56:36]line Смена: 352 ФФД: 1.0 [20:56:36]line ЗНМ: 0300000164 [20:56:36]line РНМ: 0000000000092785 [20:56:36]line Версия ККМ: 001 [20:56:36]line Платежная система: Бакай Банк [20:56:36]line ФМ: 0000000000875093 [20:56:36]line ФД: 103535 [20:56:36]line ФПД: 250625895635518 [20:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T205643&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103535&fm=250625895635518&tin=02508201610067®Number=0000000000092785&sum=50066 [20:56:37]OFD Sender: Processing packet 103535 [packets to send 17, broken 16] [20:56:37]ProducePacketName [20:56:37]name=ofd_packets/00103535 [20:56:37]OFD Sender: To server: pG, [20:56:37]CommunicateWithHost lk.salyk.kg:30040 [20:56:37]ConnectInit lk.salyk.kg [20:56:37]written 0, free lines is 4095 [20:56:37]Connected sock=10 [20:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 FD 07 01 6C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 8B F4 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 94 01 00 35 04 06 00 E3 F1 63 7B 1A 3E 7B F4 7D 86 B3 21 97 38 [20:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 49 25 47 00 A7 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 94 01 00 F4 03 04 00 16 9B 71 66 B6 04 01 00 00 FE A2 4B 34 92 4B 17 B9 [20:56:37]CommunicateWithHost err = 0 [20:56:37]CheckOFDResponse [20:56:37]1017 (14) - 77093643461234 [20:56:37]1041 (16) - 0000000000875093 [20:56:37]1040 (4) - 103535 [20:56:37]1012 (4) - 18.06.2024 14:35 [20:56:37]1206 (1) - 0 [20:56:37]OFD Sender: Remove packet 103535 [20:56:37]ProducePacketName [20:56:37]name=ofd_packets/00103535 [20:56:37]NVStorageDeleteData [20:56:37]Write to MH i2c: 01 00 00 C4 7D 41 [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 C4 7D 00 00 00 00 00 E5 0C 39 [20:56:37]RasterBufferAndPrint [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]line [20:56:37]written 0, free lines is 3307 [20:56:37]MH_Cut [20:56:37]Write to MH i2c: D1 01 00 CB 7D 01 1A [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 01 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: D1 01 00 CB 7D 00 19 [20:56:37]Write to MH i2c: 01 00 00 CC 7D 49 [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:38]OFD Sender: No OFD packet to send [20:56:38]*** Cut start [20:56:38]*** Partial cut [20:56:38]*** CUTSNS_PIN = 1 [20:56:38]*** CUTSNS_PIN = 0 [20:56:38]*** Brake cut motor [20:56:38]Read from MH i2c: 01 [20:56:38]MH_I2C_Read... [20:56:38]*** Stop cut motor [20:56:38]*** Cut end [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 CC 7D 00 00 00 00 00 FF 0F 5E [20:56:38]process_action close_receipt done [20:56:38]requested_data is exist [20:56:38]produce_requested_data [20:56:38]requested_item fm.sn is exist - process it [20:56:38]wFMCommunicate request_size=4 [20:56:38]MH_SAM_APDU [20:56:38]CAPDU: 80 11 00 00 [20:56:38]Write to MH i2c: E2 08 00 CD 7D 80 11 00 00 00 00 00 00 C4 [20:56:38]Write i2c OK [20:56:38]MH_I2C_Read... [20:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:38]Read from MH i2c: E2 [20:56:38]MH_I2C_Read... [20:56:38]Read from MH i2c: E2 17 00 [20:56:38]MH_I2C_Read... [20:56:38]Read from MH i2c: E2 17 00 CD 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [20:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:56:38]wFMCommunicate OK [20:56:38]requested_item fd.num is exist - process it [20:56:38]SAM_PROTO_GetFieldsCounters [20:56:38]wFMCommunicate request_size=4 [20:56:38]MH_SAM_APDU [20:56:38]CAPDU: 80 13 00 00 [20:56:38]Write to MH i2c: E2 08 00 CE 7D 80 13 00 00 00 00 00 00 C7 [20:56:38]Write i2c OK [20:56:38]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 62 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 62 00 CE 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [20:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:39]wFMCommunicate OK [20:56:39]SAM_PROTO_GetFieldsCounters done [20:56:39]requested_item shift.num is exist - process it [20:56:39]requested_item shift.opened is exist - process it [20:56:39]req_shift_opened [20:56:39]FM_GetShiftState [20:56:39]SAM_PROTO_GetShiftState [20:56:39]wFMCommunicate request_size=4 [20:56:39]MH_SAM_APDU [20:56:39]CAPDU: 80 13 01 00 [20:56:39]Write to MH i2c: E2 08 00 CF 7D 80 13 01 00 00 00 00 00 C9 [20:56:39]Write i2c OK [20:56:39]MH_I2C_Read... [20:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:39]Read from MH i2c: E2 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 [20:56:39]MH_I2C_Read... [20:56:39]Read from MH i2c: E2 0E 00 CF 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4A [20:56:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [20:56:39]wFMCommunicate OK [20:56:39]SAM_PROTO_GetShiftState done [20:56:39]FM_GetShiftState done [20:56:39]req_shift_opened done [20:56:39]requested_item shift.open_date is exist - process it [20:56:39]req_shift_open_date [20:56:39]req_shift_open_date done [20:56:39]produce_requested_data done [20:56:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103535,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [20:56:39]process_action_free close_receipt [20:56:39]json_value_free [20:56:39]json_value_free done [20:56:39]process_json_proto returns [20:56:39]Send response to host [20:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103535,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [20:56:39]free response buf [20:56:39]execute_script done [20:56:39]execute_script returns [20:56:39]free content buf [20:56:39]Sock 9.Close socket [20:56:39]Sock 9.Thread stoped [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:40]accept exits with 7 [21:13:40]New connection [21:13:40]New thread 3067084132 created [21:13:40]Thread 3067227492 joined [21:13:40]Waiting for new connection... [21:13:40] Sock 7.Parse request [21:13:40]Sock 7.Check first char [21:13:40]Sock 7.First char is OK [21:13:40]request: POST /json_proto HTTP/1.0 [21:13:40]Method: POST [21:13:40]URL: /json_proto [21:13:40]Method is POST - this is cgi request [21:13:40]url: /json_proto [21:13:40]query_string will be loaded in cgi processing [21:13:40]execute_cgi json_proto POST (null) [21:13:40]execute_cgi path=json_proto method=POST [21:13:40]POST find Content-Length [21:13:40]Host: 172.17.38.133:8080 [21:13:40]Content-Length: 682 [21:13:40]Content-Type: application/json [21:13:40] [21:13:40]POST finish read [21:13:40]Found Content-Length = 682 [21:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [21:13:40]execute_script... [21:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [21:13:40]POST & json_proto [21:13:40]process_json_proto [21:13:40]json parsed OK: [21:13:40]protocol is kg_v1.0 [21:13:40]action value=close_receipt [21:13:40]process_action close_receipt [21:13:40]cmd_close_receipt [21:13:40]MH_GetDate [21:13:40]Write to MH i2c: F0 00 00 D0 7D 3C [21:13:40]Write i2c OK [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: F0 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: F0 09 00 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: F0 09 00 D0 7D 00 8D F8 71 66 BD 8F 7C 64 CD [21:13:40]GetLastDocTimeStamp 1718744203 [21:13:40]current date 1718745229 [21:13:40]FM_GetShiftState [21:13:40]SAM_PROTO_GetShiftState [21:13:40]wFMCommunicate request_size=4 [21:13:40]MH_SAM_APDU [21:13:40]CAPDU: 80 13 01 00 [21:13:40]Write to MH i2c: E2 08 00 D1 7D 80 13 01 00 00 00 00 00 CB [21:13:40]Write i2c OK [21:13:40]MH_I2C_Read... [21:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:40]Read from MH i2c: E2 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: E2 0E 00 [21:13:40]MH_I2C_Read... [21:13:40]Read from MH i2c: E2 0E 00 D1 7D 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4C [21:13:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:13:40]wFMCommunicate OK [21:13:40]SAM_PROTO_GetShiftState done [21:13:40]FM_GetShiftState done [21:13:40]opened in 1718670284 [21:13:40]opened+sec_in_day 1718756684 [21:13:40]quantity*price = 150064 [21:13:40]sum+1 = 150065 [21:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 220 18.06.2024 21:13 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103536 ФПД: 120594474362113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103536&fm=120594474362113&tin=02508201610067®Number=0000000000092785&sum=150000 [21:13:42]StoreToDocumentArchive [21:13:42]shift 352 fd 103536 [21:13:42]save to /storage/0352/doc_00103536 [21:13:42]save last doc name /storage/0352/doc_00103536 to /storage/kkm_last_doc_name [21:13:42]save OK [21:13:42]Clear old archive folders... [21:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:42]tlvbuf is 013840C0 [21:13:42]SAM_PROTO_ClearQueue [21:13:42]wFMCommunicate request_size=4 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 09 00 00 [21:13:42]Write to MH i2c: E2 08 00 DE 7D 80 09 00 00 00 00 00 00 CD [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 DE 7D 00 90 00 CF [21:13:42]RAPDU: 90 00 [21:13:42]wFMCommunicate OK [21:13:42]SAM_PROTO_ClearQueue done [21:13:42]KKMCreateOFDPacket [21:13:42]OFDProtocolAddRootSTLVToBuf [21:13:42]FM_MakeSignedData [21:13:42]FM_MakeSignedData [21:13:42]SAM_PROTO_SignData [21:13:42]wFMCommunicate request_size=4 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 0D 01 02 [21:13:42]Write to MH i2c: E2 08 00 DF 7D 80 0D 01 02 00 00 00 00 D5 [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 DF 7D 00 90 00 D0 [21:13:42]RAPDU: 90 00 [21:13:42]wFMCommunicate OK [21:13:42]wFMCommunicate request_size=255 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 DC 00 00 00 F4 03 04 00 8D F8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 94 01 00 35 04 06 00 6D [21:13:42]Write to MH i2c: E2 02 01 E0 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 DC 00 00 00 F4 03 04 00 8D F8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 94 01 00 35 04 06 00 6D 00 00 3E [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 E0 7D 00 90 00 D1 [21:13:42]RAPDU: 90 00 [21:13:42]wFMCommunicate OK [21:13:42]wFMCommunicate request_size=10 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 0D 02 02 05 AE 16 CE 65 01 [21:13:42]Write to MH i2c: E2 0D 00 E1 7D 80 0D 02 02 05 00 AE 16 CE 65 01 00 00 DA [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 03 00 E1 7D 00 90 00 D2 [21:13:42]RAPDU: 90 00 [21:13:42]wFMCommunicate OK [21:13:42]wFMCommunicate request_size=4 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 0D 03 02 [21:13:42]Write to MH i2c: E2 08 00 E2 7D 80 0D 03 02 00 00 00 00 DA [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 0B 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 0B 00 E2 7D 00 73 5F 37 38 76 47 6B A4 90 00 E8 [21:13:42]RAPDU: 73 5F 37 38 76 47 6B A4 90 00 [21:13:42]wFMCommunicate OK [21:13:42]SAM_PROTO_SignData done [21:13:42]FM_MakeSignedData done [21:13:42]CreateOFDProtocolMessage [21:13:42]wFMCommunicate request_size=4 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 11 00 00 [21:13:42]Write to MH i2c: E2 08 00 E3 7D 80 11 00 00 00 00 00 00 DA [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 17 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 17 00 E3 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [21:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:13:42]wFMCommunicate OK [21:13:42]CreateOFDProtocolMessage done [21:13:42]OFDSenderStorePacket 103536 [21:13:42]StoreOFDPacket docnum=103536 [21:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 E7 07 01 78 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 DC 00 00 00 F4 03 04 00 8D F8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 94 01 00 35 04 06 00 6D AE 16 CE 65 01 73 5F 37 38 76 47 6B A4 [21:13:42]CheckFolder [21:13:42]dirname=/storage/ofd_packets [21:13:42]CheckFolder done [21:13:42]ProducePacketName [21:13:42]name=ofd_packets/00103536 [21:13:42]NVStorageSaveData ofd_packets/00103536 [21:13:42]File name is /storage/ofd_packets/00103536 [21:13:42]Write 301 bytes [21:13:42]NVStorageSaveData done [21:13:42]OFDSenderStorePacket done [21:13:42]KKMCreateOFDPacket done [21:13:42]NVStorageSaveData kkm_last_timestamp [21:13:42]File name is /storage/kkm_last_timestamp [21:13:42]Write 4 bytes [21:13:42]NVStorageSaveData done [21:13:42]ExternCall_PrintAddStr [21:13:42]wPrintStart [21:13:42]Write to MH i2c: 01 00 00 E4 7D 61 [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: 01 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: 01 07 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: 01 07 00 E4 7D 00 00 00 00 00 FF 0F 76 [21:13:42]RasterBufferAndPrint [21:13:42]line Счет N : (1)672748 [21:13:42]line ИНН: 02508201610067 [21:13:42]line Контрольно-Кассовый Чек [21:13:42]line ПРОДАЖА [21:13:42]line ТРК (МРК, ГНК) : 32 [21:13:42]line Товар: 2710124130 [21:13:42]line Аи-92-К-5 [21:13:42]line 22.600 * 66.40 [21:13:42]line = 1500.64 [21:13:42]line НДС 12% НСП 1% [21:13:42]line > о реализуемом товаре [21:13:42]line ОКРУГЛЕНИЕ: -0.64 [21:13:42]line ИТОГО: 1500.00 [21:13:42]line Внесено: 1500.00 [21:13:42]line СДАЧА: 0.00 [21:13:42]line НСП 1% : 13.28 [21:13:42]line НДС 12% : 159.36 [21:13:42]line Наличными: 1500.00 [21:13:42]line Безнал.: 0.00 [21:13:42]line Место: АЗС № 120 "Партнер Нефть" [21:13:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:13:42]line СНО: Общий режим [21:13:42]line Чек 220 18.06.2024 21:13 [21:13:42]line Смена: 352 ФФД: 1.0 [21:13:42]line ЗНМ: 0300000164 [21:13:42]line РНМ: 0000000000092785 [21:13:42]line Версия ККМ: 001 [21:13:42]line ФМ: 0000000000875093 [21:13:42]line ФД: 103536 [21:13:42]line ФПД: 120594474362113 [21:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103536&fm=120594474362113&tin=02508201610067®Number=0000000000092785&sum=150000 [21:13:42]OFD Sender: Processing packet 103536 [packets to send 17, broken 16] [21:13:42]ProducePacketName [21:13:42]name=ofd_packets/00103536 [21:13:42]OFD Sender: To server: pG, [21:13:42]CommunicateWithHost lk.salyk.kg:30040 [21:13:42]ConnectInit lk.salyk.kg [21:13:42]written 0, free lines is 4095 [21:13:43]Connected sock=10 [21:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 E7 07 01 78 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 DC 00 00 00 F4 03 04 00 8D F8 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 94 01 00 35 04 06 00 6D AE 16 CE 65 01 73 5F 37 38 76 47 6B A4 [21:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1F F1 47 00 D7 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 94 01 00 F4 03 04 00 18 9F 71 66 B6 04 01 00 00 03 D4 E8 60 EC 87 DF 57 [21:13:43]CommunicateWithHost err = 0 [21:13:43]CheckOFDResponse [21:13:43]1017 (14) - 77093643461234 [21:13:43]1041 (16) - 0000000000875093 [21:13:43]1040 (4) - 103536 [21:13:43]1012 (4) - 18.06.2024 14:52 [21:13:43]1206 (1) - 0 [21:13:43]OFD Sender: Remove packet 103536 [21:13:43]ProducePacketName [21:13:43]name=ofd_packets/00103536 [21:13:43]NVStorageDeleteData [21:13:43]Write to MH i2c: 01 00 00 0F 7E 8D [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: 01 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: 01 07 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: 01 07 00 0F 7E 00 00 00 00 00 DE 0C 7E [21:13:43]RasterBufferAndPrint [21:13:43]line [21:13:43]line [21:13:43]line [21:13:43]line [21:13:43]line [21:13:43]written 0, free lines is 3303 [21:13:43]MH_Cut [21:13:43]Write to MH i2c: D1 01 00 16 7E 01 66 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: D1 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: D1 01 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: D1 01 00 16 7E 00 65 [21:13:43]Write to MH i2c: 01 00 00 17 7E 95 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]OFD Sender: No OFD packet to send [21:13:44]*** Cut start [21:13:44]*** Partial cut [21:13:44]*** CUTSNS_PIN = 1 [21:13:44]*** CUTSNS_PIN = 0 [21:13:44]*** Brake cut motor [21:13:44]Read from MH i2c: 01 [21:13:44]MH_I2C_Read... [21:13:44]*** Stop cut motor [21:13:44]*** Cut end [21:13:44]Read from MH i2c: 01 07 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 17 7E 00 00 00 00 00 FF 0F AA [21:13:44]process_action close_receipt done [21:13:44]requested_data is exist [21:13:44]produce_requested_data [21:13:44]requested_item fm.sn is exist - process it [21:13:44]wFMCommunicate request_size=4 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 11 00 00 [21:13:44]Write to MH i2c: E2 08 00 18 7E 80 11 00 00 00 00 00 00 10 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 17 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 17 00 18 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [21:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:13:44]wFMCommunicate OK [21:13:44]requested_item fd.num is exist - process it [21:13:44]SAM_PROTO_GetFieldsCounters [21:13:44]wFMCommunicate request_size=4 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 13 00 00 [21:13:44]Write to MH i2c: E2 08 00 19 7E 80 13 00 00 00 00 00 00 13 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 62 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 62 00 19 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [21:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:44]wFMCommunicate OK [21:13:44]SAM_PROTO_GetFieldsCounters done [21:13:44]requested_item shift.num is exist - process it [21:13:44]requested_item shift.opened is exist - process it [21:13:44]req_shift_opened [21:13:44]FM_GetShiftState [21:13:44]SAM_PROTO_GetShiftState [21:13:44]wFMCommunicate request_size=4 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 13 01 00 [21:13:44]Write to MH i2c: E2 08 00 1A 7E 80 13 01 00 00 00 00 00 15 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 0E 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 0E 00 1A 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 96 [21:13:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:13:44]wFMCommunicate OK [21:13:44]SAM_PROTO_GetShiftState done [21:13:44]FM_GetShiftState done [21:13:44]req_shift_opened done [21:13:44]requested_item shift.open_date is exist - process it [21:13:44]req_shift_open_date [21:13:44]req_shift_open_date done [21:13:44]produce_requested_data done [21:13:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103536,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:13:44]process_action_free close_receipt [21:13:44]json_value_free [21:13:44]json_value_free done [21:13:44]process_json_proto returns [21:13:44]Send response to host [21:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103536,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:13:44]free response buf [21:13:44]execute_script done [21:13:44]execute_script returns [21:13:44]free content buf [21:13:44]Sock 7.Close socket [21:13:44]Sock 7.Thread stoped [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:25]accept exits with 9 [21:16:25]New connection [21:16:25]New thread 3067227492 created [21:16:25]Thread 3067084132 joined [21:16:25]Waiting for new connection... [21:16:25] Sock 9.Parse request [21:16:25]Sock 9.Check first char [21:16:25]Sock 9.First char is OK [21:16:25]request: POST /json_proto HTTP/1.0 [21:16:25]Method: POST [21:16:25]URL: /json_proto [21:16:25]Method is POST - this is cgi request [21:16:25]url: /json_proto [21:16:25]query_string will be loaded in cgi processing [21:16:25]execute_cgi json_proto POST (null) [21:16:25]execute_cgi path=json_proto method=POST [21:16:25]POST find Content-Length [21:16:25]Host: 172.17.38.133:8080 [21:16:25]Content-Length: 682 [21:16:25]Content-Type: application/json [21:16:25] [21:16:25]POST finish read [21:16:25]Found Content-Length = 682 [21:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 2.060, "sum" : 150.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:25]execute_script... [21:16: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)672749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 2.060, "sum" : 150.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:25]POST & json_proto [21:16:25]process_json_proto [21:16:25]json parsed OK: [21:16:25]protocol is kg_v1.0 [21:16:25]action value=close_receipt [21:16:25]process_action close_receipt [21:16:25]cmd_close_receipt [21:16:25]MH_GetDate [21:16:25]Write to MH i2c: F0 00 00 1B 7E 88 [21:16:25]Write i2c OK [21:16:25]MH_I2C_Read... [21:16:25]Read from MH i2c: F0 [21:16:25]MH_I2C_Read... [21:16:25]Read from MH i2c: F0 09 00 [21:16:25]MH_I2C_Read... [21:16:25]Read from MH i2c: F0 09 00 1B 7E 00 32 F9 71 66 BD 8F 7C 64 BF [21:16:25]GetLastDocTimeStamp 1718745229 [21:16:25]current date 1718745394 [21:16:25]FM_GetShiftState [21:16:25]SAM_PROTO_GetShiftState [21:16:25]wFMCommunicate request_size=4 [21:16:25]MH_SAM_APDU [21:16:25]CAPDU: 80 13 01 00 [21:16:25]Write to MH i2c: E2 08 00 1C 7E 80 13 01 00 00 00 00 00 17 [21:16:25]Write i2c OK [21:16:25]MH_I2C_Read... [21:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:25]Read from MH i2c: E2 [21:16:25]MH_I2C_Read... [21:16:25]Read from MH i2c: E2 0E 00 [21:16:25]MH_I2C_Read... [21:16:25]Read from MH i2c: E2 0E 00 1C 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [21:16:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:16:25]wFMCommunicate OK [21:16:25]SAM_PROTO_GetShiftState done [21:16:25]FM_GetShiftState done [21:16:25]opened in 1718670284 [21:16:25]opened+sec_in_day 1718756684 [21:16:25]quantity*price = 15017 [21:16:25]sum+1 = 15018 [21:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.95 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 221 18.06.2024 21:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103537 ФПД: 146150132243622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103537&fm=146150132243622&tin=02508201610067®Number=0000000000092785&sum=15000 [21:16:27]StoreToDocumentArchive [21:16:27]shift 352 fd 103537 [21:16:27]save to /storage/0352/doc_00103537 [21:16:27]save last doc name /storage/0352/doc_00103537 to /storage/kkm_last_doc_name [21:16:27]save OK [21:16:27]Clear old archive folders... [21:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:16:27]tlvbuf is 0137F3D0 [21:16:27]SAM_PROTO_ClearQueue [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 09 00 00 [21:16:27]Write to MH i2c: E2 08 00 29 7E 80 09 00 00 00 00 00 00 19 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:27]Read from MH i2c: E2 03 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 29 7E 00 90 00 1B [21:16:27]RAPDU: 90 00 [21:16:27]wFMCommunicate OK [21:16:27]SAM_PROTO_ClearQueue done [21:16:27]KKMCreateOFDPacket [21:16:27]OFDProtocolAddRootSTLVToBuf [21:16:27]FM_MakeSignedData [21:16:27]FM_MakeSignedData [21:16:27]SAM_PROTO_SignData [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 0D 01 02 [21:16:27]Write to MH i2c: E2 08 00 2A 7E 80 0D 01 02 00 00 00 00 21 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 2A 7E 00 90 00 1C [21:16:27]RAPDU: 90 00 [21:16:27]wFMCommunicate OK [21:16:27]wFMCommunicate request_size=255 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 3B 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 DD 00 00 00 F4 03 04 00 32 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 94 01 00 35 04 06 00 [21:16:27]Write to MH i2c: E2 02 01 2B 7E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 3B 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 DD 00 00 00 F4 03 04 00 32 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 94 01 00 35 04 06 00 00 00 A9 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 2B 7E 00 90 00 1D [21:16:27]RAPDU: 90 00 [21:16:27]wFMCommunicate OK [21:16:27]wFMCommunicate request_size=11 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 0D 02 02 06 84 EC 3A B7 5C A6 [21:16:27]Write to MH i2c: E2 0E 00 2C 7E 80 0D 02 02 06 00 84 EC 3A B7 5C A6 00 00 93 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 03 00 2C 7E 00 90 00 1E [21:16:27]RAPDU: 90 00 [21:16:27]wFMCommunicate OK [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 0D 03 02 [21:16:27]Write to MH i2c: E2 08 00 2D 7E 80 0D 03 02 00 00 00 00 26 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0B 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0B 00 2D 7E 00 4C CE D5 8A CC FB B7 C2 90 00 E0 [21:16:27]RAPDU: 4C CE D5 8A CC FB B7 C2 90 00 [21:16:27]wFMCommunicate OK [21:16:27]SAM_PROTO_SignData done [21:16:27]FM_MakeSignedData done [21:16:27]CreateOFDProtocolMessage [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 11 00 00 [21:16:27]Write to MH i2c: E2 08 00 2E 7E 80 11 00 00 00 00 00 00 26 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 17 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 17 00 2E 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [21:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:16:27]wFMCommunicate OK [21:16:27]CreateOFDProtocolMessage done [21:16:27]OFDSenderStorePacket 103537 [21:16:27]StoreOFDPacket docnum=103537 [21:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7A F3 08 01 98 D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 3B 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 DD 00 00 00 F4 03 04 00 32 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 94 01 00 35 04 06 00 84 EC 3A B7 5C A6 4C CE D5 8A CC FB B7 C2 [21:16:27]CheckFolder [21:16:27]dirname=/storage/ofd_packets [21:16:27]CheckFolder done [21:16:27]ProducePacketName [21:16:27]name=ofd_packets/00103537 [21:16:27]NVStorageSaveData ofd_packets/00103537 [21:16:27]File name is /storage/ofd_packets/00103537 [21:16:27]Write 302 bytes [21:16:27]NVStorageSaveData done [21:16:27]OFDSenderStorePacket done [21:16:27]KKMCreateOFDPacket done [21:16:27]NVStorageSaveData kkm_last_timestamp [21:16:27]File name is /storage/kkm_last_timestamp [21:16:27]Write 4 bytes [21:16:27]NVStorageSaveData done [21:16:27]ExternCall_PrintAddStr [21:16:27]wPrintStart [21:16:27]Write to MH i2c: 01 00 00 2F 7E AD [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: 01 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: 01 07 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: 01 07 00 2F 7E 00 00 00 00 00 FF 0F C2 [21:16:27]RasterBufferAndPrint [21:16:27]line Счет N : (1)672749 [21:16:27]line ИНН: 02508201610067 [21:16:27]line Контрольно-Кассовый Чек [21:16:27]line ПРОДАЖА [21:16:27]line ТРК (МРК, ГНК) : 21 [21:16:27]line Товар: 2710194210 [21:16:27]line ДТ(л)-К-5 [21:16:27]line 2.060 * 72.90 [21:16:27]line = 150.17 [21:16:27]line НДС 12% НСП 1% [21:16:27]line > о реализуемом товаре [21:16:27]line ОКРУГЛЕНИЕ: -0.17 [21:16:27]line ИТОГО: 150.00 [21:16:27]line Внесено: 150.00 [21:16:27]line СДАЧА: 0.00 [21:16:27]line НСП 1% : 1.33 [21:16:27]line НДС 12% : 15.95 [21:16:27]line Наличными: 150.00 [21:16:27]line Безнал.: 0.00 [21:16:27]line Место: АЗС № 120 "Партнер Нефть" [21:16:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:16:27]line СНО: Общий режим [21:16:27]line Чек 221 18.06.2024 21:16 [21:16:27]line Смена: 352 ФФД: 1.0 [21:16:27]line ЗНМ: 0300000164 [21:16:27]line РНМ: 0000000000092785 [21:16:27]line Версия ККМ: 001 [21:16:27]line ФМ: 0000000000875093 [21:16:27]line ФД: 103537 [21:16:27]line ФПД: 146150132243622 [21:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103537&fm=146150132243622&tin=02508201610067®Number=0000000000092785&sum=15000 [21:16:27]OFD Sender: Processing packet 103537 [packets to send 17, broken 16] [21:16:27]ProducePacketName [21:16:27]name=ofd_packets/00103537 [21:16:27]OFD Sender: To server: pG, [21:16:27]CommunicateWithHost lk.salyk.kg:30040 [21:16:27]ConnectInit lk.salyk.kg [21:16:27]written 0, free lines is 4095 [21:16:28]Connected sock=10 [21:16:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7A F3 08 01 98 D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 3B 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 DD 00 00 00 F4 03 04 00 32 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 94 01 00 35 04 06 00 84 EC 3A B7 5C A6 4C CE D5 8A CC FB B7 C2 [21:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8D 55 47 00 AF 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 94 01 00 F4 03 04 00 BD 9F 71 66 B6 04 01 00 00 3C 7D C0 DD 9C D9 0F FF [21:16:28]CommunicateWithHost err = 0 [21:16:28]CheckOFDResponse [21:16:28]1017 (14) - 77093643461234 [21:16:28]1041 (16) - 0000000000875093 [21:16:28]1040 (4) - 103537 [21:16:28]1012 (4) - 18.06.2024 14:54 [21:16:28]1206 (1) - 0 [21:16:28]OFD Sender: Remove packet 103537 [21:16:28]ProducePacketName [21:16:28]name=ofd_packets/00103537 [21:16:28]NVStorageDeleteData [21:16:28]Write to MH i2c: 01 00 00 5A 7E D8 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 07 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: 01 07 00 5A 7E 00 00 00 00 00 D9 0C C4 [21:16:28]RasterBufferAndPrint [21:16:28]line [21:16:28]line [21:16:28]line [21:16:28]line [21:16:28]line [21:16:28]written 0, free lines is 3297 [21:16:28]MH_Cut [21:16:28]Write to MH i2c: D1 01 00 61 7E 01 B1 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: D1 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: D1 01 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: D1 01 00 61 7E 00 B0 [21:16:28]Write to MH i2c: 01 00 00 62 7E E0 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]OFD Sender: No OFD packet to send [21:16:29]*** Cut start [21:16:29]*** Partial cut [21:16:29]*** CUTSNS_PIN = 1 [21:16:29]*** CUTSNS_PIN = 0 [21:16:29]*** Brake cut motor [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]*** Stop cut motor [21:16:29]*** Cut end [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 62 7E 00 00 00 00 00 FF 0F F5 [21:16:29]process_action close_receipt done [21:16:29]requested_data is exist [21:16:29]produce_requested_data [21:16:29]requested_item fm.sn is exist - process it [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 11 00 00 [21:16:29]Write to MH i2c: E2 08 00 63 7E 80 11 00 00 00 00 00 00 5B [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 63 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [21:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:16:29]wFMCommunicate OK [21:16:29]requested_item fd.num is exist - process it [21:16:29]SAM_PROTO_GetFieldsCounters [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 13 00 00 [21:16:29]Write to MH i2c: E2 08 00 64 7E 80 13 00 00 00 00 00 00 5E [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 62 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 62 00 64 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [21:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:29]wFMCommunicate OK [21:16:29]SAM_PROTO_GetFieldsCounters done [21:16:29]requested_item shift.num is exist - process it [21:16:29]requested_item shift.opened is exist - process it [21:16:29]req_shift_opened [21:16:29]FM_GetShiftState [21:16:29]SAM_PROTO_GetShiftState [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 13 01 00 [21:16:29]Write to MH i2c: E2 08 00 65 7E 80 13 01 00 00 00 00 00 60 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:30]Read from MH i2c: E2 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: E2 0E 00 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: E2 0E 00 65 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E1 [21:16:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:16:30]wFMCommunicate OK [21:16:30]SAM_PROTO_GetShiftState done [21:16:30]FM_GetShiftState done [21:16:30]req_shift_opened done [21:16:30]requested_item shift.open_date is exist - process it [21:16:30]req_shift_open_date [21:16:30]req_shift_open_date done [21:16:30]produce_requested_data done [21:16:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103537,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:16:30]process_action_free close_receipt [21:16:30]json_value_free [21:16:30]json_value_free done [21:16:30]process_json_proto returns [21:16:30]Send response to host [21:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103537,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:16:30]free response buf [21:16:30]execute_script done [21:16:30]execute_script returns [21:16:30]free content buf [21:16:30]Sock 9.Close socket [21:16:30]Sock 9.Thread stoped [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:21]accept exits with 7 [21:18:21]New connection [21:18:21]New thread 3067084132 created [21:18:21]Thread 3067227492 joined [21:18:21]Waiting for new connection... [21:18:21] Sock 7.Parse request [21:18:21]Sock 7.Check first char [21:18:21]Sock 7.First char is OK [21:18:21]request: POST /json_proto HTTP/1.0 [21:18:21]Method: POST [21:18:21]URL: /json_proto [21:18:21]Method is POST - this is cgi request [21:18:21]url: /json_proto [21:18:21]query_string will be loaded in cgi processing [21:18:21]execute_cgi json_proto POST (null) [21:18:21]execute_cgi path=json_proto method=POST [21:18:21]POST find Content-Length [21:18:21]Host: 172.17.38.133:8080 [21:18:21]Content-Length: 803 [21:18:21]Content-Type: application/json [21:18:21] [21:18:21]POST finish read [21:18:21]Found Content-Length = 803 [21:18:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.000, "sum" : 1660.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:21]execute_script... [21:18:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.000, "sum" : 1660.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:21]POST & json_proto [21:18:21]process_json_proto [21:18:21]json parsed OK: [21:18:21]protocol is kg_v1.0 [21:18:21]action value=close_receipt [21:18:21]process_action close_receipt [21:18:21]cmd_close_receipt [21:18:21]MH_GetDate [21:18:21]Write to MH i2c: F0 00 00 66 7E D3 [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: F0 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: F0 09 00 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: F0 09 00 66 7E 00 A6 F9 71 66 BD 8F 7C 64 7E [21:18:21]GetLastDocTimeStamp 1718745394 [21:18:21]current date 1718745510 [21:18:21]FM_GetShiftState [21:18:21]SAM_PROTO_GetShiftState [21:18:21]wFMCommunicate request_size=4 [21:18:21]MH_SAM_APDU [21:18:21]CAPDU: 80 13 01 00 [21:18:21]Write to MH i2c: E2 08 00 67 7E 80 13 01 00 00 00 00 00 62 [21:18:21]Write i2c OK [21:18:21]MH_I2C_Read... [21:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:21]Read from MH i2c: E2 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 0E 00 [21:18:21]MH_I2C_Read... [21:18:21]Read from MH i2c: E2 0E 00 67 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E3 [21:18:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:18:21]wFMCommunicate OK [21:18:21]SAM_PROTO_GetShiftState done [21:18:21]FM_GetShiftState done [21:18:21]opened in 1718670284 [21:18:21]opened+sec_in_day 1718756684 [21:18:21]quantity*price = 166000 [21:18:21]sum+1 = 166001 [21:18:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1660.00 НСП 1% : 14.69 НДС 12% : 176.28 Наличными: 0.00 Безнал.: 1660.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 222 18.06.2024 21:18 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103538 ФПД: 219382791820991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103538&fm=219382791820991&tin=02508201610067®Number=0000000000092785&sum=166000 [21:18:23]StoreToDocumentArchive [21:18:23]shift 352 fd 103538 [21:18:23]save to /storage/0352/doc_00103538 [21:18:23]save last doc name /storage/0352/doc_00103538 to /storage/kkm_last_doc_name [21:18:23]save OK [21:18:23]Clear old archive folders... [21:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:23]tlvbuf is 014CC3A0 [21:18:23]SAM_PROTO_ClearQueue [21:18:23]wFMCommunicate request_size=4 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 09 00 00 [21:18:23]Write to MH i2c: E2 08 00 74 7E 80 09 00 00 00 00 00 00 64 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 74 7E 00 90 00 66 [21:18:23]RAPDU: 90 00 [21:18:23]wFMCommunicate OK [21:18:23]SAM_PROTO_ClearQueue done [21:18:23]KKMCreateOFDPacket [21:18:23]OFDProtocolAddRootSTLVToBuf [21:18:23]FM_MakeSignedData [21:18:23]FM_MakeSignedData [21:18:23]SAM_PROTO_SignData [21:18:23]wFMCommunicate request_size=4 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 0D 01 02 [21:18:23]Write to MH i2c: E2 08 00 75 7E 80 0D 01 02 00 00 00 00 6C [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 75 7E 00 90 00 67 [21:18:23]RAPDU: 90 00 [21:18:23]wFMCommunicate OK [21:18:23]wFMCommunicate request_size=255 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 88 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 A6 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 94 01 00 35 04 06 00 C7 [21:18:23]Write to MH i2c: E2 02 01 76 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 88 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 A6 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 94 01 00 35 04 06 00 C7 00 00 E1 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 76 7E 00 90 00 68 [21:18:23]RAPDU: 90 00 [21:18:23]wFMCommunicate OK [21:18:23]wFMCommunicate request_size=10 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 0D 02 02 05 87 09 60 56 BF [21:18:23]Write to MH i2c: E2 0D 00 77 7E 80 0D 02 02 05 00 87 09 60 56 BF 00 00 7E [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 03 00 77 7E 00 90 00 69 [21:18:23]RAPDU: 90 00 [21:18:23]wFMCommunicate OK [21:18:23]wFMCommunicate request_size=4 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 0D 03 02 [21:18:23]Write to MH i2c: E2 08 00 78 7E 80 0D 03 02 00 00 00 00 71 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 0B 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 0B 00 78 7E 00 73 9B D6 D0 95 A4 C9 42 90 00 6A [21:18:23]RAPDU: 73 9B D6 D0 95 A4 C9 42 90 00 [21:18:23]wFMCommunicate OK [21:18:23]SAM_PROTO_SignData done [21:18:23]FM_MakeSignedData done [21:18:23]CreateOFDProtocolMessage [21:18:23]wFMCommunicate request_size=4 [21:18:23]MH_SAM_APDU [21:18:23]CAPDU: 80 11 00 00 [21:18:23]Write to MH i2c: E2 08 00 79 7E 80 11 00 00 00 00 00 00 71 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:23]Read from MH i2c: E2 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 17 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: E2 17 00 79 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [21:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:18:23]wFMCommunicate OK [21:18:23]CreateOFDProtocolMessage done [21:18:23]OFDSenderStorePacket 103538 [21:18:23]StoreOFDPacket docnum=103538 [21:18:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AD E3 07 01 86 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 88 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 A6 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 94 01 00 35 04 06 00 C7 87 09 60 56 BF 73 9B D6 D0 95 A4 C9 42 [21:18:23]CheckFolder [21:18:23]dirname=/storage/ofd_packets [21:18:23]CheckFolder done [21:18:23]ProducePacketName [21:18:23]name=ofd_packets/00103538 [21:18:23]NVStorageSaveData ofd_packets/00103538 [21:18:23]File name is /storage/ofd_packets/00103538 [21:18:23]Write 301 bytes [21:18:23]NVStorageSaveData done [21:18:23]OFDSenderStorePacket done [21:18:23]KKMCreateOFDPacket done [21:18:23]NVStorageSaveData kkm_last_timestamp [21:18:23]File name is /storage/kkm_last_timestamp [21:18:23]Write 4 bytes [21:18:23]NVStorageSaveData done [21:18:23]ExternCall_PrintAddStr [21:18:23]wPrintStart [21:18:23]Write to MH i2c: 01 00 00 7A 7E F8 [21:18:23]Write i2c OK [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 07 00 [21:18:23]MH_I2C_Read... [21:18:23]Read from MH i2c: 01 07 00 7A 7E 00 00 00 00 00 FF 0F 0D [21:18:23]RasterBufferAndPrint [21:18:23]line Счет N : (1)672750 [21:18:23]line ИНН: 02508201610067 [21:18:23]line Контрольно-Кассовый Чек [21:18:23]line ПРОДАЖА [21:18:23]line ТРК (МРК, ГНК) : 32 [21:18:23]line Товар: 2710124130 [21:18:23]line Аи-92-К-5 [21:18:23]line 25.000 * 66.40 [21:18:23]line = 1660.00 [21:18:23]line НДС 12% НСП 1% [21:18:23]line > о реализуемом товаре [21:18:23]line ИТОГО: 1660.00 [21:18:23]line НСП 1% : 14.69 [21:18:23]line НДС 12% : 176.28 [21:18:23]line Наличными: 0.00 [21:18:23]line Безнал.: 1660.00 [21:18:23]line Место: АЗС № 120 "Партнер Нефть" [21:18:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:18:23]line СНО: Общий режим [21:18:23]line Чек 222 18.06.2024 21:18 [21:18:23]line Смена: 352 ФФД: 1.0 [21:18:23]line ЗНМ: 0300000164 [21:18:23]line РНМ: 0000000000092785 [21:18:23]line Версия ККМ: 001 [21:18:23]line Платежная система: O! деньги [21:18:23]line ФМ: 0000000000875093 [21:18:23]line ФД: 103538 [21:18:23]line ФПД: 219382791820991 [21:18:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103538&fm=219382791820991&tin=02508201610067®Number=0000000000092785&sum=166000 [21:18:23]OFD Sender: Processing packet 103538 [packets to send 17, broken 16] [21:18:23]ProducePacketName [21:18:23]name=ofd_packets/00103538 [21:18:23]OFD Sender: To server: pG, [21:18:23]CommunicateWithHost lk.salyk.kg:30040 [21:18:23]ConnectInit lk.salyk.kg [21:18:23]written 0, free lines is 4095 [21:18:23]Connected sock=10 [21:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AD E3 07 01 86 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 88 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 A6 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 94 01 00 35 04 06 00 C7 87 09 60 56 BF 73 9B D6 D0 95 A4 C9 42 [21:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C1 75 47 00 07 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 94 01 00 F4 03 04 00 31 A0 71 66 B6 04 01 00 00 24 8C 48 05 E0 0E 59 77 [21:18:24]CommunicateWithHost err = 0 [21:18:24]CheckOFDResponse [21:18:24]1017 (14) - 77093643461234 [21:18:24]1041 (16) - 0000000000875093 [21:18:24]1040 (4) - 103538 [21:18:24]1012 (4) - 18.06.2024 14:56 [21:18:24]1206 (1) - 0 [21:18:24]OFD Sender: Remove packet 103538 [21:18:24]ProducePacketName [21:18:24]name=ofd_packets/00103538 [21:18:24]NVStorageDeleteData [21:18:24]Write to MH i2c: 01 00 00 A4 7E 22 [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: 01 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: 01 07 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: 01 07 00 A4 7E 00 00 00 00 00 F2 0C 27 [21:18:24]RasterBufferAndPrint [21:18:24]line [21:18:24]line [21:18:24]line [21:18:24]line [21:18:24]line [21:18:24]written 0, free lines is 3320 [21:18:24]MH_Cut [21:18:24]Write to MH i2c: D1 01 00 AB 7E 01 FB [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: D1 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: D1 01 00 [21:18:24]MH_I2C_Read... [21:18:24]Read from MH i2c: D1 01 00 AB 7E 00 FA [21:18:24]Write to MH i2c: 01 00 00 AC 7E 2A [21:18:24]Write i2c OK [21:18:24]MH_I2C_Read... [21:18:24]OFD Sender: No OFD packet to send [21:18:25]*** Cut start [21:18:25]*** Partial cut [21:18:25]*** CUTSNS_PIN = 1 [21:18:25]*** CUTSNS_PIN = 0 [21:18:25]*** Brake cut motor [21:18:25]Read from MH i2c: 01 [21:18:25]MH_I2C_Read... [21:18:25]*** Stop cut motor [21:18:25]*** Cut end [21:18:25]Read from MH i2c: 01 07 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: 01 07 00 AC 7E 00 00 00 00 00 FF 0F 3F [21:18:25]process_action close_receipt done [21:18:25]requested_data is exist [21:18:25]produce_requested_data [21:18:25]requested_item fm.sn is exist - process it [21:18:25]wFMCommunicate request_size=4 [21:18:25]MH_SAM_APDU [21:18:25]CAPDU: 80 11 00 00 [21:18:25]Write to MH i2c: E2 08 00 AD 7E 80 11 00 00 00 00 00 00 A5 [21:18:25]Write i2c OK [21:18:25]MH_I2C_Read... [21:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:25]Read from MH i2c: E2 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 17 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 17 00 AD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [21:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:18:25]wFMCommunicate OK [21:18:25]requested_item fd.num is exist - process it [21:18:25]SAM_PROTO_GetFieldsCounters [21:18:25]wFMCommunicate request_size=4 [21:18:25]MH_SAM_APDU [21:18:25]CAPDU: 80 13 00 00 [21:18:25]Write to MH i2c: E2 08 00 AE 7E 80 13 00 00 00 00 00 00 A8 [21:18:25]Write i2c OK [21:18:25]MH_I2C_Read... [21:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:25]Read from MH i2c: E2 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 62 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 62 00 AE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:18:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:25]wFMCommunicate OK [21:18:25]SAM_PROTO_GetFieldsCounters done [21:18:25]requested_item shift.num is exist - process it [21:18:25]requested_item shift.opened is exist - process it [21:18:25]req_shift_opened [21:18:25]FM_GetShiftState [21:18:25]SAM_PROTO_GetShiftState [21:18:25]wFMCommunicate request_size=4 [21:18:25]MH_SAM_APDU [21:18:25]CAPDU: 80 13 01 00 [21:18:25]Write to MH i2c: E2 08 00 AF 7E 80 13 01 00 00 00 00 00 AA [21:18:25]Write i2c OK [21:18:25]MH_I2C_Read... [21:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:25]Read from MH i2c: E2 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 0E 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 0E 00 AF 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2B [21:18:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:18:25]wFMCommunicate OK [21:18:25]SAM_PROTO_GetShiftState done [21:18:25]FM_GetShiftState done [21:18:25]req_shift_opened done [21:18:25]requested_item shift.open_date is exist - process it [21:18:25]req_shift_open_date [21:18:25]req_shift_open_date done [21:18:25]produce_requested_data done [21:18:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103538,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:18:25]process_action_free close_receipt [21:18:25]json_value_free [21:18:25]json_value_free done [21:18:25]process_json_proto returns [21:18:25]Send response to host [21:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103538,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:18:25]free response buf [21:18:25]execute_script done [21:18:25]execute_script returns [21:18:25]free content buf [21:18:25]Sock 7.Close socket [21:18:25]Sock 7.Thread stoped [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:08]accept exits with 9 [21:19:08]New connection [21:19:08]New thread 3067227492 created [21:19:08]Thread 3067084132 joined [21:19:08]Waiting for new connection... [21:19:08] Sock 9.Parse request [21:19:08]Sock 9.Check first char [21:19:08]Sock 9.First char is OK [21:19:08]request: POST /json_proto HTTP/1.0 [21:19:08]Method: POST [21:19:08]URL: /json_proto [21:19:08]Method is POST - this is cgi request [21:19:08]url: /json_proto [21:19:08]query_string will be loaded in cgi processing [21:19:08]execute_cgi json_proto POST (null) [21:19:08]execute_cgi path=json_proto method=POST [21:19:08]POST find Content-Length [21:19:08]Host: 172.17.38.133:8080 [21:19:08]Content-Length: 682 [21:19:08]Content-Type: application/json [21:19:08] [21:19:08]POST finish read [21:19:08]Found Content-Length = 682 [21:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:08]execute_script... [21:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:08]POST & json_proto [21:19:08]process_json_proto [21:19:08]json parsed OK: [21:19:08]protocol is kg_v1.0 [21:19:08]action value=close_receipt [21:19:08]process_action close_receipt [21:19:08]cmd_close_receipt [21:19:08]MH_GetDate [21:19:08]Write to MH i2c: F0 00 00 B0 7E 1D [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: F0 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: F0 09 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: F0 09 00 B0 7E 00 D5 F9 71 66 BD 8F 7C 64 F7 [21:19:08]GetLastDocTimeStamp 1718745510 [21:19:08]current date 1718745557 [21:19:08]FM_GetShiftState [21:19:08]SAM_PROTO_GetShiftState [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 13 01 00 [21:19:08]Write to MH i2c: E2 08 00 B1 7E 80 13 01 00 00 00 00 00 AC [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 B1 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2D [21:19:08]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:19:08]wFMCommunicate OK [21:19:08]SAM_PROTO_GetShiftState done [21:19:08]FM_GetShiftState done [21:19:08]opened in 1718670284 [21:19:08]opened+sec_in_day 1718756684 [21:19:08]quantity*price = 100064 [21:19:08]sum+1 = 100066 [21:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 223 18.06.2024 21:19 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103539 ФПД: 88333319948181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103539&fm=88333319948181&tin=02508201610067®Number=0000000000092785&sum=100000 [21:19:09]StoreToDocumentArchive [21:19:09]shift 352 fd 103539 [21:19:09]save to /storage/0352/doc_00103539 [21:19:09]save last doc name /storage/0352/doc_00103539 to /storage/kkm_last_doc_name [21:19:09]save OK [21:19:09]Clear old archive folders... [21:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:09]tlvbuf is 015B1910 [21:19:09]SAM_PROTO_ClearQueue [21:19:09]wFMCommunicate request_size=4 [21:19:09]MH_SAM_APDU [21:19:09]CAPDU: 80 09 00 00 [21:19:09]Write to MH i2c: E2 08 00 BE 7E 80 09 00 00 00 00 00 00 AE [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:09]Read from MH i2c: E2 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: E2 03 00 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: E2 03 00 BE 7E 00 90 00 B0 [21:19:09]RAPDU: 90 00 [21:19:09]wFMCommunicate OK [21:19:09]SAM_PROTO_ClearQueue done [21:19:09]KKMCreateOFDPacket [21:19:09]OFDProtocolAddRootSTLVToBuf [21:19:09]FM_MakeSignedData [21:19:09]FM_MakeSignedData [21:19:09]SAM_PROTO_SignData [21:19:09]wFMCommunicate request_size=4 [21:19:09]MH_SAM_APDU [21:19:09]CAPDU: 80 0D 01 02 [21:19:09]Write to MH i2c: E2 08 00 BF 7E 80 0D 01 02 00 00 00 00 B6 [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:09]Read from MH i2c: E2 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: E2 03 00 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: E2 03 00 BF 7E 00 90 00 B1 [21:19:09]RAPDU: 90 00 [21:19:09]wFMCommunicate OK [21:19:09]wFMCommunicate request_size=255 [21:19:09]MH_SAM_APDU [21:19:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 94 01 00 35 04 06 00 50 [21:19:09]Write to MH i2c: E2 02 01 C0 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 94 01 00 35 04 06 00 50 00 00 FD [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 03 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 03 00 C0 7E 00 90 00 B2 [21:19:10]RAPDU: 90 00 [21:19:10]wFMCommunicate OK [21:19:10]wFMCommunicate request_size=10 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 0D 02 02 05 56 B4 28 47 95 [21:19:10]Write to MH i2c: E2 0D 00 C1 7E 80 0D 02 02 05 00 56 B4 28 47 95 00 00 D1 [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 03 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 03 00 C1 7E 00 90 00 B3 [21:19:10]RAPDU: 90 00 [21:19:10]wFMCommunicate OK [21:19:10]wFMCommunicate request_size=4 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 0D 03 02 [21:19:10]Write to MH i2c: E2 08 00 C2 7E 80 0D 03 02 00 00 00 00 BB [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 0B 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 0B 00 C2 7E 00 31 DF C5 15 4E CB C9 F4 90 00 7C [21:19:10]RAPDU: 31 DF C5 15 4E CB C9 F4 90 00 [21:19:10]wFMCommunicate OK [21:19:10]SAM_PROTO_SignData done [21:19:10]FM_MakeSignedData done [21:19:10]CreateOFDProtocolMessage [21:19:10]wFMCommunicate request_size=4 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 11 00 00 [21:19:10]Write to MH i2c: E2 08 00 C3 7E 80 11 00 00 00 00 00 00 BB [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 17 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 17 00 C3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [21:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:19:10]wFMCommunicate OK [21:19:10]CreateOFDProtocolMessage done [21:19:10]OFDSenderStorePacket 103539 [21:19:10]StoreOFDPacket docnum=103539 [21:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B6 A8 07 01 04 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 94 01 00 35 04 06 00 50 56 B4 28 47 95 31 DF C5 15 4E CB C9 F4 [21:19:10]CheckFolder [21:19:10]dirname=/storage/ofd_packets [21:19:10]CheckFolder done [21:19:10]ProducePacketName [21:19:10]name=ofd_packets/00103539 [21:19:10]NVStorageSaveData ofd_packets/00103539 [21:19:10]File name is /storage/ofd_packets/00103539 [21:19:10]Write 301 bytes [21:19:10]NVStorageSaveData done [21:19:10]OFDSenderStorePacket done [21:19:10]KKMCreateOFDPacket done [21:19:10]NVStorageSaveData kkm_last_timestamp [21:19:10]File name is /storage/kkm_last_timestamp [21:19:10]Write 4 bytes [21:19:10]NVStorageSaveData done [21:19:10]ExternCall_PrintAddStr [21:19:10]wPrintStart [21:19:10]Write to MH i2c: 01 00 00 C4 7E 42 [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: 01 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: 01 07 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: 01 07 00 C4 7E 00 00 00 00 00 FF 0F 57 [21:19:10]RasterBufferAndPrint [21:19:10]line Счет N : (1)672751 [21:19:10]line ИНН: 02508201610067 [21:19:10]line Контрольно-Кассовый Чек [21:19:10]line ПРОДАЖА [21:19:10]line ТРК (МРК, ГНК) : 42 [21:19:10]line Товар: 2710124130 [21:19:10]line Аи-92-К-5 [21:19:10]line 15.070 * 66.40 [21:19:10]line = 1000.65 [21:19:10]line НДС 12% НСП 1% [21:19:10]line > о реализуемом товаре [21:19:10]line ОКРУГЛЕНИЕ: -0.65 [21:19:10]line ИТОГО: 1000.00 [21:19:10]line Внесено: 1000.00 [21:19:10]line СДАЧА: 0.00 [21:19:10]line НСП 1% : 8.85 [21:19:10]line НДС 12% : 106.26 [21:19:10]line Наличными: 1000.00 [21:19:10]line Безнал.: 0.00 [21:19:10]line Место: АЗС № 120 "Партнер Нефть" [21:19:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:19:10]line СНО: Общий режим [21:19:10]line Чек 223 18.06.2024 21:19 [21:19:10]line Смена: 352 ФФД: 1.0 [21:19:10]line ЗНМ: 0300000164 [21:19:10]line РНМ: 0000000000092785 [21:19:10]line Версия ККМ: 001 [21:19:10]line ФМ: 0000000000875093 [21:19:10]line ФД: 103539 [21:19:10]line ФПД: 88333319948181 [21:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103539&fm=88333319948181&tin=02508201610067®Number=0000000000092785&sum=100000 [21:19:10]OFD Sender: Processing packet 103539 [packets to send 17, broken 16] [21:19:10]ProducePacketName [21:19:10]name=ofd_packets/00103539 [21:19:10]OFD Sender: To server: pG, [21:19:10]CommunicateWithHost lk.salyk.kg:30040 [21:19:10]ConnectInit lk.salyk.kg [21:19:10]written 0, free lines is 4095 [21:19:10]Connected sock=11 [21:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B6 A8 07 01 04 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 F9 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 94 01 00 35 04 06 00 50 56 B4 28 47 95 31 DF C5 15 4E CB C9 F4 [21:19:11]Write to MH i2c: 01 00 00 EF 7E 6D [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 07 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 07 00 EF 7E 00 00 00 00 00 E4 0C 64 [21:19:11]RasterBufferAndPrint [21:19:11]line [21:19:11]line [21:19:11]line [21:19:11]line [21:19:11]line [21:19:11]written 0, free lines is 3306 [21:19:11]MH_Cut [21:19:11]Write to MH i2c: D1 01 00 F6 7E 01 46 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: D1 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: D1 01 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: D1 01 00 F6 7E 00 45 [21:19:11]Write to MH i2c: 01 00 00 F7 7E 75 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5C 71 47 00 64 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 94 01 00 F4 03 04 00 60 A0 71 66 B6 04 01 00 00 59 43 20 01 80 3A CE 21 [21:19:11]CommunicateWithHost err = 0 [21:19:11]CheckOFDResponse [21:19:11]1017 (14) - 77093643461234 [21:19:11]1041 (16) - 0000000000875093 [21:19:11]1040 (4) - 103539 [21:19:11]1012 (4) - 18.06.2024 14:57 [21:19:11]1206 (1) - 0 [21:19:11]OFD Sender: Remove packet 103539 [21:19:11]ProducePacketName [21:19:11]name=ofd_packets/00103539 [21:19:11]NVStorageDeleteData [21:19:11]OFD Sender: No OFD packet to send [21:19:11]*** Cut start [21:19:11]*** Partial cut [21:19:11]*** CUTSNS_PIN = 1 [21:19:11]*** CUTSNS_PIN = 0 [21:19:12]*** Brake cut motor [21:19:12]Read from MH i2c: 01 [21:19:12]MH_I2C_Read... [21:19:12]*** Stop cut motor [21:19:12]*** Cut end [21:19:12]Read from MH i2c: 01 07 00 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: 01 07 00 F7 7E 00 00 00 00 00 FF 0F 8A [21:19:12]process_action close_receipt done [21:19:12]requested_data is exist [21:19:12]produce_requested_data [21:19:12]requested_item fm.sn is exist - process it [21:19:12]wFMCommunicate request_size=4 [21:19:12]MH_SAM_APDU [21:19:12]CAPDU: 80 11 00 00 [21:19:12]Write to MH i2c: E2 08 00 F8 7E 80 11 00 00 00 00 00 00 F0 [21:19:12]Write i2c OK [21:19:12]MH_I2C_Read... [21:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:12]Read from MH i2c: E2 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 17 00 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 17 00 F8 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [21:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:19:12]wFMCommunicate OK [21:19:12]requested_item fd.num is exist - process it [21:19:12]SAM_PROTO_GetFieldsCounters [21:19:12]wFMCommunicate request_size=4 [21:19:12]MH_SAM_APDU [21:19:12]CAPDU: 80 13 00 00 [21:19:12]Write to MH i2c: E2 08 00 F9 7E 80 13 00 00 00 00 00 00 F3 [21:19:12]Write i2c OK [21:19:12]MH_I2C_Read... [21:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:12]Read from MH i2c: E2 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 62 00 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 62 00 F9 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:12]wFMCommunicate OK [21:19:12]SAM_PROTO_GetFieldsCounters done [21:19:12]requested_item shift.num is exist - process it [21:19:12]requested_item shift.opened is exist - process it [21:19:12]req_shift_opened [21:19:12]FM_GetShiftState [21:19:12]SAM_PROTO_GetShiftState [21:19:12]wFMCommunicate request_size=4 [21:19:12]MH_SAM_APDU [21:19:12]CAPDU: 80 13 01 00 [21:19:12]Write to MH i2c: E2 08 00 FA 7E 80 13 01 00 00 00 00 00 F5 [21:19:12]Write i2c OK [21:19:12]MH_I2C_Read... [21:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:12]Read from MH i2c: E2 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 0E 00 [21:19:12]MH_I2C_Read... [21:19:12]Read from MH i2c: E2 0E 00 FA 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 76 [21:19:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:19:12]wFMCommunicate OK [21:19:12]SAM_PROTO_GetShiftState done [21:19:12]FM_GetShiftState done [21:19:12]req_shift_opened done [21:19:12]requested_item shift.open_date is exist - process it [21:19:12]req_shift_open_date [21:19:12]req_shift_open_date done [21:19:12]produce_requested_data done [21:19:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103539,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:19:12]process_action_free close_receipt [21:19:12]json_value_free [21:19:12]json_value_free done [21:19:12]process_json_proto returns [21:19:12]Send response to host [21:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103539,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:19:12]free response buf [21:19:12]execute_script done [21:19:12]execute_script returns [21:19:12]free content buf [21:19:12]Sock 9.Close socket [21:19:12]Sock 9.Thread stoped [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:45]accept exits with 7 [21:22:45]New connection [21:22:45]New thread 3067084132 created [21:22:45]Thread 3067227492 joined [21:22:45]Waiting for new connection... [21:22:45] Sock 7.Parse request [21:22:45]Sock 7.Check first char [21:22:45]Sock 7.First char is OK [21:22:45]request: POST /json_proto HTTP/1.0 [21:22:45]Method: POST [21:22:45]URL: /json_proto [21:22:45]Method is POST - this is cgi request [21:22:45]url: /json_proto [21:22:45]query_string will be loaded in cgi processing [21:22:45]execute_cgi json_proto POST (null) [21:22:45]execute_cgi path=json_proto method=POST [21:22:45]POST find Content-Length [21:22:45]Host: 172.17.38.133:8080 [21:22:45]Content-Length: 682 [21:22:45]Content-Type: application/json [21:22:45] [21:22:45]POST finish read [21:22:45]Found Content-Length = 682 [21:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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" ] } } [21:22:45]execute_script... [21:22:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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" ] } } [21:22:45]POST & json_proto [21:22:45]process_json_proto [21:22:45]json parsed OK: [21:22:45]protocol is kg_v1.0 [21:22:45]action value=close_receipt [21:22:45]process_action close_receipt [21:22:45]cmd_close_receipt [21:22:45]MH_GetDate [21:22:45]Write to MH i2c: F0 00 00 FB 7E 68 [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 09 00 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: F0 09 00 FB 7E 00 AE FA 71 66 BD 8F 7C 64 1C [21:22:46]GetLastDocTimeStamp 1718745557 [21:22:46]current date 1718745774 [21:22:46]FM_GetShiftState [21:22:46]SAM_PROTO_GetShiftState [21:22:46]wFMCommunicate request_size=4 [21:22:46]MH_SAM_APDU [21:22:46]CAPDU: 80 13 01 00 [21:22:46]Write to MH i2c: E2 08 00 FC 7E 80 13 01 00 00 00 00 00 F7 [21:22:46]Write i2c OK [21:22:46]MH_I2C_Read... [21:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:46]Read from MH i2c: E2 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 0E 00 [21:22:46]MH_I2C_Read... [21:22:46]Read from MH i2c: E2 0E 00 FC 7E 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 78 [21:22:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:22:46]wFMCommunicate OK [21:22:46]SAM_PROTO_GetShiftState done [21:22:46]FM_GetShiftState done [21:22:46]opened in 1718670284 [21:22:46]opened+sec_in_day 1718756684 [21:22:46]quantity*price = 200047 [21:22:46]sum+1 = 200048 [21:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 224 18.06.2024 21:22 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103540 ФПД: 103304907774477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103540&fm=103304907774477&tin=02508201610067®Number=0000000000092785&sum=200000 [21:22:47]StoreToDocumentArchive [21:22:47]shift 352 fd 103540 [21:22:47]save to /storage/0352/doc_00103540 [21:22:47]save last doc name /storage/0352/doc_00103540 to /storage/kkm_last_doc_name [21:22:47]save OK [21:22:47]Clear old archive folders... [21:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:47]tlvbuf is 014164D0 [21:22:47]SAM_PROTO_ClearQueue [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 09 00 00 [21:22:47]Write to MH i2c: E2 08 00 09 7F 80 09 00 00 00 00 00 00 FA [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 09 7F 00 90 00 FC [21:22:47]RAPDU: 90 00 [21:22:47]wFMCommunicate OK [21:22:47]SAM_PROTO_ClearQueue done [21:22:47]KKMCreateOFDPacket [21:22:47]OFDProtocolAddRootSTLVToBuf [21:22:47]FM_MakeSignedData [21:22:47]FM_MakeSignedData [21:22:47]SAM_PROTO_SignData [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 0D 01 02 [21:22:47]Write to MH i2c: E2 08 00 0A 7F 80 0D 01 02 00 00 00 00 02 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 0A 7F 00 90 00 FD [21:22:47]RAPDU: 90 00 [21:22:47]wFMCommunicate OK [21:22:47]wFMCommunicate request_size=255 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 E0 00 00 00 F4 03 04 00 AE FA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 94 01 00 35 04 06 00 5D [21:22:47]Write to MH i2c: E2 02 01 0B 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 E0 00 00 00 F4 03 04 00 AE FA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 94 01 00 35 04 06 00 5D 00 00 BA [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 0B 7F 00 90 00 FE [21:22:47]RAPDU: 90 00 [21:22:47]wFMCommunicate OK [21:22:47]wFMCommunicate request_size=10 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 0D 02 02 05 F4 8C 54 DA 0D [21:22:47]Write to MH i2c: E2 0D 00 0C 7F 80 0D 02 02 05 00 F4 8C 54 DA 0D 00 00 CA [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 03 00 0C 7F 00 90 00 FF [21:22:47]RAPDU: 90 00 [21:22:47]wFMCommunicate OK [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 0D 03 02 [21:22:47]Write to MH i2c: E2 08 00 0D 7F 80 0D 03 02 00 00 00 00 07 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0B 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0B 00 0D 7F 00 56 F1 86 17 1C 61 7F 0E 90 00 F6 [21:22:47]RAPDU: 56 F1 86 17 1C 61 7F 0E 90 00 [21:22:47]wFMCommunicate OK [21:22:47]SAM_PROTO_SignData done [21:22:47]FM_MakeSignedData done [21:22:47]CreateOFDProtocolMessage [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 11 00 00 [21:22:47]Write to MH i2c: E2 08 00 0E 7F 80 11 00 00 00 00 00 00 07 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 17 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 17 00 0E 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [21:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:47]wFMCommunicate OK [21:22:47]CreateOFDProtocolMessage done [21:22:47]OFDSenderStorePacket 103540 [21:22:47]StoreOFDPacket docnum=103540 [21:22:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 3B 07 01 6E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 E0 00 00 00 F4 03 04 00 AE FA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 94 01 00 35 04 06 00 5D F4 8C 54 DA 0D 56 F1 86 17 1C 61 7F 0E [21:22:47]CheckFolder [21:22:47]dirname=/storage/ofd_packets [21:22:47]CheckFolder done [21:22:47]ProducePacketName [21:22:47]name=ofd_packets/00103540 [21:22:47]NVStorageSaveData ofd_packets/00103540 [21:22:47]File name is /storage/ofd_packets/00103540 [21:22:47]Write 301 bytes [21:22:47]NVStorageSaveData done [21:22:47]OFDSenderStorePacket done [21:22:47]KKMCreateOFDPacket done [21:22:47]NVStorageSaveData kkm_last_timestamp [21:22:47]File name is /storage/kkm_last_timestamp [21:22:47]Write 4 bytes [21:22:47]NVStorageSaveData done [21:22:47]ExternCall_PrintAddStr [21:22:47]wPrintStart [21:22:47]Write to MH i2c: 01 00 00 0F 7F 8E [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 07 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 07 00 0F 7F 00 00 00 00 00 FF 0F A3 [21:22:47]RasterBufferAndPrint [21:22:47]line Счет N : (1)672752 [21:22:47]line ИНН: 02508201610067 [21:22:47]line Контрольно-Кассовый Чек [21:22:47]line ПРОДАЖА [21:22:47]line ТРК (МРК, ГНК) : 41 [21:22:47]line Товар: 2710124500 [21:22:47]line Аи-95-К-5 [21:22:47]line 27.070 * 73.90 [21:22:47]line = 2000.47 [21:22:47]line НДС 12% НСП 1% [21:22:47]line > о реализуемом товаре [21:22:47]line ОКРУГЛЕНИЕ: -0.47 [21:22:47]line ИТОГО: 2000.00 [21:22:47]line Внесено: 2000.00 [21:22:47]line СДАЧА: 0.00 [21:22:47]line НСП 1% : 17.70 [21:22:47]line НДС 12% : 212.44 [21:22:47]line Наличными: 2000.00 [21:22:47]line Безнал.: 0.00 [21:22:47]line Место: АЗС № 120 "Партнер Нефть" [21:22:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:22:47]line СНО: Общий режим [21:22:47]line Чек 224 18.06.2024 21:22 [21:22:47]line Смена: 352 ФФД: 1.0 [21:22:47]line ЗНМ: 0300000164 [21:22:47]line РНМ: 0000000000092785 [21:22:47]line Версия ККМ: 001 [21:22:47]line ФМ: 0000000000875093 [21:22:47]line ФД: 103540 [21:22:47]line ФПД: 103304907774477 [21:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103540&fm=103304907774477&tin=02508201610067®Number=0000000000092785&sum=200000 [21:22:48]OFD Sender: Processing packet 103540 [packets to send 17, broken 16] [21:22:48]ProducePacketName [21:22:48]name=ofd_packets/00103540 [21:22:48]OFD Sender: To server: pG, [21:22:48]CommunicateWithHost lk.salyk.kg:30040 [21:22:48]ConnectInit lk.salyk.kg [21:22:48]written 0, free lines is 4095 [21:22:48]Connected sock=10 [21:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 3B 07 01 6E 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 E0 00 00 00 F4 03 04 00 AE FA 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 94 01 00 35 04 06 00 5D F4 8C 54 DA 0D 56 F1 86 17 1C 61 7F 0E [21:22:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B1 AF 47 00 2A CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 94 01 00 F4 03 04 00 39 A1 71 66 B6 04 01 00 00 EA 46 00 9C DA F6 B5 01 [21:22:48]CommunicateWithHost err = 0 [21:22:48]CheckOFDResponse [21:22:48]1017 (14) - 77093643461234 [21:22:48]1041 (16) - 0000000000875093 [21:22:48]1040 (4) - 103540 [21:22:48]1012 (4) - 18.06.2024 15:01 [21:22:48]1206 (1) - 0 [21:22:48]OFD Sender: Remove packet 103540 [21:22:48]ProducePacketName [21:22:48]name=ofd_packets/00103540 [21:22:48]NVStorageDeleteData [21:22:48]Write to MH i2c: 01 00 00 3A 7F B9 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: 01 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: 01 07 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: 01 07 00 3A 7F 00 00 00 00 00 D4 0C A0 [21:22:48]RasterBufferAndPrint [21:22:48]line [21:22:48]line [21:22:48]line [21:22:48]line [21:22:48]line [21:22:48]written 0, free lines is 3292 [21:22:48]MH_Cut [21:22:48]Write to MH i2c: D1 01 00 41 7F 01 92 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: D1 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: D1 01 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: D1 01 00 41 7F 00 91 [21:22:48]Write to MH i2c: 01 00 00 42 7F C1 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]OFD Sender: No OFD packet to send [21:22:49]*** Cut start [21:22:49]*** Partial cut [21:22:49]*** CUTSNS_PIN = 1 [21:22:49]*** CUTSNS_PIN = 0 [21:22:49]*** Brake cut motor [21:22:49]Read from MH i2c: 01 [21:22:49]MH_I2C_Read... [21:22:49]*** Stop cut motor [21:22:49]*** Cut end [21:22:49]Read from MH i2c: 01 07 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 07 00 42 7F 00 00 00 00 00 FF 0F D6 [21:22:49]process_action close_receipt done [21:22:49]requested_data is exist [21:22:49]produce_requested_data [21:22:49]requested_item fm.sn is exist - process it [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 11 00 00 [21:22:49]Write to MH i2c: E2 08 00 43 7F 80 11 00 00 00 00 00 00 3C [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 17 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 17 00 43 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [21:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:49]wFMCommunicate OK [21:22:49]requested_item fd.num is exist - process it [21:22:49]SAM_PROTO_GetFieldsCounters [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 13 00 00 [21:22:49]Write to MH i2c: E2 08 00 44 7F 80 13 00 00 00 00 00 00 3F [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 62 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 62 00 44 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [21:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:50]wFMCommunicate OK [21:22:50]SAM_PROTO_GetFieldsCounters done [21:22:50]requested_item shift.num is exist - process it [21:22:50]requested_item shift.opened is exist - process it [21:22:50]req_shift_opened [21:22:50]FM_GetShiftState [21:22:50]SAM_PROTO_GetShiftState [21:22:50]wFMCommunicate request_size=4 [21:22:50]MH_SAM_APDU [21:22:50]CAPDU: 80 13 01 00 [21:22:50]Write to MH i2c: E2 08 00 45 7F 80 13 01 00 00 00 00 00 41 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0E 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0E 00 45 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C2 [21:22:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:22:50]wFMCommunicate OK [21:22:50]SAM_PROTO_GetShiftState done [21:22:50]FM_GetShiftState done [21:22:50]req_shift_opened done [21:22:50]requested_item shift.open_date is exist - process it [21:22:50]req_shift_open_date [21:22:50]req_shift_open_date done [21:22:50]produce_requested_data done [21:22:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:22:50]process_action_free close_receipt [21:22:50]json_value_free [21:22:50]json_value_free done [21:22:50]process_json_proto returns [21:22:50]Send response to host [21:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:22:50]free response buf [21:22:50]execute_script done [21:22:50]execute_script returns [21:22:50]free content buf [21:22:50]Sock 7.Close socket [21:22:50]Sock 7.Thread stoped [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:29]accept exits with 9 [21:23:29]New connection [21:23:29]New thread 3067227492 created [21:23:29]Thread 3067084132 joined [21:23:29]Waiting for new connection... [21:23:29] Sock 9.Parse request [21:23:29]Sock 9.Check first char [21:23:29]Sock 9.First char is OK [21:23:29]request: POST /json_proto HTTP/1.0 [21:23:29]Method: POST [21:23:29]URL: /json_proto [21:23:29]Method is POST - this is cgi request [21:23:29]url: /json_proto [21:23:29]query_string will be loaded in cgi processing [21:23:29]execute_cgi json_proto POST (null) [21:23:29]execute_cgi path=json_proto method=POST [21:23:29]POST find Content-Length [21:23:29]Host: 172.17.38.133:8080 [21:23:29]Content-Length: 1195 [21:23:29]Content-Type: application/json [21:23:29] [21:23:29]POST finish read [21:23:29]Found Content-Length = 1195 [21:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672753\u000A18.06.2024 21:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 24.730 x 73.90\u000A\u0418\u0422\u041E\u0413: 1827.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A71130\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:29]execute_script... [21:23:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672753\u000A18.06.2024 21:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 24.730 x 73.90\u000A\u0418\u0422\u041E\u0413: 1827.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A71130\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:29]POST & json_proto [21:23:29]process_json_proto [21:23:29]json parsed OK: [21:23:29]protocol is kg_v1.0 [21:23:29]action value=print_text [21:23:29]process_action print_text [21:23:29]cmd_print_text [21:23:29]ExternCall_PrintAddStr [21:23:29]wPrintStart [21:23:29]Write to MH i2c: 01 00 00 46 7F C5 [21:23:29]Write i2c OK [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: 01 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: 01 07 00 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: 01 07 00 46 7F 00 00 00 00 00 FF 0F DA [21:23:29]RasterBufferAndPrint [21:23:29]line *****ТОВАРНЫЙ ЧЕК***** [21:23:29]line АЗС 120 [21:23:29]line Партнер нефть [21:23:29]line 02508201610067 [21:23:29]line Кассир : Асанбаев Н. [21:23:29]line Счет N : (1)672753 [21:23:29]line 18.06.2024 21:00 [21:23:29]line ПРОДАЖА [21:23:29]line ТРК (МРК, ГНК): 31 [21:23:29]line Вид ГСМ : 2710124500 [21:23:29]line Аи-95-К-5 [21:23:29]line 24.730 x 73.90 [21:23:29]line ИТОГ: 1827.55 [21:23:29]line Тип оплаты: Талоны: Топливная Карта [21:23:29]line 71130 [21:23:29]line ______________________ [21:23:29]line (подпись) [21:23:29]written 0, free lines is 4095 [21:23:30]Write to MH i2c: 01 00 00 5A 7F D9 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 07 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 07 00 5A 7F 00 00 00 00 00 0F 0E FD [21:23:30]RasterBufferAndPrint [21:23:30]line [21:23:30]line [21:23:30]line [21:23:30]line [21:23:30]line [21:23:30]written 0, free lines is 3601 [21:23:30]MH_Cut [21:23:30]Write to MH i2c: D1 01 00 61 7F 01 B2 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: D1 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: D1 01 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: D1 01 00 61 7F 00 B1 [21:23:30]Write to MH i2c: 01 00 00 62 7F E1 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** Cut start [21:23:30]*** Partial cut [21:23:30]*** CUTSNS_PIN = 1 [21:23:30]*** CUTSNS_PIN = 0 [21:23:30]*** Brake cut motor [21:23:31]Read from MH i2c: 01 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 07 00 [21:23:31]MH_I2C_Read... [21:23:31]*** Stop cut motor [21:23:31]*** Cut end [21:23:31]Read from MH i2c: 01 07 00 62 7F 00 00 00 00 00 FF 0F F6 [21:23:31]process_action print_text done [21:23:31]requested_data is exist [21:23:31]produce_requested_data [21:23:31]requested_item fm.sn is exist - process it [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 11 00 00 [21:23:31]Write to MH i2c: E2 08 00 63 7F 80 11 00 00 00 00 00 00 5C [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 17 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 17 00 63 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [21:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:23:31]wFMCommunicate OK [21:23:31]requested_item fd.num is exist - process it [21:23:31]SAM_PROTO_GetFieldsCounters [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 13 00 00 [21:23:31]Write to MH i2c: E2 08 00 64 7F 80 13 00 00 00 00 00 00 5F [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 62 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 62 00 64 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [21:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:31]wFMCommunicate OK [21:23:31]SAM_PROTO_GetFieldsCounters done [21:23:31]requested_item shift.num is exist - process it [21:23:31]requested_item shift.opened is exist - process it [21:23:31]req_shift_opened [21:23:31]FM_GetShiftState [21:23:31]SAM_PROTO_GetShiftState [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 13 01 00 [21:23:31]Write to MH i2c: E2 08 00 65 7F 80 13 01 00 00 00 00 00 61 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0E 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0E 00 65 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E2 [21:23:31]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:23:31]wFMCommunicate OK [21:23:31]SAM_PROTO_GetShiftState done [21:23:31]FM_GetShiftState done [21:23:31]req_shift_opened done [21:23:31]requested_item shift.open_date is exist - process it [21:23:31]req_shift_open_date [21:23:31]req_shift_open_date done [21:23:31]produce_requested_data done [21:23:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:23:31]process_action_free print_text [21:23:31]json_value_free [21:23:31]json_value_free done [21:23:31]process_json_proto returns [21:23:31]Send response to host [21:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:23:31]free response buf [21:23:31]execute_script done [21:23:31]execute_script returns [21:23:31]free content buf [21:23:31]Sock 9.Close socket [21:23:31]Sock 9.Thread stoped [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:48]accept exits with 7 [21:25:48]New connection [21:25:48]New thread 3067084132 created [21:25:48]Thread 3067227492 joined [21:25:48]Waiting for new connection... [21:25:48] Sock 7.Parse request [21:25:48]Sock 7.Check first char [21:25:48]Sock 7.First char is OK [21:25:48]request: POST /json_proto HTTP/1.0 [21:25:48]Method: POST [21:25:48]URL: /json_proto [21:25:48]Method is POST - this is cgi request [21:25:48]url: /json_proto [21:25:48]query_string will be loaded in cgi processing [21:25:48]execute_cgi json_proto POST (null) [21:25:48]execute_cgi path=json_proto method=POST [21:25:48]POST find Content-Length [21:25:48]Host: 172.17.38.133:8080 [21:25:48]Content-Length: 1155 [21:25:48]Content-Type: application/json [21:25:48] [21:25:48]POST finish read [21:25:48]Found Content-Length = 1155 [21:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672754\u000A18.06.2024 21:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.020 x 66.40\u000A\u0418\u0422\u041E\u0413: 134.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:48]execute_script... [21:25:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672754\u000A18.06.2024 21:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.020 x 66.40\u000A\u0418\u0422\u041E\u0413: 134.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:48]POST & json_proto [21:25:48]process_json_proto [21:25:48]json parsed OK: [21:25:48]protocol is kg_v1.0 [21:25:48]action value=print_text [21:25:48]process_action print_text [21:25:48]cmd_print_text [21:25:48]ExternCall_PrintAddStr [21:25:48]wPrintStart [21:25:48]Write to MH i2c: 01 00 00 66 7F E5 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 66 7F 00 00 00 00 00 FF 0F FA [21:25:48]RasterBufferAndPrint [21:25:48]line *****ТОВАРНЫЙ ЧЕК***** [21:25:48]line АЗС 120 [21:25:48]line Партнер нефть [21:25:48]line 02508201610067 [21:25:48]line Кассир : Асанбаев Н. [21:25:48]line Счет N : (1)672754 [21:25:48]line 18.06.2024 21:03 [21:25:48]line ПРОДАЖА [21:25:48]line ТРК (МРК, ГНК): 32 [21:25:48]line Вид ГСМ : 2710124130 [21:25:48]line Аи-92-К-5 [21:25:48]line 2.020 x 66.40 [21:25:48]line ИТОГ: 134.13 [21:25:48]line Тип оплаты: Талоны: ТК ГПНА Online [21:25:48]line 30086492 [21:25:48]line ______________________ [21:25:48]line (подпись) [21:25:48]written 0, free lines is 4095 [21:25:48]Write to MH i2c: 01 00 00 7A 7F F9 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 7A 7F 00 00 00 00 00 0F 0E 1D [21:25:48]RasterBufferAndPrint [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]written 0, free lines is 3601 [21:25:48]MH_Cut [21:25:48]Write to MH i2c: D1 01 00 81 7F 01 D2 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 01 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 01 00 81 7F 00 D1 [21:25:48]Write to MH i2c: 01 00 00 82 7F 01 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:49]OFD Sender: No OFD packet to send [21:25:49]*** Cut start [21:25:49]*** Partial cut [21:25:49]*** CUTSNS_PIN = 1 [21:25:49]*** CUTSNS_PIN = 0 [21:25:49]*** Brake cut motor [21:25:49]Read from MH i2c: 01 [21:25:49]MH_I2C_Read... [21:25:49]*** Stop cut motor [21:25:49]*** Cut end [21:25:49]Read from MH i2c: 01 07 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: 01 07 00 82 7F 00 00 00 00 00 FF 0F 16 [21:25:49]process_action print_text done [21:25:49]requested_data is exist [21:25:49]produce_requested_data [21:25:49]requested_item fm.sn is exist - process it [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 11 00 00 [21:25:49]Write to MH i2c: E2 08 00 83 7F 80 11 00 00 00 00 00 00 7C [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 17 00 83 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [21:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:25:49]wFMCommunicate OK [21:25:49]requested_item fd.num is exist - process it [21:25:49]SAM_PROTO_GetFieldsCounters [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 00 00 [21:25:49]Write to MH i2c: E2 08 00 84 7F 80 13 00 00 00 00 00 00 7F [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 62 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 62 00 84 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [21:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetFieldsCounters done [21:25:49]requested_item shift.num is exist - process it [21:25:49]requested_item shift.opened is exist - process it [21:25:49]req_shift_opened [21:25:49]FM_GetShiftState [21:25:49]SAM_PROTO_GetShiftState [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 01 00 [21:25:49]Write to MH i2c: E2 08 00 85 7F 80 13 01 00 00 00 00 00 81 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0E 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0E 00 85 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 02 [21:25:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:25:50]wFMCommunicate OK [21:25:50]SAM_PROTO_GetShiftState done [21:25:50]FM_GetShiftState done [21:25:50]req_shift_opened done [21:25:50]requested_item shift.open_date is exist - process it [21:25:50]req_shift_open_date [21:25:50]req_shift_open_date done [21:25:50]produce_requested_data done [21:25:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:25:50]process_action_free print_text [21:25:50]json_value_free [21:25:50]json_value_free done [21:25:50]process_json_proto returns [21:25:50]Send response to host [21:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103540,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:25:50]free response buf [21:25:50]execute_script done [21:25:50]execute_script returns [21:25:50]free content buf [21:25:50]Sock 7.Close socket [21:25:50]Sock 7.Thread stoped [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:40]accept exits with 9 [21:26:40]New connection [21:26:40]New thread 3067227492 created [21:26:40]Thread 3067084132 joined [21:26:40]Waiting for new connection... [21:26:40] Sock 9.Parse request [21:26:40]Sock 9.Check first char [21:26:40]Sock 9.First char is OK [21:26:40]request: POST /json_proto HTTP/1.0 [21:26:40]Method: POST [21:26:40]URL: /json_proto [21:26:40]Method is POST - this is cgi request [21:26:40]url: /json_proto [21:26:40]query_string will be loaded in cgi processing [21:26:40]execute_cgi json_proto POST (null) [21:26:40]execute_cgi path=json_proto method=POST [21:26:40]POST find Content-Length [21:26:40]Host: 172.17.38.133:8080 [21:26:40]Content-Length: 678 [21:26:40]Content-Type: application/json [21:26:40] [21:26:40]POST finish read [21:26:40]Found Content-Length = 678 [21:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.050, "sum" : 866.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 866.00, "total" : 866.00, "payments": [ { "type": 0, "sum" : 866.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:40]execute_script... [21:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.050, "sum" : 866.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 866.00, "total" : 866.00, "payments": [ { "type": 0, "sum" : 866.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:40]POST & json_proto [21:26:40]process_json_proto [21:26:40]json parsed OK: [21:26:40]protocol is kg_v1.0 [21:26:40]action value=close_receipt [21:26:40]process_action close_receipt [21:26:40]cmd_close_receipt [21:26:40]MH_GetDate [21:26:40]Write to MH i2c: F0 00 00 86 7F F4 [21:26:40]Write i2c OK [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 09 00 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 09 00 86 7F 00 98 FB 71 66 BD 8F 7C 64 93 [21:26:40]GetLastDocTimeStamp 1718745774 [21:26:40]current date 1718746008 [21:26:40]FM_GetShiftState [21:26:40]SAM_PROTO_GetShiftState [21:26:40]wFMCommunicate request_size=4 [21:26:40]MH_SAM_APDU [21:26:40]CAPDU: 80 13 01 00 [21:26:40]Write to MH i2c: E2 08 00 87 7F 80 13 01 00 00 00 00 00 83 [21:26:40]Write i2c OK [21:26:40]MH_I2C_Read... [21:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:40]Read from MH i2c: E2 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: E2 0E 00 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: E2 0E 00 87 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 04 [21:26:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:26:40]wFMCommunicate OK [21:26:40]SAM_PROTO_GetShiftState done [21:26:40]FM_GetShiftState done [21:26:40]opened in 1718670284 [21:26:40]opened+sec_in_day 1718756684 [21:26:40]quantity*price = 86652 [21:26:40]sum+1 = 86653 [21:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 866.00 Внесено: 866.00 СДАЧА: 0.00 НСП 1% : 7.67 НДС 12% : 92.02 Наличными: 866.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 225 18.06.2024 21:26 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103541 ФПД: 231816760948478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212648&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103541&fm=231816760948478&tin=02508201610067®Number=0000000000092785&sum=86600 [21:26:41]StoreToDocumentArchive [21:26:41]shift 352 fd 103541 [21:26:41]save to /storage/0352/doc_00103541 [21:26:41]save last doc name /storage/0352/doc_00103541 to /storage/kkm_last_doc_name [21:26:41]save OK [21:26:41]Clear old archive folders... [21:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:41]tlvbuf is 01358A00 [21:26:41]SAM_PROTO_ClearQueue [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 09 00 00 [21:26:41]Write to MH i2c: E2 08 00 94 7F 80 09 00 00 00 00 00 00 85 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 94 7F 00 90 00 87 [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]SAM_PROTO_ClearQueue done [21:26:41]KKMCreateOFDPacket [21:26:41]OFDProtocolAddRootSTLVToBuf [21:26:41]FM_MakeSignedData [21:26:41]FM_MakeSignedData [21:26:41]SAM_PROTO_SignData [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 01 02 [21:26:41]Write to MH i2c: E2 08 00 95 7F 80 0D 01 02 00 00 00 00 8D [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 95 7F 00 90 00 88 [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=255 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7C 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 52 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 23 00 00 00 00 07 04 06 00 48 52 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 98 FB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 94 01 00 35 04 06 00 D2 [21:26:41]Write to MH i2c: E2 02 01 96 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7C 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 52 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 23 00 00 00 00 07 04 06 00 48 52 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 98 FB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 94 01 00 35 04 06 00 D2 00 00 75 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 96 7F 00 90 00 89 [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=10 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 02 02 05 D6 0B B0 76 FE [21:26:41]Write to MH i2c: E2 0D 00 97 7F 80 0D 02 02 05 00 D6 0B B0 76 FE 00 00 9F [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 97 7F 00 90 00 8A [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 03 02 [21:26:41]Write to MH i2c: E2 08 00 98 7F 80 0D 03 02 00 00 00 00 92 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 0B 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 0B 00 98 7F 00 00 2A CC 8D 15 8B 89 3F 90 00 7E [21:26:41]RAPDU: 00 2A CC 8D 15 8B 89 3F 90 00 [21:26:41]wFMCommunicate OK [21:26:41]SAM_PROTO_SignData done [21:26:41]FM_MakeSignedData done [21:26:41]CreateOFDProtocolMessage [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 11 00 00 [21:26:41]Write to MH i2c: E2 08 00 99 7F 80 11 00 00 00 00 00 00 92 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 17 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 17 00 99 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [21:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:26:41]wFMCommunicate OK [21:26:41]CreateOFDProtocolMessage done [21:26:41]OFDSenderStorePacket 103541 [21:26:41]StoreOFDPacket docnum=103541 [21:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 3A 07 01 57 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7C 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 52 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 23 00 00 00 00 07 04 06 00 48 52 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 98 FB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 94 01 00 35 04 06 00 D2 D6 0B B0 76 FE 00 2A CC 8D 15 8B 89 3F [21:26:41]CheckFolder [21:26:41]dirname=/storage/ofd_packets [21:26:41]CheckFolder done [21:26:41]ProducePacketName [21:26:41]name=ofd_packets/00103541 [21:26:41]NVStorageSaveData ofd_packets/00103541 [21:26:41]File name is /storage/ofd_packets/00103541 [21:26:41]Write 301 bytes [21:26:41]NVStorageSaveData done [21:26:41]OFDSenderStorePacket done [21:26:41]KKMCreateOFDPacket done [21:26:41]NVStorageSaveData kkm_last_timestamp [21:26:41]File name is /storage/kkm_last_timestamp [21:26:41]Write 4 bytes [21:26:41]NVStorageSaveData done [21:26:41]ExternCall_PrintAddStr [21:26:41]wPrintStart [21:26:41]Write to MH i2c: 01 00 00 9A 7F 19 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: 01 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: 01 07 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: 01 07 00 9A 7F 00 00 00 00 00 FF 0F 2E [21:26:41]RasterBufferAndPrint [21:26:41]line Счет N : (1)672755 [21:26:41]line ИНН: 02508201610067 [21:26:41]line Контрольно-Кассовый Чек [21:26:41]line ПРОДАЖА [21:26:41]line ТРК (МРК, ГНК) : 32 [21:26:41]line Товар: 2710124130 [21:26:41]line Аи-92-К-5 [21:26:41]line 13.050 * 66.40 [21:26:41]line = 866.52 [21:26:41]line НДС 12% НСП 1% [21:26:41]line > о реализуемом товаре [21:26:41]line ОКРУГЛЕНИЕ: -0.52 [21:26:41]line ИТОГО: 866.00 [21:26:41]line Внесено: 866.00 [21:26:41]line СДАЧА: 0.00 [21:26:41]line НСП 1% : 7.67 [21:26:41]line НДС 12% : 92.02 [21:26:41]line Наличными: 866.00 [21:26:41]line Безнал.: 0.00 [21:26:41]line Место: АЗС № 120 "Партнер Нефть" [21:26:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:26:41]line СНО: Общий режим [21:26:41]line Чек 225 18.06.2024 21:26 [21:26:41]line Смена: 352 ФФД: 1.0 [21:26:41]line ЗНМ: 0300000164 [21:26:41]line РНМ: 0000000000092785 [21:26:41]line Версия ККМ: 001 [21:26:41]line ФМ: 0000000000875093 [21:26:41]line ФД: 103541 [21:26:41]line ФПД: 231816760948478 [21:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212648&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103541&fm=231816760948478&tin=02508201610067®Number=0000000000092785&sum=86600 [21:26:42]OFD Sender: Processing packet 103541 [packets to send 17, broken 16] [21:26:42]ProducePacketName [21:26:42]name=ofd_packets/00103541 [21:26:42]OFD Sender: To server: pG, [21:26:42]CommunicateWithHost lk.salyk.kg:30040 [21:26:42]ConnectInit lk.salyk.kg [21:26:42]written 0, free lines is 4095 [21:26:42]Connected sock=10 [21:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 3A 07 01 57 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7C 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 52 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 23 00 00 00 00 07 04 06 00 48 52 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 98 FB 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 94 01 00 35 04 06 00 D2 D6 0B B0 76 FE 00 2A CC 8D 15 8B 89 3F [21:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BD C9 47 00 8B 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 35 30 39 33 10 04 04 00 75 94 01 00 F4 03 04 00 23 A2 71 66 B6 04 01 00 00 4A ED 4F 3A 22 0E E2 8A [21:26:42]CommunicateWithHost err = 0 [21:26:42]CheckOFDResponse [21:26:42]1017 (14) - 77093643461234 [21:26:42]1041 (16) - 0000000000875093 [21:26:42]1040 (4) - 103541 [21:26:42]1012 (4) - 18.06.2024 15:05 [21:26:42]1206 (1) - 0 [21:26:42]OFD Sender: Remove packet 103541 [21:26:42]ProducePacketName [21:26:42]name=ofd_packets/00103541 [21:26:42]NVStorageDeleteData [21:26:42]Write to MH i2c: 01 00 00 C5 7F 44 [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 C5 7F 00 00 00 00 00 D7 0C 2E [21:26:42]RasterBufferAndPrint [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]written 0, free lines is 3294 [21:26:42]MH_Cut [21:26:42]Write to MH i2c: D1 01 00 CC 7F 01 1D [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 01 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 01 00 CC 7F 00 1C [21:26:42]Write to MH i2c: 01 00 00 CD 7F 4C [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:43]OFD Sender: No OFD packet to send [21:26:43]*** Cut start [21:26:43]*** Partial cut [21:26:43]*** CUTSNS_PIN = 1 [21:26:43]*** CUTSNS_PIN = 0 [21:26:43]*** Brake cut motor [21:26:43]Read from MH i2c: 01 [21:26:43]MH_I2C_Read... [21:26:43]*** Stop cut motor [21:26:43]*** Cut end [21:26:43]Read from MH i2c: 01 07 00 [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: 01 07 00 CD 7F 00 00 00 00 00 FF 0F 61 [21:26:43]process_action close_receipt done [21:26:43]requested_data is exist [21:26:43]produce_requested_data [21:26:43]requested_item fm.sn is exist - process it [21:26:43]wFMCommunicate request_size=4 [21:26:43]MH_SAM_APDU [21:26:43]CAPDU: 80 11 00 00 [21:26:43]Write to MH i2c: E2 08 00 CE 7F 80 11 00 00 00 00 00 00 C7 [21:26:43]Write i2c OK [21:26:43]MH_I2C_Read... [21:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:43]Read from MH i2c: E2 [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: E2 17 00 [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: E2 17 00 CE 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [21:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:26:43]wFMCommunicate OK [21:26:43]requested_item fd.num is exist - process it [21:26:43]SAM_PROTO_GetFieldsCounters [21:26:43]wFMCommunicate request_size=4 [21:26:43]MH_SAM_APDU [21:26:43]CAPDU: 80 13 00 00 [21:26:43]Write to MH i2c: E2 08 00 CF 7F 80 13 00 00 00 00 00 00 CA [21:26:43]Write i2c OK [21:26:43]MH_I2C_Read... [21:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:44]Read from MH i2c: E2 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 62 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 62 00 CF 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [21:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:44]wFMCommunicate OK [21:26:44]SAM_PROTO_GetFieldsCounters done [21:26:44]requested_item shift.num is exist - process it [21:26:44]requested_item shift.opened is exist - process it [21:26:44]req_shift_opened [21:26:44]FM_GetShiftState [21:26:44]SAM_PROTO_GetShiftState [21:26:44]wFMCommunicate request_size=4 [21:26:44]MH_SAM_APDU [21:26:44]CAPDU: 80 13 01 00 [21:26:44]Write to MH i2c: E2 08 00 D0 7F 80 13 01 00 00 00 00 00 CC [21:26:44]Write i2c OK [21:26:44]MH_I2C_Read... [21:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:44]Read from MH i2c: E2 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 0E 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 0E 00 D0 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4D [21:26:44]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:26:44]wFMCommunicate OK [21:26:44]SAM_PROTO_GetShiftState done [21:26:44]FM_GetShiftState done [21:26:44]req_shift_opened done [21:26:44]requested_item shift.open_date is exist - process it [21:26:44]req_shift_open_date [21:26:44]req_shift_open_date done [21:26:44]produce_requested_data done [21:26:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103541,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:26:44]process_action_free close_receipt [21:26:44]json_value_free [21:26:44]json_value_free done [21:26:44]process_json_proto returns [21:26:44]Send response to host [21:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103541,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:26:44]free response buf [21:26:44]execute_script done [21:26:44]execute_script returns [21:26:44]free content buf [21:26:44]Sock 9.Close socket [21:26:44]Sock 9.Thread stoped [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:19]accept exits with 7 [21:32:19]New connection [21:32:19]New thread 3067084132 created [21:32:19]Thread 3067227492 joined [21:32:19]Waiting for new connection... [21:32:19] Sock 7.Parse request [21:32:19]Sock 7.Check first char [21:32:19]Sock 7.First char is OK [21:32:19]request: POST /json_proto HTTP/1.0 [21:32:19]Method: POST [21:32:19]URL: /json_proto [21:32:19]Method is POST - this is cgi request [21:32:19]url: /json_proto [21:32:19]query_string will be loaded in cgi processing [21:32:19]execute_cgi json_proto POST (null) [21:32:19]execute_cgi path=json_proto method=POST [21:32:19]POST find Content-Length [21:32:19]Host: 172.17.38.133:8080 [21:32:19]Content-Length: 803 [21:32:19]Content-Type: application/json [21:32:19] [21:32:19]POST finish read [21:32:19]Found Content-Length = 803 [21:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:19]execute_script... [21:32: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)672756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:19]POST & json_proto [21:32:19]process_json_proto [21:32:19]json parsed OK: [21:32:19]protocol is kg_v1.0 [21:32:19]action value=close_receipt [21:32:19]process_action close_receipt [21:32:19]cmd_close_receipt [21:32:19]MH_GetDate [21:32:19]Write to MH i2c: F0 00 00 D1 7F 3F [21:32:19]Write i2c OK [21:32:19]MH_I2C_Read... [21:32:19]Read from MH i2c: F0 [21:32:19]MH_I2C_Read... [21:32:19]Read from MH i2c: F0 09 00 [21:32:19]MH_I2C_Read... [21:32:19]Read from MH i2c: F0 09 00 D1 7F 00 EC FC 71 66 BD 8F 7C 64 33 [21:32:19]GetLastDocTimeStamp 1718746008 [21:32:19]current date 1718746348 [21:32:19]FM_GetShiftState [21:32:19]SAM_PROTO_GetShiftState [21:32:19]wFMCommunicate request_size=4 [21:32:19]MH_SAM_APDU [21:32:19]CAPDU: 80 13 01 00 [21:32:19]Write to MH i2c: E2 08 00 D2 7F 80 13 01 00 00 00 00 00 CE [21:32:19]Write i2c OK [21:32:19]MH_I2C_Read... [21:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:19]Read from MH i2c: E2 [21:32:19]MH_I2C_Read... [21:32:19]Read from MH i2c: E2 0E 00 [21:32:19]MH_I2C_Read... [21:32:19]Read from MH i2c: E2 0E 00 D2 7F 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [21:32:19]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:32:19]wFMCommunicate OK [21:32:19]SAM_PROTO_GetShiftState done [21:32:19]FM_GetShiftState done [21:32:19]opened in 1718670284 [21:32:19]opened+sec_in_day 1718756684 [21:32:19]quantity*price = 200063 [21:32:19]sum+1 = 200064 [21:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 226 18.06.2024 21:32 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103542 ФПД: 140174042114290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213228&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103542&fm=140174042114290&tin=02508201610067®Number=0000000000092785&sum=200063 [21:32:20]StoreToDocumentArchive [21:32:20]shift 352 fd 103542 [21:32:20]save to /storage/0352/doc_00103542 [21:32:20]save last doc name /storage/0352/doc_00103542 to /storage/kkm_last_doc_name [21:32:20]save OK [21:32:20]Clear old archive folders... [21:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:20]tlvbuf is 013F60E0 [21:32:20]SAM_PROTO_ClearQueue [21:32:20]wFMCommunicate request_size=4 [21:32:20]MH_SAM_APDU [21:32:20]CAPDU: 80 09 00 00 [21:32:20]Write to MH i2c: E2 08 00 DF 7F 80 09 00 00 00 00 00 00 D0 [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 [21:32:20]MH_I2C_Read... [21:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:20]Read from MH i2c: E2 03 00 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 03 00 DF 7F 00 90 00 D2 [21:32:20]RAPDU: 90 00 [21:32:20]wFMCommunicate OK [21:32:20]SAM_PROTO_ClearQueue done [21:32:20]KKMCreateOFDPacket [21:32:20]OFDProtocolAddRootSTLVToBuf [21:32:20]FM_MakeSignedData [21:32:20]FM_MakeSignedData [21:32:20]SAM_PROTO_SignData [21:32:20]wFMCommunicate request_size=4 [21:32:20]MH_SAM_APDU [21:32:20]CAPDU: 80 0D 01 02 [21:32:20]Write to MH i2c: E2 08 00 E0 7F 80 0D 01 02 00 00 00 00 D8 [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 [21:32:20]MH_I2C_Read... [21:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:20]Read from MH i2c: E2 03 00 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 03 00 E0 7F 00 90 00 D3 [21:32:20]RAPDU: 90 00 [21:32:20]wFMCommunicate OK [21:32:20]wFMCommunicate request_size=255 [21:32:20]MH_SAM_APDU [21:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 EC FC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 94 01 00 35 04 06 00 7F [21:32:20]Write to MH i2c: E2 02 01 E1 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 EC FC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 94 01 00 35 04 06 00 7F 00 00 91 [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:20]Read from MH i2c: E2 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 03 00 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 03 00 E1 7F 00 90 00 D4 [21:32:20]RAPDU: 90 00 [21:32:20]wFMCommunicate OK [21:32:20]wFMCommunicate request_size=10 [21:32:20]MH_SAM_APDU [21:32:20]CAPDU: 80 0D 02 02 05 7C CF FC A8 F2 [21:32:20]Write to MH i2c: E2 0D 00 E2 7F 80 0D 02 02 05 00 7C CF FC A8 F2 00 00 C6 [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:21]Read from MH i2c: E2 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 E2 7F 00 90 00 D5 [21:32:21]RAPDU: 90 00 [21:32:21]wFMCommunicate OK [21:32:21]wFMCommunicate request_size=4 [21:32:21]MH_SAM_APDU [21:32:21]CAPDU: 80 0D 03 02 [21:32:21]Write to MH i2c: E2 08 00 E3 7F 80 0D 03 02 00 00 00 00 DD [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:21]Read from MH i2c: E2 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 0B 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 0B 00 E3 7F 00 B0 92 2D DC 2B BD 7A B6 90 00 41 [21:32:21]RAPDU: B0 92 2D DC 2B BD 7A B6 90 00 [21:32:21]wFMCommunicate OK [21:32:21]SAM_PROTO_SignData done [21:32:21]FM_MakeSignedData done [21:32:21]CreateOFDProtocolMessage [21:32:21]wFMCommunicate request_size=4 [21:32:21]MH_SAM_APDU [21:32:21]CAPDU: 80 11 00 00 [21:32:21]Write to MH i2c: E2 08 00 E4 7F 80 11 00 00 00 00 00 00 DD [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:21]Read from MH i2c: E2 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 17 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 17 00 E4 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [21:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:32:21]wFMCommunicate OK [21:32:21]CreateOFDProtocolMessage done [21:32:21]OFDSenderStorePacket 103542 [21:32:21]StoreOFDPacket docnum=103542 [21:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 F6 07 01 E0 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 EC FC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 94 01 00 35 04 06 00 7F 7C CF FC A8 F2 B0 92 2D DC 2B BD 7A B6 [21:32:21]CheckFolder [21:32:21]dirname=/storage/ofd_packets [21:32:21]CheckFolder done [21:32:21]ProducePacketName [21:32:21]name=ofd_packets/00103542 [21:32:21]NVStorageSaveData ofd_packets/00103542 [21:32:21]File name is /storage/ofd_packets/00103542 [21:32:21]Write 301 bytes [21:32:21]NVStorageSaveData done [21:32:21]OFDSenderStorePacket done [21:32:21]KKMCreateOFDPacket done [21:32:21]NVStorageSaveData kkm_last_timestamp [21:32:21]File name is /storage/kkm_last_timestamp [21:32:21]Write 4 bytes [21:32:21]NVStorageSaveData done [21:32:21]ExternCall_PrintAddStr [21:32:21]wPrintStart [21:32:21]Write to MH i2c: 01 00 00 E5 7F 64 [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 07 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 07 00 E5 7F 00 00 00 00 00 FF 0F 79 [21:32:21]RasterBufferAndPrint [21:32:21]line Счет N : (1)672756 [21:32:21]line ИНН: 02508201610067 [21:32:21]line Контрольно-Кассовый Чек [21:32:21]line ПРОДАЖА [21:32:21]line ТРК (МРК, ГНК) : 42 [21:32:21]line Товар: 2710124130 [21:32:21]line Аи-92-К-5 [21:32:21]line 30.130 * 66.40 [21:32:21]line = 2000.63 [21:32:21]line НДС 12% НСП 1% [21:32:21]line > о реализуемом товаре [21:32:21]line ИТОГО: 2000.63 [21:32:21]line НСП 1% : 17.70 [21:32:21]line НДС 12% : 212.46 [21:32:21]line Наличными: 0.00 [21:32:21]line Безнал.: 2000.63 [21:32:21]line Место: АЗС № 120 "Партнер Нефть" [21:32:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:32:21]line СНО: Общий режим [21:32:21]line Чек 226 18.06.2024 21:32 [21:32:21]line Смена: 352 ФФД: 1.0 [21:32:21]line ЗНМ: 0300000164 [21:32:21]line РНМ: 0000000000092785 [21:32:21]line Версия ККМ: 001 [21:32:21]line Платежная система: O! деньги [21:32:21]line ФМ: 0000000000875093 [21:32:21]line ФД: 103542 [21:32:21]line ФПД: 140174042114290 [21:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213228&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103542&fm=140174042114290&tin=02508201610067®Number=0000000000092785&sum=200063 [21:32:21]OFD Sender: Processing packet 103542 [packets to send 17, broken 16] [21:32:21]ProducePacketName [21:32:21]name=ofd_packets/00103542 [21:32:21]OFD Sender: To server: pG, [21:32:21]CommunicateWithHost lk.salyk.kg:30040 [21:32:21]ConnectInit lk.salyk.kg [21:32:21]written 0, free lines is 4095 [21:32:21]Connected sock=11 [21:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 F6 07 01 E0 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 EC FC 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 94 01 00 35 04 06 00 7F 7C CF FC A8 F2 B0 92 2D DC 2B BD 7A B6 [21:32:21]Write to MH i2c: 01 00 00 0F 80 8F [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 07 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: 01 07 00 0F 80 00 00 00 00 00 E3 0C 85 [21:32:21]RasterBufferAndPrint [21:32:21]line [21:32:21]line [21:32:21]line [21:32:21]line [21:32:21]line [21:32:21]written 0, free lines is 3306 [21:32:21]MH_Cut [21:32:21]Write to MH i2c: D1 01 00 16 80 01 68 [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: D1 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: D1 01 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: D1 01 00 16 80 00 67 [21:32:21]Write to MH i2c: 01 00 00 17 80 97 [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 ED B1 47 00 E3 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 94 01 00 F4 03 04 00 77 A3 71 66 B6 04 01 00 00 31 79 F4 54 F0 13 2E 64 [21:32:21]CommunicateWithHost err = 0 [21:32:21]CheckOFDResponse [21:32:21]1017 (14) - 77093643461234 [21:32:21]1041 (16) - 0000000000875093 [21:32:21]1040 (4) - 103542 [21:32:21]1012 (4) - 18.06.2024 15:10 [21:32:21]1206 (1) - 0 [21:32:21]OFD Sender: Remove packet 103542 [21:32:21]ProducePacketName [21:32:21]name=ofd_packets/00103542 [21:32:21]NVStorageDeleteData [21:32:22]OFD Sender: No OFD packet to send [21:32:22]*** Cut start [21:32:22]*** Partial cut [21:32:22]*** CUTSNS_PIN = 1 [21:32:22]*** CUTSNS_PIN = 0 [21:32:22]*** Brake cut motor [21:32:23]Read from MH i2c: 01 [21:32:23]MH_I2C_Read... [21:32:23]*** Stop cut motor [21:32:23]*** Cut end [21:32:23]Read from MH i2c: 01 07 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 07 00 17 80 00 00 00 00 00 FF 0F AC [21:32:23]process_action close_receipt done [21:32:23]requested_data is exist [21:32:23]produce_requested_data [21:32:23]requested_item fm.sn is exist - process it [21:32:23]wFMCommunicate request_size=4 [21:32:23]MH_SAM_APDU [21:32:23]CAPDU: 80 11 00 00 [21:32:23]Write to MH i2c: E2 08 00 18 80 80 11 00 00 00 00 00 00 12 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:23]Read from MH i2c: E2 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 17 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 17 00 18 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [21:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:32:23]wFMCommunicate OK [21:32:23]requested_item fd.num is exist - process it [21:32:23]SAM_PROTO_GetFieldsCounters [21:32:23]wFMCommunicate request_size=4 [21:32:23]MH_SAM_APDU [21:32:23]CAPDU: 80 13 00 00 [21:32:23]Write to MH i2c: E2 08 00 19 80 80 13 00 00 00 00 00 00 15 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:23]Read from MH i2c: E2 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 62 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 62 00 19 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [21:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:23]wFMCommunicate OK [21:32:23]SAM_PROTO_GetFieldsCounters done [21:32:23]requested_item shift.num is exist - process it [21:32:23]requested_item shift.opened is exist - process it [21:32:23]req_shift_opened [21:32:23]FM_GetShiftState [21:32:23]SAM_PROTO_GetShiftState [21:32:23]wFMCommunicate request_size=4 [21:32:23]MH_SAM_APDU [21:32:23]CAPDU: 80 13 01 00 [21:32:23]Write to MH i2c: E2 08 00 1A 80 80 13 01 00 00 00 00 00 17 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:23]Read from MH i2c: E2 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 0E 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 0E 00 1A 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [21:32:23]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:32:23]wFMCommunicate OK [21:32:23]SAM_PROTO_GetShiftState done [21:32:23]FM_GetShiftState done [21:32:23]req_shift_opened done [21:32:23]requested_item shift.open_date is exist - process it [21:32:23]req_shift_open_date [21:32:23]req_shift_open_date done [21:32:23]produce_requested_data done [21:32:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103542,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:32:23]process_action_free close_receipt [21:32:23]json_value_free [21:32:23]json_value_free done [21:32:23]process_json_proto returns [21:32:23]Send response to host [21:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103542,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:32:23]free response buf [21:32:23]execute_script done [21:32:23]execute_script returns [21:32:23]free content buf [21:32:23]Sock 7.Close socket [21:32:23]Sock 7.Thread stoped [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:56]accept exits with 9 [21:32:56]New connection [21:32:56]New thread 3067227492 created [21:32:56]Thread 3067084132 joined [21:32:56]Waiting for new connection... [21:32:56] Sock 9.Parse request [21:32:56]Sock 9.Check first char [21:32:56]Sock 9.First char is OK [21:32:56]request: POST /json_proto HTTP/1.0 [21:32:56]Method: POST [21:32:56]URL: /json_proto [21:32:56]Method is POST - this is cgi request [21:32:56]url: /json_proto [21:32:56]query_string will be loaded in cgi processing [21:32:56]execute_cgi json_proto POST (null) [21:32:56]execute_cgi path=json_proto method=POST [21:32:56]POST find Content-Length [21:32:56]Host: 172.17.38.133:8080 [21:32:56]Content-Length: 682 [21:32:56]Content-Type: application/json [21:32:56] [21:32:56]POST finish read [21:32:56]Found Content-Length = 682 [21:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 26.360, "sum" : 1750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1750.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:56]execute_script... [21:32:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 26.360, "sum" : 1750.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1750.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:56]POST & json_proto [21:32:56]process_json_proto [21:32:56]json parsed OK: [21:32:56]protocol is kg_v1.0 [21:32:56]action value=close_receipt [21:32:56]process_action close_receipt [21:32:56]cmd_close_receipt [21:32:56]MH_GetDate [21:32:56]Write to MH i2c: F0 00 00 1B 80 8A [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: F0 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: F0 09 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: F0 09 00 1B 80 00 11 FD 71 66 BD 8F 7C 64 A4 [21:32:56]GetLastDocTimeStamp 1718746348 [21:32:56]current date 1718746385 [21:32:56]FM_GetShiftState [21:32:56]SAM_PROTO_GetShiftState [21:32:56]wFMCommunicate request_size=4 [21:32:56]MH_SAM_APDU [21:32:56]CAPDU: 80 13 01 00 [21:32:56]Write to MH i2c: E2 08 00 1C 80 80 13 01 00 00 00 00 00 19 [21:32:56]Write i2c OK [21:32:56]MH_I2C_Read... [21:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:56]Read from MH i2c: E2 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 0E 00 [21:32:56]MH_I2C_Read... [21:32:56]Read from MH i2c: E2 0E 00 1C 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [21:32:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:32:56]wFMCommunicate OK [21:32:56]SAM_PROTO_GetShiftState done [21:32:56]FM_GetShiftState done [21:32:56]opened in 1718670284 [21:32:56]opened+sec_in_day 1718756684 [21:32:56]quantity*price = 175030 [21:32:56]sum+1 = 175031 [21:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1750.00 Внесено: 1750.00 СДАЧА: 0.00 НСП 1% : 15.49 НДС 12% : 185.87 Наличными: 1750.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 227 18.06.2024 21:33 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103543 ФПД: 151226826039143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213305&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103543&fm=151226826039143&tin=02508201610067®Number=0000000000092785&sum=175000 [21:32:57]StoreToDocumentArchive [21:32:57]shift 352 fd 103543 [21:32:57]save to /storage/0352/doc_00103543 [21:32:57]save last doc name /storage/0352/doc_00103543 to /storage/kkm_last_doc_name [21:32:57]save OK [21:32:57]Clear old archive folders... [21:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:57]tlvbuf is 015CF8B0 [21:32:57]SAM_PROTO_ClearQueue [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 09 00 00 [21:32:57]Write to MH i2c: E2 08 00 29 80 80 09 00 00 00 00 00 00 1B [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 29 80 00 90 00 1D [21:32:57]RAPDU: 90 00 [21:32:57]wFMCommunicate OK [21:32:57]SAM_PROTO_ClearQueue done [21:32:57]KKMCreateOFDPacket [21:32:57]OFDProtocolAddRootSTLVToBuf [21:32:57]FM_MakeSignedData [21:32:57]FM_MakeSignedData [21:32:57]SAM_PROTO_SignData [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 0D 01 02 [21:32:57]Write to MH i2c: E2 08 00 2A 80 80 0D 01 02 00 00 00 00 23 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 2A 80 00 90 00 1E [21:32:57]RAPDU: 90 00 [21:32:57]wFMCommunicate OK [21:32:57]wFMCommunicate request_size=255 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 11 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 94 01 00 35 04 06 00 89 [21:32:57]Write to MH i2c: E2 02 01 2B 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 11 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 94 01 00 35 04 06 00 89 00 00 3B [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]OFD Sender: No OFD packet to send [21:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 2B 80 00 90 00 1F [21:32:57]RAPDU: 90 00 [21:32:57]wFMCommunicate OK [21:32:57]wFMCommunicate request_size=10 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 0D 02 02 05 8A 3D 3F 1F 67 [21:32:57]Write to MH i2c: E2 0D 00 2C 80 80 0D 02 02 05 00 8A 3D 3F 1F 67 00 00 BC [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 03 00 2C 80 00 90 00 20 [21:32:57]RAPDU: 90 00 [21:32:57]wFMCommunicate OK [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 0D 03 02 [21:32:57]Write to MH i2c: E2 08 00 2D 80 80 0D 03 02 00 00 00 00 28 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 0B 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 0B 00 2D 80 00 90 85 1D 79 E6 FA 79 DB 90 00 08 [21:32:57]RAPDU: 90 85 1D 79 E6 FA 79 DB 90 00 [21:32:57]wFMCommunicate OK [21:32:57]SAM_PROTO_SignData done [21:32:57]FM_MakeSignedData done [21:32:57]CreateOFDProtocolMessage [21:32:57]wFMCommunicate request_size=4 [21:32:57]MH_SAM_APDU [21:32:57]CAPDU: 80 11 00 00 [21:32:57]Write to MH i2c: E2 08 00 2E 80 80 11 00 00 00 00 00 00 28 [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:57]Read from MH i2c: E2 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 17 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: E2 17 00 2E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [21:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:32:57]wFMCommunicate OK [21:32:57]CreateOFDProtocolMessage done [21:32:57]OFDSenderStorePacket 103543 [21:32:57]StoreOFDPacket docnum=103543 [21:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 9A 07 01 58 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 11 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 94 01 00 35 04 06 00 89 8A 3D 3F 1F 67 90 85 1D 79 E6 FA 79 DB [21:32:57]CheckFolder [21:32:57]dirname=/storage/ofd_packets [21:32:57]CheckFolder done [21:32:57]ProducePacketName [21:32:57]name=ofd_packets/00103543 [21:32:57]NVStorageSaveData ofd_packets/00103543 [21:32:57]File name is /storage/ofd_packets/00103543 [21:32:57]Write 301 bytes [21:32:57]NVStorageSaveData done [21:32:57]OFDSenderStorePacket done [21:32:57]KKMCreateOFDPacket done [21:32:57]NVStorageSaveData kkm_last_timestamp [21:32:57]File name is /storage/kkm_last_timestamp [21:32:57]Write 4 bytes [21:32:57]NVStorageSaveData done [21:32:57]ExternCall_PrintAddStr [21:32:57]wPrintStart [21:32:57]Write to MH i2c: 01 00 00 2F 80 AF [21:32:57]Write i2c OK [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 07 00 [21:32:57]MH_I2C_Read... [21:32:57]Read from MH i2c: 01 07 00 2F 80 00 00 00 00 00 FF 0F C4 [21:32:57]RasterBufferAndPrint [21:32:57]line Счет N : (1)672757 [21:32:57]line ИНН: 02508201610067 [21:32:57]line Контрольно-Кассовый Чек [21:32:57]line ПРОДАЖА [21:32:57]line ТРК (МРК, ГНК) : 32 [21:32:57]line Товар: 2710124130 [21:32:57]line Аи-92-К-5 [21:32:57]line 26.360 * 66.40 [21:32:57]line = 1750.30 [21:32:57]line НДС 12% НСП 1% [21:32:57]line > о реализуемом товаре [21:32:57]line ОКРУГЛЕНИЕ: -0.30 [21:32:57]line ИТОГО: 1750.00 [21:32:57]line Внесено: 1750.00 [21:32:57]line СДАЧА: 0.00 [21:32:57]line НСП 1% : 15.49 [21:32:57]line НДС 12% : 185.87 [21:32:57]line Наличными: 1750.00 [21:32:57]line Безнал.: 0.00 [21:32:57]line Место: АЗС № 120 "Партнер Нефть" [21:32:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:32:57]line СНО: Общий режим [21:32:57]line Чек 227 18.06.2024 21:33 [21:32:57]line Смена: 352 ФФД: 1.0 [21:32:57]line ЗНМ: 0300000164 [21:32:57]line РНМ: 0000000000092785 [21:32:57]line Версия ККМ: 001 [21:32:57]line ФМ: 0000000000875093 [21:32:57]line ФД: 103543 [21:32:57]line ФПД: 151226826039143 [21:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213305&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103543&fm=151226826039143&tin=02508201610067®Number=0000000000092785&sum=175000 [21:32:58]OFD Sender: Processing packet 103543 [packets to send 17, broken 16] [21:32:58]ProducePacketName [21:32:58]name=ofd_packets/00103543 [21:32:58]OFD Sender: To server: pG, [21:32:58]CommunicateWithHost lk.salyk.kg:30040 [21:32:58]ConnectInit lk.salyk.kg [21:32:58]written 0, free lines is 4095 [21:32:58]Connected sock=10 [21:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 9A 07 01 58 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 66 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 48 00 00 00 00 07 04 06 00 98 AB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 11 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 94 01 00 35 04 06 00 89 8A 3D 3F 1F 67 90 85 1D 79 E6 FA 79 DB [21:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A5 30 47 00 B9 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 35 30 39 33 10 04 04 00 77 94 01 00 F4 03 04 00 9C A3 71 66 B6 04 01 00 00 2F F0 99 21 19 E2 CB 9F [21:32:58]CommunicateWithHost err = 0 [21:32:58]CheckOFDResponse [21:32:58]1017 (14) - 77093643461234 [21:32:58]1041 (16) - 0000000000875093 [21:32:58]1040 (4) - 103543 [21:32:58]1012 (4) - 18.06.2024 15:11 [21:32:58]1206 (1) - 0 [21:32:58]OFD Sender: Remove packet 103543 [21:32:58]ProducePacketName [21:32:58]name=ofd_packets/00103543 [21:32:58]NVStorageDeleteData [21:32:58]Write to MH i2c: 01 00 00 5A 80 DA [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 07 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 07 00 5A 80 00 00 00 00 00 E4 0C D1 [21:32:58]RasterBufferAndPrint [21:32:58]line [21:32:58]line [21:32:58]line [21:32:58]line [21:32:58]line [21:32:58]written 0, free lines is 3306 [21:32:58]MH_Cut [21:32:58]Write to MH i2c: D1 01 00 61 80 01 B3 [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: D1 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: D1 01 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: D1 01 00 61 80 00 B2 [21:32:58]Write to MH i2c: 01 00 00 62 80 E2 [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:59]OFD Sender: No OFD packet to send [21:32:59]*** Cut start [21:32:59]*** Partial cut [21:32:59]*** CUTSNS_PIN = 1 [21:32:59]*** CUTSNS_PIN = 0 [21:32:59]*** Brake cut motor [21:33:00]Read from MH i2c: 01 [21:33:00]MH_I2C_Read... [21:33:00]*** Stop cut motor [21:33:00]*** Cut end [21:33:00]Read from MH i2c: 01 07 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: 01 07 00 62 80 00 00 00 00 00 FF 0F F7 [21:33:00]process_action close_receipt done [21:33:00]requested_data is exist [21:33:00]produce_requested_data [21:33:00]requested_item fm.sn is exist - process it [21:33:00]wFMCommunicate request_size=4 [21:33:00]MH_SAM_APDU [21:33:00]CAPDU: 80 11 00 00 [21:33:00]Write to MH i2c: E2 08 00 63 80 80 11 00 00 00 00 00 00 5D [21:33:00]Write i2c OK [21:33:00]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 17 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 17 00 63 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [21:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:33:00]wFMCommunicate OK [21:33:00]requested_item fd.num is exist - process it [21:33:00]SAM_PROTO_GetFieldsCounters [21:33:00]wFMCommunicate request_size=4 [21:33:00]MH_SAM_APDU [21:33:00]CAPDU: 80 13 00 00 [21:33:00]Write to MH i2c: E2 08 00 64 80 80 13 00 00 00 00 00 00 60 [21:33:00]Write i2c OK [21:33:00]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 62 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 62 00 64 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:00]wFMCommunicate OK [21:33:00]SAM_PROTO_GetFieldsCounters done [21:33:00]requested_item shift.num is exist - process it [21:33:00]requested_item shift.opened is exist - process it [21:33:00]req_shift_opened [21:33:00]FM_GetShiftState [21:33:00]SAM_PROTO_GetShiftState [21:33:00]wFMCommunicate request_size=4 [21:33:00]MH_SAM_APDU [21:33:00]CAPDU: 80 13 01 00 [21:33:00]Write to MH i2c: E2 08 00 65 80 80 13 01 00 00 00 00 00 62 [21:33:00]Write i2c OK [21:33:00]MH_I2C_Read... [21:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:00]Read from MH i2c: E2 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 0E 00 [21:33:00]MH_I2C_Read... [21:33:00]Read from MH i2c: E2 0E 00 65 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E3 [21:33:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:33:00]wFMCommunicate OK [21:33:00]SAM_PROTO_GetShiftState done [21:33:00]FM_GetShiftState done [21:33:00]req_shift_opened done [21:33:00]requested_item shift.open_date is exist - process it [21:33:00]req_shift_open_date [21:33:00]req_shift_open_date done [21:33:00]produce_requested_data done [21:33:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103543,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:33:00]process_action_free close_receipt [21:33:00]json_value_free [21:33:00]json_value_free done [21:33:00]process_json_proto returns [21:33:00]Send response to host [21:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103543,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:33:00]free response buf [21:33:00]execute_script done [21:33:00]execute_script returns [21:33:00]free content buf [21:33:00]Sock 9.Close socket [21:33:00]Sock 9.Thread stoped [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:22]accept exits with 7 [21:35:22]New connection [21:35:22]New thread 3067084132 created [21:35:22]Thread 3067227492 joined [21:35:22]Waiting for new connection... [21:35:22] Sock 7.Parse request [21:35:22]Sock 7.Check first char [21:35:22]Sock 7.First char is OK [21:35:22]request: POST /json_proto HTTP/1.0 [21:35:22]Method: POST [21:35:22]URL: /json_proto [21:35:22]Method is POST - this is cgi request [21:35:22]url: /json_proto [21:35:22]query_string will be loaded in cgi processing [21:35:22]execute_cgi json_proto POST (null) [21:35:22]execute_cgi path=json_proto method=POST [21:35:22]POST find Content-Length [21:35:22]Host: 172.17.38.133:8080 [21:35:22]Content-Length: 808 [21:35:22]Content-Type: application/json [21:35:22] [21:35:22]POST finish read [21:35:22]Found Content-Length = 808 [21:35:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:22]execute_script... [21:35:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:22]POST & json_proto [21:35:22]process_json_proto [21:35:22]json parsed OK: [21:35:22]protocol is kg_v1.0 [21:35:22]action value=close_receipt [21:35:22]process_action close_receipt [21:35:22]cmd_close_receipt [21:35:22]MH_GetDate [21:35:22]Write to MH i2c: F0 00 00 66 80 D5 [21:35:22]Write i2c OK [21:35:22]MH_I2C_Read... [21:35:22]Read from MH i2c: F0 [21:35:22]MH_I2C_Read... [21:35:22]Read from MH i2c: F0 09 00 [21:35:22]MH_I2C_Read... [21:35:22]Read from MH i2c: F0 09 00 66 80 00 A3 FD 71 66 BD 8F 7C 64 81 [21:35:22]GetLastDocTimeStamp 1718746385 [21:35:22]current date 1718746531 [21:35:22]FM_GetShiftState [21:35:22]SAM_PROTO_GetShiftState [21:35:22]wFMCommunicate request_size=4 [21:35:22]MH_SAM_APDU [21:35:22]CAPDU: 80 13 01 00 [21:35:22]Write to MH i2c: E2 08 00 67 80 80 13 01 00 00 00 00 00 64 [21:35:22]Write i2c OK [21:35:22]MH_I2C_Read... [21:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:22]Read from MH i2c: E2 [21:35:22]MH_I2C_Read... [21:35:22]Read from MH i2c: E2 0E 00 [21:35:22]MH_I2C_Read... [21:35:22]Read from MH i2c: E2 0E 00 67 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [21:35:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:35:22]wFMCommunicate OK [21:35:22]SAM_PROTO_GetShiftState done [21:35:22]FM_GetShiftState done [21:35:22]opened in 1718670284 [21:35:22]opened+sec_in_day 1718756684 [21:35:22]quantity*price = 300056 [21:35:22]sum+1 = 300057 [21:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 228 18.06.2024 21:35 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103544 ФПД: 272881661091612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213531&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103544&fm=272881661091612&tin=02508201610067®Number=0000000000092785&sum=300056 [21:35:23]StoreToDocumentArchive [21:35:23]shift 352 fd 103544 [21:35:23]save to /storage/0352/doc_00103544 [21:35:23]save last doc name /storage/0352/doc_00103544 to /storage/kkm_last_doc_name [21:35:23]save OK [21:35:23]Clear old archive folders... [21:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:35:23]tlvbuf is 014F3F50 [21:35:23]SAM_PROTO_ClearQueue [21:35:23]wFMCommunicate request_size=4 [21:35:23]MH_SAM_APDU [21:35:23]CAPDU: 80 09 00 00 [21:35:23]Write to MH i2c: E2 08 00 74 80 80 09 00 00 00 00 00 00 66 [21:35:23]Write i2c OK [21:35:23]MH_I2C_Read... [21:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:23]Read from MH i2c: E2 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 03 00 [21:35:23]MH_I2C_Read... [21:35:23]Read from MH i2c: E2 03 00 74 80 00 90 00 68 [21:35:23]RAPDU: 90 00 [21:35:23]wFMCommunicate OK [21:35:23]SAM_PROTO_ClearQueue done [21:35:23]KKMCreateOFDPacket [21:35:23]OFDProtocolAddRootSTLVToBuf [21:35:23]FM_MakeSignedData [21:35:23]FM_MakeSignedData [21:35:23]SAM_PROTO_SignData [21:35:23]wFMCommunicate request_size=4 [21:35:23]MH_SAM_APDU [21:35:23]CAPDU: 80 0D 01 02 [21:35:23]Write to MH i2c: E2 08 00 75 80 80 0D 01 02 00 00 00 00 6E [21:35:23]Write i2c OK [21:35:23]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 75 80 00 90 00 69 [21:35:24]RAPDU: 90 00 [21:35:24]wFMCommunicate OK [21:35:24]wFMCommunicate request_size=255 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A3 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 94 01 00 35 04 06 00 [21:35:24]Write to MH i2c: E2 02 01 76 80 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A3 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 94 01 00 35 04 06 00 00 00 ED [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 76 80 00 90 00 6A [21:35:24]RAPDU: 90 00 [21:35:24]wFMCommunicate OK [21:35:24]wFMCommunicate request_size=11 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 0D 02 02 06 F8 2F 36 79 9F 1C [21:35:24]Write to MH i2c: E2 0E 00 77 80 80 0D 02 02 06 00 F8 2F 36 79 9F 1C 00 00 0E [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]OFD Sender: No OFD packet to send [21:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 03 00 77 80 00 90 00 6B [21:35:24]RAPDU: 90 00 [21:35:24]wFMCommunicate OK [21:35:24]wFMCommunicate request_size=4 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 0D 03 02 [21:35:24]Write to MH i2c: E2 08 00 78 80 80 0D 03 02 00 00 00 00 73 [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0B 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0B 00 78 80 00 1D 61 4B 8D 60 C8 36 9D 90 00 C5 [21:35:24]RAPDU: 1D 61 4B 8D 60 C8 36 9D 90 00 [21:35:24]wFMCommunicate OK [21:35:24]SAM_PROTO_SignData done [21:35:24]FM_MakeSignedData done [21:35:24]CreateOFDProtocolMessage [21:35:24]wFMCommunicate request_size=4 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 11 00 00 [21:35:24]Write to MH i2c: E2 08 00 79 80 80 11 00 00 00 00 00 00 73 [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 17 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 17 00 79 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [21:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:35:24]wFMCommunicate OK [21:35:24]CreateOFDProtocolMessage done [21:35:24]OFDSenderStorePacket 103544 [21:35:24]StoreOFDPacket docnum=103544 [21:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E9 90 08 01 AD FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A3 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 94 01 00 35 04 06 00 F8 2F 36 79 9F 1C 1D 61 4B 8D 60 C8 36 9D [21:35:24]CheckFolder [21:35:24]dirname=/storage/ofd_packets [21:35:24]CheckFolder done [21:35:24]ProducePacketName [21:35:24]name=ofd_packets/00103544 [21:35:24]NVStorageSaveData ofd_packets/00103544 [21:35:24]File name is /storage/ofd_packets/00103544 [21:35:24]Write 302 bytes [21:35:24]NVStorageSaveData done [21:35:24]OFDSenderStorePacket done [21:35:24]KKMCreateOFDPacket done [21:35:24]NVStorageSaveData kkm_last_timestamp [21:35:24]File name is /storage/kkm_last_timestamp [21:35:24]Write 4 bytes [21:35:24]NVStorageSaveData done [21:35:24]ExternCall_PrintAddStr [21:35:24]wPrintStart [21:35:24]Write to MH i2c: 01 00 00 7A 80 FA [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 07 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 07 00 7A 80 00 00 00 00 00 FF 0F 0F [21:35:24]RasterBufferAndPrint [21:35:24]line Счет N : (1)672758 [21:35:24]line ИНН: 02508201610067 [21:35:24]line Контрольно-Кассовый Чек [21:35:24]line ПРОДАЖА [21:35:24]line ТРК (МРК, ГНК) : 11 [21:35:24]line Товар: 2710194210 [21:35:24]line ДТ(л)-К-5 [21:35:24]line 41.160 * 72.90 [21:35:24]line = 3000.56 [21:35:24]line НДС 12% НСП 1% [21:35:24]line > о реализуемом товаре [21:35:24]line ИТОГО: 3000.56 [21:35:24]line НСП 1% : 26.55 [21:35:24]line НДС 12% : 318.64 [21:35:24]line Наличными: 0.00 [21:35:24]line Безнал.: 3000.56 [21:35:24]line Место: АЗС № 120 "Партнер Нефть" [21:35:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:35:24]line СНО: Общий режим [21:35:24]line Чек 228 18.06.2024 21:35 [21:35:24]line Смена: 352 ФФД: 1.0 [21:35:24]line ЗНМ: 0300000164 [21:35:24]line РНМ: 0000000000092785 [21:35:24]line Версия ККМ: 001 [21:35:24]line Платежная система: O! деньги [21:35:24]line ФМ: 0000000000875093 [21:35:24]line ФД: 103544 [21:35:24]line ФПД: 272881661091612 [21:35:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213531&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103544&fm=272881661091612&tin=02508201610067®Number=0000000000092785&sum=300056 [21:35:24]OFD Sender: Processing packet 103544 [packets to send 17, broken 16] [21:35:24]ProducePacketName [21:35:24]name=ofd_packets/00103544 [21:35:24]OFD Sender: To server: pG, [21:35:24]CommunicateWithHost lk.salyk.kg:30040 [21:35:24]ConnectInit lk.salyk.kg [21:35:24]written 0, free lines is 4095 [21:35:24]Connected sock=10 [21:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E9 90 08 01 AD FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A3 FD 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 94 01 00 35 04 06 00 F8 2F 36 79 9F 1C 1D 61 4B 8D 60 C8 36 9D [21:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 29 37 47 00 99 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 35 30 39 33 10 04 04 00 78 94 01 00 F4 03 04 00 2E A4 71 66 B6 04 01 00 00 62 93 4C FA 9A AB FB 22 [21:35:25]CommunicateWithHost err = 0 [21:35:25]CheckOFDResponse [21:35:25]1017 (14) - 77093643461234 [21:35:25]1041 (16) - 0000000000875093 [21:35:25]1040 (4) - 103544 [21:35:25]1012 (4) - 18.06.2024 15:13 [21:35:25]1206 (1) - 0 [21:35:25]OFD Sender: Remove packet 103544 [21:35:25]ProducePacketName [21:35:25]name=ofd_packets/00103544 [21:35:25]NVStorageDeleteData [21:35:25]Write to MH i2c: 01 00 00 A4 80 24 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 07 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: 01 07 00 A4 80 00 00 00 00 00 F1 0C 28 [21:35:25]RasterBufferAndPrint [21:35:25]line [21:35:25]line [21:35:25]line [21:35:25]line [21:35:25]line [21:35:25]written 0, free lines is 3319 [21:35:25]MH_Cut [21:35:25]Write to MH i2c: D1 01 00 AB 80 01 FD [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: D1 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: D1 01 00 [21:35:25]MH_I2C_Read... [21:35:25]Read from MH i2c: D1 01 00 AB 80 00 FC [21:35:25]Write to MH i2c: 01 00 00 AC 80 2C [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:25]OFD Sender: No OFD packet to send [21:35:25]*** Cut start [21:35:25]*** Partial cut [21:35:25]*** CUTSNS_PIN = 1 [21:35:26]*** CUTSNS_PIN = 0 [21:35:26]*** Brake cut motor [21:35:26]Read from MH i2c: 01 [21:35:26]MH_I2C_Read... [21:35:26]*** Stop cut motor [21:35:26]*** Cut end [21:35:26]Read from MH i2c: 01 07 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 07 00 AC 80 00 00 00 00 00 FF 0F 41 [21:35:26]process_action close_receipt done [21:35:26]requested_data is exist [21:35:26]produce_requested_data [21:35:26]requested_item fm.sn is exist - process it [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 11 00 00 [21:35:26]Write to MH i2c: E2 08 00 AD 80 80 11 00 00 00 00 00 00 A7 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 17 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 17 00 AD 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [21:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:35:26]wFMCommunicate OK [21:35:26]requested_item fd.num is exist - process it [21:35:26]SAM_PROTO_GetFieldsCounters [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 13 00 00 [21:35:26]Write to MH i2c: E2 08 00 AE 80 80 13 00 00 00 00 00 00 AA [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 62 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 62 00 AE 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:35:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:26]wFMCommunicate OK [21:35:26]SAM_PROTO_GetFieldsCounters done [21:35:26]requested_item shift.num is exist - process it [21:35:26]requested_item shift.opened is exist - process it [21:35:26]req_shift_opened [21:35:26]FM_GetShiftState [21:35:26]SAM_PROTO_GetShiftState [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 13 01 00 [21:35:26]Write to MH i2c: E2 08 00 AF 80 80 13 01 00 00 00 00 00 AC [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 0E 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 0E 00 AF 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2D [21:35:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:35:26]wFMCommunicate OK [21:35:26]SAM_PROTO_GetShiftState done [21:35:26]FM_GetShiftState done [21:35:26]req_shift_opened done [21:35:26]requested_item shift.open_date is exist - process it [21:35:26]req_shift_open_date [21:35:26]req_shift_open_date done [21:35:26]produce_requested_data done [21:35:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103544,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:35:26]process_action_free close_receipt [21:35:26]json_value_free [21:35:26]json_value_free done [21:35:26]process_json_proto returns [21:35:26]Send response to host [21:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103544,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:35:26]free response buf [21:35:26]execute_script done [21:35:26]execute_script returns [21:35:26]free content buf [21:35:26]Sock 7.Close socket [21:35:26]Sock 7.Thread stoped [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:33]accept exits with 9 [21:37:33]New connection [21:37:33]New thread 3067227492 created [21:37:33]Thread 3067084132 joined [21:37:33]Waiting for new connection... [21:37:33] Sock 9.Parse request [21:37:33]Sock 9.Check first char [21:37:33]Sock 9.First char is OK [21:37:33]request: POST /json_proto HTTP/1.0 [21:37:33]Method: POST [21:37:33]URL: /json_proto [21:37:33]Method is POST - this is cgi request [21:37:33]url: /json_proto [21:37:33]query_string will be loaded in cgi processing [21:37:33]execute_cgi json_proto POST (null) [21:37:33]execute_cgi path=json_proto method=POST [21:37:33]POST find Content-Length [21:37:33]Host: 172.17.38.133:8080 [21:37:33]Content-Length: 817 [21:37:33]Content-Type: application/json [21:37:33] [21:37:33]POST finish read [21:37:33]Found Content-Length = 817 [21:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "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" : 850.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:33]execute_script... [21:37:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "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" : 850.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:33]POST & json_proto [21:37:33]process_json_proto [21:37:33]json parsed OK: [21:37:33]protocol is kg_v1.0 [21:37:33]action value=close_receipt [21:37:33]process_action close_receipt [21:37:33]cmd_close_receipt [21:37:33]MH_GetDate [21:37:33]Write to MH i2c: F0 00 00 B0 80 1F [21:37:33]Write i2c OK [21:37:33]MH_I2C_Read... [21:37:33]Read from MH i2c: F0 [21:37:33]MH_I2C_Read... [21:37:33]Read from MH i2c: F0 09 00 [21:37:33]MH_I2C_Read... [21:37:33]Read from MH i2c: F0 09 00 B0 80 00 26 FE 71 66 BD 8F 7C 64 4F [21:37:33]GetLastDocTimeStamp 1718746531 [21:37:33]current date 1718746662 [21:37:33]FM_GetShiftState [21:37:33]SAM_PROTO_GetShiftState [21:37:33]wFMCommunicate request_size=4 [21:37:33]MH_SAM_APDU [21:37:33]CAPDU: 80 13 01 00 [21:37:33]Write to MH i2c: E2 08 00 B1 80 80 13 01 00 00 00 00 00 AE [21:37:33]Write i2c OK [21:37:33]MH_I2C_Read... [21:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:33]Read from MH i2c: E2 [21:37:33]MH_I2C_Read... [21:37:33]Read from MH i2c: E2 0E 00 [21:37:33]MH_I2C_Read... [21:37:33]Read from MH i2c: E2 0E 00 B1 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2F [21:37:33]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:37:33]wFMCommunicate OK [21:37:33]SAM_PROTO_GetShiftState done [21:37:33]FM_GetShiftState done [21:37:33]opened in 1718670284 [21:37:33]opened+sec_in_day 1718756684 [21:37:33]quantity*price = 85058 [21:37:33]sum+1 = 85059 [21:37:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.58 НСП 1% : 7.53 НДС 12% : 90.33 Наличными: 0.00 Безнал.: 850.58 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 229 18.06.2024 21:37 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103545 ФПД: 128341942928237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213742&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103545&fm=128341942928237&tin=02508201610067®Number=0000000000092785&sum=85058 [21:37:34]StoreToDocumentArchive [21:37:34]shift 352 fd 103545 [21:37:34]save to /storage/0352/doc_00103545 [21:37:34]save last doc name /storage/0352/doc_00103545 to /storage/kkm_last_doc_name [21:37:34]save OK [21:37:34]Clear old archive folders... [21:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:34]tlvbuf is 015F20A0 [21:37:34]SAM_PROTO_ClearQueue [21:37:34]wFMCommunicate request_size=4 [21:37:34]MH_SAM_APDU [21:37:34]CAPDU: 80 09 00 00 [21:37:34]Write to MH i2c: E2 08 00 BE 80 80 09 00 00 00 00 00 00 B0 [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:34]Read from MH i2c: E2 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 03 00 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 03 00 BE 80 00 90 00 B2 [21:37:34]RAPDU: 90 00 [21:37:34]wFMCommunicate OK [21:37:34]SAM_PROTO_ClearQueue done [21:37:34]KKMCreateOFDPacket [21:37:34]OFDProtocolAddRootSTLVToBuf [21:37:34]FM_MakeSignedData [21:37:34]FM_MakeSignedData [21:37:34]SAM_PROTO_SignData [21:37:34]wFMCommunicate request_size=4 [21:37:34]MH_SAM_APDU [21:37:34]CAPDU: 80 0D 01 02 [21:37:34]Write to MH i2c: E2 08 00 BF 80 80 0D 01 02 00 00 00 00 B8 [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:34]Read from MH i2c: E2 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 03 00 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 03 00 BF 80 00 90 00 B3 [21:37:34]RAPDU: 90 00 [21:37:34]wFMCommunicate OK [21:37:34]wFMCommunicate request_size=255 [21:37:34]MH_SAM_APDU [21:37:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 26 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 94 01 00 35 04 06 00 74 [21:37:34]Write to MH i2c: E2 02 01 C0 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 26 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 94 01 00 35 04 06 00 74 00 00 DC [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 C0 80 00 90 00 B4 [21:37:35]RAPDU: 90 00 [21:37:35]wFMCommunicate OK [21:37:35]wFMCommunicate request_size=10 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 0D 02 02 05 B9 EF EB 03 6D [21:37:35]Write to MH i2c: E2 0D 00 C1 80 80 0D 02 02 05 00 B9 EF EB 03 6D 00 00 C8 [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 C1 80 00 90 00 B5 [21:37:35]RAPDU: 90 00 [21:37:35]wFMCommunicate OK [21:37:35]wFMCommunicate request_size=4 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 0D 03 02 [21:37:35]Write to MH i2c: E2 08 00 C2 80 80 0D 03 02 00 00 00 00 BD [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 0B 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 0B 00 C2 80 00 DA 4B 47 11 22 72 D4 3E 90 00 E1 [21:37:35]RAPDU: DA 4B 47 11 22 72 D4 3E 90 00 [21:37:35]wFMCommunicate OK [21:37:35]SAM_PROTO_SignData done [21:37:35]FM_MakeSignedData done [21:37:35]CreateOFDProtocolMessage [21:37:35]wFMCommunicate request_size=4 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 11 00 00 [21:37:35]Write to MH i2c: E2 08 00 C3 80 80 11 00 00 00 00 00 00 BD [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 17 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 17 00 C3 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [21:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:37:35]wFMCommunicate OK [21:37:35]CreateOFDProtocolMessage done [21:37:35]OFDSenderStorePacket 103545 [21:37:35]StoreOFDPacket docnum=103545 [21:37:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B4 2D 07 01 B6 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 26 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 94 01 00 35 04 06 00 74 B9 EF EB 03 6D DA 4B 47 11 22 72 D4 3E [21:37:35]CheckFolder [21:37:35]dirname=/storage/ofd_packets [21:37:35]CheckFolder done [21:37:35]ProducePacketName [21:37:35]name=ofd_packets/00103545 [21:37:35]NVStorageSaveData ofd_packets/00103545 [21:37:35]File name is /storage/ofd_packets/00103545 [21:37:35]Write 301 bytes [21:37:35]NVStorageSaveData done [21:37:35]OFDSenderStorePacket done [21:37:35]KKMCreateOFDPacket done [21:37:35]NVStorageSaveData kkm_last_timestamp [21:37:35]File name is /storage/kkm_last_timestamp [21:37:35]Write 4 bytes [21:37:35]NVStorageSaveData done [21:37:35]ExternCall_PrintAddStr [21:37:35]wPrintStart [21:37:35]Write to MH i2c: 01 00 00 C4 80 44 [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: 01 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: 01 07 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: 01 07 00 C4 80 00 00 00 00 00 FF 0F 59 [21:37:35]RasterBufferAndPrint [21:37:35]line Счет N : (1)672759 [21:37:35]line ИНН: 02508201610067 [21:37:35]line Контрольно-Кассовый Чек [21:37:35]line ПРОДАЖА [21:37:35]line ТРК (МРК, ГНК) : 32 [21:37:35]line Товар: 2710124130 [21:37:35]line Аи-92-К-5 [21:37:35]line 12.810 * 66.40 [21:37:35]line = 850.58 [21:37:35]line НДС 12% НСП 1% [21:37:35]line > о реализуемом товаре [21:37:35]line ИТОГО: 850.58 [21:37:35]line НСП 1% : 7.53 [21:37:35]line НДС 12% : 90.33 [21:37:35]line Наличными: 0.00 [21:37:35]line Безнал.: 850.58 [21:37:35]line Место: АЗС № 120 "Партнер Нефть" [21:37:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:37:35]line СНО: Общий режим [21:37:35]line Чек 229 18.06.2024 21:37 [21:37:35]line Смена: 352 ФФД: 1.0 [21:37:35]line ЗНМ: 0300000164 [21:37:35]line РНМ: 0000000000092785 [21:37:35]line Версия ККМ: 001 [21:37:35]line Платежная система: Бакай Банк [21:37:35]line ФМ: 0000000000875093 [21:37:35]line ФД: 103545 [21:37:35]line ФПД: 128341942928237 [21:37:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213742&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103545&fm=128341942928237&tin=02508201610067®Number=0000000000092785&sum=85058 [21:37:35]written 0, free lines is 4095 [21:37:35]OFD Sender: Processing packet 103545 [packets to send 17, broken 16] [21:37:35]ProducePacketName [21:37:35]name=ofd_packets/00103545 [21:37:35]OFD Sender: To server: pG, [21:37:35]CommunicateWithHost lk.salyk.kg:30040 [21:37:35]ConnectInit lk.salyk.kg [21:37:35]Connected sock=10 [21:37:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B4 2D 07 01 B6 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 26 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 94 01 00 35 04 06 00 74 B9 EF EB 03 6D DA 4B 47 11 22 72 D4 3E [21:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 53 17 47 00 27 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 94 01 00 F4 03 04 00 B1 A4 71 66 B6 04 01 00 00 58 1D 49 95 34 06 EE E1 [21:37:36]CommunicateWithHost err = 0 [21:37:36]CheckOFDResponse [21:37:36]1017 (14) - 77093643461234 [21:37:36]1041 (16) - 0000000000875093 [21:37:36]1040 (4) - 103545 [21:37:36]1012 (4) - 18.06.2024 15:16 [21:37:36]1206 (1) - 0 [21:37:36]OFD Sender: Remove packet 103545 [21:37:36]ProducePacketName [21:37:36]name=ofd_packets/00103545 [21:37:36]NVStorageDeleteData [21:37:36]Write to MH i2c: 01 00 00 EE 80 6E [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 EE 80 00 00 00 00 00 F2 0C 73 [21:37:36]RasterBufferAndPrint [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]written 0, free lines is 3320 [21:37:36]MH_Cut [21:37:36]Write to MH i2c: D1 01 00 F5 80 01 47 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 F5 80 00 46 [21:37:36]Write to MH i2c: 01 00 00 F6 80 76 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]OFD Sender: No OFD packet to send [21:37:36]*** Cut start [21:37:36]*** Partial cut [21:37:36]*** CUTSNS_PIN = 1 [21:37:36]*** CUTSNS_PIN = 0 [21:37:37]*** Brake cut motor [21:37:37]Read from MH i2c: 01 [21:37:37]MH_I2C_Read... [21:37:37]*** Stop cut motor [21:37:37]*** Cut end [21:37:37]Read from MH i2c: 01 07 00 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: 01 07 00 F6 80 00 00 00 00 00 FF 0F 8B [21:37:37]process_action close_receipt done [21:37:37]requested_data is exist [21:37:37]produce_requested_data [21:37:37]requested_item fm.sn is exist - process it [21:37:37]wFMCommunicate request_size=4 [21:37:37]MH_SAM_APDU [21:37:37]CAPDU: 80 11 00 00 [21:37:37]Write to MH i2c: E2 08 00 F7 80 80 11 00 00 00 00 00 00 F1 [21:37:37]Write i2c OK [21:37:37]MH_I2C_Read... [21:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:37]Read from MH i2c: E2 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 17 00 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 17 00 F7 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [21:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:37:37]wFMCommunicate OK [21:37:37]requested_item fd.num is exist - process it [21:37:37]SAM_PROTO_GetFieldsCounters [21:37:37]wFMCommunicate request_size=4 [21:37:37]MH_SAM_APDU [21:37:37]CAPDU: 80 13 00 00 [21:37:37]Write to MH i2c: E2 08 00 F8 80 80 13 00 00 00 00 00 00 F4 [21:37:37]Write i2c OK [21:37:37]MH_I2C_Read... [21:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:37]Read from MH i2c: E2 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 62 00 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 62 00 F8 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [21:37:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:37]wFMCommunicate OK [21:37:37]SAM_PROTO_GetFieldsCounters done [21:37:37]requested_item shift.num is exist - process it [21:37:37]requested_item shift.opened is exist - process it [21:37:37]req_shift_opened [21:37:37]FM_GetShiftState [21:37:37]SAM_PROTO_GetShiftState [21:37:37]wFMCommunicate request_size=4 [21:37:37]MH_SAM_APDU [21:37:37]CAPDU: 80 13 01 00 [21:37:37]Write to MH i2c: E2 08 00 F9 80 80 13 01 00 00 00 00 00 F6 [21:37:37]Write i2c OK [21:37:37]MH_I2C_Read... [21:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:37]Read from MH i2c: E2 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 0E 00 [21:37:37]MH_I2C_Read... [21:37:37]Read from MH i2c: E2 0E 00 F9 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 77 [21:37:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:37:37]wFMCommunicate OK [21:37:37]SAM_PROTO_GetShiftState done [21:37:37]FM_GetShiftState done [21:37:37]req_shift_opened done [21:37:37]requested_item shift.open_date is exist - process it [21:37:37]req_shift_open_date [21:37:37]req_shift_open_date done [21:37:37]produce_requested_data done [21:37:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103545,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:37:37]process_action_free close_receipt [21:37:37]json_value_free [21:37:37]json_value_free done [21:37:37]process_json_proto returns [21:37:37]Send response to host [21:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103545,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:37:37]free response buf [21:37:37]execute_script done [21:37:37]execute_script returns [21:37:37]free content buf [21:37:37]Sock 9.Close socket [21:37:37]Sock 9.Thread stoped [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:28]accept exits with 7 [21:39:28]New connection [21:39:28]New thread 3067084132 created [21:39:28]Thread 3067227492 joined [21:39:28]Waiting for new connection... [21:39:28] Sock 7.Parse request [21:39:28]Sock 7.Check first char [21:39:28]Sock 7.First char is OK [21:39:28]request: POST /json_proto HTTP/1.0 [21:39:28]Method: POST [21:39:28]URL: /json_proto [21:39:28]Method is POST - this is cgi request [21:39:28]url: /json_proto [21:39:28]query_string will be loaded in cgi processing [21:39:28]execute_cgi json_proto POST (null) [21:39:28]execute_cgi path=json_proto method=POST [21:39:28]POST find Content-Length [21:39:28]Host: 172.17.38.133:8080 [21:39:28]Content-Length: 677 [21:39:28]Content-Type: application/json [21:39:28] [21:39:28]POST finish read [21:39:28]Found Content-Length = 677 [21:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:28]execute_script... [21:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:28]POST & json_proto [21:39:28]process_json_proto [21:39:28]json parsed OK: [21:39:28]protocol is kg_v1.0 [21:39:28]action value=close_receipt [21:39:28]process_action close_receipt [21:39:28]cmd_close_receipt [21:39:28]MH_GetDate [21:39:28]Write to MH i2c: F0 00 00 FA 80 69 [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: F0 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: F0 09 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: F0 09 00 FA 80 00 99 FE 71 66 BD 8F 7C 64 0C [21:39:28]GetLastDocTimeStamp 1718746662 [21:39:28]current date 1718746777 [21:39:28]FM_GetShiftState [21:39:28]SAM_PROTO_GetShiftState [21:39:28]wFMCommunicate request_size=4 [21:39:28]MH_SAM_APDU [21:39:28]CAPDU: 80 13 01 00 [21:39:28]Write to MH i2c: E2 08 00 FB 80 80 13 01 00 00 00 00 00 F8 [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:28]Read from MH i2c: E2 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 0E 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 0E 00 FB 80 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 79 [21:39:28]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:39:28]wFMCommunicate OK [21:39:28]SAM_PROTO_GetShiftState done [21:39:28]FM_GetShiftState done [21:39:28]opened in 1718670284 [21:39:28]opened+sec_in_day 1718756684 [21:39:28]quantity*price = 50065 [21:39:28]sum+1 = 50067 [21:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 230 18.06.2024 21:39 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103546 ФПД: 63732076234215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103546&fm=63732076234215&tin=02508201610067®Number=0000000000092785&sum=50000 [21:39:29]StoreToDocumentArchive [21:39:29]shift 352 fd 103546 [21:39:29]save to /storage/0352/doc_00103546 [21:39:29]save last doc name /storage/0352/doc_00103546 to /storage/kkm_last_doc_name [21:39:29]save OK [21:39:29]Clear old archive folders... [21:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:29]tlvbuf is 015CB280 [21:39:29]SAM_PROTO_ClearQueue [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 09 00 00 [21:39:29]Write to MH i2c: E2 08 00 08 81 80 09 00 00 00 00 00 00 FB [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 08 81 00 90 00 FD [21:39:29]RAPDU: 90 00 [21:39:29]wFMCommunicate OK [21:39:29]SAM_PROTO_ClearQueue done [21:39:29]KKMCreateOFDPacket [21:39:29]OFDProtocolAddRootSTLVToBuf [21:39:29]FM_MakeSignedData [21:39:29]FM_MakeSignedData [21:39:29]SAM_PROTO_SignData [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 0D 01 02 [21:39:29]Write to MH i2c: E2 08 00 09 81 80 0D 01 02 00 00 00 00 03 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 09 81 00 90 00 FE [21:39:29]RAPDU: 90 00 [21:39:29]wFMCommunicate OK [21:39:29]wFMCommunicate request_size=255 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 94 01 00 35 04 06 00 39 [21:39:29]Write to MH i2c: E2 02 01 0A 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 94 01 00 35 04 06 00 39 00 00 BA [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:29]Read from MH i2c: E2 03 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 0A 81 00 90 00 FF [21:39:29]RAPDU: 90 00 [21:39:29]wFMCommunicate OK [21:39:29]wFMCommunicate request_size=10 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 0D 02 02 05 F6 C7 C3 C5 E7 [21:39:29]Write to MH i2c: E2 0D 00 0B 81 80 0D 02 02 05 00 F6 C7 C3 C5 E7 00 00 3C [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 0B 81 00 90 00 00 [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 03 02 [21:39:30]Write to MH i2c: E2 08 00 0C 81 80 0D 03 02 00 00 00 00 08 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0B 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0B 00 0C 81 00 13 12 07 D5 0A 1D B4 BA 90 00 9F [21:39:30]RAPDU: 13 12 07 D5 0A 1D B4 BA 90 00 [21:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_SignData done [21:39:30]FM_MakeSignedData done [21:39:30]CreateOFDProtocolMessage [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 11 00 00 [21:39:30]Write to MH i2c: E2 08 00 0D 81 80 11 00 00 00 00 00 00 08 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 17 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 17 00 0D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [21:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:39:30]wFMCommunicate OK [21:39:30]CreateOFDProtocolMessage done [21:39:30]OFDSenderStorePacket 103546 [21:39:30]StoreOFDPacket docnum=103546 [21:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 D8 07 01 F5 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 94 01 00 35 04 06 00 39 F6 C7 C3 C5 E7 13 12 07 D5 0A 1D B4 BA [21:39:30]CheckFolder [21:39:30]dirname=/storage/ofd_packets [21:39:30]CheckFolder done [21:39:30]ProducePacketName [21:39:30]name=ofd_packets/00103546 [21:39:30]NVStorageSaveData ofd_packets/00103546 [21:39:30]File name is /storage/ofd_packets/00103546 [21:39:30]Write 301 bytes [21:39:30]NVStorageSaveData done [21:39:30]OFDSenderStorePacket done [21:39:30]KKMCreateOFDPacket done [21:39:30]NVStorageSaveData kkm_last_timestamp [21:39:30]File name is /storage/kkm_last_timestamp [21:39:30]Write 4 bytes [21:39:30]NVStorageSaveData done [21:39:30]ExternCall_PrintAddStr [21:39:30]wPrintStart [21:39:30]Write to MH i2c: 01 00 00 0E 81 8F [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 0E 81 00 00 00 00 00 FF 0F A4 [21:39:30]RasterBufferAndPrint [21:39:30]line Счет N : (1)672760 [21:39:30]line ИНН: 02508201610067 [21:39:30]line Контрольно-Кассовый Чек [21:39:30]line ПРОДАЖА [21:39:30]line ТРК (МРК, ГНК) : 32 [21:39:30]line Товар: 2710124130 [21:39:30]line Аи-92-К-5 [21:39:30]line 7.540 * 66.40 [21:39:30]line = 500.66 [21:39:30]line НДС 12% НСП 1% [21:39:30]line > о реализуемом товаре [21:39:30]line ОКРУГЛЕНИЕ: -0.66 [21:39:30]line ИТОГО: 500.00 [21:39:30]line Внесено: 500.00 [21:39:30]line СДАЧА: 0.00 [21:39:30]line НСП 1% : 4.43 [21:39:30]line НДС 12% : 53.17 [21:39:30]line Наличными: 500.00 [21:39:30]line Безнал.: 0.00 [21:39:30]line Место: АЗС № 120 "Партнер Нефть" [21:39:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:39:30]line СНО: Общий режим [21:39:30]line Чек 230 18.06.2024 21:39 [21:39:30]line Смена: 352 ФФД: 1.0 [21:39:30]line ЗНМ: 0300000164 [21:39:30]line РНМ: 0000000000092785 [21:39:30]line Версия ККМ: 001 [21:39:30]line ФМ: 0000000000875093 [21:39:30]line ФД: 103546 [21:39:30]line ФПД: 63732076234215 [21:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103546&fm=63732076234215&tin=02508201610067®Number=0000000000092785&sum=50000 [21:39:30]OFD Sender: Processing packet 103546 [packets to send 17, broken 16] [21:39:30]ProducePacketName [21:39:30]name=ofd_packets/00103546 [21:39:30]OFD Sender: To server: pG, [21:39:30]CommunicateWithHost lk.salyk.kg:30040 [21:39:30]ConnectInit lk.salyk.kg [21:39:30]written 0, free lines is 4095 [21:39:30]Connected sock=10 [21:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 D8 07 01 F5 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 99 FE 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 94 01 00 35 04 06 00 39 F6 C7 C3 C5 E7 13 12 07 D5 0A 1D B4 BA [21:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EE 33 47 00 86 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 35 30 39 33 10 04 04 00 7A 94 01 00 F4 03 04 00 24 A5 71 66 B6 04 01 00 00 62 F6 D5 FA F7 A0 0F 7B [21:39:30]CommunicateWithHost err = 0 [21:39:30]CheckOFDResponse [21:39:30]1017 (14) - 77093643461234 [21:39:30]1041 (16) - 0000000000875093 [21:39:30]1040 (4) - 103546 [21:39:30]1012 (4) - 18.06.2024 15:17 [21:39:30]1206 (1) - 0 [21:39:30]OFD Sender: Remove packet 103546 [21:39:30]ProducePacketName [21:39:30]name=ofd_packets/00103546 [21:39:30]NVStorageDeleteData [21:39:30]Write to MH i2c: 01 00 00 39 81 BA [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 39 81 00 00 00 00 00 CD 0C 9A [21:39:30]RasterBufferAndPrint [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]written 0, free lines is 3283 [21:39:30]MH_Cut [21:39:30]Write to MH i2c: D1 01 00 40 81 01 93 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 01 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 01 00 40 81 00 92 [21:39:30]Write to MH i2c: 01 00 00 41 81 C2 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:31]OFD Sender: No OFD packet to send [21:39:31]*** Cut start [21:39:31]*** Partial cut [21:39:31]*** CUTSNS_PIN = 1 [21:39:31]*** CUTSNS_PIN = 0 [21:39:31]*** Brake cut motor [21:39:32]Read from MH i2c: 01 [21:39:32]MH_I2C_Read... [21:39:32]*** Stop cut motor [21:39:32]*** Cut end [21:39:32]Read from MH i2c: 01 07 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 41 81 00 00 00 00 00 FF 0F D7 [21:39:32]process_action close_receipt done [21:39:32]requested_data is exist [21:39:32]produce_requested_data [21:39:32]requested_item fm.sn is exist - process it [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 11 00 00 [21:39:32]Write to MH i2c: E2 08 00 42 81 80 11 00 00 00 00 00 00 3D [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 42 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [21:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:39:32]wFMCommunicate OK [21:39:32]requested_item fd.num is exist - process it [21:39:32]SAM_PROTO_GetFieldsCounters [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 13 00 00 [21:39:32]Write to MH i2c: E2 08 00 43 81 80 13 00 00 00 00 00 00 40 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 62 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 62 00 43 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [21:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_GetFieldsCounters done [21:39:32]requested_item shift.num is exist - process it [21:39:32]requested_item shift.opened is exist - process it [21:39:32]req_shift_opened [21:39:32]FM_GetShiftState [21:39:32]SAM_PROTO_GetShiftState [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 13 01 00 [21:39:32]Write to MH i2c: E2 08 00 44 81 80 13 01 00 00 00 00 00 42 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0E 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0E 00 44 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C3 [21:39:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_GetShiftState done [21:39:32]FM_GetShiftState done [21:39:32]req_shift_opened done [21:39:32]requested_item shift.open_date is exist - process it [21:39:32]req_shift_open_date [21:39:32]req_shift_open_date done [21:39:32]produce_requested_data done [21:39:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103546,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:39:32]process_action_free close_receipt [21:39:32]json_value_free [21:39:32]json_value_free done [21:39:32]process_json_proto returns [21:39:32]Send response to host [21:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103546,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:39:32]free response buf [21:39:32]execute_script done [21:39:32]execute_script returns [21:39:32]free content buf [21:39:32]Sock 7.Close socket [21:39:32]Sock 7.Thread stoped [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:49]accept exits with 9 [21:41:49]New connection [21:41:49]New thread 3067227492 created [21:41:49]Thread 3067084132 joined [21:41:49]Waiting for new connection... [21:41:49] Sock 9.Parse request [21:41:49]Sock 9.Check first char [21:41:49]Sock 9.First char is OK [21:41:49]request: POST /json_proto HTTP/1.0 [21:41:49]Method: POST [21:41:49]URL: /json_proto [21:41:49]Method is POST - this is cgi request [21:41:49]url: /json_proto [21:41:49]query_string will be loaded in cgi processing [21:41:49]execute_cgi json_proto POST (null) [21:41:49]execute_cgi path=json_proto method=POST [21:41:49]POST find Content-Length [21:41:49]Host: 172.17.38.133:8080 [21:41:49]Content-Length: 682 [21:41:49]Content-Type: application/json [21:41:49] [21:41:49]POST finish read [21:41:49]Found Content-Length = 682 [21:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:49]execute_script... [21:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:49]POST & json_proto [21:41:49]process_json_proto [21:41:49]json parsed OK: [21:41:49]protocol is kg_v1.0 [21:41:49]action value=close_receipt [21:41:49]process_action close_receipt [21:41:49]cmd_close_receipt [21:41:49]MH_GetDate [21:41:49]Write to MH i2c: F0 00 00 45 81 B5 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 45 81 00 26 FF 71 66 BD 8F 7C 64 E6 [21:41:49]GetLastDocTimeStamp 1718746777 [21:41:49]current date 1718746918 [21:41:49]FM_GetShiftState [21:41:49]SAM_PROTO_GetShiftState [21:41:49]wFMCommunicate request_size=4 [21:41:49]MH_SAM_APDU [21:41:49]CAPDU: 80 13 01 00 [21:41:49]Write to MH i2c: E2 08 00 46 81 80 13 01 00 00 00 00 00 44 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 0E 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 0E 00 46 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C5 [21:41:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:41:50]wFMCommunicate OK [21:41:50]SAM_PROTO_GetShiftState done [21:41:50]FM_GetShiftState done [21:41:50]opened in 1718670284 [21:41:50]opened+sec_in_day 1718756684 [21:41:50]quantity*price = 100064 [21:41:50]sum+1 = 100066 [21:41:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 231 18.06.2024 21:41 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103547 ФПД: 264808476346690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103547&fm=264808476346690&tin=02508201610067®Number=0000000000092785&sum=100000 [21:41:51]StoreToDocumentArchive [21:41:51]shift 352 fd 103547 [21:41:51]save to /storage/0352/doc_00103547 [21:41:51]save last doc name /storage/0352/doc_00103547 to /storage/kkm_last_doc_name [21:41:51]save OK [21:41:51]Clear old archive folders... [21:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:51]tlvbuf is 013F6000 [21:41:51]SAM_PROTO_ClearQueue [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 09 00 00 [21:41:51]Write to MH i2c: E2 08 00 53 81 80 09 00 00 00 00 00 00 46 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 53 81 00 90 00 48 [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]SAM_PROTO_ClearQueue done [21:41:51]KKMCreateOFDPacket [21:41:51]OFDProtocolAddRootSTLVToBuf [21:41:51]FM_MakeSignedData [21:41:51]FM_MakeSignedData [21:41:51]SAM_PROTO_SignData [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 01 02 [21:41:51]Write to MH i2c: E2 08 00 54 81 80 0D 01 02 00 00 00 00 4E [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 54 81 00 90 00 49 [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]wFMCommunicate request_size=255 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 26 FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 94 01 00 35 04 06 00 F0 [21:41:51]Write to MH i2c: E2 02 01 55 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 26 FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 94 01 00 35 04 06 00 F0 00 00 9C [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]OFD Sender: No OFD packet to send [21:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 55 81 00 90 00 4A [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]wFMCommunicate request_size=10 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 02 02 05 D7 87 2A 89 42 [21:41:51]Write to MH i2c: E2 0D 00 56 81 80 0D 02 02 05 00 D7 87 2A 89 42 00 00 AE [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 03 00 56 81 00 90 00 4B [21:41:51]RAPDU: 90 00 [21:41:51]wFMCommunicate OK [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 0D 03 02 [21:41:51]Write to MH i2c: E2 08 00 57 81 80 0D 03 02 00 00 00 00 53 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 0B 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 0B 00 57 81 00 88 32 C2 2C 19 42 25 73 90 00 EF [21:41:51]RAPDU: 88 32 C2 2C 19 42 25 73 90 00 [21:41:51]wFMCommunicate OK [21:41:51]SAM_PROTO_SignData done [21:41:51]FM_MakeSignedData done [21:41:51]CreateOFDProtocolMessage [21:41:51]wFMCommunicate request_size=4 [21:41:51]MH_SAM_APDU [21:41:51]CAPDU: 80 11 00 00 [21:41:51]Write to MH i2c: E2 08 00 58 81 80 11 00 00 00 00 00 00 53 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 58 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [21:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:41:51]wFMCommunicate OK [21:41:51]CreateOFDProtocolMessage done [21:41:51]OFDSenderStorePacket 103547 [21:41:51]StoreOFDPacket docnum=103547 [21:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F 1D 07 01 0B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 26 FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 94 01 00 35 04 06 00 F0 D7 87 2A 89 42 88 32 C2 2C 19 42 25 73 [21:41:51]CheckFolder [21:41:51]dirname=/storage/ofd_packets [21:41:51]CheckFolder done [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00103547 [21:41:51]NVStorageSaveData ofd_packets/00103547 [21:41:51]File name is /storage/ofd_packets/00103547 [21:41:51]Write 301 bytes [21:41:51]NVStorageSaveData done [21:41:51]OFDSenderStorePacket done [21:41:51]KKMCreateOFDPacket done [21:41:51]NVStorageSaveData kkm_last_timestamp [21:41:51]File name is /storage/kkm_last_timestamp [21:41:51]Write 4 bytes [21:41:51]NVStorageSaveData done [21:41:51]ExternCall_PrintAddStr [21:41:51]wPrintStart [21:41:51]Write to MH i2c: 01 00 00 59 81 DA [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 59 81 00 00 00 00 00 FF 0F EF [21:41:51]RasterBufferAndPrint [21:41:51]line Счет N : (1)672761 [21:41:51]line ИНН: 02508201610067 [21:41:51]line Контрольно-Кассовый Чек [21:41:51]line ПРОДАЖА [21:41:51]line ТРК (МРК, ГНК) : 32 [21:41:51]line Товар: 2710124130 [21:41:51]line Аи-92-К-5 [21:41:51]line 15.070 * 66.40 [21:41:51]line = 1000.65 [21:41:51]line НДС 12% НСП 1% [21:41:51]line > о реализуемом товаре [21:41:51]line ОКРУГЛЕНИЕ: -0.65 [21:41:51]line ИТОГО: 1000.00 [21:41:51]line Внесено: 1000.00 [21:41:51]line СДАЧА: 0.00 [21:41:51]line НСП 1% : 8.85 [21:41:51]line НДС 12% : 106.26 [21:41:51]line Наличными: 1000.00 [21:41:51]line Безнал.: 0.00 [21:41:51]line Место: АЗС № 120 "Партнер Нефть" [21:41:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:41:51]line СНО: Общий режим [21:41:51]line Чек 231 18.06.2024 21:41 [21:41:51]line Смена: 352 ФФД: 1.0 [21:41:51]line ЗНМ: 0300000164 [21:41:51]line РНМ: 0000000000092785 [21:41:51]line Версия ККМ: 001 [21:41:51]line ФМ: 0000000000875093 [21:41:51]line ФД: 103547 [21:41:51]line ФПД: 264808476346690 [21:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103547&fm=264808476346690&tin=02508201610067®Number=0000000000092785&sum=100000 [21:41:51]written 0, free lines is 4095 [21:41:51]OFD Sender: Processing packet 103547 [packets to send 17, broken 16] [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00103547 [21:41:51]OFD Sender: To server: pG, [21:41:52]CommunicateWithHost lk.salyk.kg:30040 [21:41:52]ConnectInit lk.salyk.kg [21:41:52]Write to MH i2c: 01 00 00 84 81 05 [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 07 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: 01 07 00 84 81 00 00 00 00 00 D9 0C F1 [21:41:52]RasterBufferAndPrint [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]line [21:41:52]written 0, free lines is 3296 [21:41:52]Connected sock=10 [21:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F 1D 07 01 0B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 26 FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 94 01 00 35 04 06 00 F0 D7 87 2A 89 42 88 32 C2 2C 19 42 25 73 [21:41:52]MH_Cut [21:41:52]Write to MH i2c: D1 01 00 8B 81 01 DE [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 01 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: D1 01 00 8B 81 00 DD [21:41:52]Write to MH i2c: 01 00 00 8C 81 0D [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1C C1 47 00 3C 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 35 30 39 33 10 04 04 00 7B 94 01 00 F4 03 04 00 B1 A5 71 66 B6 04 01 00 00 A8 BF A6 A9 48 4C BF 20 [21:41:52]CommunicateWithHost err = 0 [21:41:52]CheckOFDResponse [21:41:52]1017 (14) - 77093643461234 [21:41:52]1041 (16) - 0000000000875093 [21:41:52]1040 (4) - 103547 [21:41:52]1012 (4) - 18.06.2024 15:20 [21:41:52]1206 (1) - 0 [21:41:52]OFD Sender: Remove packet 103547 [21:41:52]ProducePacketName [21:41:52]name=ofd_packets/00103547 [21:41:52]NVStorageDeleteData [21:41:52]*** Cut start [21:41:52]*** Partial cut [21:41:52]*** CUTSNS_PIN = 1 [21:41:52]OFD Sender: No OFD packet to send [21:41:52]*** CUTSNS_PIN = 0 [21:41:53]*** Brake cut motor [21:41:53]Read from MH i2c: 01 [21:41:53]MH_I2C_Read... [21:41:53]*** Stop cut motor [21:41:53]*** Cut end [21:41:53]Read from MH i2c: 01 07 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: 01 07 00 8C 81 00 00 00 00 00 FF 0F 22 [21:41:53]process_action close_receipt done [21:41:53]requested_data is exist [21:41:53]produce_requested_data [21:41:53]requested_item fm.sn is exist - process it [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 11 00 00 [21:41:53]Write to MH i2c: E2 08 00 8D 81 80 11 00 00 00 00 00 00 88 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 8D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [21:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:41:53]wFMCommunicate OK [21:41:53]requested_item fd.num is exist - process it [21:41:53]SAM_PROTO_GetFieldsCounters [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 13 00 00 [21:41:53]Write to MH i2c: E2 08 00 8E 81 80 13 00 00 00 00 00 00 8B [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 62 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 62 00 8E 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [21:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_GetFieldsCounters done [21:41:53]requested_item shift.num is exist - process it [21:41:53]requested_item shift.opened is exist - process it [21:41:53]req_shift_opened [21:41:53]FM_GetShiftState [21:41:53]SAM_PROTO_GetShiftState [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 13 01 00 [21:41:53]Write to MH i2c: E2 08 00 8F 81 80 13 01 00 00 00 00 00 8D [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0E 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0E 00 8F 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0E [21:41:53]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_GetShiftState done [21:41:53]FM_GetShiftState done [21:41:53]req_shift_opened done [21:41:53]requested_item shift.open_date is exist - process it [21:41:53]req_shift_open_date [21:41:53]req_shift_open_date done [21:41:53]produce_requested_data done [21:41:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103547,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:41:53]process_action_free close_receipt [21:41:53]json_value_free [21:41:53]json_value_free done [21:41:53]process_json_proto returns [21:41:53]Send response to host [21:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103547,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:41:53]free response buf [21:41:53]execute_script done [21:41:53]execute_script returns [21:41:53]free content buf [21:41:53]Sock 9.Close socket [21:41:53]Sock 9.Thread stoped [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:25]accept exits with 7 [21:43:25]New connection [21:43:25]New thread 3067084132 created [21:43:25]Thread 3067227492 joined [21:43:25]Waiting for new connection... [21:43:25] Sock 7.Parse request [21:43:25]Sock 7.Check first char [21:43:25]Sock 7.First char is OK [21:43:25]request: POST /json_proto HTTP/1.0 [21:43:25]Method: POST [21:43:25]URL: /json_proto [21:43:25]Method is POST - this is cgi request [21:43:25]url: /json_proto [21:43:25]query_string will be loaded in cgi processing [21:43:25]execute_cgi json_proto POST (null) [21:43:25]execute_cgi path=json_proto method=POST [21:43:25]POST find Content-Length [21:43:25]Host: 172.17.38.133:8080 [21:43:25]Content-Length: 1184 [21:43:25]Content-Type: application/json [21:43:25] [21:43:25]POST finish read [21:43:25]Found Content-Length = 1184 [21:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672762\u000A18.06.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3543830\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:25]execute_script... [21:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672762\u000A18.06.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3543830\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:25]POST & json_proto [21:43:25]process_json_proto [21:43:25]json parsed OK: [21:43:25]protocol is kg_v1.0 [21:43:25]action value=print_text [21:43:25]process_action print_text [21:43:25]cmd_print_text [21:43:25]ExternCall_PrintAddStr [21:43:25]wPrintStart [21:43:25]Write to MH i2c: 01 00 00 90 81 11 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 90 81 00 00 00 00 00 FF 0F 26 [21:43:25]RasterBufferAndPrint [21:43:25]line *****ТОВАРНЫЙ ЧЕК***** [21:43:25]line АЗС 120 [21:43:25]line Партнер нефть [21:43:25]line 02508201610067 [21:43:25]line Кассир : Асанбаев Н. [21:43:25]line Счет N : (1)672762 [21:43:25]line 18.06.2024 21:20 [21:43:25]line ПРОДАЖА [21:43:25]line ТРК (МРК, ГНК): 42 [21:43:25]line Вид ГСМ : 2710124130 [21:43:25]line Аи-92-К-5 [21:43:25]line 10.000 x 66.40 [21:43:25]line ИТОГ: 664.00 [21:43:25]line Тип оплаты: Талоны: Партнер нефть [21:43:25]line 3543830 [21:43:25]line ______________________ [21:43:25]line (подпись) [21:43:25]written 0, free lines is 4095 [21:43:25]Write to MH i2c: 01 00 00 A4 81 25 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 A4 81 00 00 00 00 00 11 0E 4B [21:43:25]RasterBufferAndPrint [21:43:25]line [21:43:25]line [21:43:25]line [21:43:25]line [21:43:25]line [21:43:25]written 0, free lines is 3603 [21:43:25]MH_Cut [21:43:25]Write to MH i2c: D1 01 00 AB 81 01 FE [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: D1 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: D1 01 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: D1 01 00 AB 81 00 FD [21:43:25]Write to MH i2c: 01 00 00 AC 81 2D [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** Cut start [21:43:25]*** Partial cut [21:43:25]*** CUTSNS_PIN = 1 [21:43:25]*** CUTSNS_PIN = 0 [21:43:26]*** Brake cut motor [21:43:26]Read from MH i2c: 01 [21:43:26]MH_I2C_Read... [21:43:26]*** Stop cut motor [21:43:26]*** Cut end [21:43:26]Read from MH i2c: 01 07 00 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: 01 07 00 AC 81 00 00 00 00 00 FF 0F 42 [21:43:26]process_action print_text done [21:43:26]requested_data is exist [21:43:26]produce_requested_data [21:43:26]requested_item fm.sn is exist - process it [21:43:26]wFMCommunicate request_size=4 [21:43:26]MH_SAM_APDU [21:43:26]CAPDU: 80 11 00 00 [21:43:26]Write to MH i2c: E2 08 00 AD 81 80 11 00 00 00 00 00 00 A8 [21:43:26]Write i2c OK [21:43:26]MH_I2C_Read... [21:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:26]Read from MH i2c: E2 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 17 00 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 17 00 AD 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [21:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:43:26]wFMCommunicate OK [21:43:26]requested_item fd.num is exist - process it [21:43:26]SAM_PROTO_GetFieldsCounters [21:43:26]wFMCommunicate request_size=4 [21:43:26]MH_SAM_APDU [21:43:26]CAPDU: 80 13 00 00 [21:43:26]Write to MH i2c: E2 08 00 AE 81 80 13 00 00 00 00 00 00 AB [21:43:26]Write i2c OK [21:43:26]MH_I2C_Read... [21:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:26]Read from MH i2c: E2 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 62 00 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 62 00 AE 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [21:43:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:26]wFMCommunicate OK [21:43:26]SAM_PROTO_GetFieldsCounters done [21:43:26]requested_item shift.num is exist - process it [21:43:26]requested_item shift.opened is exist - process it [21:43:26]req_shift_opened [21:43:26]FM_GetShiftState [21:43:26]SAM_PROTO_GetShiftState [21:43:26]wFMCommunicate request_size=4 [21:43:26]MH_SAM_APDU [21:43:26]CAPDU: 80 13 01 00 [21:43:26]Write to MH i2c: E2 08 00 AF 81 80 13 01 00 00 00 00 00 AD [21:43:26]Write i2c OK [21:43:26]MH_I2C_Read... [21:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:26]Read from MH i2c: E2 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 0E 00 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 0E 00 AF 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2E [21:43:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:43:26]wFMCommunicate OK [21:43:26]SAM_PROTO_GetShiftState done [21:43:26]FM_GetShiftState done [21:43:26]req_shift_opened done [21:43:26]requested_item shift.open_date is exist - process it [21:43:26]req_shift_open_date [21:43:26]req_shift_open_date done [21:43:26]produce_requested_data done [21:43:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103547,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:43:26]process_action_free print_text [21:43:26]json_value_free [21:43:26]json_value_free done [21:43:26]process_json_proto returns [21:43:26]Send response to host [21:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103547,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:43:26]free response buf [21:43:26]execute_script done [21:43:26]execute_script returns [21:43:26]free content buf [21:43:26]Sock 7.Close socket [21:43:26]Sock 7.Thread stoped [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:51]accept exits with 9 [21:44:51]New connection [21:44:51]New thread 3067227492 created [21:44:51]Thread 3067084132 joined [21:44:51]Waiting for new connection... [21:44:51] Sock 9.Parse request [21:44:51]Sock 9.Check first char [21:44:51]Sock 9.First char is OK [21:44:51]request: POST /json_proto HTTP/1.0 [21:44:51]Method: POST [21:44:51]URL: /json_proto [21:44:51]Method is POST - this is cgi request [21:44:51]url: /json_proto [21:44:51]query_string will be loaded in cgi processing [21:44:51]execute_cgi json_proto POST (null) [21:44:51]execute_cgi path=json_proto method=POST [21:44:51]POST find Content-Length [21:44:51]Host: 172.17.38.133:8080 [21:44:51]Content-Length: 683 [21:44:51]Content-Type: application/json [21:44:51] [21:44:51]POST finish read [21:44:51]Found Content-Length = 683 [21:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:51]execute_script... [21:44: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)672763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:51]POST & json_proto [21:44:51]process_json_proto [21:44:51]json parsed OK: [21:44:51]protocol is kg_v1.0 [21:44:51]action value=close_receipt [21:44:51]process_action close_receipt [21:44:51]cmd_close_receipt [21:44:51]MH_GetDate [21:44:51]Write to MH i2c: F0 00 00 B0 81 20 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: F0 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: F0 09 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: F0 09 00 B0 81 00 DC FF 71 66 BD 8F 7C 64 07 [21:44:51]GetLastDocTimeStamp 1718746918 [21:44:51]current date 1718747100 [21:44:51]FM_GetShiftState [21:44:51]SAM_PROTO_GetShiftState [21:44:51]wFMCommunicate request_size=4 [21:44:51]MH_SAM_APDU [21:44:51]CAPDU: 80 13 01 00 [21:44:51]Write to MH i2c: E2 08 00 B1 81 80 13 01 00 00 00 00 00 AF [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:51]Read from MH i2c: E2 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 0E 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 0E 00 B1 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 30 [21:44:51]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:44:51]wFMCommunicate OK [21:44:51]SAM_PROTO_GetShiftState done [21:44:51]FM_GetShiftState done [21:44:51]opened in 1718670284 [21:44:51]opened+sec_in_day 1718756684 [21:44:51]quantity*price = 80044 [21:44:51]sum+1 = 80045 [21:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 232 18.06.2024 21:45 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103548 ФПД: 239190143403987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103548&fm=239190143403987&tin=02508201610067®Number=0000000000092785&sum=80000 [21:44:52]StoreToDocumentArchive [21:44:52]shift 352 fd 103548 [21:44:52]save to /storage/0352/doc_00103548 [21:44:52]save last doc name /storage/0352/doc_00103548 to /storage/kkm_last_doc_name [21:44:52]save OK [21:44:52]Clear old archive folders... [21:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:44:52]tlvbuf is 0132D6A0 [21:44:52]SAM_PROTO_ClearQueue [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 09 00 00 [21:44:52]Write to MH i2c: E2 08 00 BE 81 80 09 00 00 00 00 00 00 B1 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:52]Read from MH i2c: E2 03 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 BE 81 00 90 00 B3 [21:44:52]RAPDU: 90 00 [21:44:52]wFMCommunicate OK [21:44:52]SAM_PROTO_ClearQueue done [21:44:52]KKMCreateOFDPacket [21:44:52]OFDProtocolAddRootSTLVToBuf [21:44:52]FM_MakeSignedData [21:44:52]FM_MakeSignedData [21:44:52]SAM_PROTO_SignData [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 0D 01 02 [21:44:52]Write to MH i2c: E2 08 00 BF 81 80 0D 01 02 00 00 00 00 B9 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 BF 81 00 90 00 B4 [21:44:52]RAPDU: 90 00 [21:44:52]wFMCommunicate OK [21:44:52]wFMCommunicate request_size=255 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 DC FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 94 01 00 35 04 06 00 [21:44:52]Write to MH i2c: E2 02 01 C0 81 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 DC FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 94 01 00 35 04 06 00 00 00 26 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 C0 81 00 90 00 B5 [21:44:52]RAPDU: 90 00 [21:44:52]wFMCommunicate OK [21:44:52]wFMCommunicate request_size=11 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 0D 02 02 06 D9 8A CB 88 07 D3 [21:44:52]Write to MH i2c: E2 0E 00 C1 81 80 0D 02 02 06 00 D9 8A CB 88 07 D3 00 00 58 [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:52]Read from MH i2c: E2 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 [21:44:52]MH_I2C_Read... [21:44:52]Read from MH i2c: E2 03 00 C1 81 00 90 00 B6 [21:44:52]RAPDU: 90 00 [21:44:52]wFMCommunicate OK [21:44:52]wFMCommunicate request_size=4 [21:44:52]MH_SAM_APDU [21:44:52]CAPDU: 80 0D 03 02 [21:44:52]Write to MH i2c: E2 08 00 C2 81 80 0D 03 02 00 00 00 00 BE [21:44:52]Write i2c OK [21:44:52]MH_I2C_Read... [21:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:53]Read from MH i2c: E2 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 0B 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 0B 00 C2 81 00 8E A1 09 1A 3A 04 09 9F 90 00 F7 [21:44:53]RAPDU: 8E A1 09 1A 3A 04 09 9F 90 00 [21:44:53]wFMCommunicate OK [21:44:53]SAM_PROTO_SignData done [21:44:53]FM_MakeSignedData done [21:44:53]CreateOFDProtocolMessage [21:44:53]wFMCommunicate request_size=4 [21:44:53]MH_SAM_APDU [21:44:53]CAPDU: 80 11 00 00 [21:44:53]Write to MH i2c: E2 08 00 C3 81 80 11 00 00 00 00 00 00 BE [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:53]Read from MH i2c: E2 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 17 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 17 00 C3 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [21:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:44:53]wFMCommunicate OK [21:44:53]CreateOFDProtocolMessage done [21:44:53]OFDSenderStorePacket 103548 [21:44:53]StoreOFDPacket docnum=103548 [21:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 25 FF 08 01 A2 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 DC FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 94 01 00 35 04 06 00 D9 8A CB 88 07 D3 8E A1 09 1A 3A 04 09 9F [21:44:53]CheckFolder [21:44:53]dirname=/storage/ofd_packets [21:44:53]CheckFolder done [21:44:53]ProducePacketName [21:44:53]name=ofd_packets/00103548 [21:44:53]NVStorageSaveData ofd_packets/00103548 [21:44:53]File name is /storage/ofd_packets/00103548 [21:44:53]Write 302 bytes [21:44:53]NVStorageSaveData done [21:44:53]OFDSenderStorePacket done [21:44:53]KKMCreateOFDPacket done [21:44:53]NVStorageSaveData kkm_last_timestamp [21:44:53]File name is /storage/kkm_last_timestamp [21:44:53]Write 4 bytes [21:44:53]NVStorageSaveData done [21:44:53]ExternCall_PrintAddStr [21:44:53]wPrintStart [21:44:53]Write to MH i2c: 01 00 00 C4 81 45 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 07 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 07 00 C4 81 00 00 00 00 00 FF 0F 5A [21:44:53]RasterBufferAndPrint [21:44:53]line Счет N : (1)672763 [21:44:53]line ИНН: 02508201610067 [21:44:53]line Контрольно-Кассовый Чек [21:44:53]line ПРОДАЖА [21:44:53]line ТРК (МРК, ГНК) : 21 [21:44:53]line Товар: 2710194210 [21:44:53]line ДТ(л)-К-5 [21:44:53]line 10.980 * 72.90 [21:44:53]line = 800.44 [21:44:53]line НДС 12% НСП 1% [21:44:53]line > о реализуемом товаре [21:44:53]line ОКРУГЛЕНИЕ: -0.44 [21:44:53]line ИТОГО: 800.00 [21:44:53]line Внесено: 800.00 [21:44:53]line СДАЧА: 0.00 [21:44:53]line НСП 1% : 7.08 [21:44:53]line НДС 12% : 85.00 [21:44:53]line Наличными: 800.00 [21:44:53]line Безнал.: 0.00 [21:44:53]line Место: АЗС № 120 "Партнер Нефть" [21:44:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:44:53]line СНО: Общий режим [21:44:53]line Чек 232 18.06.2024 21:45 [21:44:53]line Смена: 352 ФФД: 1.0 [21:44:53]line ЗНМ: 0300000164 [21:44:53]line РНМ: 0000000000092785 [21:44:53]line Версия ККМ: 001 [21:44:53]line ФМ: 0000000000875093 [21:44:53]line ФД: 103548 [21:44:53]line ФПД: 239190143403987 [21:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103548&fm=239190143403987&tin=02508201610067®Number=0000000000092785&sum=80000 [21:44:53]OFD Sender: Processing packet 103548 [packets to send 17, broken 16] [21:44:53]ProducePacketName [21:44:53]name=ofd_packets/00103548 [21:44:53]OFD Sender: To server: pG, [21:44:53]CommunicateWithHost lk.salyk.kg:30040 [21:44:53]ConnectInit lk.salyk.kg [21:44:53]written 0, free lines is 4095 [21:44:53]Connected sock=10 [21:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 25 FF 08 01 A2 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 DC FF 71 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 94 01 00 35 04 06 00 D9 8A CB 88 07 D3 8E A1 09 1A 3A 04 09 9F [21:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2E 5C 47 00 AF 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 94 01 00 F4 03 04 00 67 A6 71 66 B6 04 01 00 00 60 89 B3 FA E0 E9 B8 D5 [21:44:53]CommunicateWithHost err = 0 [21:44:53]CheckOFDResponse [21:44:53]1017 (14) - 77093643461234 [21:44:53]1041 (16) - 0000000000875093 [21:44:53]1040 (4) - 103548 [21:44:53]1012 (4) - 18.06.2024 15:23 [21:44:53]1206 (1) - 0 [21:44:53]OFD Sender: Remove packet 103548 [21:44:53]ProducePacketName [21:44:53]name=ofd_packets/00103548 [21:44:53]NVStorageDeleteData [21:44:53]Write to MH i2c: 01 00 00 EF 81 70 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 07 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 07 00 EF 81 00 00 00 00 00 DE 0C 61 [21:44:53]RasterBufferAndPrint [21:44:53]line [21:44:53]line [21:44:53]line [21:44:53]line [21:44:53]line [21:44:53]written 0, free lines is 3300 [21:44:53]MH_Cut [21:44:53]Write to MH i2c: D1 01 00 F6 81 01 49 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: D1 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: D1 01 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: D1 01 00 F6 81 00 48 [21:44:53]Write to MH i2c: 01 00 00 F7 81 78 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:54]OFD Sender: No OFD packet to send [21:44:54]*** Cut start [21:44:54]*** Partial cut [21:44:54]*** CUTSNS_PIN = 1 [21:44:54]*** CUTSNS_PIN = 0 [21:44:54]*** Brake cut motor [21:44:55]Read from MH i2c: 01 [21:44:55]MH_I2C_Read... [21:44:55]*** Stop cut motor [21:44:55]*** Cut end [21:44:55]Read from MH i2c: 01 07 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: 01 07 00 F7 81 00 00 00 00 00 FF 0F 8D [21:44:55]process_action close_receipt done [21:44:55]requested_data is exist [21:44:55]produce_requested_data [21:44:55]requested_item fm.sn is exist - process it [21:44:55]wFMCommunicate request_size=4 [21:44:55]MH_SAM_APDU [21:44:55]CAPDU: 80 11 00 00 [21:44:55]Write to MH i2c: E2 08 00 F8 81 80 11 00 00 00 00 00 00 F3 [21:44:55]Write i2c OK [21:44:55]MH_I2C_Read... [21:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:55]Read from MH i2c: E2 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 17 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 17 00 F8 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 46 [21:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:44:55]wFMCommunicate OK [21:44:55]requested_item fd.num is exist - process it [21:44:55]SAM_PROTO_GetFieldsCounters [21:44:55]wFMCommunicate request_size=4 [21:44:55]MH_SAM_APDU [21:44:55]CAPDU: 80 13 00 00 [21:44:55]Write to MH i2c: E2 08 00 F9 81 80 13 00 00 00 00 00 00 F6 [21:44:55]Write i2c OK [21:44:55]MH_I2C_Read... [21:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:55]Read from MH i2c: E2 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 62 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 62 00 F9 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [21:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:55]wFMCommunicate OK [21:44:55]SAM_PROTO_GetFieldsCounters done [21:44:55]requested_item shift.num is exist - process it [21:44:55]requested_item shift.opened is exist - process it [21:44:55]req_shift_opened [21:44:55]FM_GetShiftState [21:44:55]SAM_PROTO_GetShiftState [21:44:55]wFMCommunicate request_size=4 [21:44:55]MH_SAM_APDU [21:44:55]CAPDU: 80 13 01 00 [21:44:55]Write to MH i2c: E2 08 00 FA 81 80 13 01 00 00 00 00 00 F8 [21:44:55]Write i2c OK [21:44:55]MH_I2C_Read... [21:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:55]Read from MH i2c: E2 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 0E 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 0E 00 FA 81 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 79 [21:44:55]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:44:55]wFMCommunicate OK [21:44:55]SAM_PROTO_GetShiftState done [21:44:55]FM_GetShiftState done [21:44:55]req_shift_opened done [21:44:55]requested_item shift.open_date is exist - process it [21:44:55]req_shift_open_date [21:44:55]req_shift_open_date done [21:44:55]produce_requested_data done [21:44:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103548,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:44:55]process_action_free close_receipt [21:44:55]json_value_free [21:44:55]json_value_free done [21:44:55]process_json_proto returns [21:44:55]Send response to host [21:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103548,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:44:55]free response buf [21:44:55]execute_script done [21:44:55]execute_script returns [21:44:55]free content buf [21:44:55]Sock 9.Close socket [21:44:55]Sock 9.Thread stoped [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:51]accept exits with 7 [21:47:51]New connection [21:47:51]New thread 3067084132 created [21:47:51]Thread 3067227492 joined [21:47:51]Waiting for new connection... [21:47:51] Sock 7.Parse request [21:47:51]Sock 7.Check first char [21:47:51]Sock 7.First char is OK [21:47:51]request: POST /json_proto HTTP/1.0 [21:47:51]Method: POST [21:47:51]URL: /json_proto [21:47:51]Method is POST - this is cgi request [21:47:51]url: /json_proto [21:47:51]query_string will be loaded in cgi processing [21:47:51]execute_cgi json_proto POST (null) [21:47:51]execute_cgi path=json_proto method=POST [21:47:51]POST find Content-Length [21:47:51]Host: 172.17.38.133:8080 [21:47:51]Content-Length: 1157 [21:47:51]Content-Type: application/json [21:47:51] [21:47:51]POST finish read [21:47:51]Found Content-Length = 1157 [21:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672764\u000A18.06.2024 21:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:51]execute_script... [21:47:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672764\u000A18.06.2024 21:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:51]POST & json_proto [21:47:51]process_json_proto [21:47:51]json parsed OK: [21:47:51]protocol is kg_v1.0 [21:47:51]action value=print_text [21:47:51]process_action print_text [21:47:51]cmd_print_text [21:47:51]ExternCall_PrintAddStr [21:47:51]wPrintStart [21:47:51]Write to MH i2c: 01 00 00 FB 81 7C [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 07 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 07 00 FB 81 00 00 00 00 00 FF 0F 91 [21:47:51]RasterBufferAndPrint [21:47:51]line *****ТОВАРНЫЙ ЧЕК***** [21:47:51]line АЗС 120 [21:47:51]line Партнер нефть [21:47:51]line 02508201610067 [21:47:51]line Кассир : Асанбаев Н. [21:47:51]line Счет N : (1)672764 [21:47:51]line 18.06.2024 21:25 [21:47:51]line ПРОДАЖА [21:47:51]line ТРК (МРК, ГНК): 42 [21:47:51]line Вид ГСМ : 2710124130 [21:47:51]line Аи-92-К-5 [21:47:51]line 30.000 x 66.40 [21:47:51]line ИТОГ: 1992.00 [21:47:51]line Тип оплаты: Талоны: ТК ГПНА Online [21:47:51]line 30021788 [21:47:51]line ______________________ [21:47:51]line (подпись) [21:47:51]written 0, free lines is 4095 [21:47:51]Write to MH i2c: 01 00 00 0F 82 91 [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 07 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 07 00 0F 82 00 00 00 00 00 10 0E B6 [21:47:51]RasterBufferAndPrint [21:47:51]line [21:47:51]line [21:47:51]line [21:47:51]line [21:47:51]line [21:47:51]written 0, free lines is 3602 [21:47:51]MH_Cut [21:47:51]Write to MH i2c: D1 01 00 16 82 01 6A [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: D1 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: D1 01 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: D1 01 00 16 82 00 69 [21:47:51]Write to MH i2c: 01 00 00 17 82 99 [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]*** Cut start [21:47:51]*** Partial cut [21:47:51]*** CUTSNS_PIN = 1 [21:47:51]*** CUTSNS_PIN = 0 [21:47:52]*** Brake cut motor [21:47:52]Read from MH i2c: 01 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: 01 07 00 [21:47:52]MH_I2C_Read... [21:47:52]*** Stop cut motor [21:47:52]*** Cut end [21:47:52]Read from MH i2c: 01 07 00 17 82 00 00 00 00 00 FF 0F AE [21:47:52]process_action print_text done [21:47:52]requested_data is exist [21:47:52]produce_requested_data [21:47:52]requested_item fm.sn is exist - process it [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 11 00 00 [21:47:52]Write to MH i2c: E2 08 00 18 82 80 11 00 00 00 00 00 00 14 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 17 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 17 00 18 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [21:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:47:52]wFMCommunicate OK [21:47:52]requested_item fd.num is exist - process it [21:47:52]SAM_PROTO_GetFieldsCounters [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 13 00 00 [21:47:52]Write to MH i2c: E2 08 00 19 82 80 13 00 00 00 00 00 00 17 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 62 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 62 00 19 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [21:47:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:52]wFMCommunicate OK [21:47:52]SAM_PROTO_GetFieldsCounters done [21:47:52]requested_item shift.num is exist - process it [21:47:52]requested_item shift.opened is exist - process it [21:47:52]req_shift_opened [21:47:52]FM_GetShiftState [21:47:52]SAM_PROTO_GetShiftState [21:47:52]wFMCommunicate request_size=4 [21:47:52]MH_SAM_APDU [21:47:52]CAPDU: 80 13 01 00 [21:47:52]Write to MH i2c: E2 08 00 1A 82 80 13 01 00 00 00 00 00 19 [21:47:52]Write i2c OK [21:47:52]MH_I2C_Read... [21:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:52]Read from MH i2c: E2 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 0E 00 [21:47:52]MH_I2C_Read... [21:47:52]Read from MH i2c: E2 0E 00 1A 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [21:47:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [21:47:52]wFMCommunicate OK [21:47:52]SAM_PROTO_GetShiftState done [21:47:52]FM_GetShiftState done [21:47:52]req_shift_opened done [21:47:52]requested_item shift.open_date is exist - process it [21:47:52]req_shift_open_date [21:47:52]req_shift_open_date done [21:47:52]produce_requested_data done [21:47:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103548,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [21:47:52]process_action_free print_text [21:47:52]json_value_free [21:47:52]json_value_free done [21:47:52]process_json_proto returns [21:47:52]Send response to host [21:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103548,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [21:47:52]free response buf [21:47:52]execute_script done [21:47:52]execute_script returns [21:47:52]free content buf [21:47:52]Sock 7.Close socket [21:47:52]Sock 7.Thread stoped [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:26]accept exits with 10 [22:01:26]New connection [22:01:26]New thread 3067227492 created [22:01:26]Thread 3067084132 joined [22:01:26]Waiting for new connection... [22:01:26] Sock 10.Parse request [22:01:26]Sock 10.Check first char [22:01:26]Sock 10.First char is OK [22:01:26]request: POST /json_proto HTTP/1.0 [22:01:26]Method: POST [22:01:26]URL: /json_proto [22:01:26]Method is POST - this is cgi request [22:01:26]url: /json_proto [22:01:26]query_string will be loaded in cgi processing [22:01:26]execute_cgi json_proto POST (null) [22:01:26]execute_cgi path=json_proto method=POST [22:01:26]POST find Content-Length [22:01:26]Host: 172.17.38.133:8080 [22:01:26]Content-Length: 677 [22:01:26]Content-Type: application/json [22:01:26] [22:01:26]POST finish read [22:01:26]Found Content-Length = 677 [22:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [22:01:26]execute_script... [22:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [22:01:26]POST & json_proto [22:01:26]process_json_proto [22:01:26]json parsed OK: [22:01:26]protocol is kg_v1.0 [22:01:26]action value=close_receipt [22:01:26]process_action close_receipt [22:01:26]cmd_close_receipt [22:01:26]MH_GetDate [22:01:26]Write to MH i2c: F0 00 00 1B 82 8C [22:01:26]Write i2c OK [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: F0 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: F0 09 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: F0 09 00 1B 82 00 BE 03 72 66 BD 8F 7C 64 5A [22:01:26]GetLastDocTimeStamp 1718747100 [22:01:26]current date 1718748094 [22:01:26]FM_GetShiftState [22:01:26]SAM_PROTO_GetShiftState [22:01:26]wFMCommunicate request_size=4 [22:01:26]MH_SAM_APDU [22:01:26]CAPDU: 80 13 01 00 [22:01:26]Write to MH i2c: E2 08 00 1C 82 80 13 01 00 00 00 00 00 1B [22:01:26]Write i2c OK [22:01:26]MH_I2C_Read... [22:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:26]Read from MH i2c: E2 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 0E 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 0E 00 1C 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9C [22:01:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:01:26]wFMCommunicate OK [22:01:26]SAM_PROTO_GetShiftState done [22:01:26]FM_GetShiftState done [22:01:26]opened in 1718670284 [22:01:26]opened+sec_in_day 1718756684 [22:01:26]quantity*price = 50065 [22:01:26]sum+1 = 50067 [22:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 233 18.06.2024 22:01 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103549 ФПД: 87113296610107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103549&fm=87113296610107&tin=02508201610067®Number=0000000000092785&sum=50000 [22:01:27]StoreToDocumentArchive [22:01:27]shift 352 fd 103549 [22:01:27]save to /storage/0352/doc_00103549 [22:01:27]save last doc name /storage/0352/doc_00103549 to /storage/kkm_last_doc_name [22:01:27]save OK [22:01:27]Clear old archive folders... [22:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:27]tlvbuf is 013B1920 [22:01:27]SAM_PROTO_ClearQueue [22:01:27]wFMCommunicate request_size=4 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 09 00 00 [22:01:27]Write to MH i2c: E2 08 00 29 82 80 09 00 00 00 00 00 00 1D [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:27]Read from MH i2c: E2 03 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 29 82 00 90 00 1F [22:01:27]RAPDU: 90 00 [22:01:27]wFMCommunicate OK [22:01:27]SAM_PROTO_ClearQueue done [22:01:27]KKMCreateOFDPacket [22:01:27]OFDProtocolAddRootSTLVToBuf [22:01:27]FM_MakeSignedData [22:01:27]FM_MakeSignedData [22:01:27]SAM_PROTO_SignData [22:01:27]wFMCommunicate request_size=4 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 0D 01 02 [22:01:27]Write to MH i2c: E2 08 00 2A 82 80 0D 01 02 00 00 00 00 25 [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 2A 82 00 90 00 20 [22:01:27]RAPDU: 90 00 [22:01:27]wFMCommunicate OK [22:01:27]wFMCommunicate request_size=255 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BF 03 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 94 01 00 35 04 06 00 4F [22:01:27]Write to MH i2c: E2 02 01 2B 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BF 03 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 94 01 00 35 04 06 00 4F 00 00 24 [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 2B 82 00 90 00 21 [22:01:27]RAPDU: 90 00 [22:01:27]wFMCommunicate OK [22:01:27]wFMCommunicate request_size=10 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 0D 02 02 05 3A A5 19 83 3B [22:01:27]Write to MH i2c: E2 0D 00 2C 82 80 0D 02 02 05 00 3A A5 19 83 3B 00 00 E8 [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 03 00 2C 82 00 90 00 22 [22:01:27]RAPDU: 90 00 [22:01:27]wFMCommunicate OK [22:01:27]wFMCommunicate request_size=4 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 0D 03 02 [22:01:27]Write to MH i2c: E2 08 00 2D 82 80 0D 03 02 00 00 00 00 2A [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 0B 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 0B 00 2D 82 00 EE F6 59 C4 1D B5 51 11 90 00 60 [22:01:27]RAPDU: EE F6 59 C4 1D B5 51 11 90 00 [22:01:27]wFMCommunicate OK [22:01:27]SAM_PROTO_SignData done [22:01:27]FM_MakeSignedData done [22:01:27]CreateOFDProtocolMessage [22:01:27]wFMCommunicate request_size=4 [22:01:27]MH_SAM_APDU [22:01:27]CAPDU: 80 11 00 00 [22:01:27]Write to MH i2c: E2 08 00 2E 82 80 11 00 00 00 00 00 00 2A [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:27]Read from MH i2c: E2 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 17 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: E2 17 00 2E 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [22:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:01:27]wFMCommunicate OK [22:01:27]CreateOFDProtocolMessage done [22:01:27]OFDSenderStorePacket 103549 [22:01:27]StoreOFDPacket docnum=103549 [22:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 BB 07 01 0A 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BF 03 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 94 01 00 35 04 06 00 4F 3A A5 19 83 3B EE F6 59 C4 1D B5 51 11 [22:01:27]CheckFolder [22:01:27]dirname=/storage/ofd_packets [22:01:27]CheckFolder done [22:01:27]ProducePacketName [22:01:27]name=ofd_packets/00103549 [22:01:27]NVStorageSaveData ofd_packets/00103549 [22:01:27]File name is /storage/ofd_packets/00103549 [22:01:27]Write 301 bytes [22:01:27]NVStorageSaveData done [22:01:27]OFDSenderStorePacket done [22:01:27]KKMCreateOFDPacket done [22:01:27]NVStorageSaveData kkm_last_timestamp [22:01:27]File name is /storage/kkm_last_timestamp [22:01:27]Write 4 bytes [22:01:27]NVStorageSaveData done [22:01:27]ExternCall_PrintAddStr [22:01:27]wPrintStart [22:01:27]Write to MH i2c: 01 00 00 2F 82 B1 [22:01:27]Write i2c OK [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: 01 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: 01 07 00 [22:01:27]MH_I2C_Read... [22:01:27]Read from MH i2c: 01 07 00 2F 82 00 00 00 00 00 FF 0F C6 [22:01:27]RasterBufferAndPrint [22:01:27]line Счет N : (1)672765 [22:01:27]line ИНН: 02508201610067 [22:01:27]line Контрольно-Кассовый Чек [22:01:27]line ПРОДАЖА [22:01:27]line ТРК (МРК, ГНК) : 32 [22:01:27]line Товар: 2710124130 [22:01:27]line Аи-92-К-5 [22:01:27]line 7.540 * 66.40 [22:01:27]line = 500.66 [22:01:27]line НДС 12% НСП 1% [22:01:27]line > о реализуемом товаре [22:01:27]line ОКРУГЛЕНИЕ: -0.66 [22:01:27]line ИТОГО: 500.00 [22:01:27]line Внесено: 500.00 [22:01:27]line СДАЧА: 0.00 [22:01:27]line НСП 1% : 4.43 [22:01:27]line НДС 12% : 53.17 [22:01:27]line Наличными: 500.00 [22:01:27]line Безнал.: 0.00 [22:01:27]line Место: АЗС № 120 "Партнер Нефть" [22:01:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:01:27]line СНО: Общий режим [22:01:27]line Чек 233 18.06.2024 22:01 [22:01:27]line Смена: 352 ФФД: 1.0 [22:01:27]line ЗНМ: 0300000164 [22:01:27]line РНМ: 0000000000092785 [22:01:27]line Версия ККМ: 001 [22:01:27]line ФМ: 0000000000875093 [22:01:27]line ФД: 103549 [22:01:27]line ФПД: 87113296610107 [22:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103549&fm=87113296610107&tin=02508201610067®Number=0000000000092785&sum=50000 [22:01:28]OFD Sender: Processing packet 103549 [packets to send 17, broken 16] [22:01:28]ProducePacketName [22:01:28]name=ofd_packets/00103549 [22:01:28]OFD Sender: To server: pG, [22:01:28]CommunicateWithHost lk.salyk.kg:30040 [22:01:28]ConnectInit lk.salyk.kg [22:01:28]written 0, free lines is 4095 [22:01:28]Connected sock=9 [22:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 BB 07 01 0A 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BF 03 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 94 01 00 35 04 06 00 4F 3A A5 19 83 3B EE F6 59 C4 1D B5 51 11 [22:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 00 C6 47 00 C2 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 94 01 00 F4 03 04 00 49 AA 71 66 B6 04 01 00 00 BD F1 CF 66 FC 91 27 31 [22:01:28]CommunicateWithHost err = 0 [22:01:28]CheckOFDResponse [22:01:28]1017 (14) - 77093643461234 [22:01:28]1041 (16) - 0000000000875093 [22:01:28]1040 (4) - 103549 [22:01:28]1012 (4) - 18.06.2024 15:39 [22:01:28]1206 (1) - 0 [22:01:28]OFD Sender: Remove packet 103549 [22:01:28]ProducePacketName [22:01:28]name=ofd_packets/00103549 [22:01:28]NVStorageDeleteData [22:01:28]Write to MH i2c: 01 00 00 5A 82 DC [22:01:28]Write i2c OK [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: 01 [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: 01 07 00 [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: 01 07 00 5A 82 00 00 00 00 00 D4 0C C3 [22:01:28]RasterBufferAndPrint [22:01:28]line [22:01:28]line [22:01:28]line [22:01:28]line [22:01:28]line [22:01:28]written 0, free lines is 3292 [22:01:28]MH_Cut [22:01:28]Write to MH i2c: D1 01 00 61 82 01 B5 [22:01:28]Write i2c OK [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: D1 [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: D1 01 00 [22:01:28]MH_I2C_Read... [22:01:28]Read from MH i2c: D1 01 00 61 82 00 B4 [22:01:28]Write to MH i2c: 01 00 00 62 82 E4 [22:01:28]Write i2c OK [22:01:28]MH_I2C_Read... [22:01:28]OFD Sender: No OFD packet to send [22:01:29]*** Cut start [22:01:29]*** Partial cut [22:01:29]*** CUTSNS_PIN = 1 [22:01:29]*** CUTSNS_PIN = 0 [22:01:29]*** Brake cut motor [22:01:29]Read from MH i2c: 01 [22:01:29]MH_I2C_Read... [22:01:29]*** Stop cut motor [22:01:29]*** Cut end [22:01:29]Read from MH i2c: 01 07 00 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: 01 07 00 62 82 00 00 00 00 00 FF 0F F9 [22:01:29]process_action close_receipt done [22:01:29]requested_data is exist [22:01:29]produce_requested_data [22:01:29]requested_item fm.sn is exist - process it [22:01:29]wFMCommunicate request_size=4 [22:01:29]MH_SAM_APDU [22:01:29]CAPDU: 80 11 00 00 [22:01:29]Write to MH i2c: E2 08 00 63 82 80 11 00 00 00 00 00 00 5F [22:01:29]Write i2c OK [22:01:29]MH_I2C_Read... [22:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:29]Read from MH i2c: E2 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: E2 17 00 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: E2 17 00 63 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [22:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:01:29]wFMCommunicate OK [22:01:29]requested_item fd.num is exist - process it [22:01:29]SAM_PROTO_GetFieldsCounters [22:01:29]wFMCommunicate request_size=4 [22:01:29]MH_SAM_APDU [22:01:29]CAPDU: 80 13 00 00 [22:01:29]Write to MH i2c: E2 08 00 64 82 80 13 00 00 00 00 00 00 62 [22:01:29]Write i2c OK [22:01:29]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 62 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 62 00 64 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [22:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_GetFieldsCounters done [22:01:30]requested_item shift.num is exist - process it [22:01:30]requested_item shift.opened is exist - process it [22:01:30]req_shift_opened [22:01:30]FM_GetShiftState [22:01:30]SAM_PROTO_GetShiftState [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 13 01 00 [22:01:30]Write to MH i2c: E2 08 00 65 82 80 13 01 00 00 00 00 00 64 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0E 00 65 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [22:01:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_GetShiftState done [22:01:30]FM_GetShiftState done [22:01:30]req_shift_opened done [22:01:30]requested_item shift.open_date is exist - process it [22:01:30]req_shift_open_date [22:01:30]req_shift_open_date done [22:01:30]produce_requested_data done [22:01:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103549,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:01:30]process_action_free close_receipt [22:01:30]json_value_free [22:01:30]json_value_free done [22:01:30]process_json_proto returns [22:01:30]Send response to host [22:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103549,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:01:30]free response buf [22:01:30]execute_script done [22:01:30]execute_script returns [22:01:30]free content buf [22:01:30]Sock 10.Close socket [22:01:30]Sock 10.Thread stoped [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:12]accept exits with 7 [22:08:12]New connection [22:08:12]New thread 3067084132 created [22:08:12]Thread 3067227492 joined [22:08:12]Waiting for new connection... [22:08:12] Sock 7.Parse request [22:08:12]Sock 7.Check first char [22:08:12]Sock 7.First char is OK [22:08:12]request: POST /json_proto HTTP/1.0 [22:08:12]Method: POST [22:08:12]URL: /json_proto [22:08:12]Method is POST - this is cgi request [22:08:12]url: /json_proto [22:08:12]query_string will be loaded in cgi processing [22:08:12]execute_cgi json_proto POST (null) [22:08:12]execute_cgi path=json_proto method=POST [22:08:12]POST find Content-Length [22:08:12]Host: 172.17.38.133:8080 [22:08:12]Content-Length: 1193 [22:08:12]Content-Type: application/json [22:08:12] [22:08:12]POST finish read [22:08:12]Found Content-Length = 1193 [22:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672766\u000A18.06.2024 21:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889036;3888076\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:12]execute_script... [22:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672766\u000A18.06.2024 21:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889036;3888076\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:12]POST & json_proto [22:08:12]process_json_proto [22:08:12]json parsed OK: [22:08:12]protocol is kg_v1.0 [22:08:12]action value=print_text [22:08:12]process_action print_text [22:08:12]cmd_print_text [22:08:12]ExternCall_PrintAddStr [22:08:12]wPrintStart [22:08:12]Write to MH i2c: 01 00 00 66 82 E8 [22:08:12]Write i2c OK [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 07 00 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 07 00 66 82 00 00 00 00 00 FF 0F FD [22:08:12]RasterBufferAndPrint [22:08:12]line *****ТОВАРНЫЙ ЧЕК***** [22:08:12]line АЗС 120 [22:08:12]line Партнер нефть [22:08:12]line 02508201610067 [22:08:12]line Кассир : Асанбаев Н. [22:08:12]line Счет N : (1)672766 [22:08:12]line 18.06.2024 21:45 [22:08:12]line ПРОДАЖА [22:08:12]line ТРК (МРК, ГНК): 42 [22:08:12]line Вид ГСМ : 2710124130 [22:08:12]line Аи-92-К-5 [22:08:12]line 20.000 x 66.40 [22:08:12]line ИТОГ: 1328.00 [22:08:12]line Тип оплаты: Талоны: Партнер нефть [22:08:12]line 3889036;3888076 [22:08:12]line ______________________ [22:08:12]line (подпись) [22:08:12]written 0, free lines is 4095 [22:08:12]Write to MH i2c: 01 00 00 7A 82 FC [22:08:12]Write i2c OK [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 07 00 [22:08:12]MH_I2C_Read... [22:08:12]Read from MH i2c: 01 07 00 7A 82 00 00 00 00 00 17 0E 28 [22:08:12]RasterBufferAndPrint [22:08:12]line [22:08:12]line [22:08:12]line [22:08:12]line [22:08:12]line [22:08:12]written 0, free lines is 3609 [22:08:13]MH_Cut [22:08:13]Write to MH i2c: D1 01 00 81 82 01 D5 [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: D1 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: D1 01 00 [22:08:13]MH_I2C_Read... [22:08:13]Read from MH i2c: D1 01 00 81 82 00 D4 [22:08:13]Write to MH i2c: 01 00 00 82 82 04 [22:08:13]Write i2c OK [22:08:13]MH_I2C_Read... [22:08:13]*** Cut start [22:08:13]*** Partial cut [22:08:13]*** CUTSNS_PIN = 1 [22:08:13]*** CUTSNS_PIN = 0 [22:08:13]*** Brake cut motor [22:08:14]Read from MH i2c: 01 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: 01 07 00 [22:08:14]MH_I2C_Read... [22:08:14]*** Stop cut motor [22:08:14]*** Cut end [22:08:14]Read from MH i2c: 01 07 00 82 82 00 00 00 00 00 FF 0F 19 [22:08:14]process_action print_text done [22:08:14]requested_data is exist [22:08:14]produce_requested_data [22:08:14]requested_item fm.sn is exist - process it [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 11 00 00 [22:08:14]Write to MH i2c: E2 08 00 83 82 80 11 00 00 00 00 00 00 7F [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 83 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [22:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:08:14]wFMCommunicate OK [22:08:14]requested_item fd.num is exist - process it [22:08:14]SAM_PROTO_GetFieldsCounters [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 00 00 [22:08:14]Write to MH i2c: E2 08 00 84 82 80 13 00 00 00 00 00 00 82 [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:14]Read from MH i2c: E2 62 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 62 00 84 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [22:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetFieldsCounters done [22:08:14]requested_item shift.num is exist - process it [22:08:14]requested_item shift.opened is exist - process it [22:08:14]req_shift_opened [22:08:14]FM_GetShiftState [22:08:14]SAM_PROTO_GetShiftState [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 01 00 [22:08:14]Write to MH i2c: E2 08 00 85 82 80 13 01 00 00 00 00 00 84 [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]OFD Sender: No OFD packet to send [22:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 85 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 05 [22:08:14]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetShiftState done [22:08:14]FM_GetShiftState done [22:08:14]req_shift_opened done [22:08:14]requested_item shift.open_date is exist - process it [22:08:14]req_shift_open_date [22:08:14]req_shift_open_date done [22:08:14]produce_requested_data done [22:08:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103549,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:08:14]process_action_free print_text [22:08:14]json_value_free [22:08:14]json_value_free done [22:08:14]process_json_proto returns [22:08:14]Send response to host [22:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103549,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:08:14]free response buf [22:08:14]execute_script done [22:08:14]execute_script returns [22:08:14]free content buf [22:08:14]Sock 7.Close socket [22:08:14]Sock 7.Thread stoped [22:08:15]accept exits with 9 [22:08:15]New connection [22:08:15]New thread 3067227492 created [22:08:15]Thread 3067084132 joined [22:08:15]Waiting for new connection... [22:08:15] Sock 9.Parse request [22:08:15]Sock 9.Check first char [22:08:15]Sock 9.First char is OK [22:08:15]request: POST /json_proto HTTP/1.0 [22:08:15]Method: POST [22:08:15]URL: /json_proto [22:08:15]Method is POST - this is cgi request [22:08:15]url: /json_proto [22:08:15]query_string will be loaded in cgi processing [22:08:15]execute_cgi json_proto POST (null) [22:08:15]execute_cgi path=json_proto method=POST [22:08:15]POST find Content-Length [22:08:15]Host: 172.17.38.133:8080 [22:08:15]Content-Length: 640 [22:08:15]Content-Type: application/json [22:08:15] [22:08:15]POST finish read [22:08:15]Found Content-Length = 640 [22:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.000, "sum" : 996.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:15]execute_script... [22:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.000, "sum" : 996.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:15]POST & json_proto [22:08:15]process_json_proto [22:08:15]json parsed OK: [22:08:15]protocol is kg_v1.0 [22:08:15]action value=close_receipt [22:08:15]process_action close_receipt [22:08:15]cmd_close_receipt [22:08:15]MH_GetDate [22:08:15]Write to MH i2c: F0 00 00 86 82 F7 [22:08:15]Write i2c OK [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 09 00 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: F0 09 00 86 82 00 58 05 72 66 BD 8F 7C 64 61 [22:08:15]GetLastDocTimeStamp 1718748095 [22:08:15]current date 1718748504 [22:08:15]FM_GetShiftState [22:08:15]SAM_PROTO_GetShiftState [22:08:15]wFMCommunicate request_size=4 [22:08:15]MH_SAM_APDU [22:08:15]CAPDU: 80 13 01 00 [22:08:15]Write to MH i2c: E2 08 00 87 82 80 13 01 00 00 00 00 00 86 [22:08:15]Write i2c OK [22:08:15]MH_I2C_Read... [22:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:15]Read from MH i2c: E2 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: E2 0E 00 [22:08:15]MH_I2C_Read... [22:08:15]Read from MH i2c: E2 0E 00 87 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 07 [22:08:15]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:08:15]wFMCommunicate OK [22:08:15]SAM_PROTO_GetShiftState done [22:08:15]FM_GetShiftState done [22:08:15]opened in 1718670284 [22:08:15]opened+sec_in_day 1718756684 [22:08:15]quantity*price = 99600 [22:08:15]sum+1 = 99601 [22:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 996.00 НСП 1% : 8.81 НДС 12% : 105.77 Наличными: 996.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 234 18.06.2024 22:08 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103550 ФПД: 53273240817090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103550&fm=53273240817090&tin=02508201610067®Number=0000000000092785&sum=99600 [22:08:17]StoreToDocumentArchive [22:08:17]shift 352 fd 103550 [22:08:17]save to /storage/0352/doc_00103550 [22:08:17]save last doc name /storage/0352/doc_00103550 to /storage/kkm_last_doc_name [22:08:17]save OK [22:08:17]Clear old archive folders... [22:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:17]tlvbuf is 014F3870 [22:08:17]SAM_PROTO_ClearQueue [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 09 00 00 [22:08:17]Write to MH i2c: E2 08 00 94 82 80 09 00 00 00 00 00 00 88 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 94 82 00 90 00 8A [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]SAM_PROTO_ClearQueue done [22:08:17]KKMCreateOFDPacket [22:08:17]OFDProtocolAddRootSTLVToBuf [22:08:17]FM_MakeSignedData [22:08:17]FM_MakeSignedData [22:08:17]SAM_PROTO_SignData [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 01 02 [22:08:17]Write to MH i2c: E2 08 00 95 82 80 0D 01 02 00 00 00 00 90 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 95 82 00 90 00 8B [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=255 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 58 05 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 94 01 00 35 04 06 00 30 [22:08:17]Write to MH i2c: E2 02 01 96 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 58 05 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 94 01 00 35 04 06 00 30 00 00 EE [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 96 82 00 90 00 8C [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=10 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 02 02 05 73 A4 98 4D C2 [22:08:17]Write to MH i2c: E2 0D 00 97 82 80 0D 02 02 05 00 73 A4 98 4D C2 00 00 5B [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 03 00 97 82 00 90 00 8D [22:08:17]RAPDU: 90 00 [22:08:17]wFMCommunicate OK [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 0D 03 02 [22:08:17]Write to MH i2c: E2 08 00 98 82 80 0D 03 02 00 00 00 00 95 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0B 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0B 00 98 82 00 57 1F 7C 3A B7 F5 48 4D 90 00 03 [22:08:17]RAPDU: 57 1F 7C 3A B7 F5 48 4D 90 00 [22:08:17]wFMCommunicate OK [22:08:17]SAM_PROTO_SignData done [22:08:17]FM_MakeSignedData done [22:08:17]CreateOFDProtocolMessage [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 11 00 00 [22:08:17]Write to MH i2c: E2 08 00 99 82 80 11 00 00 00 00 00 00 95 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 17 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 17 00 99 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [22:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:08:17]wFMCommunicate OK [22:08:17]CreateOFDProtocolMessage done [22:08:17]OFDSenderStorePacket 103550 [22:08:17]StoreOFDPacket docnum=103550 [22:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 8E 07 01 D1 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 58 05 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 94 01 00 35 04 06 00 30 73 A4 98 4D C2 57 1F 7C 3A B7 F5 48 4D [22:08:17]CheckFolder [22:08:17]dirname=/storage/ofd_packets [22:08:17]CheckFolder done [22:08:17]ProducePacketName [22:08:17]name=ofd_packets/00103550 [22:08:17]NVStorageSaveData ofd_packets/00103550 [22:08:17]File name is /storage/ofd_packets/00103550 [22:08:17]Write 301 bytes [22:08:17]NVStorageSaveData done [22:08:17]OFDSenderStorePacket done [22:08:17]KKMCreateOFDPacket done [22:08:17]NVStorageSaveData kkm_last_timestamp [22:08:17]File name is /storage/kkm_last_timestamp [22:08:17]Write 4 bytes [22:08:17]NVStorageSaveData done [22:08:17]ExternCall_PrintAddStr [22:08:17]wPrintStart [22:08:17]Write to MH i2c: 01 00 00 9A 82 1C [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 07 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: 01 07 00 9A 82 00 00 00 00 00 FF 0F 31 [22:08:17]RasterBufferAndPrint [22:08:17]line Счет N : (1)672767 [22:08:17]line ИНН: 02508201610067 [22:08:17]line Контрольно-Кассовый Чек [22:08:17]line ПРОДАЖА [22:08:17]line ТРК (МРК, ГНК) : 42 [22:08:17]line Товар: 2710124130 [22:08:17]line Аи-92-К-5 [22:08:17]line 15.000 * 66.40 [22:08:17]line = 996.00 [22:08:17]line НДС 12% НСП 1% [22:08:17]line > о реализуемом товаре [22:08:17]line ИТОГО: 996.00 [22:08:17]line НСП 1% : 8.81 [22:08:17]line НДС 12% : 105.77 [22:08:17]line Наличными: 996.00 [22:08:17]line Безнал.: 0.00 [22:08:17]line Место: АЗС № 120 "Партнер Нефть" [22:08:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:08:17]line СНО: Общий режим [22:08:17]line Чек 234 18.06.2024 22:08 [22:08:17]line Смена: 352 ФФД: 1.0 [22:08:17]line ЗНМ: 0300000164 [22:08:17]line РНМ: 0000000000092785 [22:08:17]line Версия ККМ: 001 [22:08:18]line ФМ: 0000000000875093 [22:08:18]line ФД: 103550 [22:08:18]line ФПД: 53273240817090 [22:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103550&fm=53273240817090&tin=02508201610067®Number=0000000000092785&sum=99600 [22:08:18]OFD Sender: Processing packet 103550 [packets to send 17, broken 16] [22:08:18]ProducePacketName [22:08:18]name=ofd_packets/00103550 [22:08:18]OFD Sender: To server: pG, [22:08:18]CommunicateWithHost lk.salyk.kg:30040 [22:08:18]ConnectInit lk.salyk.kg [22:08:18]written 0, free lines is 4095 [22:08:18]Connected sock=10 [22:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 8E 07 01 D1 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 10 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 58 05 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 94 01 00 35 04 06 00 30 73 A4 98 4D C2 57 1F 7C 3A B7 F5 48 4D [22:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BD E2 47 00 63 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 94 01 00 F4 03 04 00 E4 AB 71 66 B6 04 01 00 00 ED 82 98 16 88 56 F6 39 [22:08:18]CommunicateWithHost err = 0 [22:08:18]CheckOFDResponse [22:08:18]1017 (14) - 77093643461234 [22:08:18]1041 (16) - 0000000000875093 [22:08:18]1040 (4) - 103550 [22:08:18]1012 (4) - 18.06.2024 15:46 [22:08:18]1206 (1) - 0 [22:08:18]OFD Sender: Remove packet 103550 [22:08:18]ProducePacketName [22:08:18]name=ofd_packets/00103550 [22:08:18]NVStorageDeleteData [22:08:18]Write to MH i2c: 01 00 00 C2 82 44 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 C2 82 00 00 00 00 00 10 0D 68 [22:08:18]RasterBufferAndPrint [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]line [22:08:18]written 0, free lines is 3350 [22:08:18]MH_Cut [22:08:18]Write to MH i2c: D1 01 00 C9 82 01 1D [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 01 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: D1 01 00 C9 82 00 1C [22:08:18]Write to MH i2c: 01 00 00 CA 82 4C [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:19]OFD Sender: No OFD packet to send [22:08:19]*** Cut start [22:08:19]*** Partial cut [22:08:19]*** CUTSNS_PIN = 1 [22:08:19]*** CUTSNS_PIN = 0 [22:08:19]*** Brake cut motor [22:08:20]Read from MH i2c: 01 [22:08:20]MH_I2C_Read... [22:08:20]*** Stop cut motor [22:08:20]*** Cut end [22:08:20]Read from MH i2c: 01 07 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: 01 07 00 CA 82 00 00 00 00 00 FF 0F 61 [22:08:20]process_action close_receipt done [22:08:20]requested_data is exist [22:08:20]produce_requested_data [22:08:20]requested_item fm.sn is exist - process it [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 11 00 00 [22:08:20]Write to MH i2c: E2 08 00 CB 82 80 11 00 00 00 00 00 00 C7 [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 CB 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [22:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:08:20]wFMCommunicate OK [22:08:20]requested_item fd.num is exist - process it [22:08:20]SAM_PROTO_GetFieldsCounters [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 13 00 00 [22:08:20]Write to MH i2c: E2 08 00 CC 82 80 13 00 00 00 00 00 00 CA [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 62 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 62 00 CC 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:20]wFMCommunicate OK [22:08:20]SAM_PROTO_GetFieldsCounters done [22:08:20]requested_item shift.num is exist - process it [22:08:20]requested_item shift.opened is exist - process it [22:08:20]req_shift_opened [22:08:20]FM_GetShiftState [22:08:20]SAM_PROTO_GetShiftState [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 13 01 00 [22:08:20]Write to MH i2c: E2 08 00 CD 82 80 13 01 00 00 00 00 00 CC [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 0E 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 0E 00 CD 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4D [22:08:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:08:20]wFMCommunicate OK [22:08:20]SAM_PROTO_GetShiftState done [22:08:20]FM_GetShiftState done [22:08:20]req_shift_opened done [22:08:20]requested_item shift.open_date is exist - process it [22:08:20]req_shift_open_date [22:08:20]req_shift_open_date done [22:08:20]produce_requested_data done [22:08:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103550,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:08:20]process_action_free close_receipt [22:08:20]json_value_free [22:08:20]json_value_free done [22:08:20]process_json_proto returns [22:08:20]Send response to host [22:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103550,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:08:20]free response buf [22:08:20]execute_script done [22:08:20]execute_script returns [22:08:20]free content buf [22:08:20]Sock 9.Close socket [22:08:20]Sock 9.Thread stoped [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:35]accept exits with 7 [22:11:35]New connection [22:11:35]New thread 3067084132 created [22:11:35]Thread 3067227492 joined [22:11:35]Waiting for new connection... [22:11:35] Sock 7.Parse request [22:11:35]Sock 7.Check first char [22:11:35]Sock 7.First char is OK [22:11:35]request: POST /json_proto HTTP/1.0 [22:11:35]Method: POST [22:11:35]URL: /json_proto [22:11:35]Method is POST - this is cgi request [22:11:35]url: /json_proto [22:11:35]query_string will be loaded in cgi processing [22:11:35]execute_cgi json_proto POST (null) [22:11:35]execute_cgi path=json_proto method=POST [22:11:35]POST find Content-Length [22:11:35]Host: 172.17.38.133:8080 [22:11:35]Content-Length: 816 [22:11:35]Content-Type: application/json [22:11:35] [22:11:35]POST finish read [22:11:35]Found Content-Length = 816 [22:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:35]execute_script... [22:11: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)672769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:35]POST & json_proto [22:11:35]process_json_proto [22:11:35]json parsed OK: [22:11:35]protocol is kg_v1.0 [22:11:35]action value=close_receipt [22:11:35]process_action close_receipt [22:11:35]cmd_close_receipt [22:11:35]MH_GetDate [22:11:35]Write to MH i2c: F0 00 00 CE 82 3F [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: F0 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: F0 09 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: F0 09 00 CE 82 00 20 06 72 66 BD 8F 7C 64 72 [22:11:35]GetLastDocTimeStamp 1718748504 [22:11:35]current date 1718748704 [22:11:35]FM_GetShiftState [22:11:35]SAM_PROTO_GetShiftState [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 13 01 00 [22:11:35]Write to MH i2c: E2 08 00 CF 82 80 13 01 00 00 00 00 00 CE [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 0E 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 0E 00 CF 82 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 4F [22:11:35]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:11:35]wFMCommunicate OK [22:11:35]SAM_PROTO_GetShiftState done [22:11:35]FM_GetShiftState done [22:11:35]opened in 1718670284 [22:11:35]opened+sec_in_day 1718756684 [22:11:35]quantity*price = 30012 [22:11:35]sum+1 = 30014 [22:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 235 18.06.2024 22:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103551 ФПД: 199959923461600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221144&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103551&fm=199959923461600&tin=02508201610067®Number=0000000000092785&sum=30013 [22:11:36]StoreToDocumentArchive [22:11:36]shift 352 fd 103551 [22:11:36]save to /storage/0352/doc_00103551 [22:11:36]save last doc name /storage/0352/doc_00103551 to /storage/kkm_last_doc_name [22:11:36]save OK [22:11:36]Clear old archive folders... [22:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:36]tlvbuf is B6F1DCA0 [22:11:36]SAM_PROTO_ClearQueue [22:11:36]wFMCommunicate request_size=4 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 09 00 00 [22:11:36]Write to MH i2c: E2 08 00 DC 82 80 09 00 00 00 00 00 00 D0 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 DC 82 00 90 00 D2 [22:11:36]RAPDU: 90 00 [22:11:36]wFMCommunicate OK [22:11:36]SAM_PROTO_ClearQueue done [22:11:36]KKMCreateOFDPacket [22:11:36]OFDProtocolAddRootSTLVToBuf [22:11:36]FM_MakeSignedData [22:11:36]FM_MakeSignedData [22:11:36]SAM_PROTO_SignData [22:11:36]wFMCommunicate request_size=4 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 0D 01 02 [22:11:36]Write to MH i2c: E2 08 00 DD 82 80 0D 01 02 00 00 00 00 D8 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 DD 82 00 90 00 D3 [22:11:36]RAPDU: 90 00 [22:11:36]wFMCommunicate OK [22:11:36]wFMCommunicate request_size=255 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 20 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 94 01 00 35 04 06 00 B5 [22:11:36]Write to MH i2c: E2 02 01 DE 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 20 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 94 01 00 35 04 06 00 B5 00 00 5D [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:37]Read from MH i2c: E2 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 03 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 03 00 DE 82 00 90 00 D4 [22:11:37]RAPDU: 90 00 [22:11:37]wFMCommunicate OK [22:11:37]wFMCommunicate request_size=10 [22:11:37]MH_SAM_APDU [22:11:37]CAPDU: 80 0D 02 02 05 DC CC 35 0D E0 [22:11:37]Write to MH i2c: E2 0D 00 DF 82 80 0D 02 02 05 00 DC CC 35 0D E0 00 00 AF [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:37]Read from MH i2c: E2 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 03 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 03 00 DF 82 00 90 00 D5 [22:11:37]RAPDU: 90 00 [22:11:37]wFMCommunicate OK [22:11:37]wFMCommunicate request_size=4 [22:11:37]MH_SAM_APDU [22:11:37]CAPDU: 80 0D 03 02 [22:11:37]Write to MH i2c: E2 08 00 E0 82 80 0D 03 02 00 00 00 00 DD [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:37]Read from MH i2c: E2 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 0B 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 0B 00 E0 82 00 50 E9 5C CA 32 AE D1 7C 90 00 6A [22:11:37]RAPDU: 50 E9 5C CA 32 AE D1 7C 90 00 [22:11:37]wFMCommunicate OK [22:11:37]SAM_PROTO_SignData done [22:11:37]FM_MakeSignedData done [22:11:37]CreateOFDProtocolMessage [22:11:37]wFMCommunicate request_size=4 [22:11:37]MH_SAM_APDU [22:11:37]CAPDU: 80 11 00 00 [22:11:37]Write to MH i2c: E2 08 00 E1 82 80 11 00 00 00 00 00 00 DD [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:37]Read from MH i2c: E2 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 17 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: E2 17 00 E1 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [22:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:11:37]wFMCommunicate OK [22:11:37]CreateOFDProtocolMessage done [22:11:37]OFDSenderStorePacket 103551 [22:11:37]StoreOFDPacket docnum=103551 [22:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A0 A5 07 01 1A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 20 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 94 01 00 35 04 06 00 B5 DC CC 35 0D E0 50 E9 5C CA 32 AE D1 7C [22:11:37]CheckFolder [22:11:37]dirname=/storage/ofd_packets [22:11:37]CheckFolder done [22:11:37]ProducePacketName [22:11:37]name=ofd_packets/00103551 [22:11:37]NVStorageSaveData ofd_packets/00103551 [22:11:37]File name is /storage/ofd_packets/00103551 [22:11:37]Write 301 bytes [22:11:37]NVStorageSaveData done [22:11:37]OFDSenderStorePacket done [22:11:37]KKMCreateOFDPacket done [22:11:37]NVStorageSaveData kkm_last_timestamp [22:11:37]File name is /storage/kkm_last_timestamp [22:11:37]Write 4 bytes [22:11:37]NVStorageSaveData done [22:11:37]ExternCall_PrintAddStr [22:11:37]wPrintStart [22:11:37]Write to MH i2c: 01 00 00 E2 82 64 [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 07 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 07 00 E2 82 00 00 00 00 00 FF 0F 79 [22:11:37]RasterBufferAndPrint [22:11:37]line Счет N : (1)672769 [22:11:37]line ИНН: 02508201610067 [22:11:37]line Контрольно-Кассовый Чек [22:11:37]line ПРОДАЖА [22:11:37]line ТРК (МРК, ГНК) : 42 [22:11:37]line Товар: 2710124130 [22:11:37]line Аи-92-К-5 [22:11:37]line 4.520 * 66.40 [22:11:37]line = 300.13 [22:11:37]line НДС 12% НСП 1% [22:11:37]line > о реализуемом товаре [22:11:37]line ИТОГО: 300.13 [22:11:37]line НСП 1% : 2.66 [22:11:37]line НДС 12% : 31.87 [22:11:37]line Наличными: 0.00 [22:11:37]line Безнал.: 300.13 [22:11:37]line Место: АЗС № 120 "Партнер Нефть" [22:11:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:11:37]line СНО: Общий режим [22:11:37]line Чек 235 18.06.2024 22:11 [22:11:37]line Смена: 352 ФФД: 1.0 [22:11:37]line ЗНМ: 0300000164 [22:11:37]line РНМ: 0000000000092785 [22:11:37]line Версия ККМ: 001 [22:11:37]line Платежная система: Бакай Банк [22:11:37]line ФМ: 0000000000875093 [22:11:37]line ФД: 103551 [22:11:37]line ФПД: 199959923461600 [22:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221144&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103551&fm=199959923461600&tin=02508201610067®Number=0000000000092785&sum=30013 [22:11:37]OFD Sender: Processing packet 103551 [packets to send 17, broken 16] [22:11:37]ProducePacketName [22:11:37]name=ofd_packets/00103551 [22:11:37]OFD Sender: To server: pG, [22:11:37]CommunicateWithHost lk.salyk.kg:30040 [22:11:37]ConnectInit lk.salyk.kg [22:11:37]written 0, free lines is 4095 [22:11:37]Connected sock=10 [22:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A0 A5 07 01 1A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 20 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 94 01 00 35 04 06 00 B5 DC CC 35 0D E0 50 E9 5C CA 32 AE D1 7C [22:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D5 04 47 00 F3 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 35 30 39 33 10 04 04 00 7F 94 01 00 F4 03 04 00 AB AC 71 66 B6 04 01 00 00 A7 FC 62 F0 C7 3C 67 6D [22:11:37]CommunicateWithHost err = 0 [22:11:37]CheckOFDResponse [22:11:37]1017 (14) - 77093643461234 [22:11:37]1041 (16) - 0000000000875093 [22:11:37]1040 (4) - 103551 [22:11:37]1012 (4) - 18.06.2024 15:50 [22:11:37]1206 (1) - 0 [22:11:37]OFD Sender: Remove packet 103551 [22:11:37]ProducePacketName [22:11:37]name=ofd_packets/00103551 [22:11:37]NVStorageDeleteData [22:11:37]Write to MH i2c: 01 00 00 0C 83 8F [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 07 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: 01 07 00 0C 83 00 00 00 00 00 E1 0C 83 [22:11:37]RasterBufferAndPrint [22:11:37]line [22:11:37]line [22:11:37]line [22:11:37]line [22:11:37]line [22:11:37]written 0, free lines is 3302 [22:11:37]MH_Cut [22:11:37]Write to MH i2c: D1 01 00 13 83 01 68 [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: D1 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: D1 01 00 [22:11:37]MH_I2C_Read... [22:11:37]Read from MH i2c: D1 01 00 13 83 00 67 [22:11:37]Write to MH i2c: 01 00 00 14 83 97 [22:11:37]Write i2c OK [22:11:37]MH_I2C_Read... [22:11:38]OFD Sender: No OFD packet to send [22:11:38]*** Cut start [22:11:38]*** Partial cut [22:11:38]*** CUTSNS_PIN = 1 [22:11:38]*** CUTSNS_PIN = 0 [22:11:38]*** Brake cut motor [22:11:39]Read from MH i2c: 01 [22:11:39]MH_I2C_Read... [22:11:39]*** Stop cut motor [22:11:39]*** Cut end [22:11:39]Read from MH i2c: 01 07 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: 01 07 00 14 83 00 00 00 00 00 FF 0F AC [22:11:39]process_action close_receipt done [22:11:39]requested_data is exist [22:11:39]produce_requested_data [22:11:39]requested_item fm.sn is exist - process it [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 11 00 00 [22:11:39]Write to MH i2c: E2 08 00 15 83 80 11 00 00 00 00 00 00 12 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 17 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 17 00 15 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [22:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:11:39]wFMCommunicate OK [22:11:39]requested_item fd.num is exist - process it [22:11:39]SAM_PROTO_GetFieldsCounters [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 13 00 00 [22:11:39]Write to MH i2c: E2 08 00 16 83 80 13 00 00 00 00 00 00 15 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 62 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 62 00 16 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [22:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:39]wFMCommunicate OK [22:11:39]SAM_PROTO_GetFieldsCounters done [22:11:39]requested_item shift.num is exist - process it [22:11:39]requested_item shift.opened is exist - process it [22:11:39]req_shift_opened [22:11:39]FM_GetShiftState [22:11:39]SAM_PROTO_GetShiftState [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 13 01 00 [22:11:39]Write to MH i2c: E2 08 00 17 83 80 13 01 00 00 00 00 00 17 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 0E 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 0E 00 17 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 98 [22:11:39]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:11:39]wFMCommunicate OK [22:11:39]SAM_PROTO_GetShiftState done [22:11:39]FM_GetShiftState done [22:11:39]req_shift_opened done [22:11:39]requested_item shift.open_date is exist - process it [22:11:39]req_shift_open_date [22:11:39]req_shift_open_date done [22:11:39]produce_requested_data done [22:11:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103551,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:11:39]process_action_free close_receipt [22:11:39]json_value_free [22:11:39]json_value_free done [22:11:39]process_json_proto returns [22:11:39]Send response to host [22:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103551,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:11:39]free response buf [22:11:39]execute_script done [22:11:39]execute_script returns [22:11:39]free content buf [22:11:39]Sock 7.Close socket [22:11:39]Sock 7.Thread stoped [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:50]accept exits with 9 [22:11:50]New connection [22:11:50]New thread 3067227492 created [22:11:50]Thread 3067084132 joined [22:11:50]Waiting for new connection... [22:11:50] Sock 9.Parse request [22:11:50]Sock 9.Check first char [22:11:50]Sock 9.First char is OK [22:11:50]request: POST /json_proto HTTP/1.0 [22:11:50]Method: POST [22:11:50]URL: /json_proto [22:11:50]Method is POST - this is cgi request [22:11:50]url: /json_proto [22:11:50]query_string will be loaded in cgi processing [22:11:50]execute_cgi json_proto POST (null) [22:11:50]execute_cgi path=json_proto method=POST [22:11:50]POST find Content-Length [22:11:50]Host: 172.17.38.133:8080 [22:11:50]Content-Length: 682 [22:11:50]Content-Type: application/json [22:11:50] [22:11:50]POST finish read [22:11:50]Found Content-Length = 682 [22:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 44.120, "sum" : 3260.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3260.00, "total" : 3260.00, "payments": [ { "type": 0, "sum" : 3260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:50]execute_script... [22:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 44.120, "sum" : 3260.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3260.00, "total" : 3260.00, "payments": [ { "type": 0, "sum" : 3260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:50]POST & json_proto [22:11:50]process_json_proto [22:11:50]json parsed OK: [22:11:50]protocol is kg_v1.0 [22:11:50]action value=close_receipt [22:11:50]process_action close_receipt [22:11:50]cmd_close_receipt [22:11:50]MH_GetDate [22:11:50]Write to MH i2c: F0 00 00 18 83 8A [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 09 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 09 00 18 83 00 2F 06 72 66 BD 8F 7C 64 CC [22:11:50]GetLastDocTimeStamp 1718748704 [22:11:50]current date 1718748719 [22:11:50]FM_GetShiftState [22:11:50]SAM_PROTO_GetShiftState [22:11:50]wFMCommunicate request_size=4 [22:11:50]MH_SAM_APDU [22:11:50]CAPDU: 80 13 01 00 [22:11:50]Write to MH i2c: E2 08 00 19 83 80 13 01 00 00 00 00 00 19 [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:50]Read from MH i2c: E2 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 0E 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 0E 00 19 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9A [22:11:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:11:50]wFMCommunicate OK [22:11:50]SAM_PROTO_GetShiftState done [22:11:50]FM_GetShiftState done [22:11:50]opened in 1718670284 [22:11:50]opened+sec_in_day 1718756684 [22:11:50]quantity*price = 326046 [22:11:50]sum+1 = 326048 [22:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3260.00 Внесено: 3260.00 СДАЧА: 0.00 НСП 1% : 28.85 НДС 12% : 346.24 Наличными: 3260.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 236 18.06.2024 22:11 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103552 ФПД: 98805807242758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221159&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103552&fm=98805807242758&tin=02508201610067®Number=0000000000092785&sum=326000 [22:11:51]StoreToDocumentArchive [22:11:51]shift 352 fd 103552 [22:11:51]save to /storage/0352/doc_00103552 [22:11:51]save last doc name /storage/0352/doc_00103552 to /storage/kkm_last_doc_name [22:11:51]save OK [22:11:51]Clear old archive folders... [22:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:51]tlvbuf is 01582FF0 [22:11:51]SAM_PROTO_ClearQueue [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 09 00 00 [22:11:51]Write to MH i2c: E2 08 00 26 83 80 09 00 00 00 00 00 00 1B [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 26 83 00 90 00 1D [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]SAM_PROTO_ClearQueue done [22:11:51]KKMCreateOFDPacket [22:11:51]OFDProtocolAddRootSTLVToBuf [22:11:51]FM_MakeSignedData [22:11:51]FM_MakeSignedData [22:11:51]SAM_PROTO_SignData [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 01 02 [22:11:51]Write to MH i2c: E2 08 00 27 83 80 0D 01 02 00 00 00 00 23 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 27 83 00 90 00 1E [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=255 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 AC 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F F9 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F9 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 87 00 00 00 00 07 04 06 00 70 F9 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 2F 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 94 01 00 35 04 06 00 59 [22:11:51]Write to MH i2c: E2 02 01 28 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 AC 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F F9 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F9 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 87 00 00 00 00 07 04 06 00 70 F9 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 2F 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 94 01 00 35 04 06 00 59 00 00 8A [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 28 83 00 90 00 1F [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=10 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 02 02 05 DD 05 0A DE 06 [22:11:51]Write to MH i2c: E2 0D 00 29 83 80 0D 02 02 05 00 DD 05 0A DE 06 00 00 00 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 29 83 00 90 00 20 [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 03 02 [22:11:51]Write to MH i2c: E2 08 00 2A 83 80 0D 03 02 00 00 00 00 28 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 0B 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 0B 00 2A 83 00 E5 10 F6 CA 99 C2 D3 10 90 00 1C [22:11:51]RAPDU: E5 10 F6 CA 99 C2 D3 10 90 00 [22:11:51]wFMCommunicate OK [22:11:51]SAM_PROTO_SignData done [22:11:51]FM_MakeSignedData done [22:11:51]CreateOFDProtocolMessage [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 11 00 00 [22:11:51]Write to MH i2c: E2 08 00 2B 83 80 11 00 00 00 00 00 00 28 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 17 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 17 00 2B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [22:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:11:51]wFMCommunicate OK [22:11:51]CreateOFDProtocolMessage done [22:11:51]OFDSenderStorePacket 103552 [22:11:51]StoreOFDPacket docnum=103552 [22:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 92 07 01 02 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 AC 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F F9 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F9 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 87 00 00 00 00 07 04 06 00 70 F9 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 2F 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 94 01 00 35 04 06 00 59 DD 05 0A DE 06 E5 10 F6 CA 99 C2 D3 10 [22:11:51]CheckFolder [22:11:51]dirname=/storage/ofd_packets [22:11:51]CheckFolder done [22:11:51]ProducePacketName [22:11:51]name=ofd_packets/00103552 [22:11:51]NVStorageSaveData ofd_packets/00103552 [22:11:51]File name is /storage/ofd_packets/00103552 [22:11:51]Write 301 bytes [22:11:51]NVStorageSaveData done [22:11:51]OFDSenderStorePacket done [22:11:51]KKMCreateOFDPacket done [22:11:51]NVStorageSaveData kkm_last_timestamp [22:11:51]File name is /storage/kkm_last_timestamp [22:11:51]Write 4 bytes [22:11:51]NVStorageSaveData done [22:11:51]ExternCall_PrintAddStr [22:11:51]wPrintStart [22:11:51]Write to MH i2c: 01 00 00 2C 83 AF [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: 01 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: 01 07 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: 01 07 00 2C 83 00 00 00 00 00 FF 0F C4 [22:11:51]RasterBufferAndPrint [22:11:51]line Счет N : (1)672768 [22:11:51]line ИНН: 02508201610067 [22:11:51]line Контрольно-Кассовый Чек [22:11:51]line ПРОДАЖА [22:11:51]line ТРК (МРК, ГНК) : 31 [22:11:51]line Товар: 2710124500 [22:11:51]line Аи-95-К-5 [22:11:51]line 44.120 * 73.90 [22:11:51]line = 3260.47 [22:11:51]line НДС 12% НСП 1% [22:11:51]line > о реализуемом товаре [22:11:51]line ОКРУГЛЕНИЕ: -0.47 [22:11:51]line ИТОГО: 3260.00 [22:11:51]line Внесено: 3260.00 [22:11:51]line СДАЧА: 0.00 [22:11:51]line НСП 1% : 28.85 [22:11:51]line НДС 12% : 346.24 [22:11:51]line Наличными: 3260.00 [22:11:51]line Безнал.: 0.00 [22:11:51]line Место: АЗС № 120 "Партнер Нефть" [22:11:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:11:51]line СНО: Общий режим [22:11:51]line Чек 236 18.06.2024 22:11 [22:11:51]line Смена: 352 ФФД: 1.0 [22:11:51]line ЗНМ: 0300000164 [22:11:51]line РНМ: 0000000000092785 [22:11:51]line Версия ККМ: 001 [22:11:51]line ФМ: 0000000000875093 [22:11:51]line ФД: 103552 [22:11:51]line ФПД: 98805807242758 [22:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221159&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103552&fm=98805807242758&tin=02508201610067®Number=0000000000092785&sum=326000 [22:11:52]OFD Sender: Processing packet 103552 [packets to send 17, broken 16] [22:11:52]ProducePacketName [22:11:52]name=ofd_packets/00103552 [22:11:52]OFD Sender: To server: pG, [22:11:52]CommunicateWithHost lk.salyk.kg:30040 [22:11:52]ConnectInit lk.salyk.kg [22:11:52]written 0, free lines is 4095 [22:11:52]Write to MH i2c: 01 00 00 57 83 DA [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 57 83 00 00 00 00 00 DF 0C CC [22:11:52]RasterBufferAndPrint [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]written 0, free lines is 3301 [22:11:52]MH_Cut [22:11:52]Write to MH i2c: D1 01 00 5E 83 01 B3 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 01 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 01 00 5E 83 00 B2 [22:11:52]Write to MH i2c: 01 00 00 5F 83 E2 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:53]*** Cut start [22:11:53]*** Partial cut [22:11:53]*** CUTSNS_PIN = 1 [22:11:53]*** CUTSNS_PIN = 0 [22:11:53]*** Brake cut motor [22:11:53]Read from MH i2c: 01 [22:11:53]MH_I2C_Read... [22:11:53]*** Stop cut motor [22:11:53]*** Cut end [22:11:53]Read from MH i2c: 01 07 00 [22:11:53]MH_I2C_Read... [22:11:53]Read from MH i2c: 01 07 00 5F 83 00 00 00 00 00 FF 0F F7 [22:11:53]process_action close_receipt done [22:11:53]requested_data is exist [22:11:53]produce_requested_data [22:11:53]requested_item fm.sn is exist - process it [22:11:53]wFMCommunicate request_size=4 [22:11:53]MH_SAM_APDU [22:11:53]CAPDU: 80 11 00 00 [22:11:53]Write to MH i2c: E2 08 00 60 83 80 11 00 00 00 00 00 00 5D [22:11:53]Write i2c OK [22:11:53]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 60 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [22:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:11:54]wFMCommunicate OK [22:11:54]requested_item fd.num is exist - process it [22:11:54]SAM_PROTO_GetFieldsCounters [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 13 00 00 [22:11:54]Write to MH i2c: E2 08 00 61 83 80 13 00 00 00 00 00 00 60 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 62 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 62 00 61 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [22:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_GetFieldsCounters done [22:11:54]requested_item shift.num is exist - process it [22:11:54]requested_item shift.opened is exist - process it [22:11:54]req_shift_opened [22:11:54]FM_GetShiftState [22:11:54]SAM_PROTO_GetShiftState [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 13 01 00 [22:11:54]Write to MH i2c: E2 08 00 62 83 80 13 01 00 00 00 00 00 62 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0E 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0E 00 62 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E3 [22:11:54]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_GetShiftState done [22:11:54]FM_GetShiftState done [22:11:54]req_shift_opened done [22:11:54]requested_item shift.open_date is exist - process it [22:11:54]req_shift_open_date [22:11:54]req_shift_open_date done [22:11:54]produce_requested_data done [22:11:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103552,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:11:54]process_action_free close_receipt [22:11:54]json_value_free [22:11:54]json_value_free done [22:11:54]process_json_proto returns [22:11:54]Send response to host [22:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103552,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:11:54]free response buf [22:11:54]execute_script done [22:11:54]execute_script returns [22:11:54]free content buf [22:11:54]Sock 9.Close socket [22:11:54]Sock 9.Thread stoped [22:14:06]ConnectInit Can't connect to host [22:14:06]CommunicateWithHost connect error [22:14:06]CommunicateWithHost err = -1 [22:14:06]OFD Sender: Server communicate error [22:14:11]OFD Sender: Processing packet 103552 [packets to send 17, broken 16] [22:14:11]ProducePacketName [22:14:11]name=ofd_packets/00103552 [22:14:11]OFD Sender: To server: pG, [22:14:11]CommunicateWithHost lk.salyk.kg:30040 [22:14:11]ConnectInit lk.salyk.kg [22:14:11]Connected sock=9 [22:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 92 07 01 02 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 AC 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F F9 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 F9 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 87 00 00 00 00 07 04 06 00 70 F9 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 2F 06 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 94 01 00 35 04 06 00 59 DD 05 0A DE 06 E5 10 F6 CA 99 C2 D3 10 [22:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6F 96 47 00 DD 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 94 01 00 F4 03 04 00 45 AD 71 66 B6 04 01 00 00 CD 34 0B 8C CC 81 D8 6F [22:14:11]CommunicateWithHost err = 0 [22:14:11]CheckOFDResponse [22:14:11]1017 (14) - 77093643461234 [22:14:11]1041 (16) - 0000000000875093 [22:14:11]1040 (4) - 103552 [22:14:11]1012 (4) - 18.06.2024 15:52 [22:14:11]1206 (1) - 0 [22:14:11]OFD Sender: Remove packet 103552 [22:14:11]ProducePacketName [22:14:11]name=ofd_packets/00103552 [22:14:11]NVStorageDeleteData [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:46]accept exits with 7 [22:16:46]New connection [22:16:46]New thread 3067084132 created [22:16:46]Thread 3067227492 joined [22:16:46]Waiting for new connection... [22:16:46] Sock 7.Parse request [22:16:46]Sock 7.Check first char [22:16:46]Sock 7.First char is OK [22:16:46]request: POST /json_proto HTTP/1.0 [22:16:46]Method: POST [22:16:46]URL: /json_proto [22:16:46]Method is POST - this is cgi request [22:16:46]url: /json_proto [22:16:46]query_string will be loaded in cgi processing [22:16:46]execute_cgi json_proto POST (null) [22:16:46]execute_cgi path=json_proto method=POST [22:16:46]POST find Content-Length [22:16:46]Host: 172.17.38.133:8080 [22:16:46]Content-Length: 800 [22:16:46]Content-Type: application/json [22:16:46] [22:16:46]POST finish read [22:16:46]Found Content-Length = 800 [22:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:46]execute_script... [22:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:46]POST & json_proto [22:16:46]process_json_proto [22:16:46]json parsed OK: [22:16:46]protocol is kg_v1.0 [22:16:46]action value=close_receipt [22:16:46]process_action close_receipt [22:16:46]cmd_close_receipt [22:16:46]MH_GetDate [22:16:46]Write to MH i2c: F0 00 00 63 83 D5 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: F0 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: F0 09 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: F0 09 00 63 83 00 57 07 72 66 BD 8F 7C 64 40 [22:16:46]GetLastDocTimeStamp 1718748719 [22:16:46]current date 1718749015 [22:16:46]FM_GetShiftState [22:16:46]SAM_PROTO_GetShiftState [22:16:46]wFMCommunicate request_size=4 [22:16:46]MH_SAM_APDU [22:16:46]CAPDU: 80 13 01 00 [22:16:46]Write to MH i2c: E2 08 00 64 83 80 13 01 00 00 00 00 00 64 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:46]Read from MH i2c: E2 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 0E 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 0E 00 64 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E5 [22:16:46]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:16:46]wFMCommunicate OK [22:16:46]SAM_PROTO_GetShiftState done [22:16:46]FM_GetShiftState done [22:16:46]opened in 1718670284 [22:16:46]opened+sec_in_day 1718756684 [22:16:46]quantity*price = 30012 [22:16:46]sum+1 = 30014 [22:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 237 18.06.2024 22:16 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103553 ФПД: 163167853965751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221655&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103553&fm=163167853965751&tin=02508201610067®Number=0000000000092785&sum=30013 [22:16:47]StoreToDocumentArchive [22:16:47]shift 352 fd 103553 [22:16:47]save to /storage/0352/doc_00103553 [22:16:47]save last doc name /storage/0352/doc_00103553 to /storage/kkm_last_doc_name [22:16:47]save OK [22:16:47]Clear old archive folders... [22:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:47]tlvbuf is B6DEB930 [22:16:47]SAM_PROTO_ClearQueue [22:16:47]wFMCommunicate request_size=4 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 09 00 00 [22:16:47]Write to MH i2c: E2 08 00 71 83 80 09 00 00 00 00 00 00 66 [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]OFD Sender: No OFD packet to send [22:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 71 83 00 90 00 68 [22:16:47]RAPDU: 90 00 [22:16:47]wFMCommunicate OK [22:16:47]SAM_PROTO_ClearQueue done [22:16:47]KKMCreateOFDPacket [22:16:47]OFDProtocolAddRootSTLVToBuf [22:16:47]FM_MakeSignedData [22:16:47]FM_MakeSignedData [22:16:47]SAM_PROTO_SignData [22:16:47]wFMCommunicate request_size=4 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 0D 01 02 [22:16:47]Write to MH i2c: E2 08 00 72 83 80 0D 01 02 00 00 00 00 6E [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 72 83 00 90 00 69 [22:16:47]RAPDU: 90 00 [22:16:47]wFMCommunicate OK [22:16:47]wFMCommunicate request_size=255 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 57 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 94 01 00 35 04 06 00 94 [22:16:47]Write to MH i2c: E2 02 01 73 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 57 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 94 01 00 35 04 06 00 94 00 00 0E [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 73 83 00 90 00 6A [22:16:47]RAPDU: 90 00 [22:16:47]wFMCommunicate OK [22:16:47]wFMCommunicate request_size=10 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 0D 02 02 05 66 79 F9 71 B7 [22:16:47]Write to MH i2c: E2 0D 00 74 83 80 0D 02 02 05 00 66 79 F9 71 B7 00 00 7B [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 03 00 74 83 00 90 00 6B [22:16:47]RAPDU: 90 00 [22:16:47]wFMCommunicate OK [22:16:47]wFMCommunicate request_size=4 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 0D 03 02 [22:16:47]Write to MH i2c: E2 08 00 75 83 80 0D 03 02 00 00 00 00 73 [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 0B 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 0B 00 75 83 00 24 D4 CF 2D 82 9B 18 94 90 00 31 [22:16:47]RAPDU: 24 D4 CF 2D 82 9B 18 94 90 00 [22:16:47]wFMCommunicate OK [22:16:47]SAM_PROTO_SignData done [22:16:47]FM_MakeSignedData done [22:16:47]CreateOFDProtocolMessage [22:16:47]wFMCommunicate request_size=4 [22:16:47]MH_SAM_APDU [22:16:47]CAPDU: 80 11 00 00 [22:16:47]Write to MH i2c: E2 08 00 76 83 80 11 00 00 00 00 00 00 73 [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:47]Read from MH i2c: E2 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 17 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: E2 17 00 76 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [22:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:16:47]wFMCommunicate OK [22:16:47]CreateOFDProtocolMessage done [22:16:47]OFDSenderStorePacket 103553 [22:16:47]StoreOFDPacket docnum=103553 [22:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B 4D 07 01 41 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 57 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 94 01 00 35 04 06 00 94 66 79 F9 71 B7 24 D4 CF 2D 82 9B 18 94 [22:16:47]CheckFolder [22:16:47]dirname=/storage/ofd_packets [22:16:47]CheckFolder done [22:16:47]ProducePacketName [22:16:47]name=ofd_packets/00103553 [22:16:47]NVStorageSaveData ofd_packets/00103553 [22:16:47]File name is /storage/ofd_packets/00103553 [22:16:47]Write 301 bytes [22:16:47]NVStorageSaveData done [22:16:47]OFDSenderStorePacket done [22:16:47]KKMCreateOFDPacket done [22:16:47]NVStorageSaveData kkm_last_timestamp [22:16:47]File name is /storage/kkm_last_timestamp [22:16:47]Write 4 bytes [22:16:47]NVStorageSaveData done [22:16:47]ExternCall_PrintAddStr [22:16:47]wPrintStart [22:16:47]Write to MH i2c: 01 00 00 77 83 FA [22:16:47]Write i2c OK [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: 01 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: 01 07 00 [22:16:47]MH_I2C_Read... [22:16:47]Read from MH i2c: 01 07 00 77 83 00 00 00 00 00 FF 0F 0F [22:16:47]RasterBufferAndPrint [22:16:47]line Счет N : (1)672770 [22:16:47]line ИНН: 02508201610067 [22:16:47]line Контрольно-Кассовый Чек [22:16:47]line ПРОДАЖА [22:16:47]line ТРК (МРК, ГНК) : 42 [22:16:47]line Товар: 2710124130 [22:16:47]line Аи-92-К-5 [22:16:47]line 4.520 * 66.40 [22:16:47]line = 300.13 [22:16:47]line НДС 12% НСП 1% [22:16:47]line > о реализуемом товаре [22:16:47]line ИТОГО: 300.13 [22:16:47]line НСП 1% : 2.66 [22:16:47]line НДС 12% : 31.87 [22:16:47]line Наличными: 0.00 [22:16:47]line Безнал.: 300.13 [22:16:47]line Место: АЗС № 120 "Партнер Нефть" [22:16:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:16:47]line СНО: Общий режим [22:16:47]line Чек 237 18.06.2024 22:16 [22:16:47]line Смена: 352 ФФД: 1.0 [22:16:47]line ЗНМ: 0300000164 [22:16:47]line РНМ: 0000000000092785 [22:16:47]line Версия ККМ: 001 [22:16:47]line Платежная система: O! деньги [22:16:47]line ФМ: 0000000000875093 [22:16:47]line ФД: 103553 [22:16:47]line ФПД: 163167853965751 [22:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221655&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103553&fm=163167853965751&tin=02508201610067®Number=0000000000092785&sum=30013 [22:16:48]OFD Sender: Processing packet 103553 [packets to send 17, broken 16] [22:16:48]ProducePacketName [22:16:48]name=ofd_packets/00103553 [22:16:48]OFD Sender: To server: pG, [22:16:48]CommunicateWithHost lk.salyk.kg:30040 [22:16:48]ConnectInit lk.salyk.kg [22:16:48]written 0, free lines is 4095 [22:16:48]Connected sock=10 [22:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2B 4D 07 01 41 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 57 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 94 01 00 35 04 06 00 94 66 79 F9 71 B7 24 D4 CF 2D 82 9B 18 94 [22:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 17 9F 47 00 EB F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 94 01 00 F4 03 04 00 E2 AD 71 66 B6 04 01 00 00 45 E9 6D C1 94 6E D9 31 [22:16:48]CommunicateWithHost err = 0 [22:16:48]CheckOFDResponse [22:16:48]1017 (14) - 77093643461234 [22:16:48]1041 (16) - 0000000000875093 [22:16:48]1040 (4) - 103553 [22:16:48]1012 (4) - 18.06.2024 15:55 [22:16:48]1206 (1) - 0 [22:16:48]OFD Sender: Remove packet 103553 [22:16:48]ProducePacketName [22:16:48]name=ofd_packets/00103553 [22:16:48]NVStorageDeleteData [22:16:48]Write to MH i2c: 01 00 00 A1 83 24 [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: 01 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: 01 07 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: 01 07 00 A1 83 00 00 00 00 00 DD 0C 14 [22:16:48]RasterBufferAndPrint [22:16:48]line [22:16:48]line [22:16:48]line [22:16:48]line [22:16:48]line [22:16:48]written 0, free lines is 3300 [22:16:48]MH_Cut [22:16:48]Write to MH i2c: D1 01 00 A8 83 01 FD [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: D1 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: D1 01 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: D1 01 00 A8 83 00 FC [22:16:48]Write to MH i2c: 01 00 00 A9 83 2C [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:49]OFD Sender: No OFD packet to send [22:16:49]*** Cut start [22:16:49]*** Partial cut [22:16:49]*** CUTSNS_PIN = 1 [22:16:49]*** CUTSNS_PIN = 0 [22:16:49]*** Brake cut motor [22:16:49]Read from MH i2c: 01 [22:16:50]MH_I2C_Read... [22:16:50]*** Stop cut motor [22:16:50]*** Cut end [22:16:50]Read from MH i2c: 01 07 00 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: 01 07 00 A9 83 00 00 00 00 00 FF 0F 41 [22:16:50]process_action close_receipt done [22:16:50]requested_data is exist [22:16:50]produce_requested_data [22:16:50]requested_item fm.sn is exist - process it [22:16:50]wFMCommunicate request_size=4 [22:16:50]MH_SAM_APDU [22:16:50]CAPDU: 80 11 00 00 [22:16:50]Write to MH i2c: E2 08 00 AA 83 80 11 00 00 00 00 00 00 A7 [22:16:50]Write i2c OK [22:16:50]MH_I2C_Read... [22:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:50]Read from MH i2c: E2 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 17 00 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 17 00 AA 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [22:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:16:50]wFMCommunicate OK [22:16:50]requested_item fd.num is exist - process it [22:16:50]SAM_PROTO_GetFieldsCounters [22:16:50]wFMCommunicate request_size=4 [22:16:50]MH_SAM_APDU [22:16:50]CAPDU: 80 13 00 00 [22:16:50]Write to MH i2c: E2 08 00 AB 83 80 13 00 00 00 00 00 00 AA [22:16:50]Write i2c OK [22:16:50]MH_I2C_Read... [22:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:50]Read from MH i2c: E2 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 62 00 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 62 00 AB 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:50]wFMCommunicate OK [22:16:50]SAM_PROTO_GetFieldsCounters done [22:16:50]requested_item shift.num is exist - process it [22:16:50]requested_item shift.opened is exist - process it [22:16:50]req_shift_opened [22:16:50]FM_GetShiftState [22:16:50]SAM_PROTO_GetShiftState [22:16:50]wFMCommunicate request_size=4 [22:16:50]MH_SAM_APDU [22:16:50]CAPDU: 80 13 01 00 [22:16:50]Write to MH i2c: E2 08 00 AC 83 80 13 01 00 00 00 00 00 AC [22:16:50]Write i2c OK [22:16:50]MH_I2C_Read... [22:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:50]Read from MH i2c: E2 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 0E 00 [22:16:50]MH_I2C_Read... [22:16:50]Read from MH i2c: E2 0E 00 AC 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2D [22:16:50]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:16:50]wFMCommunicate OK [22:16:50]SAM_PROTO_GetShiftState done [22:16:50]FM_GetShiftState done [22:16:50]req_shift_opened done [22:16:50]requested_item shift.open_date is exist - process it [22:16:50]req_shift_open_date [22:16:50]req_shift_open_date done [22:16:50]produce_requested_data done [22:16:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103553,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:16:50]process_action_free close_receipt [22:16:50]json_value_free [22:16:50]json_value_free done [22:16:50]process_json_proto returns [22:16:50]Send response to host [22:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103553,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:16:50]free response buf [22:16:50]execute_script done [22:16:50]execute_script returns [22:16:50]free content buf [22:16:50]Sock 7.Close socket [22:16:50]Sock 7.Thread stoped [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:35]accept exits with 9 [22:18:35]New connection [22:18:35]New thread 3067227492 created [22:18:35]Thread 3067084132 joined [22:18:35]Waiting for new connection... [22:18:35] Sock 9.Parse request [22:18:35]Sock 9.Check first char [22:18:35]Sock 9.First char is OK [22:18:35]request: POST /json_proto HTTP/1.0 [22:18:35]Method: POST [22:18:35]URL: /json_proto [22:18:35]Method is POST - this is cgi request [22:18:35]url: /json_proto [22:18:35]query_string will be loaded in cgi processing [22:18:35]execute_cgi json_proto POST (null) [22:18:35]execute_cgi path=json_proto method=POST [22:18:35]POST find Content-Length [22:18:35]Host: 172.17.38.133:8080 [22:18:36]Content-Length: 677 [22:18:36]Content-Type: application/json [22:18:36] [22:18:36]POST finish read [22:18:36]Found Content-Length = 677 [22:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:36]execute_script... [22:18:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:36]POST & json_proto [22:18:36]process_json_proto [22:18:36]json parsed OK: [22:18:36]protocol is kg_v1.0 [22:18:36]action value=close_receipt [22:18:36]process_action close_receipt [22:18:36]cmd_close_receipt [22:18:36]MH_GetDate [22:18:36]Write to MH i2c: F0 00 00 AD 83 1F [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: F0 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: F0 09 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: F0 09 00 AD 83 00 C4 07 72 66 BD 8F 7C 64 F7 [22:18:36]GetLastDocTimeStamp 1718749015 [22:18:36]current date 1718749124 [22:18:36]FM_GetShiftState [22:18:36]SAM_PROTO_GetShiftState [22:18:36]wFMCommunicate request_size=4 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 13 01 00 [22:18:36]Write to MH i2c: E2 08 00 AE 83 80 13 01 00 00 00 00 00 AE [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 0E 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 0E 00 AE 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 2F [22:18:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:18:36]wFMCommunicate OK [22:18:36]SAM_PROTO_GetShiftState done [22:18:36]FM_GetShiftState done [22:18:36]opened in 1718670284 [22:18:36]opened+sec_in_day 1718756684 [22:18:36]quantity*price = 40039 [22:18:36]sum+1 = 40040 [22:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 238 18.06.2024 22:18 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103554 ФПД: 279832223767520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221845&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103554&fm=279832223767520&tin=02508201610067®Number=0000000000092785&sum=40000 [22:18:37]StoreToDocumentArchive [22:18:37]shift 352 fd 103554 [22:18:37]save to /storage/0352/doc_00103554 [22:18:37]save last doc name /storage/0352/doc_00103554 to /storage/kkm_last_doc_name [22:18:37]save OK [22:18:37]Clear old archive folders... [22:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:37]tlvbuf is 01594480 [22:18:37]SAM_PROTO_ClearQueue [22:18:37]wFMCommunicate request_size=4 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 09 00 00 [22:18:37]Write to MH i2c: E2 08 00 BB 83 80 09 00 00 00 00 00 00 B0 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:37]Read from MH i2c: E2 03 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 BB 83 00 90 00 B2 [22:18:37]RAPDU: 90 00 [22:18:37]wFMCommunicate OK [22:18:37]SAM_PROTO_ClearQueue done [22:18:37]KKMCreateOFDPacket [22:18:37]OFDProtocolAddRootSTLVToBuf [22:18:37]FM_MakeSignedData [22:18:37]FM_MakeSignedData [22:18:37]SAM_PROTO_SignData [22:18:37]wFMCommunicate request_size=4 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 0D 01 02 [22:18:37]Write to MH i2c: E2 08 00 BC 83 80 0D 01 02 00 00 00 00 B8 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 BC 83 00 90 00 B3 [22:18:37]RAPDU: 90 00 [22:18:37]wFMCommunicate OK [22:18:37]wFMCommunicate request_size=255 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C5 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 94 01 00 35 04 06 00 FE [22:18:37]Write to MH i2c: E2 02 01 BD 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C5 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 94 01 00 35 04 06 00 FE 00 00 48 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 BD 83 00 90 00 B4 [22:18:37]RAPDU: 90 00 [22:18:37]wFMCommunicate OK [22:18:37]wFMCommunicate request_size=10 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 0D 02 02 05 81 84 4B 5B E0 [22:18:37]Write to MH i2c: E2 0D 00 BE 83 80 0D 02 02 05 00 81 84 4B 5B E0 00 00 50 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 03 00 BE 83 00 90 00 B5 [22:18:37]RAPDU: 90 00 [22:18:37]wFMCommunicate OK [22:18:37]wFMCommunicate request_size=4 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 0D 03 02 [22:18:37]Write to MH i2c: E2 08 00 BF 83 80 0D 03 02 00 00 00 00 BD [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 0B 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 0B 00 BF 83 00 9B 58 7B 71 B1 D0 CD 2F 90 00 1A [22:18:37]RAPDU: 9B 58 7B 71 B1 D0 CD 2F 90 00 [22:18:37]wFMCommunicate OK [22:18:37]SAM_PROTO_SignData done [22:18:37]FM_MakeSignedData done [22:18:37]CreateOFDProtocolMessage [22:18:37]wFMCommunicate request_size=4 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 11 00 00 [22:18:37]Write to MH i2c: E2 08 00 C0 83 80 11 00 00 00 00 00 00 BD [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 17 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 17 00 C0 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [22:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:18:37]wFMCommunicate OK [22:18:37]CreateOFDProtocolMessage done [22:18:37]OFDSenderStorePacket 103554 [22:18:37]StoreOFDPacket docnum=103554 [22:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 3D 07 01 5A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C5 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 94 01 00 35 04 06 00 FE 81 84 4B 5B E0 9B 58 7B 71 B1 D0 CD 2F [22:18:37]CheckFolder [22:18:37]dirname=/storage/ofd_packets [22:18:37]CheckFolder done [22:18:37]ProducePacketName [22:18:37]name=ofd_packets/00103554 [22:18:37]NVStorageSaveData ofd_packets/00103554 [22:18:37]File name is /storage/ofd_packets/00103554 [22:18:37]Write 301 bytes [22:18:37]NVStorageSaveData done [22:18:37]OFDSenderStorePacket done [22:18:37]KKMCreateOFDPacket done [22:18:37]NVStorageSaveData kkm_last_timestamp [22:18:37]File name is /storage/kkm_last_timestamp [22:18:37]Write 4 bytes [22:18:37]NVStorageSaveData done [22:18:37]ExternCall_PrintAddStr [22:18:37]wPrintStart [22:18:37]Write to MH i2c: 01 00 00 C1 83 44 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 07 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 07 00 C1 83 00 00 00 00 00 FF 0F 59 [22:18:37]RasterBufferAndPrint [22:18:37]line Счет N : (1)672771 [22:18:37]line ИНН: 02508201610067 [22:18:37]line Контрольно-Кассовый Чек [22:18:37]line ПРОДАЖА [22:18:37]line ТРК (МРК, ГНК) : 32 [22:18:37]line Товар: 2710124130 [22:18:37]line Аи-92-К-5 [22:18:37]line 6.030 * 66.40 [22:18:37]line = 400.39 [22:18:37]line НДС 12% НСП 1% [22:18:37]line > о реализуемом товаре [22:18:37]line ОКРУГЛЕНИЕ: -0.39 [22:18:37]line ИТОГО: 400.00 [22:18:37]line Внесено: 400.00 [22:18:37]line СДАЧА: 0.00 [22:18:37]line НСП 1% : 3.54 [22:18:37]line НДС 12% : 42.52 [22:18:37]line Наличными: 400.00 [22:18:37]line Безнал.: 0.00 [22:18:37]line Место: АЗС № 120 "Партнер Нефть" [22:18:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:18:37]line СНО: Общий режим [22:18:37]line Чек 238 18.06.2024 22:18 [22:18:37]line Смена: 352 ФФД: 1.0 [22:18:37]line ЗНМ: 0300000164 [22:18:37]line РНМ: 0000000000092785 [22:18:37]line Версия ККМ: 001 [22:18:37]line ФМ: 0000000000875093 [22:18:37]line ФД: 103554 [22:18:37]line ФПД: 279832223767520 [22:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T221845&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103554&fm=279832223767520&tin=02508201610067®Number=0000000000092785&sum=40000 [22:18:38]OFD Sender: Processing packet 103554 [packets to send 17, broken 16] [22:18:38]ProducePacketName [22:18:38]name=ofd_packets/00103554 [22:18:38]OFD Sender: To server: pG, [22:18:38]CommunicateWithHost lk.salyk.kg:30040 [22:18:38]ConnectInit lk.salyk.kg [22:18:38]written 0, free lines is 4095 [22:18:38]Connected sock=10 [22:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 3D 07 01 5A 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C5 07 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 94 01 00 35 04 06 00 FE 81 84 4B 5B E0 9B 58 7B 71 B1 D0 CD 2F [22:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 30 BB 47 00 0B 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 35 30 39 33 10 04 04 00 82 94 01 00 F4 03 04 00 4F AE 71 66 B6 04 01 00 00 16 86 28 8E 7D BF CB 18 [22:18:38]CommunicateWithHost err = 0 [22:18:38]CheckOFDResponse [22:18:38]1017 (14) - 77093643461234 [22:18:38]1041 (16) - 0000000000875093 [22:18:38]1040 (4) - 103554 [22:18:38]1012 (4) - 18.06.2024 15:57 [22:18:38]1206 (1) - 0 [22:18:38]OFD Sender: Remove packet 103554 [22:18:38]ProducePacketName [22:18:38]name=ofd_packets/00103554 [22:18:38]NVStorageDeleteData [22:18:38]Write to MH i2c: 01 00 00 EC 83 6F [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: 01 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: 01 07 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: 01 07 00 EC 83 00 00 00 00 00 D7 0C 59 [22:18:38]RasterBufferAndPrint [22:18:38]line [22:18:38]line [22:18:38]line [22:18:38]line [22:18:38]line [22:18:38]written 0, free lines is 3294 [22:18:38]MH_Cut [22:18:38]Write to MH i2c: D1 01 00 F3 83 01 48 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: D1 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: D1 01 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: D1 01 00 F3 83 00 47 [22:18:38]Write to MH i2c: 01 00 00 F4 83 77 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]OFD Sender: No OFD packet to send [22:18:39]*** Cut start [22:18:39]*** Partial cut [22:18:39]*** CUTSNS_PIN = 1 [22:18:39]*** CUTSNS_PIN = 0 [22:18:39]*** Brake cut motor [22:18:39]Read from MH i2c: 01 [22:18:39]MH_I2C_Read... [22:18:39]*** Stop cut motor [22:18:39]*** Cut end [22:18:39]Read from MH i2c: 01 07 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: 01 07 00 F4 83 00 00 00 00 00 FF 0F 8C [22:18:39]process_action close_receipt done [22:18:39]requested_data is exist [22:18:39]produce_requested_data [22:18:39]requested_item fm.sn is exist - process it [22:18:39]wFMCommunicate request_size=4 [22:18:39]MH_SAM_APDU [22:18:39]CAPDU: 80 11 00 00 [22:18:39]Write to MH i2c: E2 08 00 F5 83 80 11 00 00 00 00 00 00 F2 [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 17 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 17 00 F5 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [22:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:18:39]wFMCommunicate OK [22:18:39]requested_item fd.num is exist - process it [22:18:39]SAM_PROTO_GetFieldsCounters [22:18:39]wFMCommunicate request_size=4 [22:18:39]MH_SAM_APDU [22:18:39]CAPDU: 80 13 00 00 [22:18:39]Write to MH i2c: E2 08 00 F6 83 80 13 00 00 00 00 00 00 F5 [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:40]Read from MH i2c: E2 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: E2 62 00 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: E2 62 00 F6 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [22:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:40]wFMCommunicate OK [22:18:40]SAM_PROTO_GetFieldsCounters done [22:18:40]requested_item shift.num is exist - process it [22:18:40]requested_item shift.opened is exist - process it [22:18:40]req_shift_opened [22:18:40]FM_GetShiftState [22:18:40]SAM_PROTO_GetShiftState [22:18:40]wFMCommunicate request_size=4 [22:18:40]MH_SAM_APDU [22:18:40]CAPDU: 80 13 01 00 [22:18:40]Write to MH i2c: E2 08 00 F7 83 80 13 01 00 00 00 00 00 F7 [22:18:40]Write i2c OK [22:18:40]MH_I2C_Read... [22:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:40]Read from MH i2c: E2 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: E2 0E 00 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: E2 0E 00 F7 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 78 [22:18:40]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:18:40]wFMCommunicate OK [22:18:40]SAM_PROTO_GetShiftState done [22:18:40]FM_GetShiftState done [22:18:40]req_shift_opened done [22:18:40]requested_item shift.open_date is exist - process it [22:18:40]req_shift_open_date [22:18:40]req_shift_open_date done [22:18:40]produce_requested_data done [22:18:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103554,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:18:40]process_action_free close_receipt [22:18:40]json_value_free [22:18:40]json_value_free done [22:18:40]process_json_proto returns [22:18:40]Send response to host [22:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103554,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:18:40]free response buf [22:18:40]execute_script done [22:18:40]execute_script returns [22:18:40]free content buf [22:18:40]Sock 9.Close socket [22:18:40]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:12]accept exits with 7 [22:25:12]New connection [22:25:12]New thread 3067084132 created [22:25:12]Thread 3067227492 joined [22:25:12]Waiting for new connection... [22:25:12] Sock 7.Parse request [22:25:12]Sock 7.Check first char [22:25:12]Sock 7.First char is OK [22:25:12]request: POST /json_proto HTTP/1.0 [22:25:12]Method: POST [22:25:12]URL: /json_proto [22:25:12]Method is POST - this is cgi request [22:25:12]url: /json_proto [22:25:12]query_string will be loaded in cgi processing [22:25:12]execute_cgi json_proto POST (null) [22:25:12]execute_cgi path=json_proto method=POST [22:25:12]POST find Content-Length [22:25:12]Host: 172.17.38.133:8080 [22:25:12]Content-Length: 677 [22:25:12]Content-Type: application/json [22:25:12] [22:25:12]POST finish read [22:25:12]Found Content-Length = 677 [22:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:12]execute_script... [22:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:12]POST & json_proto [22:25:12]process_json_proto [22:25:12]json parsed OK: [22:25:12]protocol is kg_v1.0 [22:25:12]action value=close_receipt [22:25:12]process_action close_receipt [22:25:12]cmd_close_receipt [22:25:12]MH_GetDate [22:25:12]Write to MH i2c: F0 00 00 F8 83 6A [22:25:12]Write i2c OK [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: F0 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: F0 09 00 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: F0 09 00 F8 83 00 51 09 72 66 BD 8F 7C 64 D1 [22:25:12]GetLastDocTimeStamp 1718749125 [22:25:12]current date 1718749521 [22:25:12]FM_GetShiftState [22:25:12]SAM_PROTO_GetShiftState [22:25:12]wFMCommunicate request_size=4 [22:25:12]MH_SAM_APDU [22:25:12]CAPDU: 80 13 01 00 [22:25:12]Write to MH i2c: E2 08 00 F9 83 80 13 01 00 00 00 00 00 F9 [22:25:12]Write i2c OK [22:25:12]MH_I2C_Read... [22:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:12]Read from MH i2c: E2 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 0E 00 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 0E 00 F9 83 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7A [22:25:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:25:12]wFMCommunicate OK [22:25:12]SAM_PROTO_GetShiftState done [22:25:12]FM_GetShiftState done [22:25:12]opened in 1718670284 [22:25:12]opened+sec_in_day 1718756684 [22:25:12]quantity*price = 70057 [22:25:12]sum+1 = 70058 [22:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 239 18.06.2024 22:25 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103555 ФПД: 125167036489342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T222521&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103555&fm=125167036489342&tin=02508201610067®Number=0000000000092785&sum=70000 [22:25:13]StoreToDocumentArchive [22:25:13]shift 352 fd 103555 [22:25:13]save to /storage/0352/doc_00103555 [22:25:13]save last doc name /storage/0352/doc_00103555 to /storage/kkm_last_doc_name [22:25:13]save OK [22:25:13]Clear old archive folders... [22:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:25:13]tlvbuf is 015B1880 [22:25:13]SAM_PROTO_ClearQueue [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 09 00 00 [22:25:13]Write to MH i2c: E2 08 00 06 84 80 09 00 00 00 00 00 00 FC [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 06 84 00 90 00 FE [22:25:13]RAPDU: 90 00 [22:25:13]wFMCommunicate OK [22:25:13]SAM_PROTO_ClearQueue done [22:25:13]KKMCreateOFDPacket [22:25:13]OFDProtocolAddRootSTLVToBuf [22:25:13]FM_MakeSignedData [22:25:13]FM_MakeSignedData [22:25:13]SAM_PROTO_SignData [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 0D 01 02 [22:25:13]Write to MH i2c: E2 08 00 07 84 80 0D 01 02 00 00 00 00 04 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 07 84 00 90 00 FF [22:25:13]RAPDU: 90 00 [22:25:13]wFMCommunicate OK [22:25:13]wFMCommunicate request_size=255 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 51 09 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 94 01 00 35 04 06 00 71 [22:25:13]Write to MH i2c: E2 02 01 08 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 51 09 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 94 01 00 35 04 06 00 71 00 00 A4 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 08 84 00 90 00 00 [22:25:13]RAPDU: 90 00 [22:25:13]wFMCommunicate OK [22:25:13]wFMCommunicate request_size=10 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 0D 02 02 05 D6 B8 BF 5E 7E [22:25:13]Write to MH i2c: E2 0D 00 09 84 80 0D 02 02 05 00 D6 B8 BF 5E 7E 00 00 3A [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 09 84 00 90 00 01 [22:25:13]RAPDU: 90 00 [22:25:13]wFMCommunicate OK [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 0D 03 02 [22:25:13]Write to MH i2c: E2 08 00 0A 84 80 0D 03 02 00 00 00 00 09 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0B 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0B 00 0A 84 00 C3 80 1A 0B 8F CC 35 FC 90 00 FE [22:25:13]RAPDU: C3 80 1A 0B 8F CC 35 FC 90 00 [22:25:13]wFMCommunicate OK [22:25:13]SAM_PROTO_SignData done [22:25:13]FM_MakeSignedData done [22:25:13]CreateOFDProtocolMessage [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 11 00 00 [22:25:13]Write to MH i2c: E2 08 00 0B 84 80 11 00 00 00 00 00 00 09 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 0B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [22:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:25:13]wFMCommunicate OK [22:25:13]CreateOFDProtocolMessage done [22:25:13]OFDSenderStorePacket 103555 [22:25:13]StoreOFDPacket docnum=103555 [22:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F2 AD 07 01 C5 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 51 09 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 94 01 00 35 04 06 00 71 D6 B8 BF 5E 7E C3 80 1A 0B 8F CC 35 FC [22:25:13]CheckFolder [22:25:13]dirname=/storage/ofd_packets [22:25:13]CheckFolder done [22:25:13]ProducePacketName [22:25:13]name=ofd_packets/00103555 [22:25:13]NVStorageSaveData ofd_packets/00103555 [22:25:13]File name is /storage/ofd_packets/00103555 [22:25:13]Write 301 bytes [22:25:13]NVStorageSaveData done [22:25:13]OFDSenderStorePacket done [22:25:13]KKMCreateOFDPacket done [22:25:13]NVStorageSaveData kkm_last_timestamp [22:25:13]File name is /storage/kkm_last_timestamp [22:25:13]Write 4 bytes [22:25:13]NVStorageSaveData done [22:25:13]ExternCall_PrintAddStr [22:25:13]wPrintStart [22:25:13]Write to MH i2c: 01 00 00 0C 84 90 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 0C 84 00 00 00 00 00 FF 0F A5 [22:25:13]RasterBufferAndPrint [22:25:13]line Счет N : (1)672772 [22:25:13]line ИНН: 02508201610067 [22:25:13]line Контрольно-Кассовый Чек [22:25:13]line ПРОДАЖА [22:25:13]line ТРК (МРК, ГНК) : 31 [22:25:13]line Товар: 2710124500 [22:25:13]line Аи-95-К-5 [22:25:13]line 9.480 * 73.90 [22:25:13]line = 700.57 [22:25:13]line НДС 12% НСП 1% [22:25:13]line > о реализуемом товаре [22:25:13]line ОКРУГЛЕНИЕ: -0.57 [22:25:13]line ИТОГО: 700.00 [22:25:13]line Внесено: 700.00 [22:25:13]line СДАЧА: 0.00 [22:25:13]line НСП 1% : 6.20 [22:25:13]line НДС 12% : 74.40 [22:25:13]line Наличными: 700.00 [22:25:13]line Безнал.: 0.00 [22:25:13]line Место: АЗС № 120 "Партнер Нефть" [22:25:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:25:13]line СНО: Общий режим [22:25:13]line Чек 239 18.06.2024 22:25 [22:25:13]line Смена: 352 ФФД: 1.0 [22:25:13]line ЗНМ: 0300000164 [22:25:13]line РНМ: 0000000000092785 [22:25:13]line Версия ККМ: 001 [22:25:13]line ФМ: 0000000000875093 [22:25:13]line ФД: 103555 [22:25:13]line ФПД: 125167036489342 [22:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T222521&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103555&fm=125167036489342&tin=02508201610067®Number=0000000000092785&sum=70000 [22:25:14]OFD Sender: Processing packet 103555 [packets to send 17, broken 16] [22:25:14]ProducePacketName [22:25:14]name=ofd_packets/00103555 [22:25:14]OFD Sender: To server: pG, [22:25:14]CommunicateWithHost lk.salyk.kg:30040 [22:25:14]ConnectInit lk.salyk.kg [22:25:14]written 0, free lines is 4095 [22:25:14]Connected sock=10 [22:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F2 AD 07 01 C5 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 51 09 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 94 01 00 35 04 06 00 71 D6 B8 BF 5E 7E C3 80 1A 0B 8F CC 35 FC [22:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 61 E5 47 00 E6 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 94 01 00 F4 03 04 00 DB AF 71 66 B6 04 01 00 00 D3 B9 91 59 57 A8 97 B9 [22:25:14]CommunicateWithHost err = 0 [22:25:14]CheckOFDResponse [22:25:14]1017 (14) - 77093643461234 [22:25:14]1041 (16) - 0000000000875093 [22:25:14]1040 (4) - 103555 [22:25:14]1012 (4) - 18.06.2024 16:03 [22:25:14]1206 (1) - 0 [22:25:14]OFD Sender: Remove packet 103555 [22:25:14]ProducePacketName [22:25:14]name=ofd_packets/00103555 [22:25:14]NVStorageDeleteData [22:25:14]Write to MH i2c: 01 00 00 37 84 BB [22:25:14]Write i2c OK [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: 01 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: 01 07 00 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: 01 07 00 37 84 00 00 00 00 00 E4 0C B2 [22:25:14]RasterBufferAndPrint [22:25:14]line [22:25:14]line [22:25:14]line [22:25:14]line [22:25:14]line [22:25:14]written 0, free lines is 3306 [22:25:14]MH_Cut [22:25:14]Write to MH i2c: D1 01 00 3E 84 01 94 [22:25:14]Write i2c OK [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: D1 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: D1 01 00 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: D1 01 00 3E 84 00 93 [22:25:14]Write to MH i2c: 01 00 00 3F 84 C3 [22:25:14]Write i2c OK [22:25:14]MH_I2C_Read... [22:25:15]OFD Sender: No OFD packet to send [22:25:15]*** Cut start [22:25:15]*** Partial cut [22:25:15]*** CUTSNS_PIN = 1 [22:25:15]*** CUTSNS_PIN = 0 [22:25:15]*** Brake cut motor [22:25:15]Read from MH i2c: 01 [22:25:15]MH_I2C_Read... [22:25:15]*** Stop cut motor [22:25:15]*** Cut end [22:25:15]Read from MH i2c: 01 07 00 [22:25:15]MH_I2C_Read... [22:25:15]Read from MH i2c: 01 07 00 3F 84 00 00 00 00 00 FF 0F D8 [22:25:15]process_action close_receipt done [22:25:15]requested_data is exist [22:25:15]produce_requested_data [22:25:15]requested_item fm.sn is exist - process it [22:25:15]wFMCommunicate request_size=4 [22:25:15]MH_SAM_APDU [22:25:15]CAPDU: 80 11 00 00 [22:25:15]Write to MH i2c: E2 08 00 40 84 80 11 00 00 00 00 00 00 3E [22:25:15]Write i2c OK [22:25:15]MH_I2C_Read... [22:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:15]Read from MH i2c: E2 [22:25:15]MH_I2C_Read... [22:25:15]Read from MH i2c: E2 17 00 [22:25:15]MH_I2C_Read... [22:25:15]Read from MH i2c: E2 17 00 40 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [22:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:25:15]wFMCommunicate OK [22:25:15]requested_item fd.num is exist - process it [22:25:15]SAM_PROTO_GetFieldsCounters [22:25:15]wFMCommunicate request_size=4 [22:25:15]MH_SAM_APDU [22:25:15]CAPDU: 80 13 00 00 [22:25:15]Write to MH i2c: E2 08 00 41 84 80 13 00 00 00 00 00 00 41 [22:25:15]Write i2c OK [22:25:15]MH_I2C_Read... [22:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:16]Read from MH i2c: E2 [22:25:16]MH_I2C_Read... [22:25:16]Read from MH i2c: E2 62 00 [22:25:16]MH_I2C_Read... [22:25:16]Read from MH i2c: E2 62 00 41 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:16]wFMCommunicate OK [22:25:16]SAM_PROTO_GetFieldsCounters done [22:25:16]requested_item shift.num is exist - process it [22:25:16]requested_item shift.opened is exist - process it [22:25:16]req_shift_opened [22:25:16]FM_GetShiftState [22:25:16]SAM_PROTO_GetShiftState [22:25:16]wFMCommunicate request_size=4 [22:25:16]MH_SAM_APDU [22:25:16]CAPDU: 80 13 01 00 [22:25:16]Write to MH i2c: E2 08 00 42 84 80 13 01 00 00 00 00 00 43 [22:25:16]Write i2c OK [22:25:16]MH_I2C_Read... [22:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:16]Read from MH i2c: E2 [22:25:16]MH_I2C_Read... [22:25:16]Read from MH i2c: E2 0E 00 [22:25:16]MH_I2C_Read... [22:25:16]Read from MH i2c: E2 0E 00 42 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C4 [22:25:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:25:16]wFMCommunicate OK [22:25:16]SAM_PROTO_GetShiftState done [22:25:16]FM_GetShiftState done [22:25:16]req_shift_opened done [22:25:16]requested_item shift.open_date is exist - process it [22:25:16]req_shift_open_date [22:25:16]req_shift_open_date done [22:25:16]produce_requested_data done [22:25:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103555,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:25:16]process_action_free close_receipt [22:25:16]json_value_free [22:25:16]json_value_free done [22:25:16]process_json_proto returns [22:25:16]Send response to host [22:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103555,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:25:16]free response buf [22:25:16]execute_script done [22:25:16]execute_script returns [22:25:16]free content buf [22:25:16]Sock 7.Close socket [22:25:16]Sock 7.Thread stoped [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:52]accept exits with 9 [22:32:52]New connection [22:32:52]New thread 3067227492 created [22:32:52]Thread 3067084132 joined [22:32:52]Waiting for new connection... [22:32:52] Sock 9.Parse request [22:32:52]Sock 9.Check first char [22:32:52]Sock 9.First char is OK [22:32:52]request: POST /json_proto HTTP/1.0 [22:32:52]Method: POST [22:32:52]URL: /json_proto [22:32:52]Method is POST - this is cgi request [22:32:52]url: /json_proto [22:32:52]query_string will be loaded in cgi processing [22:32:52]execute_cgi json_proto POST (null) [22:32:52]execute_cgi path=json_proto method=POST [22:32:52]POST find Content-Length [22:32:52]Host: 172.17.38.133:8080 [22:32:52]Content-Length: 678 [22:32:52]Content-Type: application/json [22:32:52] [22:32:52]POST finish read [22:32:52]Found Content-Length = 678 [22:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:52]execute_script... [22:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:52]POST & json_proto [22:32:52]process_json_proto [22:32:52]json parsed OK: [22:32:52]protocol is kg_v1.0 [22:32:52]action value=close_receipt [22:32:52]process_action close_receipt [22:32:52]cmd_close_receipt [22:32:52]MH_GetDate [22:32:52]Write to MH i2c: F0 00 00 43 84 B6 [22:32:52]Write i2c OK [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: F0 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: F0 09 00 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: F0 09 00 43 84 00 1D 0B 72 66 BD 8F 7C 64 EB [22:32:52]GetLastDocTimeStamp 1718749521 [22:32:52]current date 1718749981 [22:32:52]FM_GetShiftState [22:32:52]SAM_PROTO_GetShiftState [22:32:52]wFMCommunicate request_size=4 [22:32:52]MH_SAM_APDU [22:32:52]CAPDU: 80 13 01 00 [22:32:52]Write to MH i2c: E2 08 00 44 84 80 13 01 00 00 00 00 00 45 [22:32:52]Write i2c OK [22:32:52]MH_I2C_Read... [22:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:52]Read from MH i2c: E2 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 0E 00 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 0E 00 44 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 C6 [22:32:52]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:32:52]wFMCommunicate OK [22:32:52]SAM_PROTO_GetShiftState done [22:32:52]FM_GetShiftState done [22:32:52]opened in 1718670284 [22:32:52]opened+sec_in_day 1718756684 [22:32:52]quantity*price = 67064 [22:32:52]sum+1 = 67065 [22:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 240 18.06.2024 22:33 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103556 ФПД: 242559479516238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T223301&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103556&fm=242559479516238&tin=02508201610067®Number=0000000000092785&sum=67000 [22:32:53]StoreToDocumentArchive [22:32:53]shift 352 fd 103556 [22:32:53]save to /storage/0352/doc_00103556 [22:32:53]save last doc name /storage/0352/doc_00103556 to /storage/kkm_last_doc_name [22:32:53]save OK [22:32:53]Clear old archive folders... [22:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:53]tlvbuf is 0152C370 [22:32:53]SAM_PROTO_ClearQueue [22:32:53]wFMCommunicate request_size=4 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 09 00 00 [22:32:53]Write to MH i2c: E2 08 00 51 84 80 09 00 00 00 00 00 00 47 [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:53]Read from MH i2c: E2 03 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 51 84 00 90 00 49 [22:32:53]RAPDU: 90 00 [22:32:53]wFMCommunicate OK [22:32:53]SAM_PROTO_ClearQueue done [22:32:53]KKMCreateOFDPacket [22:32:53]OFDProtocolAddRootSTLVToBuf [22:32:53]FM_MakeSignedData [22:32:53]FM_MakeSignedData [22:32:53]SAM_PROTO_SignData [22:32:53]wFMCommunicate request_size=4 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 0D 01 02 [22:32:53]Write to MH i2c: E2 08 00 52 84 80 0D 01 02 00 00 00 00 4F [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:53]Read from MH i2c: E2 03 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 52 84 00 90 00 4A [22:32:53]RAPDU: 90 00 [22:32:53]wFMCommunicate OK [22:32:53]wFMCommunicate request_size=255 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1D 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 94 01 00 35 04 06 00 DC [22:32:53]Write to MH i2c: E2 02 01 53 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1D 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 94 01 00 35 04 06 00 DC 00 00 03 [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 53 84 00 90 00 4B [22:32:53]RAPDU: 90 00 [22:32:53]wFMCommunicate OK [22:32:53]wFMCommunicate request_size=10 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 0D 02 02 05 9B 47 9D 0C 4E [22:32:53]Write to MH i2c: E2 0D 00 54 84 80 0D 02 02 05 00 9B 47 9D 0C 4E 00 00 35 [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 03 00 54 84 00 90 00 4C [22:32:53]RAPDU: 90 00 [22:32:53]wFMCommunicate OK [22:32:53]wFMCommunicate request_size=4 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 0D 03 02 [22:32:53]Write to MH i2c: E2 08 00 55 84 80 0D 03 02 00 00 00 00 54 [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 0B 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 0B 00 55 84 00 63 62 49 52 73 B4 E2 B6 90 00 74 [22:32:53]RAPDU: 63 62 49 52 73 B4 E2 B6 90 00 [22:32:53]wFMCommunicate OK [22:32:53]SAM_PROTO_SignData done [22:32:53]FM_MakeSignedData done [22:32:53]CreateOFDProtocolMessage [22:32:53]wFMCommunicate request_size=4 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 11 00 00 [22:32:53]Write to MH i2c: E2 08 00 56 84 80 11 00 00 00 00 00 00 54 [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 17 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 17 00 56 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [22:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:32:53]wFMCommunicate OK [22:32:53]CreateOFDProtocolMessage done [22:32:53]OFDSenderStorePacket 103556 [22:32:53]StoreOFDPacket docnum=103556 [22:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 24 07 01 8C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1D 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 94 01 00 35 04 06 00 DC 9B 47 9D 0C 4E 63 62 49 52 73 B4 E2 B6 [22:32:53]CheckFolder [22:32:53]dirname=/storage/ofd_packets [22:32:53]CheckFolder done [22:32:53]ProducePacketName [22:32:53]name=ofd_packets/00103556 [22:32:53]NVStorageSaveData ofd_packets/00103556 [22:32:53]File name is /storage/ofd_packets/00103556 [22:32:53]Write 301 bytes [22:32:53]NVStorageSaveData done [22:32:53]OFDSenderStorePacket done [22:32:53]KKMCreateOFDPacket done [22:32:53]NVStorageSaveData kkm_last_timestamp [22:32:53]File name is /storage/kkm_last_timestamp [22:32:53]Write 4 bytes [22:32:53]NVStorageSaveData done [22:32:53]ExternCall_PrintAddStr [22:32:53]wPrintStart [22:32:53]Write to MH i2c: 01 00 00 57 84 DB [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: 01 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: 01 07 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: 01 07 00 57 84 00 00 00 00 00 FF 0F F0 [22:32:53]RasterBufferAndPrint [22:32:53]line Счет N : (1)672773 [22:32:53]line ИНН: 02508201610067 [22:32:53]line Контрольно-Кассовый Чек [22:32:53]line ПРОДАЖА [22:32:53]line ТРК (МРК, ГНК) : 42 [22:32:53]line Товар: 2710124130 [22:32:53]line Аи-92-К-5 [22:32:53]line 10.100 * 66.40 [22:32:53]line = 670.64 [22:32:53]line НДС 12% НСП 1% [22:32:53]line > о реализуемом товаре [22:32:53]line ОКРУГЛЕНИЕ: -0.64 [22:32:53]line ИТОГО: 670.00 [22:32:53]line Внесено: 670.00 [22:32:53]line СДАЧА: 0.00 [22:32:53]line НСП 1% : 5.93 [22:32:53]line НДС 12% : 71.22 [22:32:53]line Наличными: 670.00 [22:32:53]line Безнал.: 0.00 [22:32:53]line Место: АЗС № 120 "Партнер Нефть" [22:32:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:32:53]line СНО: Общий режим [22:32:53]line Чек 240 18.06.2024 22:33 [22:32:53]line Смена: 352 ФФД: 1.0 [22:32:53]line ЗНМ: 0300000164 [22:32:53]line РНМ: 0000000000092785 [22:32:53]line Версия ККМ: 001 [22:32:53]line ФМ: 0000000000875093 [22:32:53]line ФД: 103556 [22:32:53]line ФПД: 242559479516238 [22:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T223301&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103556&fm=242559479516238&tin=02508201610067®Number=0000000000092785&sum=67000 [22:32:54]OFD Sender: Processing packet 103556 [packets to send 17, broken 16] [22:32:54]ProducePacketName [22:32:54]name=ofd_packets/00103556 [22:32:54]OFD Sender: To server: pG, [22:32:54]CommunicateWithHost lk.salyk.kg:30040 [22:32:54]ConnectInit lk.salyk.kg [22:32:54]written 0, free lines is 4095 [22:32:54]Connected sock=10 [22:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 39 24 07 01 8C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 1D 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 94 01 00 35 04 06 00 DC 9B 47 9D 0C 4E 63 62 49 52 73 B4 E2 B6 [22:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 15 9D 47 00 A8 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 94 01 00 F4 03 04 00 A8 B1 71 66 B6 04 01 00 00 3D 39 80 1A 4E 65 8C BF [22:32:54]CommunicateWithHost err = 0 [22:32:54]CheckOFDResponse [22:32:54]1017 (14) - 77093643461234 [22:32:54]1041 (16) - 0000000000875093 [22:32:54]1040 (4) - 103556 [22:32:54]1012 (4) - 18.06.2024 16:11 [22:32:54]1206 (1) - 0 [22:32:54]OFD Sender: Remove packet 103556 [22:32:54]ProducePacketName [22:32:54]name=ofd_packets/00103556 [22:32:54]NVStorageDeleteData [22:32:54]Write to MH i2c: 01 00 00 82 84 06 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: 01 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: 01 07 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: 01 07 00 82 84 00 00 00 00 00 CE 0C E7 [22:32:54]RasterBufferAndPrint [22:32:54]line [22:32:54]line [22:32:54]line [22:32:54]line [22:32:54]line [22:32:54]written 0, free lines is 3286 [22:32:54]MH_Cut [22:32:54]Write to MH i2c: D1 01 00 89 84 01 DF [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: D1 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: D1 01 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: D1 01 00 89 84 00 DE [22:32:54]Write to MH i2c: 01 00 00 8A 84 0E [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:55]OFD Sender: No OFD packet to send [22:32:55]*** Cut start [22:32:55]*** Partial cut [22:32:55]*** CUTSNS_PIN = 1 [22:32:55]*** CUTSNS_PIN = 0 [22:32:55]*** Brake cut motor [22:32:56]Read from MH i2c: 01 [22:32:56]MH_I2C_Read... [22:32:56]*** Stop cut motor [22:32:56]*** Cut end [22:32:56]Read from MH i2c: 01 07 00 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: 01 07 00 8A 84 00 00 00 00 00 FF 0F 23 [22:32:56]process_action close_receipt done [22:32:56]requested_data is exist [22:32:56]produce_requested_data [22:32:56]requested_item fm.sn is exist - process it [22:32:56]wFMCommunicate request_size=4 [22:32:56]MH_SAM_APDU [22:32:56]CAPDU: 80 11 00 00 [22:32:56]Write to MH i2c: E2 08 00 8B 84 80 11 00 00 00 00 00 00 89 [22:32:56]Write i2c OK [22:32:56]MH_I2C_Read... [22:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:56]Read from MH i2c: E2 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 17 00 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 17 00 8B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [22:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:32:56]wFMCommunicate OK [22:32:56]requested_item fd.num is exist - process it [22:32:56]SAM_PROTO_GetFieldsCounters [22:32:56]wFMCommunicate request_size=4 [22:32:56]MH_SAM_APDU [22:32:56]CAPDU: 80 13 00 00 [22:32:56]Write to MH i2c: E2 08 00 8C 84 80 13 00 00 00 00 00 00 8C [22:32:56]Write i2c OK [22:32:56]MH_I2C_Read... [22:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:56]Read from MH i2c: E2 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 62 00 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 62 00 8C 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 84 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [22:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 84 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:56]wFMCommunicate OK [22:32:56]SAM_PROTO_GetFieldsCounters done [22:32:56]requested_item shift.num is exist - process it [22:32:56]requested_item shift.opened is exist - process it [22:32:56]req_shift_opened [22:32:56]FM_GetShiftState [22:32:56]SAM_PROTO_GetShiftState [22:32:56]wFMCommunicate request_size=4 [22:32:56]MH_SAM_APDU [22:32:56]CAPDU: 80 13 01 00 [22:32:56]Write to MH i2c: E2 08 00 8D 84 80 13 01 00 00 00 00 00 8E [22:32:56]Write i2c OK [22:32:56]MH_I2C_Read... [22:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:56]Read from MH i2c: E2 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 0E 00 [22:32:56]MH_I2C_Read... [22:32:56]Read from MH i2c: E2 0E 00 8D 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 0F [22:32:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:32:56]wFMCommunicate OK [22:32:56]SAM_PROTO_GetShiftState done [22:32:56]FM_GetShiftState done [22:32:56]req_shift_opened done [22:32:56]requested_item shift.open_date is exist - process it [22:32:56]req_shift_open_date [22:32:56]req_shift_open_date done [22:32:56]produce_requested_data done [22:32:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103556,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:32:56]process_action_free close_receipt [22:32:56]json_value_free [22:32:56]json_value_free done [22:32:56]process_json_proto returns [22:32:56]Send response to host [22:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103556,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:32:56]free response buf [22:32:56]execute_script done [22:32:56]execute_script returns [22:32:56]free content buf [22:32:56]Sock 9.Close socket [22:32:56]Sock 9.Thread stoped [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:07]accept exits with 7 [22:35:07]New connection [22:35:07]New thread 3067084132 created [22:35:07]Thread 3067227492 joined [22:35:07]Waiting for new connection... [22:35:07] Sock 7.Parse request [22:35:07]Sock 7.Check first char [22:35:07]Sock 7.First char is OK [22:35:07]request: POST /json_proto HTTP/1.0 [22:35:07]Method: POST [22:35:07]URL: /json_proto [22:35:07]Method is POST - this is cgi request [22:35:07]url: /json_proto [22:35:07]query_string will be loaded in cgi processing [22:35:07]execute_cgi json_proto POST (null) [22:35:07]execute_cgi path=json_proto method=POST [22:35:07]POST find Content-Length [22:35:07]Host: 172.17.38.133:8080 [22:35:07]Content-Length: 803 [22:35:07]Content-Type: application/json [22:35:07] [22:35:07]POST finish read [22:35:07]Found Content-Length = 803 [22:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:07]execute_script... [22:35: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)672774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:07]POST & json_proto [22:35:07]process_json_proto [22:35:07]json parsed OK: [22:35:07]protocol is kg_v1.0 [22:35:07]action value=close_receipt [22:35:07]process_action close_receipt [22:35:07]cmd_close_receipt [22:35:07]MH_GetDate [22:35:07]Write to MH i2c: F0 00 00 8E 84 01 [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 09 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: F0 09 00 8E 84 00 A4 0B 72 66 BD 8F 7C 64 BD [22:35:07]GetLastDocTimeStamp 1718749981 [22:35:07]current date 1718750116 [22:35:07]FM_GetShiftState [22:35:07]SAM_PROTO_GetShiftState [22:35:07]wFMCommunicate request_size=4 [22:35:07]MH_SAM_APDU [22:35:07]CAPDU: 80 13 01 00 [22:35:07]Write to MH i2c: E2 08 00 8F 84 80 13 01 00 00 00 00 00 90 [22:35:07]Write i2c OK [22:35:07]MH_I2C_Read... [22:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:07]Read from MH i2c: E2 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: E2 0E 00 [22:35:07]MH_I2C_Read... [22:35:07]Read from MH i2c: E2 0E 00 8F 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 11 [22:35:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:35:07]wFMCommunicate OK [22:35:07]SAM_PROTO_GetShiftState done [22:35:07]FM_GetShiftState done [22:35:07]opened in 1718670284 [22:35:07]opened+sec_in_day 1718756684 [22:35:07]quantity*price = 300034 [22:35:07]sum+1 = 300035 [22:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.34 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.34 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 241 18.06.2024 22:35 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103557 ФПД: 25601962429384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T223516&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103557&fm=25601962429384&tin=02508201610067®Number=0000000000092785&sum=300034 [22:35:08]StoreToDocumentArchive [22:35:08]shift 352 fd 103557 [22:35:08]save to /storage/0352/doc_00103557 [22:35:08]save last doc name /storage/0352/doc_00103557 to /storage/kkm_last_doc_name [22:35:08]save OK [22:35:08]Clear old archive folders... [22:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:08]tlvbuf is 01381820 [22:35:08]SAM_PROTO_ClearQueue [22:35:08]wFMCommunicate request_size=4 [22:35:08]MH_SAM_APDU [22:35:08]CAPDU: 80 09 00 00 [22:35:08]Write to MH i2c: E2 08 00 9C 84 80 09 00 00 00 00 00 00 92 [22:35:08]Write i2c OK [22:35:08]MH_I2C_Read... [22:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:08]Read from MH i2c: E2 [22:35:08]MH_I2C_Read... [22:35:08]Read from MH i2c: E2 03 00 [22:35:08]MH_I2C_Read... [22:35:08]Read from MH i2c: E2 03 00 9C 84 00 90 00 94 [22:35:08]RAPDU: 90 00 [22:35:08]wFMCommunicate OK [22:35:08]SAM_PROTO_ClearQueue done [22:35:08]KKMCreateOFDPacket [22:35:08]OFDProtocolAddRootSTLVToBuf [22:35:08]FM_MakeSignedData [22:35:08]FM_MakeSignedData [22:35:08]SAM_PROTO_SignData [22:35:08]wFMCommunicate request_size=4 [22:35:08]MH_SAM_APDU [22:35:08]CAPDU: 80 0D 01 02 [22:35:08]Write to MH i2c: E2 08 00 9D 84 80 0D 01 02 00 00 00 00 9A [22:35:08]Write i2c OK [22:35:08]MH_I2C_Read... [22:35:08]Read from MH i2c: E2 [22:35:08]MH_I2C_Read... [22:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:08]Read from MH i2c: E2 03 00 [22:35:08]MH_I2C_Read... [22:35:08]Read from MH i2c: E2 03 00 9D 84 00 90 00 95 [22:35:08]RAPDU: 90 00 [22:35:08]wFMCommunicate OK [22:35:08]wFMCommunicate request_size=255 [22:35:08]MH_SAM_APDU [22:35: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A4 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 94 01 00 35 04 06 00 17 [22:35:08]Write to MH i2c: E2 02 01 9E 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A4 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 94 01 00 35 04 06 00 17 00 00 11 [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:09]Read from MH i2c: E2 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 03 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 03 00 9E 84 00 90 00 96 [22:35:09]RAPDU: 90 00 [22:35:09]wFMCommunicate OK [22:35:09]wFMCommunicate request_size=10 [22:35:09]MH_SAM_APDU [22:35:09]CAPDU: 80 0D 02 02 05 48 EB E0 4B C8 [22:35:09]Write to MH i2c: E2 0D 00 9F 84 80 0D 02 02 05 00 48 EB E0 4B C8 00 00 CD [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:09]Read from MH i2c: E2 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 03 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 03 00 9F 84 00 90 00 97 [22:35:09]RAPDU: 90 00 [22:35:09]wFMCommunicate OK [22:35:09]wFMCommunicate request_size=4 [22:35:09]MH_SAM_APDU [22:35:09]CAPDU: 80 0D 03 02 [22:35:09]Write to MH i2c: E2 08 00 A0 84 80 0D 03 02 00 00 00 00 9F [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:09]Read from MH i2c: E2 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 0B 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 0B 00 A0 84 00 EE EB 64 14 4B F5 FE 5B 90 00 8A [22:35:09]RAPDU: EE EB 64 14 4B F5 FE 5B 90 00 [22:35:09]wFMCommunicate OK [22:35:09]SAM_PROTO_SignData done [22:35:09]FM_MakeSignedData done [22:35:09]CreateOFDProtocolMessage [22:35:09]wFMCommunicate request_size=4 [22:35:09]MH_SAM_APDU [22:35:09]CAPDU: 80 11 00 00 [22:35:09]Write to MH i2c: E2 08 00 A1 84 80 11 00 00 00 00 00 00 9F [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:09]Read from MH i2c: E2 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 17 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: E2 17 00 A1 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [22:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:35:09]wFMCommunicate OK [22:35:09]CreateOFDProtocolMessage done [22:35:09]OFDSenderStorePacket 103557 [22:35:09]StoreOFDPacket docnum=103557 [22:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 30 14 07 01 03 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A4 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 94 01 00 35 04 06 00 17 48 EB E0 4B C8 EE EB 64 14 4B F5 FE 5B [22:35:09]CheckFolder [22:35:09]dirname=/storage/ofd_packets [22:35:09]CheckFolder done [22:35:09]ProducePacketName [22:35:09]name=ofd_packets/00103557 [22:35:09]NVStorageSaveData ofd_packets/00103557 [22:35:09]File name is /storage/ofd_packets/00103557 [22:35:09]Write 301 bytes [22:35:09]NVStorageSaveData done [22:35:09]OFDSenderStorePacket done [22:35:09]KKMCreateOFDPacket done [22:35:09]NVStorageSaveData kkm_last_timestamp [22:35:09]File name is /storage/kkm_last_timestamp [22:35:09]Write 4 bytes [22:35:09]NVStorageSaveData done [22:35:09]ExternCall_PrintAddStr [22:35:09]wPrintStart [22:35:09]Write to MH i2c: 01 00 00 A2 84 26 [22:35:09]Write i2c OK [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: 01 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: 01 07 00 [22:35:09]MH_I2C_Read... [22:35:09]Read from MH i2c: 01 07 00 A2 84 00 00 00 00 00 FF 0F 3B [22:35:09]RasterBufferAndPrint [22:35:09]line Счет N : (1)672774 [22:35:09]line ИНН: 02508201610067 [22:35:09]line Контрольно-Кассовый Чек [22:35:09]line ПРОДАЖА [22:35:09]line ТРК (МРК, ГНК) : 31 [22:35:09]line Товар: 2710124500 [22:35:09]line Аи-95-К-5 [22:35:09]line 40.600 * 73.90 [22:35:09]line = 3000.34 [22:35:09]line НДС 12% НСП 1% [22:35:09]line > о реализуемом товаре [22:35:09]line ИТОГО: 3000.34 [22:35:09]line НСП 1% : 26.55 [22:35:09]line НДС 12% : 318.62 [22:35:09]line Наличными: 0.00 [22:35:09]line Безнал.: 3000.34 [22:35:09]line Место: АЗС № 120 "Партнер Нефть" [22:35:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:35:09]line СНО: Общий режим [22:35:09]line Чек 241 18.06.2024 22:35 [22:35:09]line Смена: 352 ФФД: 1.0 [22:35:09]line ЗНМ: 0300000164 [22:35:09]line РНМ: 0000000000092785 [22:35:09]line Версия ККМ: 001 [22:35:09]line Платежная система: O! деньги [22:35:09]line ФМ: 0000000000875093 [22:35:09]line ФД: 103557 [22:35:09]line ФПД: 25601962429384 [22:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T223516&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103557&fm=25601962429384&tin=02508201610067®Number=0000000000092785&sum=300034 [22:35:09]OFD Sender: Processing packet 103557 [packets to send 17, broken 16] [22:35:09]ProducePacketName [22:35:09]name=ofd_packets/00103557 [22:35:09]OFD Sender: To server: pG, [22:35:09]CommunicateWithHost lk.salyk.kg:30040 [22:35:09]ConnectInit lk.salyk.kg [22:35:09]written 0, free lines is 4095 [22:35:09]Connected sock=10 [22:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 30 14 07 01 03 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A4 0B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 94 01 00 35 04 06 00 17 48 EB E0 4B C8 EE EB 64 14 4B F5 FE 5B [22:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5E 7F 47 00 7A 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 94 01 00 F4 03 04 00 2F B2 71 66 B6 04 01 00 00 C1 D6 36 39 BB 2D 5F 9B [22:35:10]CommunicateWithHost err = 0 [22:35:10]CheckOFDResponse [22:35:10]1017 (14) - 77093643461234 [22:35:10]1041 (16) - 0000000000875093 [22:35:10]1040 (4) - 103557 [22:35:10]1012 (4) - 18.06.2024 16:13 [22:35:10]1206 (1) - 0 [22:35:10]OFD Sender: Remove packet 103557 [22:35:10]ProducePacketName [22:35:10]name=ofd_packets/00103557 [22:35:10]NVStorageDeleteData [22:35:10]Write to MH i2c: 01 00 00 CC 84 50 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 07 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: 01 07 00 CC 84 00 00 00 00 00 E4 0C 47 [22:35:10]RasterBufferAndPrint [22:35:10]line [22:35:10]line [22:35:10]line [22:35:10]line [22:35:10]line [22:35:10]written 0, free lines is 3307 [22:35:10]MH_Cut [22:35:10]Write to MH i2c: D1 01 00 D3 84 01 29 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: D1 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: D1 01 00 [22:35:10]MH_I2C_Read... [22:35:10]Read from MH i2c: D1 01 00 D3 84 00 28 [22:35:10]Write to MH i2c: 01 00 00 D4 84 58 [22:35:10]Write i2c OK [22:35:10]MH_I2C_Read... [22:35:10]OFD Sender: No OFD packet to send [22:35:10]*** Cut start [22:35:10]*** Partial cut [22:35:10]*** CUTSNS_PIN = 1 [22:35:11]*** CUTSNS_PIN = 0 [22:35:11]*** Brake cut motor [22:35:11]Read from MH i2c: 01 [22:35:11]MH_I2C_Read... [22:35:11]*** Stop cut motor [22:35:11]*** Cut end [22:35:11]Read from MH i2c: 01 07 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: 01 07 00 D4 84 00 00 00 00 00 FF 0F 6D [22:35:11]process_action close_receipt done [22:35:11]requested_data is exist [22:35:11]produce_requested_data [22:35:11]requested_item fm.sn is exist - process it [22:35:11]wFMCommunicate request_size=4 [22:35:11]MH_SAM_APDU [22:35:11]CAPDU: 80 11 00 00 [22:35:11]Write to MH i2c: E2 08 00 D5 84 80 11 00 00 00 00 00 00 D3 [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:11]Read from MH i2c: E2 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 17 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 17 00 D5 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [22:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:35:11]wFMCommunicate OK [22:35:11]requested_item fd.num is exist - process it [22:35:11]SAM_PROTO_GetFieldsCounters [22:35:11]wFMCommunicate request_size=4 [22:35:11]MH_SAM_APDU [22:35:11]CAPDU: 80 13 00 00 [22:35:11]Write to MH i2c: E2 08 00 D6 84 80 13 00 00 00 00 00 00 D6 [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:11]Read from MH i2c: E2 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 62 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 62 00 D6 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [22:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:11]wFMCommunicate OK [22:35:11]SAM_PROTO_GetFieldsCounters done [22:35:11]requested_item shift.num is exist - process it [22:35:11]requested_item shift.opened is exist - process it [22:35:11]req_shift_opened [22:35:11]FM_GetShiftState [22:35:11]SAM_PROTO_GetShiftState [22:35:11]wFMCommunicate request_size=4 [22:35:11]MH_SAM_APDU [22:35:11]CAPDU: 80 13 01 00 [22:35:11]Write to MH i2c: E2 08 00 D7 84 80 13 01 00 00 00 00 00 D8 [22:35:11]Write i2c OK [22:35:11]MH_I2C_Read... [22:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:11]Read from MH i2c: E2 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 0E 00 [22:35:11]MH_I2C_Read... [22:35:11]Read from MH i2c: E2 0E 00 D7 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 59 [22:35:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:35:11]wFMCommunicate OK [22:35:11]SAM_PROTO_GetShiftState done [22:35:11]FM_GetShiftState done [22:35:11]req_shift_opened done [22:35:11]requested_item shift.open_date is exist - process it [22:35:11]req_shift_open_date [22:35:11]req_shift_open_date done [22:35:11]produce_requested_data done [22:35:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103557,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:35:11]process_action_free close_receipt [22:35:11]json_value_free [22:35:11]json_value_free done [22:35:11]process_json_proto returns [22:35:11]Send response to host [22:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103557,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:35:11]free response buf [22:35:11]execute_script done [22:35:11]execute_script returns [22:35:11]free content buf [22:35:11]Sock 7.Close socket [22:35:11]Sock 7.Thread stoped [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41: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:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:20]accept exits with 9 [22:45:20]New connection [22:45:20]New thread 3067227492 created [22:45:20]Thread 3067084132 joined [22:45:20]Waiting for new connection... [22:45:20] Sock 9.Parse request [22:45:20]Sock 9.Check first char [22:45:20]Sock 9.First char is OK [22:45:20]request: POST /json_proto HTTP/1.0 [22:45:20]Method: POST [22:45:20]URL: /json_proto [22:45:20]Method is POST - this is cgi request [22:45:20]url: /json_proto [22:45:20]query_string will be loaded in cgi processing [22:45:20]execute_cgi json_proto POST (null) [22:45:20]execute_cgi path=json_proto method=POST [22:45:20]POST find Content-Length [22:45:20]Host: 172.17.38.133:8080 [22:45:20]Content-Length: 678 [22:45:20]Content-Type: application/json [22:45:20] [22:45:20]POST finish read [22:45:20]Found Content-Length = 678 [22:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:20]execute_script... [22:45:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:20]POST & json_proto [22:45:20]process_json_proto [22:45:20]json parsed OK: [22:45:20]protocol is kg_v1.0 [22:45:20]action value=close_receipt [22:45:20]process_action close_receipt [22:45:20]cmd_close_receipt [22:45:20]MH_GetDate [22:45:20]Write to MH i2c: F0 00 00 D8 84 4B [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 09 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 09 00 D8 84 00 09 0E 72 66 BD 8F 7C 64 6F [22:45:20]GetLastDocTimeStamp 1718750116 [22:45:20]current date 1718750729 [22:45:20]FM_GetShiftState [22:45:20]SAM_PROTO_GetShiftState [22:45:20]wFMCommunicate request_size=4 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 13 01 00 [22:45:20]Write to MH i2c: E2 08 00 D9 84 80 13 01 00 00 00 00 00 DA [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 0E 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 0E 00 D9 84 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 5B [22:45:20]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:45:20]wFMCommunicate OK [22:45:20]SAM_PROTO_GetShiftState done [22:45:20]FM_GetShiftState done [22:45:20]opened in 1718670284 [22:45:20]opened+sec_in_day 1718756684 [22:45:20]quantity*price = 80012 [22:45:20]sum+1 = 80013 [22:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 242 18.06.2024 22:45 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103558 ФПД: 51859544410903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T224530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103558&fm=51859544410903&tin=02508201610067®Number=0000000000092785&sum=80000 [22:45:22]StoreToDocumentArchive [22:45:22]shift 352 fd 103558 [22:45:22]save to /storage/0352/doc_00103558 [22:45:22]save last doc name /storage/0352/doc_00103558 to /storage/kkm_last_doc_name [22:45:22]save OK [22:45:22]Clear old archive folders... [22:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:22]tlvbuf is 013501F0 [22:45:22]SAM_PROTO_ClearQueue [22:45:22]wFMCommunicate request_size=4 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 09 00 00 [22:45:22]Write to MH i2c: E2 08 00 E6 84 80 09 00 00 00 00 00 00 DC [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:22]Read from MH i2c: E2 03 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 E6 84 00 90 00 DE [22:45:22]RAPDU: 90 00 [22:45:22]wFMCommunicate OK [22:45:22]SAM_PROTO_ClearQueue done [22:45:22]KKMCreateOFDPacket [22:45:22]OFDProtocolAddRootSTLVToBuf [22:45:22]FM_MakeSignedData [22:45:22]FM_MakeSignedData [22:45:22]SAM_PROTO_SignData [22:45:22]wFMCommunicate request_size=4 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 0D 01 02 [22:45:22]Write to MH i2c: E2 08 00 E7 84 80 0D 01 02 00 00 00 00 E4 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:22]Read from MH i2c: E2 03 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 E7 84 00 90 00 DF [22:45:22]RAPDU: 90 00 [22:45:22]wFMCommunicate OK [22:45:22]wFMCommunicate request_size=255 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 0A 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 94 01 00 35 04 06 00 2F [22:45:22]Write to MH i2c: E2 02 01 E8 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 0A 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 94 01 00 35 04 06 00 2F 00 00 1A [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 E8 84 00 90 00 E0 [22:45:22]RAPDU: 90 00 [22:45:22]wFMCommunicate OK [22:45:22]wFMCommunicate request_size=10 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 0D 02 02 05 2A 7D B9 0B 17 [22:45:22]Write to MH i2c: E2 0D 00 E9 84 80 0D 02 02 05 00 2A 7D B9 0B 17 00 00 73 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 03 00 E9 84 00 90 00 E1 [22:45:22]RAPDU: 90 00 [22:45:22]wFMCommunicate OK [22:45:22]wFMCommunicate request_size=4 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 0D 03 02 [22:45:22]Write to MH i2c: E2 08 00 EA 84 80 0D 03 02 00 00 00 00 E9 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 0B 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 0B 00 EA 84 00 70 CB 2D B0 4D 64 3F EB 90 00 DD [22:45:22]RAPDU: 70 CB 2D B0 4D 64 3F EB 90 00 [22:45:22]wFMCommunicate OK [22:45:22]SAM_PROTO_SignData done [22:45:22]FM_MakeSignedData done [22:45:22]CreateOFDProtocolMessage [22:45:22]wFMCommunicate request_size=4 [22:45:22]MH_SAM_APDU [22:45:22]CAPDU: 80 11 00 00 [22:45:22]Write to MH i2c: E2 08 00 EB 84 80 11 00 00 00 00 00 00 E9 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:22]Read from MH i2c: E2 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 17 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: E2 17 00 EB 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [22:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:45:22]wFMCommunicate OK [22:45:22]CreateOFDProtocolMessage done [22:45:22]OFDSenderStorePacket 103558 [22:45:22]StoreOFDPacket docnum=103558 [22:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BA F8 07 01 40 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 0A 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 94 01 00 35 04 06 00 2F 2A 7D B9 0B 17 70 CB 2D B0 4D 64 3F EB [22:45:22]CheckFolder [22:45:22]dirname=/storage/ofd_packets [22:45:22]CheckFolder done [22:45:22]ProducePacketName [22:45:22]name=ofd_packets/00103558 [22:45:22]NVStorageSaveData ofd_packets/00103558 [22:45:22]File name is /storage/ofd_packets/00103558 [22:45:22]Write 301 bytes [22:45:22]NVStorageSaveData done [22:45:22]OFDSenderStorePacket done [22:45:22]KKMCreateOFDPacket done [22:45:22]NVStorageSaveData kkm_last_timestamp [22:45:22]File name is /storage/kkm_last_timestamp [22:45:22]Write 4 bytes [22:45:22]NVStorageSaveData done [22:45:22]ExternCall_PrintAddStr [22:45:22]wPrintStart [22:45:22]Write to MH i2c: 01 00 00 EC 84 70 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 07 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 07 00 EC 84 00 00 00 00 00 FF 0F 85 [22:45:22]RasterBufferAndPrint [22:45:22]line Счет N : (1)672775 [22:45:22]line ИНН: 02508201610067 [22:45:22]line Контрольно-Кассовый Чек [22:45:22]line ПРОДАЖА [22:45:22]line ТРК (МРК, ГНК) : 32 [22:45:22]line Товар: 2710124130 [22:45:22]line Аи-92-К-5 [22:45:22]line 12.050 * 66.40 [22:45:22]line = 800.12 [22:45:22]line НДС 12% НСП 1% [22:45:22]line > о реализуемом товаре [22:45:22]line ОКРУГЛЕНИЕ: -0.12 [22:45:22]line ИТОГО: 800.00 [22:45:22]line Внесено: 800.00 [22:45:22]line СДАЧА: 0.00 [22:45:22]line НСП 1% : 7.08 [22:45:22]line НДС 12% : 84.97 [22:45:22]line Наличными: 800.00 [22:45:22]line Безнал.: 0.00 [22:45:22]line Место: АЗС № 120 "Партнер Нефть" [22:45:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:45:22]line СНО: Общий режим [22:45:22]line Чек 242 18.06.2024 22:45 [22:45:22]line Смена: 352 ФФД: 1.0 [22:45:22]line ЗНМ: 0300000164 [22:45:22]line РНМ: 0000000000092785 [22:45:22]line Версия ККМ: 001 [22:45:22]line ФМ: 0000000000875093 [22:45:22]line ФД: 103558 [22:45:22]line ФПД: 51859544410903 [22:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T224530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103558&fm=51859544410903&tin=02508201610067®Number=0000000000092785&sum=80000 [22:45:22]OFD Sender: Processing packet 103558 [packets to send 17, broken 16] [22:45:22]ProducePacketName [22:45:22]name=ofd_packets/00103558 [22:45:22]OFD Sender: To server: pG, [22:45:22]CommunicateWithHost lk.salyk.kg:30040 [22:45:22]ConnectInit lk.salyk.kg [22:45:22]written 0, free lines is 4095 [22:45:23]Connected sock=11 [22:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BA F8 07 01 40 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 0A 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 94 01 00 35 04 06 00 2F 2A 7D B9 0B 17 70 CB 2D B0 4D 64 3F EB [22:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 78 36 47 00 69 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 94 01 00 F4 03 04 00 94 B4 71 66 B6 04 01 00 00 BB 8D AD 0B 41 32 83 06 [22:45:23]CommunicateWithHost err = 0 [22:45:23]CheckOFDResponse [22:45:23]1017 (14) - 77093643461234 [22:45:23]1041 (16) - 0000000000875093 [22:45:23]1040 (4) - 103558 [22:45:23]1012 (4) - 18.06.2024 16:23 [22:45:23]1206 (1) - 0 [22:45:23]OFD Sender: Remove packet 103558 [22:45:23]ProducePacketName [22:45:23]name=ofd_packets/00103558 [22:45:23]NVStorageDeleteData [22:45:23]Write to MH i2c: 01 00 00 17 85 9C [22:45:23]Write i2c OK [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: 01 [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: 01 07 00 [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: 01 07 00 17 85 00 00 00 00 00 D8 0C 87 [22:45:23]RasterBufferAndPrint [22:45:23]line [22:45:23]line [22:45:23]line [22:45:23]line [22:45:23]line [22:45:23]written 0, free lines is 3295 [22:45:23]MH_Cut [22:45:23]Write to MH i2c: D1 01 00 1E 85 01 75 [22:45:23]Write i2c OK [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: D1 [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: D1 01 00 [22:45:23]MH_I2C_Read... [22:45:23]Read from MH i2c: D1 01 00 1E 85 00 74 [22:45:23]Write to MH i2c: 01 00 00 1F 85 A4 [22:45:23]Write i2c OK [22:45:23]MH_I2C_Read... [22:45:23]OFD Sender: No OFD packet to send [22:45:24]*** Cut start [22:45:24]*** Partial cut [22:45:24]*** CUTSNS_PIN = 1 [22:45:24]*** CUTSNS_PIN = 0 [22:45:24]*** Brake cut motor [22:45:24]Read from MH i2c: 01 [22:45:24]MH_I2C_Read... [22:45:24]*** Stop cut motor [22:45:24]*** Cut end [22:45:24]Read from MH i2c: 01 07 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: 01 07 00 1F 85 00 00 00 00 00 FF 0F B9 [22:45:24]process_action close_receipt done [22:45:24]requested_data is exist [22:45:24]produce_requested_data [22:45:24]requested_item fm.sn is exist - process it [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 11 00 00 [22:45:24]Write to MH i2c: E2 08 00 20 85 80 11 00 00 00 00 00 00 1F [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:24]Read from MH i2c: E2 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 17 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 17 00 20 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [22:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:45:24]wFMCommunicate OK [22:45:24]requested_item fd.num is exist - process it [22:45:24]SAM_PROTO_GetFieldsCounters [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 13 00 00 [22:45:24]Write to MH i2c: E2 08 00 21 85 80 13 00 00 00 00 00 00 22 [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:24]Read from MH i2c: E2 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 62 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 62 00 21 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:24]wFMCommunicate OK [22:45:24]SAM_PROTO_GetFieldsCounters done [22:45:24]requested_item shift.num is exist - process it [22:45:24]requested_item shift.opened is exist - process it [22:45:24]req_shift_opened [22:45:24]FM_GetShiftState [22:45:24]SAM_PROTO_GetShiftState [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 13 01 00 [22:45:24]Write to MH i2c: E2 08 00 22 85 80 13 01 00 00 00 00 00 24 [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:25]Read from MH i2c: E2 [22:45:25]MH_I2C_Read... [22:45:25]Read from MH i2c: E2 0E 00 [22:45:25]MH_I2C_Read... [22:45:25]Read from MH i2c: E2 0E 00 22 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A5 [22:45:25]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:45:25]wFMCommunicate OK [22:45:25]SAM_PROTO_GetShiftState done [22:45:25]FM_GetShiftState done [22:45:25]req_shift_opened done [22:45:25]requested_item shift.open_date is exist - process it [22:45:25]req_shift_open_date [22:45:25]req_shift_open_date done [22:45:25]produce_requested_data done [22:45:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103558,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:45:25]process_action_free close_receipt [22:45:25]json_value_free [22:45:25]json_value_free done [22:45:25]process_json_proto returns [22:45:25]Send response to host [22:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103558,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:45:25]free response buf [22:45:25]execute_script done [22:45:25]execute_script returns [22:45:25]free content buf [22:45:25]Sock 9.Close socket [22:45:25]Sock 9.Thread stoped [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:27]accept exits with 7 [22:47:27]New connection [22:47:27]New thread 3067084132 created [22:47:27]Thread 3067227492 joined [22:47:27]Waiting for new connection... [22:47:27] Sock 7.Parse request [22:47:27]Sock 7.Check first char [22:47:27]Sock 7.First char is OK [22:47:27]request: POST /json_proto HTTP/1.0 [22:47:27]Method: POST [22:47:27]URL: /json_proto [22:47:27]Method is POST - this is cgi request [22:47:27]url: /json_proto [22:47:27]query_string will be loaded in cgi processing [22:47:27]execute_cgi json_proto POST (null) [22:47:27]execute_cgi path=json_proto method=POST [22:47:27]POST find Content-Length [22:47:27]Host: 172.17.38.133:8080 [22:47:27]Content-Length: 677 [22:47:27]Content-Type: application/json [22:47:27] [22:47:27]POST finish read [22:47:27]Found Content-Length = 677 [22:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [22:47:27]execute_script... [22:47:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [22:47:27]POST & json_proto [22:47:27]process_json_proto [22:47:27]json parsed OK: [22:47:27]protocol is kg_v1.0 [22:47:27]action value=close_receipt [22:47:27]process_action close_receipt [22:47:27]cmd_close_receipt [22:47:27]MH_GetDate [22:47:27]Write to MH i2c: F0 00 00 23 85 97 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: F0 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: F0 09 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: F0 09 00 23 85 00 89 0E 72 66 BD 8F 7C 64 3B [22:47:27]GetLastDocTimeStamp 1718750730 [22:47:27]current date 1718750857 [22:47:27]FM_GetShiftState [22:47:27]SAM_PROTO_GetShiftState [22:47:27]wFMCommunicate request_size=4 [22:47:27]MH_SAM_APDU [22:47:27]CAPDU: 80 13 01 00 [22:47:27]Write to MH i2c: E2 08 00 24 85 80 13 01 00 00 00 00 00 26 [22:47:27]Write i2c OK [22:47:27]MH_I2C_Read... [22:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:27]Read from MH i2c: E2 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0E 00 [22:47:27]MH_I2C_Read... [22:47:27]Read from MH i2c: E2 0E 00 24 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A7 [22:47:27]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:47:27]wFMCommunicate OK [22:47:27]SAM_PROTO_GetShiftState done [22:47:27]FM_GetShiftState done [22:47:27]opened in 1718670284 [22:47:27]opened+sec_in_day 1718756684 [22:47:27]quantity*price = 50065 [22:47:27]sum+1 = 50067 [22:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 243 18.06.2024 22:47 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103559 ФПД: 104627981787615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T224737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103559&fm=104627981787615&tin=02508201610067®Number=0000000000092785&sum=50000 [22:47:29]StoreToDocumentArchive [22:47:29]shift 352 fd 103559 [22:47:29]save to /storage/0352/doc_00103559 [22:47:29]save last doc name /storage/0352/doc_00103559 to /storage/kkm_last_doc_name [22:47:29]save OK [22:47:29]Clear old archive folders... [22:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:29]tlvbuf is 0144DB20 [22:47:29]SAM_PROTO_ClearQueue [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 09 00 00 [22:47:29]Write to MH i2c: E2 08 00 31 85 80 09 00 00 00 00 00 00 28 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 31 85 00 90 00 2A [22:47:29]RAPDU: 90 00 [22:47:29]wFMCommunicate OK [22:47:29]SAM_PROTO_ClearQueue done [22:47:29]KKMCreateOFDPacket [22:47:29]OFDProtocolAddRootSTLVToBuf [22:47:29]FM_MakeSignedData [22:47:29]FM_MakeSignedData [22:47:29]SAM_PROTO_SignData [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 0D 01 02 [22:47:29]Write to MH i2c: E2 08 00 32 85 80 0D 01 02 00 00 00 00 30 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 32 85 00 90 00 2B [22:47:29]RAPDU: 90 00 [22:47:29]wFMCommunicate OK [22:47:29]wFMCommunicate request_size=255 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 89 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 94 01 00 35 04 06 00 5F [22:47:29]Write to MH i2c: E2 02 01 33 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 89 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 94 01 00 35 04 06 00 5F 00 00 28 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 33 85 00 90 00 2C [22:47:29]RAPDU: 90 00 [22:47:29]wFMCommunicate OK [22:47:29]wFMCommunicate request_size=10 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 0D 02 02 05 28 99 B0 21 DF [22:47:29]Write to MH i2c: E2 0D 00 34 85 80 0D 02 02 05 00 28 99 B0 21 DF 00 00 AE [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 03 00 34 85 00 90 00 2D [22:47:29]RAPDU: 90 00 [22:47:29]wFMCommunicate OK [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 0D 03 02 [22:47:29]Write to MH i2c: E2 08 00 35 85 80 0D 03 02 00 00 00 00 35 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 0B 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 0B 00 35 85 00 57 01 79 1F 15 26 73 6D 90 00 41 [22:47:29]RAPDU: 57 01 79 1F 15 26 73 6D 90 00 [22:47:29]wFMCommunicate OK [22:47:29]SAM_PROTO_SignData done [22:47:29]FM_MakeSignedData done [22:47:29]CreateOFDProtocolMessage [22:47:29]wFMCommunicate request_size=4 [22:47:29]MH_SAM_APDU [22:47:29]CAPDU: 80 11 00 00 [22:47:29]Write to MH i2c: E2 08 00 36 85 80 11 00 00 00 00 00 00 35 [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:29]Read from MH i2c: E2 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 17 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: E2 17 00 36 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [22:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:47:29]wFMCommunicate OK [22:47:29]CreateOFDProtocolMessage done [22:47:29]OFDSenderStorePacket 103559 [22:47:29]StoreOFDPacket docnum=103559 [22:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 22 0A 07 01 63 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 89 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 94 01 00 35 04 06 00 5F 28 99 B0 21 DF 57 01 79 1F 15 26 73 6D [22:47:29]CheckFolder [22:47:29]dirname=/storage/ofd_packets [22:47:29]CheckFolder done [22:47:29]ProducePacketName [22:47:29]name=ofd_packets/00103559 [22:47:29]NVStorageSaveData ofd_packets/00103559 [22:47:29]File name is /storage/ofd_packets/00103559 [22:47:29]Write 301 bytes [22:47:29]NVStorageSaveData done [22:47:29]OFDSenderStorePacket done [22:47:29]KKMCreateOFDPacket done [22:47:29]NVStorageSaveData kkm_last_timestamp [22:47:29]File name is /storage/kkm_last_timestamp [22:47:29]Write 4 bytes [22:47:29]NVStorageSaveData done [22:47:29]ExternCall_PrintAddStr [22:47:29]wPrintStart [22:47:29]Write to MH i2c: 01 00 00 37 85 BC [22:47:29]Write i2c OK [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 07 00 [22:47:29]MH_I2C_Read... [22:47:29]Read from MH i2c: 01 07 00 37 85 00 00 00 00 00 FF 0F D1 [22:47:29]RasterBufferAndPrint [22:47:29]line Счет N : (1)672776 [22:47:29]line ИНН: 02508201610067 [22:47:29]line Контрольно-Кассовый Чек [22:47:29]line ПРОДАЖА [22:47:29]line ТРК (МРК, ГНК) : 42 [22:47:29]line Товар: 2710124130 [22:47:29]line Аи-92-К-5 [22:47:29]line 7.540 * 66.40 [22:47:29]line = 500.66 [22:47:29]line НДС 12% НСП 1% [22:47:29]line > о реализуемом товаре [22:47:29]line ОКРУГЛЕНИЕ: -0.66 [22:47:29]line ИТОГО: 500.00 [22:47:29]line Внесено: 500.00 [22:47:29]line СДАЧА: 0.00 [22:47:29]line НСП 1% : 4.43 [22:47:29]line НДС 12% : 53.17 [22:47:29]line Наличными: 500.00 [22:47:29]line Безнал.: 0.00 [22:47:29]line Место: АЗС № 120 "Партнер Нефть" [22:47:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:47:29]line СНО: Общий режим [22:47:29]line Чек 243 18.06.2024 22:47 [22:47:29]line Смена: 352 ФФД: 1.0 [22:47:29]line ЗНМ: 0300000164 [22:47:29]line РНМ: 0000000000092785 [22:47:29]line Версия ККМ: 001 [22:47:29]line ФМ: 0000000000875093 [22:47:29]line ФД: 103559 [22:47:29]line ФПД: 104627981787615 [22:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T224737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103559&fm=104627981787615&tin=02508201610067®Number=0000000000092785&sum=50000 [22:47:29]OFD Sender: Processing packet 103559 [packets to send 17, broken 16] [22:47:29]ProducePacketName [22:47:29]name=ofd_packets/00103559 [22:47:29]OFD Sender: To server: pG, [22:47:29]CommunicateWithHost lk.salyk.kg:30040 [22:47:29]ConnectInit lk.salyk.kg [22:47:29]written 0, free lines is 4095 [22:47:30]Connected sock=10 [22:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 22 0A 07 01 63 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 89 0E 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 94 01 00 35 04 06 00 5F 28 99 B0 21 DF 57 01 79 1F 15 26 73 6D [22:47:30]Write to MH i2c: 01 00 00 62 85 E7 [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: 01 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: 01 07 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: 01 07 00 62 85 00 00 00 00 00 D6 0C D0 [22:47:30]RasterBufferAndPrint [22:47:30]line [22:47:30]line [22:47:30]line [22:47:30]line [22:47:30]line [22:47:30]written 0, free lines is 3293 [22:47:30]MH_Cut [22:47:30]Write to MH i2c: D1 01 00 69 85 01 C0 [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: D1 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: D1 01 00 [22:47:30]MH_I2C_Read... [22:47:30]Read from MH i2c: D1 01 00 69 85 00 BF [22:47:30]Write to MH i2c: 01 00 00 6A 85 EF [22:47:30]Write i2c OK [22:47:30]MH_I2C_Read... [22:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2D 81 47 00 D7 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 94 01 00 F4 03 04 00 14 B5 71 66 B6 04 01 00 00 DA 6F C9 D8 FF 7D 07 6F [22:47:30]CommunicateWithHost err = 0 [22:47:30]CheckOFDResponse [22:47:30]1017 (14) - 77093643461234 [22:47:30]1041 (16) - 0000000000875093 [22:47:30]1040 (4) - 103559 [22:47:30]1012 (4) - 18.06.2024 16:25 [22:47:30]1206 (1) - 0 [22:47:30]OFD Sender: Remove packet 103559 [22:47:30]ProducePacketName [22:47:30]name=ofd_packets/00103559 [22:47:30]NVStorageDeleteData [22:47:31]OFD Sender: No OFD packet to send [22:47:31]*** Cut start [22:47:31]*** Partial cut [22:47:31]*** CUTSNS_PIN = 1 [22:47:31]*** CUTSNS_PIN = 0 [22:47:31]*** Brake cut motor [22:47:31]Read from MH i2c: 01 [22:47:31]MH_I2C_Read... [22:47:31]*** Stop cut motor [22:47:31]*** Cut end [22:47:31]Read from MH i2c: 01 07 00 [22:47:31]MH_I2C_Read... [22:47:31]Read from MH i2c: 01 07 00 6A 85 00 00 00 00 00 FF 0F 04 [22:47:31]process_action close_receipt done [22:47:31]requested_data is exist [22:47:31]produce_requested_data [22:47:31]requested_item fm.sn is exist - process it [22:47:31]wFMCommunicate request_size=4 [22:47:31]MH_SAM_APDU [22:47:31]CAPDU: 80 11 00 00 [22:47:31]Write to MH i2c: E2 08 00 6B 85 80 11 00 00 00 00 00 00 6A [22:47:31]Write i2c OK [22:47:31]MH_I2C_Read... [22:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:31]Read from MH i2c: E2 [22:47:31]MH_I2C_Read... [22:47:31]Read from MH i2c: E2 17 00 [22:47:31]MH_I2C_Read... [22:47:31]Read from MH i2c: E2 17 00 6B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [22:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:47:31]wFMCommunicate OK [22:47:31]requested_item fd.num is exist - process it [22:47:31]SAM_PROTO_GetFieldsCounters [22:47:31]wFMCommunicate request_size=4 [22:47:31]MH_SAM_APDU [22:47:31]CAPDU: 80 13 00 00 [22:47:31]Write to MH i2c: E2 08 00 6C 85 80 13 00 00 00 00 00 00 6D [22:47:31]Write i2c OK [22:47:31]MH_I2C_Read... [22:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:32]Read from MH i2c: E2 [22:47:32]MH_I2C_Read... [22:47:32]Read from MH i2c: E2 62 00 [22:47:32]MH_I2C_Read... [22:47:32]Read from MH i2c: E2 62 00 6C 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [22:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:32]wFMCommunicate OK [22:47:32]SAM_PROTO_GetFieldsCounters done [22:47:32]requested_item shift.num is exist - process it [22:47:32]requested_item shift.opened is exist - process it [22:47:32]req_shift_opened [22:47:32]FM_GetShiftState [22:47:32]SAM_PROTO_GetShiftState [22:47:32]wFMCommunicate request_size=4 [22:47:32]MH_SAM_APDU [22:47:32]CAPDU: 80 13 01 00 [22:47:32]Write to MH i2c: E2 08 00 6D 85 80 13 01 00 00 00 00 00 6F [22:47:32]Write i2c OK [22:47:32]MH_I2C_Read... [22:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:32]Read from MH i2c: E2 [22:47:32]MH_I2C_Read... [22:47:32]Read from MH i2c: E2 0E 00 [22:47:32]MH_I2C_Read... [22:47:32]Read from MH i2c: E2 0E 00 6D 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F0 [22:47:32]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:47:32]wFMCommunicate OK [22:47:32]SAM_PROTO_GetShiftState done [22:47:32]FM_GetShiftState done [22:47:32]req_shift_opened done [22:47:32]requested_item shift.open_date is exist - process it [22:47:32]req_shift_open_date [22:47:32]req_shift_open_date done [22:47:32]produce_requested_data done [22:47:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103559,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:47:32]process_action_free close_receipt [22:47:32]json_value_free [22:47:32]json_value_free done [22:47:32]process_json_proto returns [22:47:32]Send response to host [22:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103559,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:47:32]free response buf [22:47:32]execute_script done [22:47:32]execute_script returns [22:47:32]free content buf [22:47:32]Sock 7.Close socket [22:47:32]Sock 7.Thread stoped [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:31]accept exits with 9 [22:55:31]New connection [22:55:31]New thread 3067227492 created [22:55:31]Thread 3067084132 joined [22:55:31]Waiting for new connection... [22:55:31] Sock 9.Parse request [22:55:31]Sock 9.Check first char [22:55:31]Sock 9.First char is OK [22:55:31]request: POST /json_proto HTTP/1.0 [22:55:31]Method: POST [22:55:31]URL: /json_proto [22:55:31]Method is POST - this is cgi request [22:55:31]url: /json_proto [22:55:31]query_string will be loaded in cgi processing [22:55:31]execute_cgi json_proto POST (null) [22:55:31]execute_cgi path=json_proto method=POST [22:55:31]POST find Content-Length [22:55:31]Host: 172.17.38.133:8080 [22:55:31]Content-Length: 682 [22:55:31]Content-Type: application/json [22:55:31] [22:55:31]POST finish read [22:55:31]Found Content-Length = 682 [22:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:31]execute_script... [22:55:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:31]POST & json_proto [22:55:31]process_json_proto [22:55:31]json parsed OK: [22:55:31]protocol is kg_v1.0 [22:55:31]action value=close_receipt [22:55:31]process_action close_receipt [22:55:31]cmd_close_receipt [22:55:31]MH_GetDate [22:55:31]Write to MH i2c: F0 00 00 6E 85 E2 [22:55:31]Write i2c OK [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: F0 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: F0 09 00 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: F0 09 00 6E 85 00 6D 10 72 66 BD 8F 7C 64 6C [22:55:31]GetLastDocTimeStamp 1718750857 [22:55:31]current date 1718751341 [22:55:31]FM_GetShiftState [22:55:31]SAM_PROTO_GetShiftState [22:55:31]wFMCommunicate request_size=4 [22:55:31]MH_SAM_APDU [22:55:31]CAPDU: 80 13 01 00 [22:55:31]Write to MH i2c: E2 08 00 6F 85 80 13 01 00 00 00 00 00 71 [22:55:31]Write i2c OK [22:55:31]MH_I2C_Read... [22:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:31]Read from MH i2c: E2 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: E2 0E 00 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: E2 0E 00 6F 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F2 [22:55:31]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:55:31]wFMCommunicate OK [22:55:31]SAM_PROTO_GetShiftState done [22:55:31]FM_GetShiftState done [22:55:31]opened in 1718670284 [22:55:31]opened+sec_in_day 1718756684 [22:55:31]quantity*price = 100064 [22:55:31]sum+1 = 100066 [22:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 244 18.06.2024 22:55 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103560 ФПД: 192943319824635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103560&fm=192943319824635&tin=02508201610067®Number=0000000000092785&sum=100000 [22:55:33]StoreToDocumentArchive [22:55:33]shift 352 fd 103560 [22:55:33]save to /storage/0352/doc_00103560 [22:55:33]save last doc name /storage/0352/doc_00103560 to /storage/kkm_last_doc_name [22:55:33]save OK [22:55:33]Clear old archive folders... [22:55:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:33]tlvbuf is B6F9BB80 [22:55:33]SAM_PROTO_ClearQueue [22:55:33]wFMCommunicate request_size=4 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 09 00 00 [22:55:33]Write to MH i2c: E2 08 00 7C 85 80 09 00 00 00 00 00 00 73 [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 7C 85 00 90 00 75 [22:55:33]RAPDU: 90 00 [22:55:33]wFMCommunicate OK [22:55:33]SAM_PROTO_ClearQueue done [22:55:33]KKMCreateOFDPacket [22:55:33]OFDProtocolAddRootSTLVToBuf [22:55:33]FM_MakeSignedData [22:55:33]FM_MakeSignedData [22:55:33]SAM_PROTO_SignData [22:55:33]wFMCommunicate request_size=4 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 0D 01 02 [22:55:33]Write to MH i2c: E2 08 00 7D 85 80 0D 01 02 00 00 00 00 7B [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 7D 85 00 90 00 76 [22:55:33]RAPDU: 90 00 [22:55:33]wFMCommunicate OK [22:55:33]wFMCommunicate request_size=255 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 10 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 94 01 00 35 04 06 00 AF [22:55:33]Write to MH i2c: E2 02 01 7E 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 10 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 94 01 00 35 04 06 00 AF 00 00 FB [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 7E 85 00 90 00 77 [22:55:33]RAPDU: 90 00 [22:55:33]wFMCommunicate OK [22:55:33]wFMCommunicate request_size=10 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 0D 02 02 05 7B 1E 0A 38 FB [22:55:33]Write to MH i2c: E2 0D 00 7F 85 80 0D 02 02 05 00 7B 1E 0A 38 FB 00 00 5E [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 03 00 7F 85 00 90 00 78 [22:55:33]RAPDU: 90 00 [22:55:33]wFMCommunicate OK [22:55:33]wFMCommunicate request_size=4 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 0D 03 02 [22:55:33]Write to MH i2c: E2 08 00 80 85 80 0D 03 02 00 00 00 00 80 [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 0B 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 0B 00 80 85 00 7E 6E AD A7 BB A1 14 50 90 00 81 [22:55:33]RAPDU: 7E 6E AD A7 BB A1 14 50 90 00 [22:55:33]wFMCommunicate OK [22:55:33]SAM_PROTO_SignData done [22:55:33]FM_MakeSignedData done [22:55:33]CreateOFDProtocolMessage [22:55:33]wFMCommunicate request_size=4 [22:55:33]MH_SAM_APDU [22:55:33]CAPDU: 80 11 00 00 [22:55:33]Write to MH i2c: E2 08 00 81 85 80 11 00 00 00 00 00 00 80 [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:33]Read from MH i2c: E2 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 17 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: E2 17 00 81 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [22:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:55:33]wFMCommunicate OK [22:55:33]CreateOFDProtocolMessage done [22:55:33]OFDSenderStorePacket 103560 [22:55:33]StoreOFDPacket docnum=103560 [22:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 85 58 07 01 F9 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 10 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 94 01 00 35 04 06 00 AF 7B 1E 0A 38 FB 7E 6E AD A7 BB A1 14 50 [22:55:33]CheckFolder [22:55:33]dirname=/storage/ofd_packets [22:55:33]CheckFolder done [22:55:33]ProducePacketName [22:55:33]name=ofd_packets/00103560 [22:55:33]NVStorageSaveData ofd_packets/00103560 [22:55:33]File name is /storage/ofd_packets/00103560 [22:55:33]Write 301 bytes [22:55:33]NVStorageSaveData done [22:55:33]OFDSenderStorePacket done [22:55:33]KKMCreateOFDPacket done [22:55:33]NVStorageSaveData kkm_last_timestamp [22:55:33]File name is /storage/kkm_last_timestamp [22:55:33]Write 4 bytes [22:55:33]NVStorageSaveData done [22:55:33]ExternCall_PrintAddStr [22:55:33]wPrintStart [22:55:33]Write to MH i2c: 01 00 00 82 85 07 [22:55:33]Write i2c OK [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: 01 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: 01 07 00 [22:55:33]MH_I2C_Read... [22:55:33]Read from MH i2c: 01 07 00 82 85 00 00 00 00 00 FF 0F 1C [22:55:33]RasterBufferAndPrint [22:55:33]line Счет N : (1)672777 [22:55:33]line ИНН: 02508201610067 [22:55:33]line Контрольно-Кассовый Чек [22:55:33]line ПРОДАЖА [22:55:33]line ТРК (МРК, ГНК) : 42 [22:55:33]line Товар: 2710124130 [22:55:33]line Аи-92-К-5 [22:55:33]line 15.070 * 66.40 [22:55:33]line = 1000.65 [22:55:33]line НДС 12% НСП 1% [22:55:33]line > о реализуемом товаре [22:55:33]line ОКРУГЛЕНИЕ: -0.65 [22:55:33]line ИТОГО: 1000.00 [22:55:33]line Внесено: 1000.00 [22:55:33]line СДАЧА: 0.00 [22:55:33]line НСП 1% : 8.85 [22:55:33]line НДС 12% : 106.26 [22:55:33]line Наличными: 1000.00 [22:55:33]line Безнал.: 0.00 [22:55:33]line Место: АЗС № 120 "Партнер Нефть" [22:55:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:55:33]line СНО: Общий режим [22:55:33]line Чек 244 18.06.2024 22:55 [22:55:33]line Смена: 352 ФФД: 1.0 [22:55:33]line ЗНМ: 0300000164 [22:55:33]line РНМ: 0000000000092785 [22:55:33]line Версия ККМ: 001 [22:55:33]line ФМ: 0000000000875093 [22:55:33]line ФД: 103560 [22:55:33]line ФПД: 192943319824635 [22:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103560&fm=192943319824635&tin=02508201610067®Number=0000000000092785&sum=100000 [22:55:33]OFD Sender: Processing packet 103560 [packets to send 17, broken 16] [22:55:33]ProducePacketName [22:55:33]name=ofd_packets/00103560 [22:55:33]OFD Sender: To server: pG, [22:55:33]CommunicateWithHost lk.salyk.kg:30040 [22:55:33]ConnectInit lk.salyk.kg [22:55:33]written 0, free lines is 4095 [22:55:34]Connected sock=10 [22:55:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 85 58 07 01 F9 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 10 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 94 01 00 35 04 06 00 AF 7B 1E 0A 38 FB 7E 6E AD A7 BB A1 14 50 [22:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A8 AD 47 00 62 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 94 01 00 F4 03 04 00 F7 B6 71 66 B6 04 01 00 00 0F 34 E5 B3 CE 3A 7E 59 [22:55:34]CommunicateWithHost err = 0 [22:55:34]CheckOFDResponse [22:55:34]1017 (14) - 77093643461234 [22:55:34]1041 (16) - 0000000000875093 [22:55:34]1040 (4) - 103560 [22:55:34]1012 (4) - 18.06.2024 16:33 [22:55:34]1206 (1) - 0 [22:55:34]OFD Sender: Remove packet 103560 [22:55:34]ProducePacketName [22:55:34]name=ofd_packets/00103560 [22:55:34]NVStorageDeleteData [22:55:34]Write to MH i2c: 01 00 00 AD 85 32 [22:55:34]Write i2c OK [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: 01 [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: 01 07 00 [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: 01 07 00 AD 85 00 00 00 00 00 D8 0C 1D [22:55:34]RasterBufferAndPrint [22:55:34]line [22:55:34]line [22:55:34]line [22:55:34]line [22:55:34]line [22:55:34]written 0, free lines is 3296 [22:55:34]MH_Cut [22:55:34]Write to MH i2c: D1 01 00 B4 85 01 0B [22:55:34]Write i2c OK [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: D1 [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: D1 01 00 [22:55:34]MH_I2C_Read... [22:55:34]Read from MH i2c: D1 01 00 B4 85 00 0A [22:55:34]Write to MH i2c: 01 00 00 B5 85 3A [22:55:34]Write i2c OK [22:55:34]MH_I2C_Read... [22:55:34]OFD Sender: No OFD packet to send [22:55:35]*** Cut start [22:55:35]*** Partial cut [22:55:35]*** CUTSNS_PIN = 1 [22:55:35]*** CUTSNS_PIN = 0 [22:55:35]*** Brake cut motor [22:55:35]Read from MH i2c: 01 [22:55:35]MH_I2C_Read... [22:55:35]*** Stop cut motor [22:55:35]*** Cut end [22:55:35]Read from MH i2c: 01 07 00 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 07 00 B5 85 00 00 00 00 00 FF 0F 4F [22:55:35]process_action close_receipt done [22:55:35]requested_data is exist [22:55:35]produce_requested_data [22:55:35]requested_item fm.sn is exist - process it [22:55:35]wFMCommunicate request_size=4 [22:55:35]MH_SAM_APDU [22:55:35]CAPDU: 80 11 00 00 [22:55:35]Write to MH i2c: E2 08 00 B6 85 80 11 00 00 00 00 00 00 B5 [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:35]Read from MH i2c: E2 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: E2 17 00 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: E2 17 00 B6 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [22:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:55:35]wFMCommunicate OK [22:55:35]requested_item fd.num is exist - process it [22:55:35]SAM_PROTO_GetFieldsCounters [22:55:35]wFMCommunicate request_size=4 [22:55:35]MH_SAM_APDU [22:55:35]CAPDU: 80 13 00 00 [22:55:35]Write to MH i2c: E2 08 00 B7 85 80 13 00 00 00 00 00 00 B8 [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:36]Read from MH i2c: E2 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 62 00 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 62 00 B7 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:55:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:36]wFMCommunicate OK [22:55:36]SAM_PROTO_GetFieldsCounters done [22:55:36]requested_item shift.num is exist - process it [22:55:36]requested_item shift.opened is exist - process it [22:55:36]req_shift_opened [22:55:36]FM_GetShiftState [22:55:36]SAM_PROTO_GetShiftState [22:55:36]wFMCommunicate request_size=4 [22:55:36]MH_SAM_APDU [22:55:36]CAPDU: 80 13 01 00 [22:55:36]Write to MH i2c: E2 08 00 B8 85 80 13 01 00 00 00 00 00 BA [22:55:36]Write i2c OK [22:55:36]MH_I2C_Read... [22:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:36]Read from MH i2c: E2 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 0E 00 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 0E 00 B8 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3B [22:55:36]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:55:36]wFMCommunicate OK [22:55:36]SAM_PROTO_GetShiftState done [22:55:36]FM_GetShiftState done [22:55:36]req_shift_opened done [22:55:36]requested_item shift.open_date is exist - process it [22:55:36]req_shift_open_date [22:55:36]req_shift_open_date done [22:55:36]produce_requested_data done [22:55:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103560,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:55:36]process_action_free close_receipt [22:55:36]json_value_free [22:55:36]json_value_free done [22:55:36]process_json_proto returns [22:55:36]Send response to host [22:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103560,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:55:36]free response buf [22:55:36]execute_script done [22:55:36]execute_script returns [22:55:36]free content buf [22:55:36]Sock 9.Close socket [22:55:36]Sock 9.Thread stoped [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:18]recv_with_timeout no data received [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:26]accept exits with 7 [22:58:26]New connection [22:58:26]New thread 3067084132 created [22:58:26]Thread 3067227492 joined [22:58:26]Waiting for new connection... [22:58:26] Sock 7.Parse request [22:58:26]Sock 7.Check first char [22:58:26]Sock 7.First char is OK [22:58:26]request: POST /json_proto HTTP/1.0 [22:58:26]Method: POST [22:58:26]URL: /json_proto [22:58:26]Method is POST - this is cgi request [22:58:26]url: /json_proto [22:58:26]query_string will be loaded in cgi processing [22:58:26]execute_cgi json_proto POST (null) [22:58:26]execute_cgi path=json_proto method=POST [22:58:26]POST find Content-Length [22:58:26]Host: 172.17.38.133:8080 [22:58:26]Content-Length: 682 [22:58:26]Content-Type: application/json [22:58:26] [22:58:26]POST finish read [22:58:26]Found Content-Length = 682 [22:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [22:58:26]execute_script... [22:58:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [22:58:26]POST & json_proto [22:58:26]process_json_proto [22:58:26]json parsed OK: [22:58:26]protocol is kg_v1.0 [22:58:26]action value=close_receipt [22:58:26]process_action close_receipt [22:58:26]cmd_close_receipt [22:58:26]MH_GetDate [22:58:26]Write to MH i2c: F0 00 00 B9 85 2D [22:58:26]Write i2c OK [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: F0 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: F0 09 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: F0 09 00 B9 85 00 1B 11 72 66 BD 8F 7C 64 66 [22:58:26]GetLastDocTimeStamp 1718751341 [22:58:26]current date 1718751515 [22:58:26]FM_GetShiftState [22:58:26]SAM_PROTO_GetShiftState [22:58:26]wFMCommunicate request_size=4 [22:58:26]MH_SAM_APDU [22:58:26]CAPDU: 80 13 01 00 [22:58:26]Write to MH i2c: E2 08 00 BA 85 80 13 01 00 00 00 00 00 BC [22:58:26]Write i2c OK [22:58:26]MH_I2C_Read... [22:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:26]Read from MH i2c: E2 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 0E 00 [22:58:26]MH_I2C_Read... [22:58:26]Read from MH i2c: E2 0E 00 BA 85 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3D [22:58:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:58:26]wFMCommunicate OK [22:58:26]SAM_PROTO_GetShiftState done [22:58:26]FM_GetShiftState done [22:58:26]opened in 1718670284 [22:58:26]opened+sec_in_day 1718756684 [22:58:26]quantity*price = 200063 [22:58:26]sum+1 = 200064 [22:58:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 245 18.06.2024 22:58 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103561 ФПД: 72790815077134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103561&fm=72790815077134&tin=02508201610067®Number=0000000000092785&sum=200000 [22:58:27]StoreToDocumentArchive [22:58:27]shift 352 fd 103561 [22:58:27]save to /storage/0352/doc_00103561 [22:58:27]save last doc name /storage/0352/doc_00103561 to /storage/kkm_last_doc_name [22:58:27]save OK [22:58:27]Clear old archive folders... [22:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:27]tlvbuf is 01358BE0 [22:58:27]SAM_PROTO_ClearQueue [22:58:27]wFMCommunicate request_size=4 [22:58:27]MH_SAM_APDU [22:58:27]CAPDU: 80 09 00 00 [22:58:27]Write to MH i2c: E2 08 00 C7 85 80 09 00 00 00 00 00 00 BE [22:58:27]Write i2c OK [22:58:27]MH_I2C_Read... [22:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:27]Read from MH i2c: E2 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 C7 85 00 90 00 C0 [22:58:27]RAPDU: 90 00 [22:58:27]wFMCommunicate OK [22:58:27]SAM_PROTO_ClearQueue done [22:58:27]KKMCreateOFDPacket [22:58:27]OFDProtocolAddRootSTLVToBuf [22:58:27]FM_MakeSignedData [22:58:27]FM_MakeSignedData [22:58:27]SAM_PROTO_SignData [22:58:27]wFMCommunicate request_size=4 [22:58:27]MH_SAM_APDU [22:58:27]CAPDU: 80 0D 01 02 [22:58:27]Write to MH i2c: E2 08 00 C8 85 80 0D 01 02 00 00 00 00 C6 [22:58:27]Write i2c OK [22:58:27]MH_I2C_Read... [22:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:27]Read from MH i2c: E2 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 C8 85 00 90 00 C1 [22:58:27]RAPDU: 90 00 [22:58:27]wFMCommunicate OK [22:58:27]wFMCommunicate request_size=255 [22:58:27]MH_SAM_APDU [22:58:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 F5 00 00 00 F4 03 04 00 1B 11 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 94 01 00 35 04 06 00 42 [22:58:27]Write to MH i2c: E2 02 01 C9 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 F5 00 00 00 F4 03 04 00 1B 11 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 94 01 00 35 04 06 00 42 00 00 2F [22:58:27]Write i2c OK [22:58:27]MH_I2C_Read... [22:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:27]Read from MH i2c: E2 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 [22:58:27]MH_I2C_Read... [22:58:27]Read from MH i2c: E2 03 00 C9 85 00 90 00 C2 [22:58:27]RAPDU: 90 00 [22:58:27]wFMCommunicate OK [22:58:27]wFMCommunicate request_size=10 [22:58:27]MH_SAM_APDU [22:58:27]CAPDU: 80 0D 02 02 05 33 EE AC F3 0E [22:58:27]Write to MH i2c: E2 0D 00 CA 85 80 0D 02 02 05 00 33 EE AC F3 0E 00 00 A1 [22:58:27]Write i2c OK [22:58:27]MH_I2C_Read... [22:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:28]Read from MH i2c: E2 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 03 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 03 00 CA 85 00 90 00 C3 [22:58:28]RAPDU: 90 00 [22:58:28]wFMCommunicate OK [22:58:28]wFMCommunicate request_size=4 [22:58:28]MH_SAM_APDU [22:58:28]CAPDU: 80 0D 03 02 [22:58:28]Write to MH i2c: E2 08 00 CB 85 80 0D 03 02 00 00 00 00 CB [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:28]Read from MH i2c: E2 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 0B 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 0B 00 CB 85 00 B6 E9 C7 D1 01 7D B6 22 90 00 59 [22:58:28]RAPDU: B6 E9 C7 D1 01 7D B6 22 90 00 [22:58:28]wFMCommunicate OK [22:58:28]SAM_PROTO_SignData done [22:58:28]FM_MakeSignedData done [22:58:28]CreateOFDProtocolMessage [22:58:28]wFMCommunicate request_size=4 [22:58:28]MH_SAM_APDU [22:58:28]CAPDU: 80 11 00 00 [22:58:28]Write to MH i2c: E2 08 00 CC 85 80 11 00 00 00 00 00 00 CB [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:28]Read from MH i2c: E2 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 17 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: E2 17 00 CC 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [22:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:58:28]wFMCommunicate OK [22:58:28]CreateOFDProtocolMessage done [22:58:28]OFDSenderStorePacket 103561 [22:58:28]StoreOFDPacket docnum=103561 [22:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E0 26 07 01 08 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 F5 00 00 00 F4 03 04 00 1B 11 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 94 01 00 35 04 06 00 42 33 EE AC F3 0E B6 E9 C7 D1 01 7D B6 22 [22:58:28]CheckFolder [22:58:28]dirname=/storage/ofd_packets [22:58:28]CheckFolder done [22:58:28]ProducePacketName [22:58:28]name=ofd_packets/00103561 [22:58:28]NVStorageSaveData ofd_packets/00103561 [22:58:28]File name is /storage/ofd_packets/00103561 [22:58:28]Write 301 bytes [22:58:28]NVStorageSaveData done [22:58:28]OFDSenderStorePacket done [22:58:28]KKMCreateOFDPacket done [22:58:28]NVStorageSaveData kkm_last_timestamp [22:58:28]File name is /storage/kkm_last_timestamp [22:58:28]Write 4 bytes [22:58:28]NVStorageSaveData done [22:58:28]ExternCall_PrintAddStr [22:58:28]wPrintStart [22:58:28]Write to MH i2c: 01 00 00 CD 85 52 [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 07 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 07 00 CD 85 00 00 00 00 00 FF 0F 67 [22:58:28]RasterBufferAndPrint [22:58:28]line Счет N : (1)672778 [22:58:28]line ИНН: 02508201610067 [22:58:28]line Контрольно-Кассовый Чек [22:58:28]line ПРОДАЖА [22:58:28]line ТРК (МРК, ГНК) : 42 [22:58:28]line Товар: 2710124130 [22:58:28]line Аи-92-К-5 [22:58:28]line 30.130 * 66.40 [22:58:28]line = 2000.63 [22:58:28]line НДС 12% НСП 1% [22:58:28]line > о реализуемом товаре [22:58:28]line ОКРУГЛЕНИЕ: -0.63 [22:58:28]line ИТОГО: 2000.00 [22:58:28]line Внесено: 2000.00 [22:58:28]line СДАЧА: 0.00 [22:58:28]line НСП 1% : 17.70 [22:58:28]line НДС 12% : 212.46 [22:58:28]line Наличными: 2000.00 [22:58:28]line Безнал.: 0.00 [22:58:28]line Место: АЗС № 120 "Партнер Нефть" [22:58:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:58:28]line СНО: Общий режим [22:58:28]line Чек 245 18.06.2024 22:58 [22:58:28]line Смена: 352 ФФД: 1.0 [22:58:28]line ЗНМ: 0300000164 [22:58:28]line РНМ: 0000000000092785 [22:58:28]line Версия ККМ: 001 [22:58:28]line ФМ: 0000000000875093 [22:58:28]line ФД: 103561 [22:58:28]line ФПД: 72790815077134 [22:58:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103561&fm=72790815077134&tin=02508201610067®Number=0000000000092785&sum=200000 [22:58:28]OFD Sender: Processing packet 103561 [packets to send 17, broken 16] [22:58:28]ProducePacketName [22:58:28]name=ofd_packets/00103561 [22:58:28]OFD Sender: To server: pG, [22:58:28]CommunicateWithHost lk.salyk.kg:30040 [22:58:28]ConnectInit lk.salyk.kg [22:58:28]written 0, free lines is 4095 [22:58:28]Write to MH i2c: 01 00 00 F8 85 7D [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 07 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: 01 07 00 F8 85 00 00 00 00 00 D6 0C 66 [22:58:28]RasterBufferAndPrint [22:58:28]line [22:58:28]line [22:58:28]line [22:58:28]line [22:58:28]line [22:58:28]written 0, free lines is 3295 [22:58:28]MH_Cut [22:58:28]Write to MH i2c: D1 01 00 FF 85 01 56 [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: D1 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: D1 01 00 [22:58:28]MH_I2C_Read... [22:58:28]Read from MH i2c: D1 01 00 FF 85 00 55 [22:58:28]Write to MH i2c: 01 00 00 00 86 86 [22:58:28]Write i2c OK [22:58:28]MH_I2C_Read... [22:58:29]*** Cut start [22:58:29]*** Partial cut [22:58:29]*** CUTSNS_PIN = 1 [22:58:29]*** CUTSNS_PIN = 0 [22:58:29]*** Brake cut motor [22:58:30]Read from MH i2c: 01 [22:58:30]MH_I2C_Read... [22:58:30]*** Stop cut motor [22:58:30]*** Cut end [22:58:30]Read from MH i2c: 01 07 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: 01 07 00 00 86 00 00 00 00 00 FF 0F 9B [22:58:30]process_action close_receipt done [22:58:30]requested_data is exist [22:58:30]produce_requested_data [22:58:30]requested_item fm.sn is exist - process it [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 11 00 00 [22:58:30]Write to MH i2c: E2 08 00 01 86 80 11 00 00 00 00 00 00 01 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 17 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 17 00 01 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [22:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:58:30]wFMCommunicate OK [22:58:30]requested_item fd.num is exist - process it [22:58:30]SAM_PROTO_GetFieldsCounters [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 13 00 00 [22:58:30]Write to MH i2c: E2 08 00 02 86 80 13 00 00 00 00 00 00 04 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 62 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 62 00 02 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [22:58:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:30]wFMCommunicate OK [22:58:30]SAM_PROTO_GetFieldsCounters done [22:58:30]requested_item shift.num is exist - process it [22:58:30]requested_item shift.opened is exist - process it [22:58:30]req_shift_opened [22:58:30]FM_GetShiftState [22:58:30]SAM_PROTO_GetShiftState [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 13 01 00 [22:58:30]Write to MH i2c: E2 08 00 03 86 80 13 01 00 00 00 00 00 06 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0E 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0E 00 03 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 87 [22:58:30]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [22:58:30]wFMCommunicate OK [22:58:30]SAM_PROTO_GetShiftState done [22:58:30]FM_GetShiftState done [22:58:30]req_shift_opened done [22:58:30]requested_item shift.open_date is exist - process it [22:58:30]req_shift_open_date [22:58:30]req_shift_open_date done [22:58:30]produce_requested_data done [22:58:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103561,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [22:58:30]process_action_free close_receipt [22:58:30]json_value_free [22:58:30]json_value_free done [22:58:30]process_json_proto returns [22:58:30]Send response to host [22:58:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103561,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [22:58:30]free response buf [22:58:30]execute_script done [22:58:30]execute_script returns [22:58:30]free content buf [22:58:30]Sock 7.Close socket [22:58:30]Sock 7.Thread stoped [22:58:33]Connected sock=11 [22:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E0 26 07 01 08 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 F5 00 00 00 F4 03 04 00 1B 11 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 94 01 00 35 04 06 00 42 33 EE AC F3 0E B6 E9 C7 D1 01 7D B6 22 [22:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FC 3C 47 00 7A 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 35 30 39 33 10 04 04 00 89 94 01 00 F4 03 04 00 AA B7 71 66 B6 04 01 00 00 3D 60 DD A2 BF 81 9A F3 [22:58:33]CommunicateWithHost err = 0 [22:58:33]CheckOFDResponse [22:58:33]1017 (14) - 77093643461234 [22:58:33]1041 (16) - 0000000000875093 [22:58:33]1040 (4) - 103561 [22:58:33]1012 (4) - 18.06.2024 16:36 [22:58:33]1206 (1) - 0 [22:58:33]OFD Sender: Remove packet 103561 [22:58:33]ProducePacketName [22:58:33]name=ofd_packets/00103561 [22:58:33]NVStorageDeleteData [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:49]ConnectInit Can't connect to host [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:50]ConnectInit Can't connect to host [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]ConnectInit Can't connect to host [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:12:03]Waiting for new connection... [23:12:03] Sock 9.Parse request [23:12:03]Sock 9.Check first char [23:12:03]Sock 9.First char is OK [23:12:03]request: POST /json_proto HTTP/1.0 [23:12:03]Method: POST [23:12:03]URL: /json_proto [23:12:03]Method is POST - this is cgi request [23:12:03]url: /json_proto [23:12:03]query_string will be loaded in cgi processing [23:12:03]execute_cgi json_proto POST (null) [23:12:03]execute_cgi path=json_proto method=POST [23:12:03]POST find Content-Length [23:12:03]Host: 172.17.38.133:8080 [23:12:03]Content-Length: 677 [23:12:03]Content-Type: application/json [23:12:03] [23:12:03]POST finish read [23:12:03]Found Content-Length = 677 [23:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:03]execute_script... [23:12:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:03]POST & json_proto [23:12:03]process_json_proto [23:12:03]json parsed OK: [23:12:03]protocol is kg_v1.0 [23:12:03]action value=close_receipt [23:12:03]process_action close_receipt [23:12:03]cmd_close_receipt [23:12:03]MH_GetDate [23:12:03]Write to MH i2c: F0 00 00 24 86 99 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: F0 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: F0 09 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: F0 09 00 24 86 00 4C 14 72 66 BD 8F 7C 64 06 [23:12:03]GetLastDocTimeStamp 1718751515 [23:12:03]current date 1718752332 [23:12:03]FM_GetShiftState [23:12:03]SAM_PROTO_GetShiftState [23:12:03]wFMCommunicate request_size=4 [23:12:03]MH_SAM_APDU [23:12:03]CAPDU: 80 13 01 00 [23:12:03]Write to MH i2c: E2 08 00 25 86 80 13 01 00 00 00 00 00 28 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:03]Read from MH i2c: E2 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 0E 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 0E 00 25 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 A9 [23:12:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:12:03]wFMCommunicate OK [23:12:03]SAM_PROTO_GetShiftState done [23:12:03]FM_GetShiftState done [23:12:03]opened in 1718670284 [23:12:03]opened+sec_in_day 1718756684 [23:12:03]quantity*price = 32004 [23:12:03]sum+1 = 32006 [23:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 246 18.06.2024 23:12 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103562 ФПД: 51018488965281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T231212&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103562&fm=51018488965281&tin=02508201610067®Number=0000000000092785&sum=32000 [23:12:04]StoreToDocumentArchive [23:12:04]shift 352 fd 103562 [23:12:04]save to /storage/0352/doc_00103562 [23:12:04]save last doc name /storage/0352/doc_00103562 to /storage/kkm_last_doc_name [23:12:04]save OK [23:12:04]Clear old archive folders... [23:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:04]tlvbuf is B6F98530 [23:12:04]SAM_PROTO_ClearQueue [23:12:04]wFMCommunicate request_size=4 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 09 00 00 [23:12:04]Write to MH i2c: E2 08 00 32 86 80 09 00 00 00 00 00 00 2A [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 32 86 00 90 00 2C [23:12:04]RAPDU: 90 00 [23:12:04]wFMCommunicate OK [23:12:04]SAM_PROTO_ClearQueue done [23:12:04]KKMCreateOFDPacket [23:12:04]OFDProtocolAddRootSTLVToBuf [23:12:04]FM_MakeSignedData [23:12:04]FM_MakeSignedData [23:12:04]SAM_PROTO_SignData [23:12:04]wFMCommunicate request_size=4 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 0D 01 02 [23:12:04]Write to MH i2c: E2 08 00 33 86 80 0D 01 02 00 00 00 00 32 [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 33 86 00 90 00 2D [23:12:04]RAPDU: 90 00 [23:12:04]wFMCommunicate OK [23:12:04]wFMCommunicate request_size=255 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 F6 00 00 00 F4 03 04 00 4C 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 94 01 00 35 04 06 00 2E [23:12:04]Write to MH i2c: E2 02 01 34 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 F6 00 00 00 F4 03 04 00 4C 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 94 01 00 35 04 06 00 2E 00 00 F9 [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 34 86 00 90 00 2E [23:12:04]RAPDU: 90 00 [23:12:04]wFMCommunicate OK [23:12:04]wFMCommunicate request_size=10 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 0D 02 02 05 66 AA E9 68 A1 [23:12:04]Write to MH i2c: E2 0D 00 35 86 80 0D 02 02 05 00 66 AA E9 68 A1 00 00 41 [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 03 00 35 86 00 90 00 2F [23:12:04]RAPDU: 90 00 [23:12:04]wFMCommunicate OK [23:12:04]wFMCommunicate request_size=4 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 0D 03 02 [23:12:04]Write to MH i2c: E2 08 00 36 86 80 0D 03 02 00 00 00 00 37 [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 0B 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 0B 00 36 86 00 7C 88 F9 9E F4 7F 48 DB 90 00 69 [23:12:04]RAPDU: 7C 88 F9 9E F4 7F 48 DB 90 00 [23:12:04]wFMCommunicate OK [23:12:04]SAM_PROTO_SignData done [23:12:04]FM_MakeSignedData done [23:12:04]CreateOFDProtocolMessage [23:12:04]wFMCommunicate request_size=4 [23:12:04]MH_SAM_APDU [23:12:04]CAPDU: 80 11 00 00 [23:12:04]Write to MH i2c: E2 08 00 37 86 80 11 00 00 00 00 00 00 37 [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]OFD Sender: No OFD packet to send [23:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:04]Read from MH i2c: E2 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 17 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: E2 17 00 37 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [23:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:12:04]wFMCommunicate OK [23:12:04]CreateOFDProtocolMessage done [23:12:04]OFDSenderStorePacket 103562 [23:12:04]StoreOFDPacket docnum=103562 [23:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 94 DF 07 01 1C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 F6 00 00 00 F4 03 04 00 4C 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 94 01 00 35 04 06 00 2E 66 AA E9 68 A1 7C 88 F9 9E F4 7F 48 DB [23:12:04]CheckFolder [23:12:04]dirname=/storage/ofd_packets [23:12:04]CheckFolder done [23:12:04]ProducePacketName [23:12:04]name=ofd_packets/00103562 [23:12:04]NVStorageSaveData ofd_packets/00103562 [23:12:04]File name is /storage/ofd_packets/00103562 [23:12:04]Write 301 bytes [23:12:04]NVStorageSaveData done [23:12:04]OFDSenderStorePacket done [23:12:04]KKMCreateOFDPacket done [23:12:04]NVStorageSaveData kkm_last_timestamp [23:12:04]File name is /storage/kkm_last_timestamp [23:12:04]Write 4 bytes [23:12:04]NVStorageSaveData done [23:12:04]ExternCall_PrintAddStr [23:12:04]wPrintStart [23:12:04]Write to MH i2c: 01 00 00 38 86 BE [23:12:04]Write i2c OK [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: 01 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: 01 07 00 [23:12:04]MH_I2C_Read... [23:12:04]Read from MH i2c: 01 07 00 38 86 00 00 00 00 00 FF 0F D3 [23:12:04]RasterBufferAndPrint [23:12:04]line Счет N : (1)672780 [23:12:04]line ИНН: 02508201610067 [23:12:04]line Контрольно-Кассовый Чек [23:12:04]line ПРОДАЖА [23:12:04]line ТРК (МРК, ГНК) : 42 [23:12:04]line Товар: 2710124130 [23:12:04]line Аи-92-К-5 [23:12:04]line 4.820 * 66.40 [23:12:04]line = 320.05 [23:12:04]line НДС 12% НСП 1% [23:12:04]line > о реализуемом товаре [23:12:04]line ОКРУГЛЕНИЕ: -0.05 [23:12:04]line ИТОГО: 320.00 [23:12:04]line Внесено: 320.00 [23:12:04]line СДАЧА: 0.00 [23:12:04]line НСП 1% : 2.83 [23:12:04]line НДС 12% : 33.99 [23:12:04]line Наличными: 320.00 [23:12:04]line Безнал.: 0.00 [23:12:04]line Место: АЗС № 120 "Партнер Нефть" [23:12:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:12:04]line СНО: Общий режим [23:12:04]line Чек 246 18.06.2024 23:12 [23:12:04]line Смена: 352 ФФД: 1.0 [23:12:04]line ЗНМ: 0300000164 [23:12:04]line РНМ: 0000000000092785 [23:12:04]line Версия ККМ: 001 [23:12:04]line ФМ: 0000000000875093 [23:12:04]line ФД: 103562 [23:12:04]line ФПД: 51018488965281 [23:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T231212&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103562&fm=51018488965281&tin=02508201610067®Number=0000000000092785&sum=32000 [23:12:05]OFD Sender: Processing packet 103562 [packets to send 17, broken 16] [23:12:05]ProducePacketName [23:12:05]name=ofd_packets/00103562 [23:12:05]OFD Sender: To server: pG, [23:12:05]CommunicateWithHost lk.salyk.kg:30040 [23:12:05]ConnectInit lk.salyk.kg [23:12:05]written 0, free lines is 4095 [23:12:05]Connected sock=11 [23:12:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 94 DF 07 01 1C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 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 47 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 F6 00 00 00 F4 03 04 00 4C 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 94 01 00 35 04 06 00 2E 66 AA E9 68 A1 7C 88 F9 9E F4 7F 48 DB [23:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DC 13 47 00 11 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 94 01 00 F4 03 04 00 D7 BA 71 66 B6 04 01 00 00 85 B7 C1 E8 C8 D9 A4 EA [23:12:05]CommunicateWithHost err = 0 [23:12:05]CheckOFDResponse [23:12:05]1017 (14) - 77093643461234 [23:12:05]1041 (16) - 0000000000875093 [23:12:05]1040 (4) - 103562 [23:12:05]1012 (4) - 18.06.2024 16:50 [23:12:05]1206 (1) - 0 [23:12:05]OFD Sender: Remove packet 103562 [23:12:05]ProducePacketName [23:12:05]name=ofd_packets/00103562 [23:12:05]NVStorageDeleteData [23:12:05]Write to MH i2c: 01 00 00 63 86 E9 [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: 01 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: 01 07 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: 01 07 00 63 86 00 00 00 00 00 E1 0C DD [23:12:05]RasterBufferAndPrint [23:12:05]line [23:12:05]line [23:12:05]line [23:12:05]line [23:12:05]line [23:12:05]written 0, free lines is 3305 [23:12:05]MH_Cut [23:12:05]Write to MH i2c: D1 01 00 6A 86 01 C2 [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: D1 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: D1 01 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: D1 01 00 6A 86 00 C1 [23:12:05]Write to MH i2c: 01 00 00 6B 86 F1 [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]OFD Sender: No OFD packet to send [23:12:06]*** Cut start [23:12:06]*** Partial cut [23:12:06]*** CUTSNS_PIN = 1 [23:12:06]*** CUTSNS_PIN = 0 [23:12:06]*** Brake cut motor [23:12:06]Read from MH i2c: 01 [23:12:06]MH_I2C_Read... [23:12:06]*** Stop cut motor [23:12:06]*** Cut end [23:12:06]Read from MH i2c: 01 07 00 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: 01 07 00 6B 86 00 00 00 00 00 FF 0F 06 [23:12:06]process_action close_receipt done [23:12:06]requested_data is exist [23:12:06]produce_requested_data [23:12:06]requested_item fm.sn is exist - process it [23:12:06]wFMCommunicate request_size=4 [23:12:06]MH_SAM_APDU [23:12:06]CAPDU: 80 11 00 00 [23:12:06]Write to MH i2c: E2 08 00 6C 86 80 11 00 00 00 00 00 00 6C [23:12:06]Write i2c OK [23:12:06]MH_I2C_Read... [23:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:06]Read from MH i2c: E2 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 17 00 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 17 00 6C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [23:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:12:06]wFMCommunicate OK [23:12:06]requested_item fd.num is exist - process it [23:12:06]SAM_PROTO_GetFieldsCounters [23:12:06]wFMCommunicate request_size=4 [23:12:06]MH_SAM_APDU [23:12:06]CAPDU: 80 13 00 00 [23:12:06]Write to MH i2c: E2 08 00 6D 86 80 13 00 00 00 00 00 00 6F [23:12:06]Write i2c OK [23:12:06]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:07]Read from MH i2c: E2 62 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 62 00 6D 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [23:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:07]wFMCommunicate OK [23:12:07]SAM_PROTO_GetFieldsCounters done [23:12:07]requested_item shift.num is exist - process it [23:12:07]requested_item shift.opened is exist - process it [23:12:07]req_shift_opened [23:12:07]FM_GetShiftState [23:12:07]SAM_PROTO_GetShiftState [23:12:07]wFMCommunicate request_size=4 [23:12:07]MH_SAM_APDU [23:12:07]CAPDU: 80 13 01 00 [23:12:07]Write to MH i2c: E2 08 00 6E 86 80 13 01 00 00 00 00 00 71 [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0E 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0E 00 6E 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F2 [23:12:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:12:07]wFMCommunicate OK [23:12:07]SAM_PROTO_GetShiftState done [23:12:07]FM_GetShiftState done [23:12:07]req_shift_opened done [23:12:07]requested_item shift.open_date is exist - process it [23:12:07]req_shift_open_date [23:12:07]req_shift_open_date done [23:12:07]produce_requested_data done [23:12:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103562,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:12:07]process_action_free close_receipt [23:12:07]json_value_free [23:12:07]json_value_free done [23:12:07]process_json_proto returns [23:12:07]Send response to host [23:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103562,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:12:07]free response buf [23:12:07]execute_script done [23:12:07]execute_script returns [23:12:07]free content buf [23:12:07]Sock 9.Close socket [23:12:07]Sock 9.Thread stoped [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:34]ConnectInit Can't connect to host [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:05]accept exits with 10 [23:14:05]New connection [23:14:05]New thread 3067227492 created [23:14:05]Thread 3067084132 joined [23:14:05]Waiting for new connection... [23:14:05] Sock 10.Parse request [23:14:05]Sock 10.Check first char [23:14:05]Sock 10.First char is OK [23:14:05]request: POST /json_proto HTTP/1.0 [23:14:05]Method: POST [23:14:05]URL: /json_proto [23:14:05]Method is POST - this is cgi request [23:14:05]url: /json_proto [23:14:05]query_string will be loaded in cgi processing [23:14:05]execute_cgi json_proto POST (null) [23:14:05]execute_cgi path=json_proto method=POST [23:14:05]POST find Content-Length [23:14:05]Host: 172.17.38.133:8080 [23:14:05]Content-Length: 677 [23:14:05]Content-Type: application/json [23:14:05] [23:14:05]POST finish read [23:14:05]Found Content-Length = 677 [23:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:05]execute_script... [23:14:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:05]POST & json_proto [23:14:05]process_json_proto [23:14:05]json parsed OK: [23:14:05]protocol is kg_v1.0 [23:14:05]action value=close_receipt [23:14:05]process_action close_receipt [23:14:05]cmd_close_receipt [23:14:05]MH_GetDate [23:14:05]Write to MH i2c: F0 00 00 6F 86 E4 [23:14:05]Write i2c OK [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: F0 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: F0 09 00 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: F0 09 00 6F 86 00 C6 14 72 66 BD 8F 7C 64 CB [23:14:05]GetLastDocTimeStamp 1718752332 [23:14:05]current date 1718752454 [23:14:05]FM_GetShiftState [23:14:05]SAM_PROTO_GetShiftState [23:14:05]wFMCommunicate request_size=4 [23:14:05]MH_SAM_APDU [23:14:05]CAPDU: 80 13 01 00 [23:14:05]Write to MH i2c: E2 08 00 70 86 80 13 01 00 00 00 00 00 73 [23:14:05]Write i2c OK [23:14:05]MH_I2C_Read... [23:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:05]Read from MH i2c: E2 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: E2 0E 00 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: E2 0E 00 70 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F4 [23:14:05]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:14:05]wFMCommunicate OK [23:14:05]SAM_PROTO_GetShiftState done [23:14:05]FM_GetShiftState done [23:14:05]opened in 1718670284 [23:14:05]opened+sec_in_day 1718756684 [23:14:05]quantity*price = 50065 [23:14:05]sum+1 = 50067 [23:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 247 18.06.2024 23:14 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103563 ФПД: 248361771642211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T231414&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103563&fm=248361771642211&tin=02508201610067®Number=0000000000092785&sum=50000 [23:14:06]StoreToDocumentArchive [23:14:06]shift 352 fd 103563 [23:14:06]save to /storage/0352/doc_00103563 [23:14:06]save last doc name /storage/0352/doc_00103563 to /storage/kkm_last_doc_name [23:14:06]save OK [23:14:06]Clear old archive folders... [23:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:06]tlvbuf is B6DEB5D0 [23:14:06]SAM_PROTO_ClearQueue [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 09 00 00 [23:14:06]Write to MH i2c: E2 08 00 7D 86 80 09 00 00 00 00 00 00 75 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 7D 86 00 90 00 77 [23:14:06]RAPDU: 90 00 [23:14:06]wFMCommunicate OK [23:14:06]SAM_PROTO_ClearQueue done [23:14:06]KKMCreateOFDPacket [23:14:06]OFDProtocolAddRootSTLVToBuf [23:14:06]FM_MakeSignedData [23:14:06]FM_MakeSignedData [23:14:06]SAM_PROTO_SignData [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 0D 01 02 [23:14:06]Write to MH i2c: E2 08 00 7E 86 80 0D 01 02 00 00 00 00 7D [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 7E 86 00 90 00 78 [23:14:06]RAPDU: 90 00 [23:14:06]wFMCommunicate OK [23:14:06]wFMCommunicate request_size=255 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C6 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 94 01 00 35 04 06 00 E1 [23:14:06]Write to MH i2c: E2 02 01 7F 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C6 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 94 01 00 35 04 06 00 E1 00 00 42 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 7F 86 00 90 00 79 [23:14:06]RAPDU: 90 00 [23:14:06]wFMCommunicate OK [23:14:06]wFMCommunicate request_size=10 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 0D 02 02 05 E2 3B 2C AD 63 [23:14:06]Write to MH i2c: E2 0D 00 80 86 80 0D 02 02 05 00 E2 3B 2C AD 63 00 00 E3 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 03 00 80 86 00 90 00 7A [23:14:06]RAPDU: 90 00 [23:14:06]wFMCommunicate OK [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 0D 03 02 [23:14:06]Write to MH i2c: E2 08 00 81 86 80 0D 03 02 00 00 00 00 82 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0B 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0B 00 81 86 00 1F F6 80 9E 61 A4 8F 14 90 00 5E [23:14:06]RAPDU: 1F F6 80 9E 61 A4 8F 14 90 00 [23:14:06]wFMCommunicate OK [23:14:06]SAM_PROTO_SignData done [23:14:06]FM_MakeSignedData done [23:14:06]CreateOFDProtocolMessage [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 11 00 00 [23:14:06]Write to MH i2c: E2 08 00 82 86 80 11 00 00 00 00 00 00 82 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 17 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 17 00 82 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [23:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:14:07]wFMCommunicate OK [23:14:07]CreateOFDProtocolMessage done [23:14:07]OFDSenderStorePacket 103563 [23:14:07]StoreOFDPacket docnum=103563 [23:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4D 3C 07 01 86 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C6 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 94 01 00 35 04 06 00 E1 E2 3B 2C AD 63 1F F6 80 9E 61 A4 8F 14 [23:14:07]CheckFolder [23:14:07]dirname=/storage/ofd_packets [23:14:07]CheckFolder done [23:14:07]ProducePacketName [23:14:07]name=ofd_packets/00103563 [23:14:07]NVStorageSaveData ofd_packets/00103563 [23:14:07]File name is /storage/ofd_packets/00103563 [23:14:07]Write 301 bytes [23:14:07]NVStorageSaveData done [23:14:07]OFDSenderStorePacket done [23:14:07]KKMCreateOFDPacket done [23:14:07]NVStorageSaveData kkm_last_timestamp [23:14:07]File name is /storage/kkm_last_timestamp [23:14:07]Write 4 bytes [23:14:07]NVStorageSaveData done [23:14:07]ExternCall_PrintAddStr [23:14:07]wPrintStart [23:14:07]Write to MH i2c: 01 00 00 83 86 09 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 83 86 00 00 00 00 00 FF 0F 1E [23:14:07]RasterBufferAndPrint [23:14:07]line Счет N : (1)672781 [23:14:07]line ИНН: 02508201610067 [23:14:07]line Контрольно-Кассовый Чек [23:14:07]line ПРОДАЖА [23:14:07]line ТРК (МРК, ГНК) : 42 [23:14:07]line Товар: 2710124130 [23:14:07]line Аи-92-К-5 [23:14:07]line 7.540 * 66.40 [23:14:07]line = 500.66 [23:14:07]line НДС 12% НСП 1% [23:14:07]line > о реализуемом товаре [23:14:07]line ОКРУГЛЕНИЕ: -0.66 [23:14:07]line ИТОГО: 500.00 [23:14:07]line Внесено: 500.00 [23:14:07]line СДАЧА: 0.00 [23:14:07]line НСП 1% : 4.43 [23:14:07]line НДС 12% : 53.17 [23:14:07]line Наличными: 500.00 [23:14:07]line Безнал.: 0.00 [23:14:07]line Место: АЗС № 120 "Партнер Нефть" [23:14:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:14:07]line СНО: Общий режим [23:14:07]line Чек 247 18.06.2024 23:14 [23:14:07]line Смена: 352 ФФД: 1.0 [23:14:07]line ЗНМ: 0300000164 [23:14:07]line РНМ: 0000000000092785 [23:14:07]line Версия ККМ: 001 [23:14:07]line ФМ: 0000000000875093 [23:14:07]line ФД: 103563 [23:14:07]line ФПД: 248361771642211 [23:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T231414&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103563&fm=248361771642211&tin=02508201610067®Number=0000000000092785&sum=50000 [23:14:07]OFD Sender: Processing packet 103563 [packets to send 17, broken 16] [23:14:07]ProducePacketName [23:14:07]name=ofd_packets/00103563 [23:14:07]written 0, free lines is 4095 [23:14:07]OFD Sender: To server: pG, [23:14:07]CommunicateWithHost lk.salyk.kg:30040 [23:14:07]ConnectInit lk.salyk.kg [23:14:07]Connected sock=11 [23:14:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4D 3C 07 01 86 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C6 14 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 94 01 00 35 04 06 00 E1 E2 3B 2C AD 63 1F F6 80 9E 61 A4 8F 14 [23:14:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1F AE 47 00 CA 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 94 01 00 F4 03 04 00 51 BB 71 66 B6 04 01 00 00 9F 82 0A 09 5A 4F D7 64 [23:14:07]CommunicateWithHost err = 0 [23:14:07]CheckOFDResponse [23:14:07]1017 (14) - 77093643461234 [23:14:07]1041 (16) - 0000000000875093 [23:14:07]1040 (4) - 103563 [23:14:07]1012 (4) - 18.06.2024 16:52 [23:14:07]1206 (1) - 0 [23:14:07]OFD Sender: Remove packet 103563 [23:14:07]ProducePacketName [23:14:07]name=ofd_packets/00103563 [23:14:07]NVStorageDeleteData [23:14:07]Write to MH i2c: 01 00 00 AE 86 34 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 AE 86 00 00 00 00 00 E3 0C 2A [23:14:07]RasterBufferAndPrint [23:14:07]line [23:14:07]line [23:14:07]line [23:14:07]line [23:14:07]line [23:14:07]written 0, free lines is 3317 [23:14:07]MH_Cut [23:14:07]Write to MH i2c: D1 01 00 B5 86 01 0D [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: D1 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: D1 01 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: D1 01 00 B5 86 00 0C [23:14:07]Write to MH i2c: 01 00 00 B6 86 3C [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:08]OFD Sender: No OFD packet to send [23:14:08]*** Cut start [23:14:08]*** Partial cut [23:14:08]*** CUTSNS_PIN = 1 [23:14:08]*** CUTSNS_PIN = 0 [23:14:08]*** Brake cut motor [23:14:09]Read from MH i2c: 01 [23:14:09]MH_I2C_Read... [23:14:09]*** Stop cut motor [23:14:09]*** Cut end [23:14:09]Read from MH i2c: 01 07 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: 01 07 00 B6 86 00 00 00 00 00 FF 0F 51 [23:14:09]process_action close_receipt done [23:14:09]requested_data is exist [23:14:09]produce_requested_data [23:14:09]requested_item fm.sn is exist - process it [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 11 00 00 [23:14:09]Write to MH i2c: E2 08 00 B7 86 80 11 00 00 00 00 00 00 B7 [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 17 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 17 00 B7 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0A [23:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:14:09]wFMCommunicate OK [23:14:09]requested_item fd.num is exist - process it [23:14:09]SAM_PROTO_GetFieldsCounters [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 13 00 00 [23:14:09]Write to MH i2c: E2 08 00 B8 86 80 13 00 00 00 00 00 00 BA [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 62 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 62 00 B8 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [23:14:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:09]wFMCommunicate OK [23:14:09]SAM_PROTO_GetFieldsCounters done [23:14:09]requested_item shift.num is exist - process it [23:14:09]requested_item shift.opened is exist - process it [23:14:09]req_shift_opened [23:14:09]FM_GetShiftState [23:14:09]SAM_PROTO_GetShiftState [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 13 01 00 [23:14:09]Write to MH i2c: E2 08 00 B9 86 80 13 01 00 00 00 00 00 BC [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 0E 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 0E 00 B9 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3D [23:14:09]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:14:09]wFMCommunicate OK [23:14:09]SAM_PROTO_GetShiftState done [23:14:09]FM_GetShiftState done [23:14:09]req_shift_opened done [23:14:09]requested_item shift.open_date is exist - process it [23:14:09]req_shift_open_date [23:14:09]req_shift_open_date done [23:14:09]produce_requested_data done [23:14:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103563,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:14:09]process_action_free close_receipt [23:14:09]json_value_free [23:14:09]json_value_free done [23:14:09]process_json_proto returns [23:14:09]Send response to host [23:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103563,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:14:09]free response buf [23:14:09]execute_script done [23:14:09]execute_script returns [23:14:09]free content buf [23:14:09]Sock 10.Close socket [23:14:09]Sock 10.Thread stoped [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]ConnectInit Can't connect to host [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]accept exits with 9 [23:20:18]New connection [23:20:18]New thread 3067084132 created [23:20:18]Thread 3067227492 joined [23:20:18]Waiting for new connection... [23:20:18] Sock 9.Parse request [23:20:18]Sock 9.Check first char [23:20:18]Sock 9.First char is OK [23:20:18]request: POST /json_proto HTTP/1.0 [23:20:18]Method: POST [23:20:18]URL: /json_proto [23:20:18]Method is POST - this is cgi request [23:20:18]url: /json_proto [23:20:18]query_string will be loaded in cgi processing [23:20:18]execute_cgi json_proto POST (null) [23:20:18]execute_cgi path=json_proto method=POST [23:20:18]POST find Content-Length [23:20:18]Host: 172.17.38.133:8080 [23:20:18]Content-Length: 682 [23:20:18]Content-Type: application/json [23:20:18] [23:20:18]POST finish read [23:20:18]Found Content-Length = 682 [23:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [23:20:18]execute_script... [23:20: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)672782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [23:20:18]POST & json_proto [23:20:18]process_json_proto [23:20:18]json parsed OK: [23:20:18]protocol is kg_v1.0 [23:20:18]action value=close_receipt [23:20:18]process_action close_receipt [23:20:18]cmd_close_receipt [23:20:18]MH_GetDate [23:20:18]Write to MH i2c: F0 00 00 BA 86 2F [23:20:18]Write i2c OK [23:20:18]MH_I2C_Read... [23:20:18]Read from MH i2c: F0 [23:20:18]MH_I2C_Read... [23:20:18]Read from MH i2c: F0 09 00 [23:20:18]MH_I2C_Read... [23:20:18]Read from MH i2c: F0 09 00 BA 86 00 3B 16 72 66 BD 8F 7C 64 8D [23:20:18]GetLastDocTimeStamp 1718752454 [23:20:18]current date 1718752827 [23:20:18]FM_GetShiftState [23:20:18]SAM_PROTO_GetShiftState [23:20:18]wFMCommunicate request_size=4 [23:20:18]MH_SAM_APDU [23:20:18]CAPDU: 80 13 01 00 [23:20:18]Write to MH i2c: E2 08 00 BB 86 80 13 01 00 00 00 00 00 BE [23:20:18]Write i2c OK [23:20:18]MH_I2C_Read... [23:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:18]Read from MH i2c: E2 [23:20:18]MH_I2C_Read... [23:20:18]Read from MH i2c: E2 0E 00 [23:20:18]MH_I2C_Read... [23:20:18]Read from MH i2c: E2 0E 00 BB 86 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3F [23:20:18]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:20:18]wFMCommunicate OK [23:20:18]SAM_PROTO_GetShiftState done [23:20:18]FM_GetShiftState done [23:20:18]opened in 1718670284 [23:20:18]opened+sec_in_day 1718756684 [23:20:18]quantity*price = 100064 [23:20:18]sum+1 = 100066 [23:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 248 18.06.2024 23:20 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103564 ФПД: 11805870725612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T232027&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103564&fm=11805870725612&tin=02508201610067®Number=0000000000092785&sum=100000 [23:20:19]StoreToDocumentArchive [23:20:19]shift 352 fd 103564 [23:20:19]save to /storage/0352/doc_00103564 [23:20:19]save last doc name /storage/0352/doc_00103564 to /storage/kkm_last_doc_name [23:20:19]save OK [23:20:19]Clear old archive folders... [23:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:19]tlvbuf is 015B1450 [23:20:19]SAM_PROTO_ClearQueue [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 09 00 00 [23:20:19]Write to MH i2c: E2 08 00 C8 86 80 09 00 00 00 00 00 00 C0 [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:19]Read from MH i2c: E2 03 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 C8 86 00 90 00 C2 [23:20:19]RAPDU: 90 00 [23:20:19]wFMCommunicate OK [23:20:19]SAM_PROTO_ClearQueue done [23:20:19]KKMCreateOFDPacket [23:20:19]OFDProtocolAddRootSTLVToBuf [23:20:19]FM_MakeSignedData [23:20:19]FM_MakeSignedData [23:20:19]SAM_PROTO_SignData [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 0D 01 02 [23:20:19]Write to MH i2c: E2 08 00 C9 86 80 0D 01 02 00 00 00 00 C8 [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:19]Read from MH i2c: E2 03 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 C9 86 00 90 00 C3 [23:20:19]RAPDU: 90 00 [23:20:19]wFMCommunicate OK [23:20:19]wFMCommunicate request_size=255 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 94 01 00 35 04 06 00 0A [23:20:19]Write to MH i2c: E2 02 01 CA 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 94 01 00 35 04 06 00 0A 00 00 7F [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 CA 86 00 90 00 C4 [23:20:19]RAPDU: 90 00 [23:20:19]wFMCommunicate OK [23:20:19]wFMCommunicate request_size=10 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 0D 02 02 05 BC C4 BB 19 EC [23:20:19]Write to MH i2c: E2 0D 00 CB 86 80 0D 02 02 05 00 BC C4 BB 19 EC 00 00 15 [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 03 00 CB 86 00 90 00 C5 [23:20:19]RAPDU: 90 00 [23:20:19]wFMCommunicate OK [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 0D 03 02 [23:20:19]Write to MH i2c: E2 08 00 CC 86 80 0D 03 02 00 00 00 00 CD [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 0B 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 0B 00 CC 86 00 B8 5C 95 B1 FC A0 2F A0 90 00 93 [23:20:19]RAPDU: B8 5C 95 B1 FC A0 2F A0 90 00 [23:20:19]wFMCommunicate OK [23:20:19]SAM_PROTO_SignData done [23:20:19]FM_MakeSignedData done [23:20:19]CreateOFDProtocolMessage [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 11 00 00 [23:20:19]Write to MH i2c: E2 08 00 CD 86 80 11 00 00 00 00 00 00 CD [23:20:20]Write i2c OK [23:20:20]MH_I2C_Read... [23:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:20]Read from MH i2c: E2 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: E2 17 00 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: E2 17 00 CD 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [23:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:20:20]wFMCommunicate OK [23:20:20]CreateOFDProtocolMessage done [23:20:20]OFDSenderStorePacket 103564 [23:20:20]StoreOFDPacket docnum=103564 [23:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 01 07 01 47 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 94 01 00 35 04 06 00 0A BC C4 BB 19 EC B8 5C 95 B1 FC A0 2F A0 [23:20:20]CheckFolder [23:20:20]dirname=/storage/ofd_packets [23:20:20]CheckFolder done [23:20:20]ProducePacketName [23:20:20]name=ofd_packets/00103564 [23:20:20]NVStorageSaveData ofd_packets/00103564 [23:20:20]File name is /storage/ofd_packets/00103564 [23:20:20]Write 301 bytes [23:20:20]NVStorageSaveData done [23:20:20]OFDSenderStorePacket done [23:20:20]KKMCreateOFDPacket done [23:20:20]NVStorageSaveData kkm_last_timestamp [23:20:20]File name is /storage/kkm_last_timestamp [23:20:20]Write 4 bytes [23:20:20]NVStorageSaveData done [23:20:20]ExternCall_PrintAddStr [23:20:20]wPrintStart [23:20:20]Write to MH i2c: 01 00 00 CE 86 54 [23:20:20]Write i2c OK [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 07 00 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 07 00 CE 86 00 00 00 00 00 FF 0F 69 [23:20:20]RasterBufferAndPrint [23:20:20]line Счет N : (1)672782 [23:20:20]line ИНН: 02508201610067 [23:20:20]line Контрольно-Кассовый Чек [23:20:20]line ПРОДАЖА [23:20:20]line ТРК (МРК, ГНК) : 32 [23:20:20]line Товар: 2710124130 [23:20:20]line Аи-92-К-5 [23:20:20]line 15.070 * 66.40 [23:20:20]line = 1000.65 [23:20:20]line НДС 12% НСП 1% [23:20:20]line > о реализуемом товаре [23:20:20]line ОКРУГЛЕНИЕ: -0.65 [23:20:20]line ИТОГО: 1000.00 [23:20:20]line Внесено: 1000.00 [23:20:20]line СДАЧА: 0.00 [23:20:20]line НСП 1% : 8.85 [23:20:20]line НДС 12% : 106.26 [23:20:20]line Наличными: 1000.00 [23:20:20]line Безнал.: 0.00 [23:20:20]line Место: АЗС № 120 "Партнер Нефть" [23:20:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:20:20]line СНО: Общий режим [23:20:20]line Чек 248 18.06.2024 23:20 [23:20:20]line Смена: 352 ФФД: 1.0 [23:20:20]line ЗНМ: 0300000164 [23:20:20]line РНМ: 0000000000092785 [23:20:20]line Версия ККМ: 001 [23:20:20]line ФМ: 0000000000875093 [23:20:20]line ФД: 103564 [23:20:20]line ФПД: 11805870725612 [23:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T232027&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103564&fm=11805870725612&tin=02508201610067®Number=0000000000092785&sum=100000 [23:20:20]OFD Sender: Processing packet 103564 [packets to send 17, broken 16] [23:20:20]ProducePacketName [23:20:20]name=ofd_packets/00103564 [23:20:20]OFD Sender: To server: pG, [23:20:20]CommunicateWithHost lk.salyk.kg:30040 [23:20:20]ConnectInit lk.salyk.kg [23:20:20]written 0, free lines is 4095 [23:20:20]Connected sock=11 [23:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 01 07 01 47 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 94 01 00 35 04 06 00 0A BC C4 BB 19 EC B8 5C 95 B1 FC A0 2F A0 [23:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 09 78 47 00 4F 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 94 01 00 F4 03 04 00 C6 BC 71 66 B6 04 01 00 00 1F DC 51 60 4C E9 85 C9 [23:20:20]CommunicateWithHost err = 0 [23:20:20]CheckOFDResponse [23:20:20]1017 (14) - 77093643461234 [23:20:20]1041 (16) - 0000000000875093 [23:20:20]1040 (4) - 103564 [23:20:20]1012 (4) - 18.06.2024 16:58 [23:20:20]1206 (1) - 0 [23:20:20]OFD Sender: Remove packet 103564 [23:20:20]ProducePacketName [23:20:20]name=ofd_packets/00103564 [23:20:20]NVStorageDeleteData [23:20:20]Write to MH i2c: 01 00 00 F9 86 7F [23:20:20]Write i2c OK [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 07 00 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: 01 07 00 F9 86 00 00 00 00 00 DD 0C 6F [23:20:20]RasterBufferAndPrint [23:20:20]line [23:20:20]line [23:20:20]line [23:20:20]line [23:20:20]line [23:20:20]written 0, free lines is 3300 [23:20:20]MH_Cut [23:20:20]Write to MH i2c: D1 01 00 00 87 01 59 [23:20:20]Write i2c OK [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: D1 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: D1 01 00 [23:20:20]MH_I2C_Read... [23:20:20]Read from MH i2c: D1 01 00 00 87 00 58 [23:20:20]Write to MH i2c: 01 00 00 01 87 88 [23:20:20]Write i2c OK [23:20:20]MH_I2C_Read... [23:20:21]OFD Sender: No OFD packet to send [23:20:21]*** Cut start [23:20:21]*** Partial cut [23:20:21]*** CUTSNS_PIN = 1 [23:20:21]*** CUTSNS_PIN = 0 [23:20:21]*** Brake cut motor [23:20:22]Read from MH i2c: 01 [23:20:22]MH_I2C_Read... [23:20:22]*** Stop cut motor [23:20:22]*** Cut end [23:20:22]Read from MH i2c: 01 07 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: 01 07 00 01 87 00 00 00 00 00 FF 0F 9D [23:20:22]process_action close_receipt done [23:20:22]requested_data is exist [23:20:22]produce_requested_data [23:20:22]requested_item fm.sn is exist - process it [23:20:22]wFMCommunicate request_size=4 [23:20:22]MH_SAM_APDU [23:20:22]CAPDU: 80 11 00 00 [23:20:22]Write to MH i2c: E2 08 00 02 87 80 11 00 00 00 00 00 00 03 [23:20:22]Write i2c OK [23:20:22]MH_I2C_Read... [23:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:22]Read from MH i2c: E2 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 17 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 17 00 02 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [23:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:20:22]wFMCommunicate OK [23:20:22]requested_item fd.num is exist - process it [23:20:22]SAM_PROTO_GetFieldsCounters [23:20:22]wFMCommunicate request_size=4 [23:20:22]MH_SAM_APDU [23:20:22]CAPDU: 80 13 00 00 [23:20:22]Write to MH i2c: E2 08 00 03 87 80 13 00 00 00 00 00 00 06 [23:20:22]Write i2c OK [23:20:22]MH_I2C_Read... [23:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:22]Read from MH i2c: E2 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 62 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 62 00 03 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [23:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:22]wFMCommunicate OK [23:20:22]SAM_PROTO_GetFieldsCounters done [23:20:22]requested_item shift.num is exist - process it [23:20:22]requested_item shift.opened is exist - process it [23:20:22]req_shift_opened [23:20:22]FM_GetShiftState [23:20:22]SAM_PROTO_GetShiftState [23:20:22]wFMCommunicate request_size=4 [23:20:22]MH_SAM_APDU [23:20:22]CAPDU: 80 13 01 00 [23:20:22]Write to MH i2c: E2 08 00 04 87 80 13 01 00 00 00 00 00 08 [23:20:22]Write i2c OK [23:20:22]MH_I2C_Read... [23:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:22]Read from MH i2c: E2 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 0E 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 0E 00 04 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 89 [23:20:22]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:20:22]wFMCommunicate OK [23:20:22]SAM_PROTO_GetShiftState done [23:20:22]FM_GetShiftState done [23:20:22]req_shift_opened done [23:20:22]requested_item shift.open_date is exist - process it [23:20:22]req_shift_open_date [23:20:22]req_shift_open_date done [23:20:22]produce_requested_data done [23:20:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103564,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:20:22]process_action_free close_receipt [23:20:22]json_value_free [23:20:22]json_value_free done [23:20:22]process_json_proto returns [23:20:22]Send response to host [23:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103564,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:20:22]free response buf [23:20:22]execute_script done [23:20:22]execute_script returns [23:20:22]free content buf [23:20:22]Sock 9.Close socket [23:20:22]Sock 9.Thread stoped [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:12]accept exits with 7 [23:23:12]New connection [23:23:12]New thread 3067227492 created [23:23:12]Thread 3067084132 joined [23:23:12]Waiting for new connection... [23:23:12] Sock 7.Parse request [23:23:12]Sock 7.Check first char [23:23:12]Sock 7.First char is OK [23:23:12]request: POST /json_proto HTTP/1.0 [23:23:12]Method: POST [23:23:12]URL: /json_proto [23:23:12]Method is POST - this is cgi request [23:23:12]url: /json_proto [23:23:12]query_string will be loaded in cgi processing [23:23:12]execute_cgi json_proto POST (null) [23:23:12]execute_cgi path=json_proto method=POST [23:23:12]POST find Content-Length [23:23:12]Host: 172.17.38.133:8080 [23:23:12]Content-Length: 678 [23:23:12]Content-Type: application/json [23:23:12] [23:23:12]POST finish read [23:23:12]Found Content-Length = 678 [23:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:12]execute_script... [23:23:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:12]POST & json_proto [23:23:12]process_json_proto [23:23:12]json parsed OK: [23:23:12]protocol is kg_v1.0 [23:23:12]action value=close_receipt [23:23:12]process_action close_receipt [23:23:12]cmd_close_receipt [23:23:12]MH_GetDate [23:23:12]Write to MH i2c: F0 00 00 05 87 7B [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: F0 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: F0 09 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: F0 09 00 05 87 00 EA 16 72 66 BD 8F 7C 64 88 [23:23:12]GetLastDocTimeStamp 1718752827 [23:23:12]current date 1718753002 [23:23:12]FM_GetShiftState [23:23:12]SAM_PROTO_GetShiftState [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 13 01 00 [23:23:12]Write to MH i2c: E2 08 00 06 87 80 13 01 00 00 00 00 00 0A [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0E 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0E 00 06 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8B [23:23:12]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:23:12]wFMCommunicate OK [23:23:12]SAM_PROTO_GetShiftState done [23:23:12]FM_GetShiftState done [23:23:12]opened in 1718670284 [23:23:12]opened+sec_in_day 1718756684 [23:23:12]quantity*price = 70052 [23:23:12]sum+1 = 70053 [23:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 249 18.06.2024 23:23 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103565 ФПД: 63161323757369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T232322&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103565&fm=63161323757369&tin=02508201610067®Number=0000000000092785&sum=70000 [23:23:14]StoreToDocumentArchive [23:23:14]shift 352 fd 103565 [23:23:14]save to /storage/0352/doc_00103565 [23:23:14]save last doc name /storage/0352/doc_00103565 to /storage/kkm_last_doc_name [23:23:14]save OK [23:23:14]Clear old archive folders... [23:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:14]tlvbuf is 01623680 [23:23:14]SAM_PROTO_ClearQueue [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 09 00 00 [23:23:14]Write to MH i2c: E2 08 00 13 87 80 09 00 00 00 00 00 00 0C [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 13 87 00 90 00 0E [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_ClearQueue done [23:23:14]KKMCreateOFDPacket [23:23:14]OFDProtocolAddRootSTLVToBuf [23:23:14]FM_MakeSignedData [23:23:14]FM_MakeSignedData [23:23:14]SAM_PROTO_SignData [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 01 02 [23:23:14]Write to MH i2c: E2 08 00 14 87 80 0D 01 02 00 00 00 00 14 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 14 87 00 90 00 0F [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=255 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 EA 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 94 01 00 35 04 06 00 39 [23:23:14]Write to MH i2c: E2 02 01 15 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 EA 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 94 01 00 35 04 06 00 39 00 00 6D [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 15 87 00 90 00 10 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=10 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 02 02 05 71 E4 44 1F 39 [23:23:14]Write to MH i2c: E2 0D 00 16 87 80 0D 02 02 05 00 71 E4 44 1F 39 00 00 12 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 16 87 00 90 00 11 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 03 02 [23:23:14]Write to MH i2c: E2 08 00 17 87 80 0D 03 02 00 00 00 00 19 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0B 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0B 00 17 87 00 68 9E B0 E6 9A 39 72 C2 90 00 BD [23:23:14]RAPDU: 68 9E B0 E6 9A 39 72 C2 90 00 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_SignData done [23:23:14]FM_MakeSignedData done [23:23:14]CreateOFDProtocolMessage [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 11 00 00 [23:23:14]Write to MH i2c: E2 08 00 18 87 80 11 00 00 00 00 00 00 19 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 18 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [23:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:23:14]wFMCommunicate OK [23:23:14]CreateOFDProtocolMessage done [23:23:14]OFDSenderStorePacket 103565 [23:23:14]StoreOFDPacket docnum=103565 [23:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 4A 07 01 FB 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 EA 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 94 01 00 35 04 06 00 39 71 E4 44 1F 39 68 9E B0 E6 9A 39 72 C2 [23:23:14]CheckFolder [23:23:14]dirname=/storage/ofd_packets [23:23:14]CheckFolder done [23:23:14]ProducePacketName [23:23:14]name=ofd_packets/00103565 [23:23:14]NVStorageSaveData ofd_packets/00103565 [23:23:14]File name is /storage/ofd_packets/00103565 [23:23:14]Write 301 bytes [23:23:14]NVStorageSaveData done [23:23:14]OFDSenderStorePacket done [23:23:14]KKMCreateOFDPacket done [23:23:14]NVStorageSaveData kkm_last_timestamp [23:23:14]File name is /storage/kkm_last_timestamp [23:23:14]Write 4 bytes [23:23:14]NVStorageSaveData done [23:23:14]ExternCall_PrintAddStr [23:23:14]wPrintStart [23:23:14]Write to MH i2c: 01 00 00 19 87 A0 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 07 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 07 00 19 87 00 00 00 00 00 FF 0F B5 [23:23:14]RasterBufferAndPrint [23:23:14]line Счет N : (1)672783 [23:23:14]line ИНН: 02508201610067 [23:23:14]line Контрольно-Кассовый Чек [23:23:14]line ПРОДАЖА [23:23:14]line ТРК (МРК, ГНК) : 32 [23:23:14]line Товар: 2710124130 [23:23:14]line Аи-92-К-5 [23:23:14]line 10.550 * 66.40 [23:23:14]line = 700.52 [23:23:14]line НДС 12% НСП 1% [23:23:14]line > о реализуемом товаре [23:23:14]line ОКРУГЛЕНИЕ: -0.52 [23:23:14]line ИТОГО: 700.00 [23:23:14]line Внесено: 700.00 [23:23:14]line СДАЧА: 0.00 [23:23:14]line НСП 1% : 6.20 [23:23:14]line НДС 12% : 74.39 [23:23:14]line Наличными: 700.00 [23:23:14]line Безнал.: 0.00 [23:23:14]line Место: АЗС № 120 "Партнер Нефть" [23:23:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:23:14]line СНО: Общий режим [23:23:14]line Чек 249 18.06.2024 23:23 [23:23:14]line Смена: 352 ФФД: 1.0 [23:23:14]line ЗНМ: 0300000164 [23:23:14]line РНМ: 0000000000092785 [23:23:14]line Версия ККМ: 001 [23:23:14]line ФМ: 0000000000875093 [23:23:14]line ФД: 103565 [23:23:14]line ФПД: 63161323757369 [23:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T232322&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103565&fm=63161323757369&tin=02508201610067®Number=0000000000092785&sum=70000 [23:23:14]written 0, free lines is 4095 [23:23:14]OFD Sender: Processing packet 103565 [packets to send 17, broken 16] [23:23:14]ProducePacketName [23:23:14]name=ofd_packets/00103565 [23:23:14]OFD Sender: To server: pG, [23:23:14]CommunicateWithHost lk.salyk.kg:30040 [23:23:14]ConnectInit lk.salyk.kg [23:23:15]Connected sock=10 [23:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 4A 07 01 FB 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 EA 16 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 94 01 00 35 04 06 00 39 71 E4 44 1F 39 68 9E B0 E6 9A 39 72 C2 [23:23:15]Write to MH i2c: 01 00 00 44 87 CB [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 07 00 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 07 00 44 87 00 00 00 00 00 CD 0C AB [23:23:15]RasterBufferAndPrint [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]written 0, free lines is 3283 [23:23:15]MH_Cut [23:23:15]Write to MH i2c: D1 01 00 4B 87 01 A4 [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 01 00 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 01 00 4B 87 00 A3 [23:23:15]Write to MH i2c: 01 00 00 4C 87 D3 [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7E 81 47 00 F5 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 35 30 39 33 10 04 04 00 8D 94 01 00 F4 03 04 00 74 BD 71 66 B6 04 01 00 00 FE 44 81 4B 3F B5 3E 29 [23:23:15]CommunicateWithHost err = 0 [23:23:15]CheckOFDResponse [23:23:15]1017 (14) - 77093643461234 [23:23:15]1041 (16) - 0000000000875093 [23:23:15]1040 (4) - 103565 [23:23:15]1012 (4) - 18.06.2024 17:01 [23:23:15]1206 (1) - 0 [23:23:15]OFD Sender: Remove packet 103565 [23:23:15]ProducePacketName [23:23:15]name=ofd_packets/00103565 [23:23:15]NVStorageDeleteData [23:23:15]OFD Sender: No OFD packet to send [23:23:16]*** Cut start [23:23:16]*** Partial cut [23:23:16]*** CUTSNS_PIN = 1 [23:23:16]*** CUTSNS_PIN = 0 [23:23:16]*** Brake cut motor [23:23:16]Read from MH i2c: 01 [23:23:16]MH_I2C_Read... [23:23:16]*** Stop cut motor [23:23:16]*** Cut end [23:23:16]Read from MH i2c: 01 07 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: 01 07 00 4C 87 00 00 00 00 00 FF 0F E8 [23:23:16]process_action close_receipt done [23:23:16]requested_data is exist [23:23:16]produce_requested_data [23:23:16]requested_item fm.sn is exist - process it [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 11 00 00 [23:23:16]Write to MH i2c: E2 08 00 4D 87 80 11 00 00 00 00 00 00 4E [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 17 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 17 00 4D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [23:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:23:16]wFMCommunicate OK [23:23:16]requested_item fd.num is exist - process it [23:23:16]SAM_PROTO_GetFieldsCounters [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 13 00 00 [23:23:16]Write to MH i2c: E2 08 00 4E 87 80 13 00 00 00 00 00 00 51 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 62 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 62 00 4E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [23:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:16]wFMCommunicate OK [23:23:16]SAM_PROTO_GetFieldsCounters done [23:23:16]requested_item shift.num is exist - process it [23:23:16]requested_item shift.opened is exist - process it [23:23:16]req_shift_opened [23:23:16]FM_GetShiftState [23:23:16]SAM_PROTO_GetShiftState [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 13 01 00 [23:23:16]Write to MH i2c: E2 08 00 4F 87 80 13 01 00 00 00 00 00 53 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 4F 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 D4 [23:23:16]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:23:16]wFMCommunicate OK [23:23:16]SAM_PROTO_GetShiftState done [23:23:16]FM_GetShiftState done [23:23:16]req_shift_opened done [23:23:16]requested_item shift.open_date is exist - process it [23:23:16]req_shift_open_date [23:23:16]req_shift_open_date done [23:23:16]produce_requested_data done [23:23:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103565,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:23:16]process_action_free close_receipt [23:23:16]json_value_free [23:23:16]json_value_free done [23:23:16]process_json_proto returns [23:23:16]Send response to host [23:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103565,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:23:16]free response buf [23:23:16]execute_script done [23:23:16]execute_script returns [23:23:16]free content buf [23:23:16]Sock 7.Close socket [23:23:16]Sock 7.Thread stoped [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:20]accept exits with 9 [23:26:20]New connection [23:26:20]New thread 3067084132 created [23:26:20]Thread 3067227492 joined [23:26:20]Waiting for new connection... [23:26:20] Sock 9.Parse request [23:26:20]Sock 9.Check first char [23:26:20]Sock 9.First char is OK [23:26:20]request: POST /json_proto HTTP/1.0 [23:26:20]Method: POST [23:26:20]URL: /json_proto [23:26:20]Method is POST - this is cgi request [23:26:20]url: /json_proto [23:26:20]query_string will be loaded in cgi processing [23:26:20]execute_cgi json_proto POST (null) [23:26:20]execute_cgi path=json_proto method=POST [23:26:20]POST find Content-Length [23:26:20]Host: 172.17.38.133:8080 [23:26:20]Content-Length: 1193 [23:26:20]Content-Type: application/json [23:26:20] [23:26:20]POST finish read [23:26:20]Found Content-Length = 1193 [23:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672784\u000A18.06.2024 23:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887212;3887160\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]execute_script... [23:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672784\u000A18.06.2024 23:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887212;3887160\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]POST & json_proto [23:26:20]process_json_proto [23:26:20]json parsed OK: [23:26:20]protocol is kg_v1.0 [23:26:20]action value=print_text [23:26:20]process_action print_text [23:26:20]cmd_print_text [23:26:20]ExternCall_PrintAddStr [23:26:20]wPrintStart [23:26:20]Write to MH i2c: 01 00 00 50 87 D7 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 50 87 00 00 00 00 00 FF 0F EC [23:26:20]RasterBufferAndPrint [23:26:20]line *****ТОВАРНЫЙ ЧЕК***** [23:26:20]line АЗС 120 [23:26:20]line Партнер нефть [23:26:20]line 02508201610067 [23:26:20]line Кассир : Асанбаев Н. [23:26:20]line Счет N : (1)672784 [23:26:20]line 18.06.2024 23:03 [23:26:20]line ПРОДАЖА [23:26:20]line ТРК (МРК, ГНК): 42 [23:26:20]line Вид ГСМ : 2710124130 [23:26:20]line Аи-92-К-5 [23:26:20]line 20.000 x 66.40 [23:26:20]line ИТОГ: 1328.00 [23:26:20]line Тип оплаты: Талоны: Партнер нефть [23:26:20]line 3887212;3887160 [23:26:20]line ______________________ [23:26:20]line (подпись) [23:26:20]written 0, free lines is 4095 [23:26:20]Write to MH i2c: 01 00 00 64 87 EB [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 64 87 00 00 00 00 00 16 0E 16 [23:26:20]RasterBufferAndPrint [23:26:20]line [23:26:20]line [23:26:20]line [23:26:20]line [23:26:20]line [23:26:20]written 0, free lines is 3608 [23:26:20]MH_Cut [23:26:20]Write to MH i2c: D1 01 00 6B 87 01 C4 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: D1 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: D1 01 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: D1 01 00 6B 87 00 C3 [23:26:20]Write to MH i2c: 01 00 00 6C 87 F3 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:21]OFD Sender: No OFD packet to send [23:26:21]*** Cut start [23:26:21]*** Partial cut [23:26:21]*** CUTSNS_PIN = 1 [23:26:21]*** CUTSNS_PIN = 0 [23:26:21]*** Brake cut motor [23:26:21]Read from MH i2c: 01 [23:26:21]MH_I2C_Read... [23:26:21]*** Stop cut motor [23:26:21]*** Cut end [23:26:21]Read from MH i2c: 01 07 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: 01 07 00 6C 87 00 00 00 00 00 FF 0F 08 [23:26:21]process_action print_text done [23:26:21]requested_data is exist [23:26:21]produce_requested_data [23:26:21]requested_item fm.sn is exist - process it [23:26:21]wFMCommunicate request_size=4 [23:26:21]MH_SAM_APDU [23:26:21]CAPDU: 80 11 00 00 [23:26:21]Write to MH i2c: E2 08 00 6D 87 80 11 00 00 00 00 00 00 6E [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:21]Read from MH i2c: E2 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 17 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 17 00 6D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [23:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:26:21]wFMCommunicate OK [23:26:21]requested_item fd.num is exist - process it [23:26:21]SAM_PROTO_GetFieldsCounters [23:26:21]wFMCommunicate request_size=4 [23:26:21]MH_SAM_APDU [23:26:21]CAPDU: 80 13 00 00 [23:26:21]Write to MH i2c: E2 08 00 6E 87 80 13 00 00 00 00 00 00 71 [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:21]Read from MH i2c: E2 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 62 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 62 00 6E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [23:26:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:21]wFMCommunicate OK [23:26:21]SAM_PROTO_GetFieldsCounters done [23:26:21]requested_item shift.num is exist - process it [23:26:21]requested_item shift.opened is exist - process it [23:26:21]req_shift_opened [23:26:21]FM_GetShiftState [23:26:21]SAM_PROTO_GetShiftState [23:26:21]wFMCommunicate request_size=4 [23:26:21]MH_SAM_APDU [23:26:21]CAPDU: 80 13 01 00 [23:26:21]Write to MH i2c: E2 08 00 6F 87 80 13 01 00 00 00 00 00 73 [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:21]Read from MH i2c: E2 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 0E 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: E2 0E 00 6F 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F4 [23:26:21]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:26:21]wFMCommunicate OK [23:26:21]SAM_PROTO_GetShiftState done [23:26:21]FM_GetShiftState done [23:26:21]req_shift_opened done [23:26:21]requested_item shift.open_date is exist - process it [23:26:21]req_shift_open_date [23:26:21]req_shift_open_date done [23:26:21]produce_requested_data done [23:26:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103565,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:26:21]process_action_free print_text [23:26:21]json_value_free [23:26:21]json_value_free done [23:26:21]process_json_proto returns [23:26:21]Send response to host [23:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103565,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:26:21]free response buf [23:26:21]execute_script done [23:26:21]execute_script returns [23:26:21]free content buf [23:26:21]Sock 9.Close socket [23:26:21]Sock 9.Thread stoped [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:07]accept exits with 7 [23:42:07]New connection [23:42:07]New thread 3067227492 created [23:42:07]Thread 3067084132 joined [23:42:07]Waiting for new connection... [23:42:07] Sock 7.Parse request [23:42:07]Sock 7.Check first char [23:42:07]Sock 7.First char is OK [23:42:07]request: POST /json_proto HTTP/1.0 [23:42:07]Method: POST [23:42:07]URL: /json_proto [23:42:07]Method is POST - this is cgi request [23:42:07]url: /json_proto [23:42:07]query_string will be loaded in cgi processing [23:42:07]execute_cgi json_proto POST (null) [23:42:07]execute_cgi path=json_proto method=POST [23:42:07]POST find Content-Length [23:42:07]Host: 172.17.38.133:8080 [23:42:07]Content-Length: 677 [23:42:07]Content-Type: application/json [23:42:07] [23:42:07]POST finish read [23:42:07]Found Content-Length = 677 [23:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:07]execute_script... [23:42: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)672785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:07]POST & json_proto [23:42:07]process_json_proto [23:42:07]json parsed OK: [23:42:07]protocol is kg_v1.0 [23:42:07]action value=close_receipt [23:42:07]process_action close_receipt [23:42:07]cmd_close_receipt [23:42:07]MH_GetDate [23:42:07]Write to MH i2c: F0 00 00 70 87 E6 [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: F0 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: F0 09 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: F0 09 00 70 87 00 58 1B 72 66 BD 8F 7C 64 66 [23:42:07]GetLastDocTimeStamp 1718753002 [23:42:07]current date 1718754136 [23:42:07]FM_GetShiftState [23:42:07]SAM_PROTO_GetShiftState [23:42:07]wFMCommunicate request_size=4 [23:42:07]MH_SAM_APDU [23:42:07]CAPDU: 80 13 01 00 [23:42:07]Write to MH i2c: E2 08 00 71 87 80 13 01 00 00 00 00 00 75 [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:07]Read from MH i2c: E2 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 0E 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 0E 00 71 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 F6 [23:42:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:42:07]wFMCommunicate OK [23:42:07]SAM_PROTO_GetShiftState done [23:42:07]FM_GetShiftState done [23:42:07]opened in 1718670284 [23:42:07]opened+sec_in_day 1718756684 [23:42:07]quantity*price = 50065 [23:42:07]sum+1 = 50067 [23:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 250 18.06.2024 23:42 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103566 ФПД: 29709630654985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234216&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103566&fm=29709630654985&tin=02508201610067®Number=0000000000092785&sum=50000 [23:42:08]StoreToDocumentArchive [23:42:08]shift 352 fd 103566 [23:42:08]save to /storage/0352/doc_00103566 [23:42:08]save last doc name /storage/0352/doc_00103566 to /storage/kkm_last_doc_name [23:42:08]save OK [23:42:08]Clear old archive folders... [23:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:08]tlvbuf is B6F1DC90 [23:42:08]SAM_PROTO_ClearQueue [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 09 00 00 [23:42:08]Write to MH i2c: E2 08 00 7E 87 80 09 00 00 00 00 00 00 77 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 7E 87 00 90 00 79 [23:42:08]RAPDU: 90 00 [23:42:08]wFMCommunicate OK [23:42:08]SAM_PROTO_ClearQueue done [23:42:08]KKMCreateOFDPacket [23:42:08]OFDProtocolAddRootSTLVToBuf [23:42:08]FM_MakeSignedData [23:42:08]FM_MakeSignedData [23:42:08]SAM_PROTO_SignData [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 0D 01 02 [23:42:08]Write to MH i2c: E2 08 00 7F 87 80 0D 01 02 00 00 00 00 7F [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 7F 87 00 90 00 7A [23:42:08]RAPDU: 90 00 [23:42:08]wFMCommunicate OK [23:42:08]wFMCommunicate request_size=255 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 58 1B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 94 01 00 35 04 06 00 1B [23:42:08]Write to MH i2c: E2 02 01 80 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 58 1B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 94 01 00 35 04 06 00 1B 00 00 1D [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 80 87 00 90 00 7B [23:42:08]RAPDU: 90 00 [23:42:08]wFMCommunicate OK [23:42:08]wFMCommunicate request_size=10 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 0D 02 02 05 05 4F FB 4A 09 [23:42:08]Write to MH i2c: E2 0D 00 81 87 80 0D 02 02 05 00 05 4F FB 4A 09 00 00 2E [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 81 87 00 90 00 7C [23:42:08]RAPDU: 90 00 [23:42:08]wFMCommunicate OK [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 0D 03 02 [23:42:08]Write to MH i2c: E2 08 00 82 87 80 0D 03 02 00 00 00 00 84 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0B 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0B 00 82 87 00 47 DA 65 6F 8C CE CC E0 90 00 80 [23:42:08]RAPDU: 47 DA 65 6F 8C CE CC E0 90 00 [23:42:08]wFMCommunicate OK [23:42:08]SAM_PROTO_SignData done [23:42:08]FM_MakeSignedData done [23:42:08]CreateOFDProtocolMessage [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 11 00 00 [23:42:08]Write to MH i2c: E2 08 00 83 87 80 11 00 00 00 00 00 00 84 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 17 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 17 00 83 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [23:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:42:09]wFMCommunicate OK [23:42:09]CreateOFDProtocolMessage done [23:42:09]OFDSenderStorePacket 103566 [23:42:09]StoreOFDPacket docnum=103566 [23:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 FA 07 01 31 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 58 1B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 94 01 00 35 04 06 00 1B 05 4F FB 4A 09 47 DA 65 6F 8C CE CC E0 [23:42:09]CheckFolder [23:42:09]dirname=/storage/ofd_packets [23:42:09]CheckFolder done [23:42:09]ProducePacketName [23:42:09]name=ofd_packets/00103566 [23:42:09]NVStorageSaveData ofd_packets/00103566 [23:42:09]File name is /storage/ofd_packets/00103566 [23:42:09]Write 301 bytes [23:42:09]NVStorageSaveData done [23:42:09]OFDSenderStorePacket done [23:42:09]KKMCreateOFDPacket done [23:42:09]NVStorageSaveData kkm_last_timestamp [23:42:09]File name is /storage/kkm_last_timestamp [23:42:09]Write 4 bytes [23:42:09]NVStorageSaveData done [23:42:09]ExternCall_PrintAddStr [23:42:09]wPrintStart [23:42:09]Write to MH i2c: 01 00 00 84 87 0B [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 84 87 00 00 00 00 00 FF 0F 20 [23:42:09]RasterBufferAndPrint [23:42:09]line Счет N : (1)672785 [23:42:09]line ИНН: 02508201610067 [23:42:09]line Контрольно-Кассовый Чек [23:42:09]line ПРОДАЖА [23:42:09]line ТРК (МРК, ГНК) : 32 [23:42:09]line Товар: 2710124130 [23:42:09]line Аи-92-К-5 [23:42:09]line 7.540 * 66.40 [23:42:09]line = 500.66 [23:42:09]line НДС 12% НСП 1% [23:42:09]line > о реализуемом товаре [23:42:09]line ОКРУГЛЕНИЕ: -0.66 [23:42:09]line ИТОГО: 500.00 [23:42:09]line Внесено: 500.00 [23:42:09]line СДАЧА: 0.00 [23:42:09]line НСП 1% : 4.43 [23:42:09]line НДС 12% : 53.17 [23:42:09]line Наличными: 500.00 [23:42:09]line Безнал.: 0.00 [23:42:09]line Место: АЗС № 120 "Партнер Нефть" [23:42:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:42:09]line СНО: Общий режим [23:42:09]line Чек 250 18.06.2024 23:42 [23:42:09]line Смена: 352 ФФД: 1.0 [23:42:09]line ЗНМ: 0300000164 [23:42:09]line РНМ: 0000000000092785 [23:42:09]line Версия ККМ: 001 [23:42:09]line ФМ: 0000000000875093 [23:42:09]line ФД: 103566 [23:42:09]line ФПД: 29709630654985 [23:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234216&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103566&fm=29709630654985&tin=02508201610067®Number=0000000000092785&sum=50000 [23:42:09]written 0, free lines is 4095 [23:42:09]OFD Sender: Processing packet 103566 [packets to send 17, broken 16] [23:42:09]ProducePacketName [23:42:09]name=ofd_packets/00103566 [23:42:09]OFD Sender: To server: pG, [23:42:09]CommunicateWithHost lk.salyk.kg:30040 [23:42:09]ConnectInit lk.salyk.kg [23:42:09]Connected sock=10 [23:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 FA 07 01 31 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 58 1B 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 94 01 00 35 04 06 00 1B 05 4F FB 4A 09 47 DA 65 6F 8C CE CC E0 [23:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 70 AE 47 00 27 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 35 30 39 33 10 04 04 00 8E 94 01 00 F4 03 04 00 E3 C1 71 66 B6 04 01 00 00 FE 58 A9 5B F1 60 BF BB [23:42:09]CommunicateWithHost err = 0 [23:42:09]CheckOFDResponse [23:42:09]1017 (14) - 77093643461234 [23:42:09]1041 (16) - 0000000000875093 [23:42:09]1040 (4) - 103566 [23:42:09]1012 (4) - 18.06.2024 17:20 [23:42:09]1206 (1) - 0 [23:42:09]OFD Sender: Remove packet 103566 [23:42:09]ProducePacketName [23:42:09]name=ofd_packets/00103566 [23:42:09]NVStorageDeleteData [23:42:09]Write to MH i2c: 01 00 00 AF 87 36 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 AF 87 00 00 00 00 00 D0 0C 19 [23:42:09]RasterBufferAndPrint [23:42:09]line [23:42:09]line [23:42:09]line [23:42:09]line [23:42:09]line [23:42:09]written 0, free lines is 3287 [23:42:09]MH_Cut [23:42:09]Write to MH i2c: D1 01 00 B6 87 01 0F [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: D1 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: D1 01 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: D1 01 00 B6 87 00 0E [23:42:09]Write to MH i2c: 01 00 00 B7 87 3E [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:10]OFD Sender: No OFD packet to send [23:42:10]*** Cut start [23:42:10]*** Partial cut [23:42:10]*** CUTSNS_PIN = 1 [23:42:10]*** CUTSNS_PIN = 0 [23:42:10]*** Brake cut motor [23:42:11]Read from MH i2c: 01 [23:42:11]MH_I2C_Read... [23:42:11]*** Stop cut motor [23:42:11]*** Cut end [23:42:11]Read from MH i2c: 01 07 00 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: 01 07 00 B7 87 00 00 00 00 00 FF 0F 53 [23:42:11]process_action close_receipt done [23:42:11]requested_data is exist [23:42:11]produce_requested_data [23:42:11]requested_item fm.sn is exist - process it [23:42:11]wFMCommunicate request_size=4 [23:42:11]MH_SAM_APDU [23:42:11]CAPDU: 80 11 00 00 [23:42:11]Write to MH i2c: E2 08 00 B8 87 80 11 00 00 00 00 00 00 B9 [23:42:11]Write i2c OK [23:42:11]MH_I2C_Read... [23:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:11]Read from MH i2c: E2 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 17 00 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 17 00 B8 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [23:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:42:11]wFMCommunicate OK [23:42:11]requested_item fd.num is exist - process it [23:42:11]SAM_PROTO_GetFieldsCounters [23:42:11]wFMCommunicate request_size=4 [23:42:11]MH_SAM_APDU [23:42:11]CAPDU: 80 13 00 00 [23:42:11]Write to MH i2c: E2 08 00 B9 87 80 13 00 00 00 00 00 00 BC [23:42:11]Write i2c OK [23:42:11]MH_I2C_Read... [23:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:11]Read from MH i2c: E2 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 62 00 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 62 00 B9 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [23:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:11]wFMCommunicate OK [23:42:11]SAM_PROTO_GetFieldsCounters done [23:42:11]requested_item shift.num is exist - process it [23:42:11]requested_item shift.opened is exist - process it [23:42:11]req_shift_opened [23:42:11]FM_GetShiftState [23:42:11]SAM_PROTO_GetShiftState [23:42:11]wFMCommunicate request_size=4 [23:42:11]MH_SAM_APDU [23:42:11]CAPDU: 80 13 01 00 [23:42:11]Write to MH i2c: E2 08 00 BA 87 80 13 01 00 00 00 00 00 BE [23:42:11]Write i2c OK [23:42:11]MH_I2C_Read... [23:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:11]Read from MH i2c: E2 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 0E 00 [23:42:11]MH_I2C_Read... [23:42:11]Read from MH i2c: E2 0E 00 BA 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 3F [23:42:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:42:11]wFMCommunicate OK [23:42:11]SAM_PROTO_GetShiftState done [23:42:11]FM_GetShiftState done [23:42:11]req_shift_opened done [23:42:11]requested_item shift.open_date is exist - process it [23:42:11]req_shift_open_date [23:42:11]req_shift_open_date done [23:42:11]produce_requested_data done [23:42:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103566,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:42:11]process_action_free close_receipt [23:42:11]json_value_free [23:42:11]json_value_free done [23:42:11]process_json_proto returns [23:42:11]Send response to host [23:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103566,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:42:11]free response buf [23:42:11]execute_script done [23:42:11]execute_script returns [23:42:11]free content buf [23:42:11]Sock 7.Close socket [23:42:11]Sock 7.Thread stoped [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45: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:05]OFD Sender: No OFD packet to send [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:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:03]accept exits with 9 [23:51:03]New connection [23:51:03]New thread 3067084132 created [23:51:03]Thread 3067227492 joined [23:51:03]Waiting for new connection... [23:51:03] Sock 9.Parse request [23:51:03]Sock 9.Check first char [23:51:03]Sock 9.First char is OK [23:51:03]request: POST /json_proto HTTP/1.0 [23:51:03]Method: POST [23:51:03]URL: /json_proto [23:51:03]Method is POST - this is cgi request [23:51:03]url: /json_proto [23:51:03]query_string will be loaded in cgi processing [23:51:03]execute_cgi json_proto POST (null) [23:51:03]execute_cgi path=json_proto method=POST [23:51:03]POST find Content-Length [23:51:03]Host: 172.17.38.133:8080 [23:51:03]Content-Length: 682 [23:51:03]Content-Type: application/json [23:51:03] [23:51:03]POST finish read [23:51:03]Found Content-Length = 682 [23:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:03]execute_script... [23:51:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:03]POST & json_proto [23:51:03]process_json_proto [23:51:03]json parsed OK: [23:51:03]protocol is kg_v1.0 [23:51:03]action value=close_receipt [23:51:03]process_action close_receipt [23:51:03]cmd_close_receipt [23:51:03]MH_GetDate [23:51:03]Write to MH i2c: F0 00 00 BB 87 31 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: F0 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: F0 09 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: F0 09 00 BB 87 00 70 1D 72 66 BD 8F 7C 64 CB [23:51:03]GetLastDocTimeStamp 1718754136 [23:51:03]current date 1718754672 [23:51:03]FM_GetShiftState [23:51:03]SAM_PROTO_GetShiftState [23:51:03]wFMCommunicate request_size=4 [23:51:03]MH_SAM_APDU [23:51:03]CAPDU: 80 13 01 00 [23:51:03]Write to MH i2c: E2 08 00 BC 87 80 13 01 00 00 00 00 00 C0 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:03]Read from MH i2c: E2 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 0E 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 0E 00 BC 87 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 41 [23:51:03]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:51:03]wFMCommunicate OK [23:51:03]SAM_PROTO_GetShiftState done [23:51:03]FM_GetShiftState done [23:51:03]opened in 1718670284 [23:51:03]opened+sec_in_day 1718756684 [23:51:03]quantity*price = 60069 [23:51:03]sum+1 = 60071 [23:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 251 18.06.2024 23:51 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103567 ФПД: 150252423871818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T235112&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103567&fm=150252423871818&tin=02508201610067®Number=0000000000092785&sum=60000 [23:51:04]StoreToDocumentArchive [23:51:04]shift 352 fd 103567 [23:51:04]save to /storage/0352/doc_00103567 [23:51:04]save last doc name /storage/0352/doc_00103567 to /storage/kkm_last_doc_name [23:51:04]save OK [23:51:04]Clear old archive folders... [23:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:51:04]tlvbuf is 0137D3A0 [23:51:04]SAM_PROTO_ClearQueue [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 09 00 00 [23:51:04]Write to MH i2c: E2 08 00 C9 87 80 09 00 00 00 00 00 00 C2 [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 C9 87 00 90 00 C4 [23:51:04]RAPDU: 90 00 [23:51:04]wFMCommunicate OK [23:51:04]SAM_PROTO_ClearQueue done [23:51:04]KKMCreateOFDPacket [23:51:04]OFDProtocolAddRootSTLVToBuf [23:51:04]FM_MakeSignedData [23:51:04]FM_MakeSignedData [23:51:04]SAM_PROTO_SignData [23:51:04]wFMCommunicate request_size=4 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 0D 01 02 [23:51:04]Write to MH i2c: E2 08 00 CA 87 80 0D 01 02 00 00 00 00 CA [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 CA 87 00 90 00 C5 [23:51:04]RAPDU: 90 00 [23:51:04]wFMCommunicate OK [23:51:04]wFMCommunicate request_size=255 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 1D 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 94 01 00 35 04 06 00 [23:51:04]Write to MH i2c: E2 02 01 CB 87 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 1D 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 94 01 00 35 04 06 00 00 00 1D [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 CB 87 00 90 00 C6 [23:51:05]RAPDU: 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=11 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 0D 02 02 06 88 A7 5E 59 FD 4A [23:51:05]Write to MH i2c: E2 0E 00 CC 87 80 0D 02 02 06 00 88 A7 5E 59 FD 4A 00 00 06 [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 CC 87 00 90 00 C7 [23:51:05]RAPDU: 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 0D 03 02 [23:51:05]Write to MH i2c: E2 08 00 CD 87 80 0D 03 02 00 00 00 00 CF [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0B 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0B 00 CD 87 00 10 65 9C 32 13 C1 24 28 90 00 33 [23:51:05]RAPDU: 10 65 9C 32 13 C1 24 28 90 00 [23:51:05]wFMCommunicate OK [23:51:05]SAM_PROTO_SignData done [23:51:05]FM_MakeSignedData done [23:51:05]CreateOFDProtocolMessage [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 11 00 00 [23:51:05]Write to MH i2c: E2 08 00 CE 87 80 11 00 00 00 00 00 00 CF [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 17 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 17 00 CE 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [23:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:51:05]wFMCommunicate OK [23:51:05]CreateOFDProtocolMessage done [23:51:05]OFDSenderStorePacket 103567 [23:51:05]StoreOFDPacket docnum=103567 [23:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 E1 08 01 AD 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 1D 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 94 01 00 35 04 06 00 88 A7 5E 59 FD 4A 10 65 9C 32 13 C1 24 28 [23:51:05]CheckFolder [23:51:05]dirname=/storage/ofd_packets [23:51:05]CheckFolder done [23:51:05]ProducePacketName [23:51:05]name=ofd_packets/00103567 [23:51:05]NVStorageSaveData ofd_packets/00103567 [23:51:05]File name is /storage/ofd_packets/00103567 [23:51:05]Write 302 bytes [23:51:05]NVStorageSaveData done [23:51:05]OFDSenderStorePacket done [23:51:05]KKMCreateOFDPacket done [23:51:05]NVStorageSaveData kkm_last_timestamp [23:51:05]File name is /storage/kkm_last_timestamp [23:51:05]Write 4 bytes [23:51:05]NVStorageSaveData done [23:51:05]ExternCall_PrintAddStr [23:51:05]wPrintStart [23:51:05]Write to MH i2c: 01 00 00 CF 87 56 [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: 01 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: 01 07 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: 01 07 00 CF 87 00 00 00 00 00 FF 0F 6B [23:51:05]RasterBufferAndPrint [23:51:05]line Счет N : (1)672786 [23:51:05]line ИНН: 02508201610067 [23:51:05]line Контрольно-Кассовый Чек [23:51:05]line ПРОДАЖА [23:51:05]line ТРК (МРК, ГНК) : 21 [23:51:05]line Товар: 2710194210 [23:51:05]line ДТ(л)-К-5 [23:51:05]line 8.240 * 72.90 [23:51:05]line = 600.70 [23:51:05]line НДС 12% НСП 1% [23:51:05]line > о реализуемом товаре [23:51:05]line ОКРУГЛЕНИЕ: -0.70 [23:51:05]line ИТОГО: 600.00 [23:51:05]line Внесено: 600.00 [23:51:05]line СДАЧА: 0.00 [23:51:05]line НСП 1% : 5.32 [23:51:05]line НДС 12% : 63.79 [23:51:05]line Наличными: 600.00 [23:51:05]line Безнал.: 0.00 [23:51:05]line Место: АЗС № 120 "Партнер Нефть" [23:51:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:51:05]line СНО: Общий режим [23:51:05]line Чек 251 18.06.2024 23:51 [23:51:05]line Смена: 352 ФФД: 1.0 [23:51:05]line ЗНМ: 0300000164 [23:51:05]line РНМ: 0000000000092785 [23:51:05]line Версия ККМ: 001 [23:51:05]line ФМ: 0000000000875093 [23:51:05]line ФД: 103567 [23:51:05]line ФПД: 150252423871818 [23:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T235112&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103567&fm=150252423871818&tin=02508201610067®Number=0000000000092785&sum=60000 [23:51:05]OFD Sender: Processing packet 103567 [packets to send 17, broken 16] [23:51:05]ProducePacketName [23:51:05]name=ofd_packets/00103567 [23:51:05]OFD Sender: To server: pG, [23:51:05]CommunicateWithHost lk.salyk.kg:30040 [23:51:05]ConnectInit lk.salyk.kg [23:51:05]written 0, free lines is 4095 [23:51:05]Connected sock=10 [23:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 E1 08 01 AD 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 70 1D 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 94 01 00 35 04 06 00 88 A7 5E 59 FD 4A 10 65 9C 32 13 C1 24 28 [23:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A7 83 47 00 A3 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 94 01 00 F4 03 04 00 FB C3 71 66 B6 04 01 00 00 42 92 AF 81 AA A3 54 C3 [23:51:05]CommunicateWithHost err = 0 [23:51:05]CheckOFDResponse [23:51:05]1017 (14) - 77093643461234 [23:51:05]1041 (16) - 0000000000875093 [23:51:05]1040 (4) - 103567 [23:51:05]1012 (4) - 18.06.2024 17:29 [23:51:05]1206 (1) - 0 [23:51:05]OFD Sender: Remove packet 103567 [23:51:05]ProducePacketName [23:51:05]name=ofd_packets/00103567 [23:51:05]NVStorageDeleteData [23:51:06]Write to MH i2c: 01 00 00 FA 87 81 [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 07 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 07 00 FA 87 00 00 00 00 00 D7 0C 6B [23:51:06]RasterBufferAndPrint [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]written 0, free lines is 3294 [23:51:06]MH_Cut [23:51:06]Write to MH i2c: D1 01 00 01 88 01 5B [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 01 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 01 00 01 88 00 5A [23:51:06]Write to MH i2c: 01 00 00 02 88 8A [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]OFD Sender: No OFD packet to send [23:51:06]*** Cut start [23:51:06]*** Partial cut [23:51:06]*** CUTSNS_PIN = 1 [23:51:06]*** CUTSNS_PIN = 0 [23:51:07]*** Brake cut motor [23:51:07]Read from MH i2c: 01 [23:51:07]MH_I2C_Read... [23:51:07]*** Stop cut motor [23:51:07]*** Cut end [23:51:07]Read from MH i2c: 01 07 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: 01 07 00 02 88 00 00 00 00 00 FF 0F 9F [23:51:07]process_action close_receipt done [23:51:07]requested_data is exist [23:51:07]produce_requested_data [23:51:07]requested_item fm.sn is exist - process it [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 11 00 00 [23:51:07]Write to MH i2c: E2 08 00 03 88 80 11 00 00 00 00 00 00 05 [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 17 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 17 00 03 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [23:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:51:07]wFMCommunicate OK [23:51:07]requested_item fd.num is exist - process it [23:51:07]SAM_PROTO_GetFieldsCounters [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 13 00 00 [23:51:07]Write to MH i2c: E2 08 00 04 88 80 13 00 00 00 00 00 00 08 [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 62 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 62 00 04 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [23:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:07]wFMCommunicate OK [23:51:07]SAM_PROTO_GetFieldsCounters done [23:51:07]requested_item shift.num is exist - process it [23:51:07]requested_item shift.opened is exist - process it [23:51:07]req_shift_opened [23:51:07]FM_GetShiftState [23:51:07]SAM_PROTO_GetShiftState [23:51:07]wFMCommunicate request_size=4 [23:51:07]MH_SAM_APDU [23:51:07]CAPDU: 80 13 01 00 [23:51:07]Write to MH i2c: E2 08 00 05 88 80 13 01 00 00 00 00 00 0A [23:51:07]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:07]Read from MH i2c: E2 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 0E 00 [23:51:07]MH_I2C_Read... [23:51:07]Read from MH i2c: E2 0E 00 05 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 8B [23:51:07]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [23:51:07]wFMCommunicate OK [23:51:07]SAM_PROTO_GetShiftState done [23:51:07]FM_GetShiftState done [23:51:07]req_shift_opened done [23:51:07]requested_item shift.open_date is exist - process it [23:51:07]req_shift_open_date [23:51:07]req_shift_open_date done [23:51:07]produce_requested_data done [23:51:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103567,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [23:51:07]process_action_free close_receipt [23:51:07]json_value_free [23:51:07]json_value_free done [23:51:07]process_json_proto returns [23:51:07]Send response to host [23:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103567,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [23:51:07]free response buf [23:51:07]execute_script done [23:51:07]execute_script returns [23:51:07]free content buf [23:51:07]Sock 9.Close socket [23:51:07]Sock 9.Thread stoped [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:45]int [23:52:45]Write to MH i2c: 01 00 00 06 88 8E [23:52:45]*** FLAG_PRN_PAP1 set [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 06 88 00 01 00 00 00 FF 0F A4 [23:52:45]state=0 [23:52:45]No paper [23:52:45]int [23:52:45]Write to MH i2c: 01 00 00 07 88 8F [23:52:45]*** FLAG_PRN_PAP2 set [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: 01 07 00 07 88 00 03 00 00 00 FF 0F A7 [23:52:45]state=0 [23:52:45]No paper [23:52:45]Cover opened [23:52:46]OFD Sender: No OFD packet to send [23:52:50]Write to MH i2c: 01 00 00 08 88 90 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 07 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 07 00 08 88 00 03 00 00 00 FF 0F A8 [23:52:50]state=3 [23:52:50]No paper [23:52:50]Cover opened [23:52:51]OFD Sender: No OFD packet to send [23:52:55]Write to MH i2c: 01 00 00 09 88 91 [23:52:55]Write i2c OK [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: 01 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: 01 07 00 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: 01 07 00 09 88 00 03 00 00 00 FF 0F A9 [23:52:55]state=3 [23:52:55]No paper [23:52:55]Cover opened [23:52:56]OFD Sender: No OFD packet to send [23:53:00]Write to MH i2c: 01 00 00 0A 88 92 [23:53:00]Write i2c OK [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: 01 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: 01 07 00 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: 01 07 00 0A 88 00 03 00 00 00 FF 0F AA [23:53:00]state=3 [23:53:00]No paper [23:53:00]Cover opened [23:53:01]OFD Sender: No OFD packet to send [23:53:05]Write to MH i2c: 01 00 00 0B 88 93 [23:53:05]Write i2c OK [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: 01 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: 01 07 00 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: 01 07 00 0B 88 00 03 00 00 00 FF 0F AB [23:53:05]state=3 [23:53:05]No paper [23:53:05]Cover opened [23:53:06]OFD Sender: No OFD packet to send [23:53:10]Write to MH i2c: 01 00 00 0C 88 94 [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 0C 88 00 03 00 00 00 FF 0F AC [23:53:10]state=3 [23:53:10]No paper [23:53:10]Cover opened [23:53:11]OFD Sender: No OFD packet to send [23:53:15]Write to MH i2c: 01 00 00 0D 88 95 [23:53:15]Write i2c OK [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: 01 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: 01 07 00 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: 01 07 00 0D 88 00 03 00 00 00 FF 0F AD [23:53:15]state=3 [23:53:15]No paper [23:53:15]Cover opened [23:53:16]OFD Sender: No OFD packet to send [23:53:20]Write to MH i2c: 01 00 00 0E 88 96 [23:53:20]Write i2c OK [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: 01 07 00 0E 88 00 03 00 00 00 FF 0F AE [23:53:20]state=3 [23:53:20]No paper [23:53:20]Cover opened [23:53:21]OFD Sender: No OFD packet to send [23:53:22]int [23:53:22]Write to MH i2c: 01 00 00 0F 88 97 [23:53:22]*** FLAG_PRN_PAP1 reset [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 07 00 [23:53:22]MH_I2C_Read... [23:53:22]*** FLAG_PRN_PAP2 reset [23:53:22]Read from MH i2c: 01 07 00 0F 88 00 00 00 00 00 FF 0F AC [23:53:22]state=3 [23:53:22]Cover closed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 10 88 98 [23:53:23]*** FLAG_PRN_KEY set [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 10 88 00 08 00 00 00 FF 0F B5 [23:53:23]state=0 [23:53:23]Key pressed [23:53:23]Feed [23:53:23]Write to MH i2c: D8 00 00 11 88 70 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 11 88 00 71 [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 12 88 9A [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 12 88 00 48 00 00 00 3C 00 25 [23:53:23]state=2 [23:53:23]Key pressed [23:53:25]int [23:53:25]Write to MH i2c: 01 00 00 13 88 9B [23:53:25]*** FLAG_PRN_KEY reset [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 13 88 00 00 00 00 00 F6 0F A7 [23:53:25]state=2 [23:53:25]Stop feed [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:56]accept exits with 7 [00:05:56]New connection [00:05:56]New thread 3067227492 created [00:05:56]Thread 3067084132 joined [00:05:56]Waiting for new connection... [00:05:56] Sock 7.Parse request [00:05:56]Sock 7.Check first char [00:05:56]Sock 7.First char is OK [00:05:56]request: POST /json_proto HTTP/1.0 [00:05:56]Method: POST [00:05:56]URL: /json_proto [00:05:56]Method is POST - this is cgi request [00:05:56]url: /json_proto [00:05:56]query_string will be loaded in cgi processing [00:05:56]execute_cgi json_proto POST (null) [00:05:56]execute_cgi path=json_proto method=POST [00:05:56]POST find Content-Length [00:05:56]Host: 172.17.38.133:8080 [00:05:56]Content-Length: 682 [00:05:56]Content-Type: application/json [00:05:56] [00:05:56]POST finish read [00:05:56]Found Content-Length = 682 [00:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [00:05:56]execute_script... [00:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [00:05:56]POST & json_proto [00:05:56]process_json_proto [00:05:56]json parsed OK: [00:05:56]protocol is kg_v1.0 [00:05:56]action value=close_receipt [00:05:56]process_action close_receipt [00:05:56]cmd_close_receipt [00:05:56]MH_GetDate [00:05:56]Write to MH i2c: F0 00 00 14 88 8B [00:05:56]Write i2c OK [00:05:56]MH_I2C_Read... [00:05:56]Read from MH i2c: F0 [00:05:56]MH_I2C_Read... [00:05:56]Read from MH i2c: F0 09 00 [00:05:56]MH_I2C_Read... [00:05:56]Read from MH i2c: F0 09 00 14 88 00 EE 20 72 66 BD 8F 7C 64 A6 [00:05:56]GetLastDocTimeStamp 1718754672 [00:05:56]current date 1718755566 [00:05:56]FM_GetShiftState [00:05:56]SAM_PROTO_GetShiftState [00:05:56]wFMCommunicate request_size=4 [00:05:56]MH_SAM_APDU [00:05:56]CAPDU: 80 13 01 00 [00:05:56]Write to MH i2c: E2 08 00 15 88 80 13 01 00 00 00 00 00 1A [00:05:56]Write i2c OK [00:05:56]MH_I2C_Read... [00:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:56]Read from MH i2c: E2 [00:05:56]MH_I2C_Read... [00:05:56]Read from MH i2c: E2 0E 00 [00:05:56]MH_I2C_Read... [00:05:56]Read from MH i2c: E2 0E 00 15 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 9B [00:05:56]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:05:56]wFMCommunicate OK [00:05:56]SAM_PROTO_GetShiftState done [00:05:56]FM_GetShiftState done [00:05:56]opened in 1718670284 [00:05:56]opened+sec_in_day 1718756684 [00:05:56]quantity*price = 200063 [00:05:56]sum+1 = 200064 [00:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 252 19.06.2024 00:06 Смена: 352 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103568 ФПД: 259161144529074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T000606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103568&fm=259161144529074&tin=02508201610067®Number=0000000000092785&sum=200000 [00:05:58]StoreToDocumentArchive [00:05:58]shift 352 fd 103568 [00:05:58]save to /storage/0352/doc_00103568 [00:05:58]save last doc name /storage/0352/doc_00103568 to /storage/kkm_last_doc_name [00:05:58]save OK [00:05:58]Clear old archive folders... [00:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:05:58]tlvbuf is B6DEB800 [00:05:58]SAM_PROTO_ClearQueue [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 09 00 00 [00:05:58]Write to MH i2c: E2 08 00 22 88 80 09 00 00 00 00 00 00 1C [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 22 88 00 90 00 1E [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]SAM_PROTO_ClearQueue done [00:05:58]KKMCreateOFDPacket [00:05:58]OFDProtocolAddRootSTLVToBuf [00:05:58]FM_MakeSignedData [00:05:58]FM_MakeSignedData [00:05:58]SAM_PROTO_SignData [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 0D 01 02 [00:05:58]Write to MH i2c: E2 08 00 23 88 80 0D 01 02 00 00 00 00 24 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 23 88 00 90 00 1F [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]wFMCommunicate request_size=255 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FC 00 00 00 F4 03 04 00 EE 20 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 94 01 00 35 04 06 00 EB [00:05:58]Write to MH i2c: E2 02 01 24 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FC 00 00 00 F4 03 04 00 EE 20 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 94 01 00 35 04 06 00 EB 00 00 26 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 24 88 00 90 00 20 [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]wFMCommunicate request_size=10 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 0D 02 02 05 B4 A7 F5 90 B2 [00:05:58]Write to MH i2c: E2 0D 00 25 88 80 0D 02 02 05 00 B4 A7 F5 90 B2 00 00 C3 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 0D 03 02 [00:05:58]Write to MH i2c: E2 08 00 26 88 80 0D 03 02 00 00 00 00 29 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 0B 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 0B 00 26 88 00 FF 12 07 62 14 33 C9 F6 90 00 AA [00:05:58]RAPDU: FF 12 07 62 14 33 C9 F6 90 00 [00:05:58]wFMCommunicate OK [00:05:58]SAM_PROTO_SignData done [00:05:58]FM_MakeSignedData done [00:05:58]CreateOFDProtocolMessage [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 11 00 00 [00:05:58]Write to MH i2c: E2 08 00 27 88 80 11 00 00 00 00 00 00 29 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 17 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 17 00 27 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7C [00:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:05:58]wFMCommunicate OK [00:05:58]CreateOFDProtocolMessage done [00:05:58]OFDSenderStorePacket 103568 [00:05:58]StoreOFDPacket docnum=103568 [00:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 79 80 07 01 0E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FC 00 00 00 F4 03 04 00 EE 20 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 94 01 00 35 04 06 00 EB B4 A7 F5 90 B2 FF 12 07 62 14 33 C9 F6 [00:05:58]CheckFolder [00:05:58]dirname=/storage/ofd_packets [00:05:58]CheckFolder done [00:05:58]ProducePacketName [00:05:58]name=ofd_packets/00103568 [00:05:58]NVStorageSaveData ofd_packets/00103568 [00:05:58]File name is /storage/ofd_packets/00103568 [00:05:58]Write 301 bytes [00:05:58]NVStorageSaveData done [00:05:58]OFDSenderStorePacket done [00:05:58]KKMCreateOFDPacket done [00:05:58]NVStorageSaveData kkm_last_timestamp [00:05:58]File name is /storage/kkm_last_timestamp [00:05:58]Write 4 bytes [00:05:58]NVStorageSaveData done [00:05:58]ExternCall_PrintAddStr [00:05:58]wPrintStart [00:05:58]Write to MH i2c: 01 00 00 28 88 B0 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 28 88 00 00 00 00 00 FF 0F C5 [00:05:58]RasterBufferAndPrint [00:05:58]line Счет N : (1)672787 [00:05:58]line ИНН: 02508201610067 [00:05:58]line Контрольно-Кассовый Чек [00:05:58]line ПРОДАЖА [00:05:58]line ТРК (МРК, ГНК) : 42 [00:05:58]line Товар: 2710124130 [00:05:58]line Аи-92-К-5 [00:05:58]line 30.130 * 66.40 [00:05:58]line = 2000.63 [00:05:58]line НДС 12% НСП 1% [00:05:58]line > о реализуемом товаре [00:05:58]line ОКРУГЛЕНИЕ: -0.63 [00:05:58]line ИТОГО: 2000.00 [00:05:58]line Внесено: 2000.00 [00:05:58]line СДАЧА: 0.00 [00:05:58]line НСП 1% : 17.70 [00:05:58]line НДС 12% : 212.46 [00:05:58]line Наличными: 2000.00 [00:05:58]line Безнал.: 0.00 [00:05:58]line Место: АЗС № 120 "Партнер Нефть" [00:05:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:05:58]line СНО: Общий режим [00:05:58]line Чек 252 19.06.2024 00:06 [00:05:58]line Смена: 352 ФФД: 1.0 [00:05:58]line ЗНМ: 0300000164 [00:05:58]line РНМ: 0000000000092785 [00:05:58]line Версия ККМ: 001 [00:05:58]line ФМ: 0000000000875093 [00:05:58]line ФД: 103568 [00:05:58]line ФПД: 259161144529074 [00:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T000606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103568&fm=259161144529074&tin=02508201610067®Number=0000000000092785&sum=200000 [00:05:58]OFD Sender: Processing packet 103568 [packets to send 17, broken 16] [00:05:58]ProducePacketName [00:05:58]name=ofd_packets/00103568 [00:05:58]OFD Sender: To server: pG, [00:05:58]CommunicateWithHost lk.salyk.kg:30040 [00:05:58]ConnectInit lk.salyk.kg [00:05:58]written 0, free lines is 4095 [00:05:59]Connected sock=10 [00:05:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 79 80 07 01 0E 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FC 00 00 00 F4 03 04 00 EE 20 72 66 0E 04 04 00 60 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 94 01 00 35 04 06 00 EB B4 A7 F5 90 B2 FF 12 07 62 14 33 C9 F6 [00:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 87 FF 47 00 88 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 35 30 39 33 10 04 04 00 90 94 01 00 F4 03 04 00 78 C7 71 66 B6 04 01 00 00 EE 07 17 F5 91 20 E1 A8 [00:05:59]CommunicateWithHost err = 0 [00:05:59]CheckOFDResponse [00:05:59]1017 (14) - 77093643461234 [00:05:59]1041 (16) - 0000000000875093 [00:05:59]1040 (4) - 103568 [00:05:59]1012 (4) - 18.06.2024 17:44 [00:05:59]1206 (1) - 0 [00:05:59]OFD Sender: Remove packet 103568 [00:05:59]ProducePacketName [00:05:59]name=ofd_packets/00103568 [00:05:59]NVStorageDeleteData [00:05:59]Write to MH i2c: 01 00 00 53 88 DB [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 07 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 07 00 53 88 00 00 00 00 00 ED 0C DB [00:05:59]RasterBufferAndPrint [00:05:59]line [00:05:59]line [00:05:59]line [00:05:59]line [00:05:59]line [00:05:59]written 0, free lines is 3315 [00:05:59]MH_Cut [00:05:59]Write to MH i2c: D1 01 00 5A 88 01 B4 [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: D1 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: D1 01 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: D1 01 00 5A 88 00 B3 [00:05:59]Write to MH i2c: 01 00 00 5B 88 E3 [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]OFD Sender: No OFD packet to send [00:06:00]*** Cut start [00:06:00]*** Partial cut [00:06:00]*** CUTSNS_PIN = 1 [00:06:00]*** CUTSNS_PIN = 0 [00:06:00]*** Brake cut motor [00:06:00]Read from MH i2c: 01 [00:06:00]MH_I2C_Read... [00:06:00]*** Stop cut motor [00:06:00]*** Cut end [00:06:00]Read from MH i2c: 01 07 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: 01 07 00 5B 88 00 00 00 00 00 FF 0F F8 [00:06:00]process_action close_receipt done [00:06:00]requested_data is exist [00:06:00]produce_requested_data [00:06:00]requested_item fm.sn is exist - process it [00:06:00]wFMCommunicate request_size=4 [00:06:00]MH_SAM_APDU [00:06:00]CAPDU: 80 11 00 00 [00:06:00]Write to MH i2c: E2 08 00 5C 88 80 11 00 00 00 00 00 00 5E [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:00]Read from MH i2c: E2 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 17 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 17 00 5C 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B1 [00:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:06:00]wFMCommunicate OK [00:06:00]requested_item fd.num is exist - process it [00:06:00]SAM_PROTO_GetFieldsCounters [00:06:00]wFMCommunicate request_size=4 [00:06:00]MH_SAM_APDU [00:06:00]CAPDU: 80 13 00 00 [00:06:00]Write to MH i2c: E2 08 00 5D 88 80 13 00 00 00 00 00 00 61 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:00]Read from MH i2c: E2 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 62 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 62 00 5D 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:06:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:00]wFMCommunicate OK [00:06:00]SAM_PROTO_GetFieldsCounters done [00:06:00]requested_item shift.num is exist - process it [00:06:00]requested_item shift.opened is exist - process it [00:06:00]req_shift_opened [00:06:00]FM_GetShiftState [00:06:00]SAM_PROTO_GetShiftState [00:06:00]wFMCommunicate request_size=4 [00:06:00]MH_SAM_APDU [00:06:00]CAPDU: 80 13 01 00 [00:06:00]Write to MH i2c: E2 08 00 5E 88 80 13 01 00 00 00 00 00 63 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:00]Read from MH i2c: E2 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 0E 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 0E 00 5E 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E4 [00:06:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:06:00]wFMCommunicate OK [00:06:00]SAM_PROTO_GetShiftState done [00:06:00]FM_GetShiftState done [00:06:00]req_shift_opened done [00:06:00]requested_item shift.open_date is exist - process it [00:06:00]req_shift_open_date [00:06:00]req_shift_open_date done [00:06:00]produce_requested_data done [00:06:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [00:06:00]process_action_free close_receipt [00:06:00]json_value_free [00:06:00]json_value_free done [00:06:00]process_json_proto returns [00:06:00]Send response to host [00:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [00:06:00]free response buf [00:06:00]execute_script done [00:06:00]execute_script returns [00:06:00]free content buf [00:06:00]Sock 7.Close socket [00:06:00]Sock 7.Thread stoped [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:17]accept exits with 9 [00:07:17]New connection [00:07:17]New thread 3067084132 created [00:07:17]Thread 3067227492 joined [00:07:17]Waiting for new connection... [00:07:17] Sock 9.Parse request [00:07:17]Sock 9.Check first char [00:07:17]Sock 9.First char is OK [00:07:17]request: POST /json_proto HTTP/1.0 [00:07:17]Method: POST [00:07:17]URL: /json_proto [00:07:17]Method is POST - this is cgi request [00:07:17]url: /json_proto [00:07:17]query_string will be loaded in cgi processing [00:07:17]execute_cgi json_proto POST (null) [00:07:17]execute_cgi path=json_proto method=POST [00:07:17]POST find Content-Length [00:07:17]Host: 172.17.38.133:8080 [00:07:17]Content-Length: 215 [00:07:17]Content-Type: application/json [00:07:17] [00:07:17]POST finish read [00:07:17]Found Content-Length = 215 [00:07: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:07:17]execute_script... [00:07: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:07:17]POST & json_proto [00:07:17]process_json_proto [00:07:17]json parsed OK: [00:07:17]protocol is kg_v1.0 [00:07:17]action value=get_value [00:07:17]process_action get_value [00:07:17]cmd_get_value [00:07:17]process_action get_value done [00:07:17]requested_data is exist [00:07:17]produce_requested_data [00:07:17]requested_item kkm.sn is exist - process it [00:07:17]requested_item kkm.ver is exist - process it [00:07:17]requested_item fm.sn is exist - process it [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 11 00 00 [00:07:17]Write to MH i2c: E2 08 00 5F 88 80 11 00 00 00 00 00 00 61 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 17 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 17 00 5F 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [00:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:07:17]wFMCommunicate OK [00:07:17]requested_item fd.num is exist - process it [00:07:17]SAM_PROTO_GetFieldsCounters [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 13 00 00 [00:07:17]Write to MH i2c: E2 08 00 60 88 80 13 00 00 00 00 00 00 64 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 62 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 62 00 60 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [00:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_GetFieldsCounters done [00:07:17]requested_item shift.num is exist - process it [00:07:17]requested_item shift.opened is exist - process it [00:07:17]req_shift_opened [00:07:17]FM_GetShiftState [00:07:17]SAM_PROTO_GetShiftState [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 13 01 00 [00:07:17]Write to MH i2c: E2 08 00 61 88 80 13 01 00 00 00 00 00 66 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 0E 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 0E 00 61 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 E7 [00:07:17]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_GetShiftState done [00:07:17]FM_GetShiftState done [00:07:17]req_shift_opened done [00:07:17]requested_item shift.open_date is exist - process it [00:07:17]req_shift_open_date [00:07:17]req_shift_open_date done [00:07:17]produce_requested_data done [00:07:17]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [00:07:17]process_action_free get_value [00:07:17]json_value_free [00:07:17]json_value_free done [00:07:17]process_json_proto returns [00:07:17]Send response to host [00:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [00:07:17]free response buf [00:07:17]execute_script done [00:07:17]execute_script returns [00:07:17]free content buf [00:07:17]Sock 9.Close socket [00:07:17]Sock 9.Thread stoped [00:07:17]accept exits with 7 [00:07:17]New connection [00:07:17]New thread 3067227492 created [00:07:17]Thread 3067084132 joined [00:07:17]Waiting for new connection... [00:07:17] Sock 7.Parse request [00:07:17]Sock 7.Check first char [00:07:17]Sock 7.First char is OK [00:07:17]request: POST /json_proto HTTP/1.0 [00:07:17]Method: POST [00:07:17]URL: /json_proto [00:07:17]Method is POST - this is cgi request [00:07:17]url: /json_proto [00:07:17]query_string will be loaded in cgi processing [00:07:17]execute_cgi json_proto POST (null) [00:07:17]execute_cgi path=json_proto method=POST [00:07:17]POST find Content-Length [00:07:17]Host: 172.17.38.133:8080 [00:07:17]Content-Length: 331 [00:07:17]Content-Type: application/json [00:07:17] [00:07:17]POST finish read [00:07:17]Found Content-Length = 331 [00:07: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:07:17]execute_script... [00:07: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" ] } } [00:07:18]POST & json_proto [00:07:18]process_json_proto [00:07:18]json parsed OK: [00:07:18]protocol is kg_v1.0 [00:07:18]action value=get_value [00:07:18]process_action get_value [00:07:18]cmd_get_value [00:07:18]process_action get_value done [00:07:18]requested_data is exist [00:07:18]produce_requested_data [00:07:18]requested_item fm.sale.total is exist - process it [00:07:18]SAM_PROTO_GetFMData [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 03 00 [00:07:18]Write to MH i2c: E2 08 00 62 88 80 13 03 00 00 00 00 00 69 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 62 88 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 B5 [00:07:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 17 00 00 [00:07:18]Write to MH i2c: E2 08 00 63 88 80 17 00 00 00 00 00 00 6B [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 63 88 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 C8 [00:07:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 17 00 00 [00:07:18]Write to MH i2c: E2 08 00 64 88 80 17 00 00 00 00 00 00 6C [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 64 88 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7E [00:07:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 65 88 80 17 00 00 00 00 00 00 6D [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 65 88 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:07:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 66 88 80 17 00 00 00 00 00 00 6E [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 E2 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 E2 00 66 88 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00:07:19]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:19]wFMCommunicate OK [00:07:19]SAM_PROTO_GetFMData done [00:07:19]requested_item fm.sale_refund.total is exist - process it [00:07:19]requested_item fm.buy.total is exist - process it [00:07:19]requested_item shift.sale.total is exist - process it [00:07:19]SAM_PROTO_GetShiftData [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 13 02 00 [00:07:19]Write to MH i2c: E2 08 00 67 88 80 13 02 00 00 00 00 00 6D [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]OFD Sender: No OFD packet to send [00:07:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 67 88 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DC [00:07:20]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 68 88 80 17 00 00 00 00 00 00 70 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 68 88 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 B2 [00:07:20]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 69 88 80 17 00 00 00 00 00 00 71 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 69 88 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 9A [00:07:20]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 6A 88 80 17 00 00 00 00 00 00 72 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 6A 88 00 03 00 00 EF 03 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 90 00 F3 [00:07:20]RAPDU: 03 00 00 EF 03 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 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 6B 88 80 17 00 00 00 00 00 00 73 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 D9 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 D9 00 6B 88 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [00:07:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_GetShiftData done [00:07:21]requested_item shift.sale.total_cash is exist - process it [00:07:21]requested_item shift.sale_refund.total is exist - process it [00:07:21]requested_item shift.sale_refund.total_cash is exist - process it [00:07:21]requested_item shift.buy.total is exist - process it [00:07:21]requested_item shift.buy.total_cash is exist - process it [00:07:21]produce_requested_data done [00:07:21]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:21]process_action_free get_value [00:07:21]json_value_free [00:07:21]json_value_free done [00:07:21]process_json_proto returns [00:07:21]Send response to host [00:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:21]free response buf [00:07:21]execute_script done [00:07:21]execute_script returns [00:07:21]free content buf [00:07:21]Sock 7.Close socket [00:07:21]Sock 7.Thread stoped [00:07:21]accept exits with 9 [00:07:21]New connection [00:07:21]New thread 3067084132 created [00:07:21]Thread 3067227492 joined [00:07:21]Waiting for new connection... [00:07:21] Sock 9.Parse request [00:07:21]Sock 9.Check first char [00:07:21]Sock 9.First char is OK [00:07:21]request: POST /json_proto HTTP/1.0 [00:07:21]Method: POST [00:07:21]URL: /json_proto [00:07:21]Method is POST - this is cgi request [00:07:21]url: /json_proto [00:07:21]query_string will be loaded in cgi processing [00:07:21]execute_cgi json_proto POST (null) [00:07:21]execute_cgi path=json_proto method=POST [00:07:21]POST find Content-Length [00:07:21]Host: 172.17.38.133:8080 [00:07:21]Content-Length: 331 [00:07:21]Content-Type: application/json [00:07:21] [00:07:21]POST finish read [00:07:21]Found Content-Length = 331 [00:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:21]execute_script... [00:07:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:21]POST & json_proto [00:07:21]process_json_proto [00:07:21]json parsed OK: [00:07:21]protocol is kg_v1.0 [00:07:21]action value=get_value [00:07:21]process_action get_value [00:07:21]cmd_get_value [00:07:21]process_action get_value done [00:07:21]requested_data is exist [00:07:21]produce_requested_data [00:07:21]requested_item fm.sale.total is exist - process it [00:07:21]SAM_PROTO_GetFMData [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 13 03 00 [00:07:21]Write to MH i2c: E2 08 00 6C 88 80 13 03 00 00 00 00 00 73 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 6C 88 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 BF [00:07:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 6D 88 80 17 00 00 00 00 00 00 75 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 6D 88 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 D2 [00:07:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 6E 88 80 17 00 00 00 00 00 00 76 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 6E 88 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 88 [00:07:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 6F 88 80 17 00 00 00 00 00 00 77 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 6F 88 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:07:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 17 00 00 [00:07:23]Write to MH i2c: E2 08 00 70 88 80 17 00 00 00 00 00 00 78 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 E2 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 E2 00 70 88 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:07:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:23]wFMCommunicate OK [00:07:23]SAM_PROTO_GetFMData done [00:07:23]requested_item fm.sale_refund.total is exist - process it [00:07:23]requested_item fm.buy.total is exist - process it [00:07:23]requested_item shift.sale.total is exist - process it [00:07:23]SAM_PROTO_GetShiftData [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 13 02 00 [00:07:23]Write to MH i2c: E2 08 00 71 88 80 13 02 00 00 00 00 00 77 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 71 88 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 E6 [00:07:24]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 72 88 80 17 00 00 00 00 00 00 7A [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 72 88 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 BC [00:07:24]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 73 88 80 17 00 00 00 00 00 00 7B [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 73 88 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 A4 [00:07:24]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:25]wFMCommunicate OK [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 74 88 80 17 00 00 00 00 00 00 7C [00:07:25]OFD Sender: No OFD packet to send [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 74 88 00 03 00 00 EF 03 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 90 00 FD [00:07:25]RAPDU: 03 00 00 EF 03 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 90 00 [00:07:25]wFMCommunicate OK [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 75 88 80 17 00 00 00 00 00 00 7D [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 D9 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 D9 00 75 88 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [00:07:25]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_GetShiftData done [00:07:25]requested_item shift.sale.total_cash is exist - process it [00:07:25]requested_item shift.sale_refund.total is exist - process it [00:07:25]requested_item shift.sale_refund.total_cash is exist - process it [00:07:25]requested_item shift.buy.total is exist - process it [00:07:25]requested_item shift.buy.total_cash is exist - process it [00:07:25]produce_requested_data done [00:07:25]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:25]process_action_free get_value [00:07:25]json_value_free [00:07:25]json_value_free done [00:07:25]process_json_proto returns [00:07:25]Send response to host [00:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:25]free response buf [00:07:25]execute_script done [00:07:25]execute_script returns [00:07:25]free content buf [00:07:25]Sock 9.Close socket [00:07:25]Sock 9.Thread stoped [00:07:25]accept exits with 7 [00:07:25]New connection [00:07:25]New thread 3067227492 created [00:07:25]Thread 3067084132 joined [00:07:25]Waiting for new connection... [00:07:25] Sock 7.Parse request [00:07:25]Sock 7.Check first char [00:07:25]Sock 7.First char is OK [00:07:25]request: POST /json_proto HTTP/1.0 [00:07:25]Method: POST [00:07:25]URL: /json_proto [00:07:25]Method is POST - this is cgi request [00:07:25]url: /json_proto [00:07:25]query_string will be loaded in cgi processing [00:07:25]execute_cgi json_proto POST (null) [00:07:25]execute_cgi path=json_proto method=POST [00:07:25]POST find Content-Length [00:07:25]Host: 172.17.38.133:8080 [00:07:25]Content-Length: 257 [00:07:25]Content-Type: application/json [00:07:25] [00:07:25]POST finish read [00:07:25]Found Content-Length = 257 [00:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:25]execute_script... [00:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:25]POST & json_proto [00:07:25]process_json_proto [00:07:25]json parsed OK: [00:07:25]protocol is kg_v1.0 [00:07:25]action value=x_report [00:07:25]process_action x_report [00:07:25]cmd_x_report [00:07:25]MH_GetDate [00:07:25]Write to MH i2c: F0 00 00 76 88 ED [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 09 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 09 00 76 88 00 47 21 72 66 BD 8F 7C 64 62 [00:07:25]GetLastDocTimeStamp 1718755566 [00:07:25]current date 1718755655 [00:07:25]FM_GetShiftState [00:07:25]SAM_PROTO_GetShiftState [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 01 00 [00:07:25]Write to MH i2c: E2 08 00 77 88 80 13 01 00 00 00 00 00 7C [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 0E 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 0E 00 77 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 FD [00:07:26]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_GetShiftState done [00:07:26]FM_GetShiftState done [00:07:26]KKMCreateXReportDocument [00:07:26]Load OK [00:07:26]Malloc new data [00:07:26]MH_GetDate [00:07:26]Write to MH i2c: F0 00 00 78 88 EF [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: F0 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: F0 09 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: F0 09 00 78 88 00 47 21 72 66 BD 8F 7C 64 64 [00:07:26]Malloc new data [00:07:26]Malloc new data [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 11 00 00 [00:07:26]Write to MH i2c: E2 08 00 79 88 80 11 00 00 00 00 00 00 7B [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 17 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 17 00 79 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [00:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_GetFieldsCounters [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 13 00 00 [00:07:26]Write to MH i2c: E2 08 00 7A 88 80 13 00 00 00 00 00 00 7E [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 62 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 62 00 7A 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [00:07:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_GetFieldsCounters done [00:07:26]Malloc new data [00:07:26]Malloc new data [00:07:26]Malloc new data [00:07:26]KKMCreateXReportDocument OK [00:07:26]KKMSetXReportData OK [00:07:26]KKMPrepareXReportFMData [00:07:26]SAM_PROTO_GetShiftData [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 13 02 00 [00:07:26]Write to MH i2c: E2 08 00 7B 88 80 13 02 00 00 00 00 00 81 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 7B 88 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F0 [00:07:27]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 7C 88 80 17 00 00 00 00 00 00 84 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:27]Read from MH i2c: E2 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 [00:07:27]MH_I2C_Read... [00:07:27]Read from MH i2c: E2 FD 00 7C 88 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 C6 [00:07:27]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:27]wFMCommunicate OK [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 17 00 00 [00:07:27]Write to MH i2c: E2 08 00 7D 88 80 17 00 00 00 00 00 00 85 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 7D 88 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 AE [00:07:28]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:28]wFMCommunicate OK [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 17 00 00 [00:07:28]Write to MH i2c: E2 08 00 7E 88 80 17 00 00 00 00 00 00 86 [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 7E 88 00 03 00 00 EF 03 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 90 00 07 [00:07:28]RAPDU: 03 00 00 EF 03 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 90 00 [00:07:28]wFMCommunicate OK [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 17 00 00 [00:07:28]Write to MH i2c: E2 08 00 7F 88 80 17 00 00 00 00 00 00 87 [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 D9 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 D9 00 7F 88 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:07:29]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_GetShiftData done [00:07:29]1194 (1208) - счетчики итогов смены [00:07:29] 1134 (4) - 252 - количество чеков со всеми признаками расчетов [00:07:29] 1129 (158) - счетчики операций «приход» [00:07:29] 1135 (4) - 249 - количество чеков по признаку расчетов [00:07:29] 1201 (4) - 384975.02 - общая итоговая сумма в чеках [00:07:29] 1136 (4) - 217748.00 - итоговая сумма в чеках наличными [00:07:29] 1138 (3) - 167227.02 - итоговая сумма в чеках безналичными [00:07:29] 1024 (123) - суммы налогов [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 0% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1006 (12) - суммы НДС [00:07:29] 1010 (1) - 12% - код ставки НДС [00:07:29] 1011 (3) - 40890.72 - сумма НДС по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (12) - суммы НСП [00:07:29] 1014 (1) - 1% - код ставки НСП [00:07:29] 1015 (3) - 3407.23 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 2% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 3% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 5% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1130 (152) - счетчики операций «возврат прихода» [00:07:29] 1135 (4) - 3 - количество чеков по признаку расчетов [00:07:29] 1201 (3) - 7375.00 - общая итоговая сумма в чеках [00:07:29] 1136 (3) - 7375.00 - итоговая сумма в чеках наличными [00:07:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:29] 1024 (122) - суммы налогов [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 0% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1006 (12) - суммы НДС [00:07:29] 1010 (1) - 12% - код ставки НДС [00:07:29] 1011 (3) - 783.30 - сумма НДС по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (11) - суммы НСП [00:07:29] 1014 (1) - 1% - код ставки НСП [00:07:29] 1015 (2) - 65.27 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 2% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 3% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 5% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1131 (141) - счетчики операций «расход» [00:07:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:29] 1024 (117) - суммы налогов [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 0% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 12% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 2% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 3% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 5% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1132 (141) - счетчики операций «возврат расхода» [00:07:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:29] 1024 (117) - суммы налогов [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 0% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1006 (9) - суммы НДС [00:07:29] 1010 (1) - 12% - код ставки НДС [00:07:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 2% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 3% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 5% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 0,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1007 (9) - суммы НСП [00:07:29] 1014 (1) - 1,50% - код ставки НСП [00:07:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:29] 1133 (588) - - счетчики коррекции - не используются [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1194 (04AA) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1134 (046E) [00:07:29]Malloc new data [00:07:29]Processing tag 1129 (0469) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1135 (046F) [00:07:29]Malloc new data [00:07:29]Processing tag 1201 (04B1) [00:07:29]Malloc new data [00:07:29]Processing tag 1136 (0470) [00:07:29]Malloc new data [00:07:29]Processing tag 1138 (0472) [00:07:29]Malloc new data [00:07:29]Processing tag 1024 (0400) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]SetTLVBufToDocument err=0 [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1130 (046A) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1135 (046F) [00:07:29]Malloc new data [00:07:29]Processing tag 1201 (04B1) [00:07:29]Malloc new data [00:07:29]Processing tag 1136 (0470) [00:07:29]Malloc new data [00:07:29]Processing tag 1138 (0472) [00:07:29]Malloc new data [00:07:29]Processing tag 1024 (0400) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]SetTLVBufToDocument err=0 [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1131 (046B) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1135 (046F) [00:07:29]Malloc new data [00:07:29]Processing tag 1201 (04B1) [00:07:29]Malloc new data [00:07:29]Processing tag 1136 (0470) [00:07:29]Malloc new data [00:07:29]Processing tag 1138 (0472) [00:07:29]Malloc new data [00:07:29]Processing tag 1024 (0400) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1006 (03EE) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1010 (03F2) [00:07:29]Malloc new data [00:07:29]Processing tag 1011 (03F3) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]Processing tag 1007 (03EF) [00:07:29]Load OK [00:07:29]SetTLVBufToDocument [00:07:29]Processing tag 1014 (03F6) [00:07:29]Malloc new data [00:07:29]Processing tag 1015 (03F7) [00:07:29]Malloc new data [00:07:29]SetTLVBufToDocument err=0 [00:07:29]SetTLVBufToDocument err=0 [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1132 (046C) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1135 (046F) [00:07:30]Malloc new data [00:07:30]Processing tag 1201 (04B1) [00:07:30]Malloc new data [00:07:30]Processing tag 1136 (0470) [00:07:30]Malloc new data [00:07:30]Processing tag 1138 (0472) [00:07:30]Malloc new data [00:07:30]Processing tag 1024 (0400) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1006 (03EE) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1010 (03F2) [00:07:30]Malloc new data [00:07:30]Processing tag 1011 (03F3) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1006 (03EE) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1010 (03F2) [00:07:30]Malloc new data [00:07:30]Processing tag 1011 (03F3) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1007 (03EF) [00:07:30]Load OK [00:07:30]SetTLVBufToDocument [00:07:30]Processing tag 1014 (03F6) [00:07:30]Malloc new data [00:07:30]Processing tag 1015 (03F7) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]SetTLVBufToDocument err=0 [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Processing tag 1133 (046D) [00:07:30]Malloc new data [00:07:30]SetTLVBufToDocument err=0 [00:07:30]SetTLVBufToDocument err=0 [00:07:30]Malloc new data [00:07:30]SAM_PROTO_GetFMData [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 13 03 00 [00:07:30]Write to MH i2c: E2 08 00 80 88 80 13 OFD Sender: No OFD packet to send [00:07:30]03 00 00 00 00 00 87 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 80 88 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 D3 [00:07:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 81 88 80 17 00 00 00 00 00 00 89 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 81 88 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 E6 [00:07:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 82 88 80 17 00 00 00 00 00 00 8A [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 82 88 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 9C [00:07:32]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 83 88 80 17 00 00 00 00 00 00 8B [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 83 88 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [00:07:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 84 88 80 17 00 00 00 00 00 00 8C [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 E2 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 E2 00 84 88 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6A [00:07:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:07:33]wFMCommunicate OK [00:07:33]SAM_PROTO_GetFMData done [00:07:33]FM_GetFMData:85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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:07:34]oper:6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:34]total:2E D2 4B 3A 04 [00:07:34]Malloc new data [00:07:34]oper:6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:34]total:8C D8 05 18 [00:07:34]Malloc new data [00:07:34]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:07:34]total: [00:07:34]Malloc new data [00:07:34]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:07:34]total: [00:07:34]Malloc new data [00:07:34]KKMPrepareXReportFMData err=0 [00:07:34]Х отчет ИНН: 02508201610067 Кассир: Асанбаев Н. 19.06.2024 00:07 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 252 ИТОГИ ПРИХОД Чеков: 249 Общий итог: 384975.02 Итого наличными: 217748.00 Итого безнал.: 167227.02 НДС 0% : 0.00 НДС 12% : 40890.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3407.23 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 7375.00 Итого наличными: 7375.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 783.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 65.27 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 210373.00 НС Приход: 181579167.18 НС Возвр.Прихода: 4030363.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [00:07:34]StoreToDocumentArchive [00:07:34]MH_GetDate [00:07:34]Write to MH i2c: F0 00 00 85 88 FC [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: F0 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: F0 09 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: F0 09 00 85 88 00 50 21 72 66 BD 8F 7C 64 7A [00:07:34]shift 266 fd 1718755664 [00:07:34]Create dir for shift 0266 [00:07:34]save to /storage/0266/doc_1718755664 [00:07:34]save last doc name /storage/0266/doc_1718755664 to /storage/kkm_last_doc_name [00:07:34]save OK [00:07:34]Clear old archive folders... [00:07:34]NVStorageSaveData kkm_last_timestamp [00:07:34]File name is /storage/kkm_last_timestamp [00:07:34]Write 4 bytes [00:07:34]NVStorageSaveData done [00:07:34]ExternCall_PrintAddStr [00:07:34]wPrintStart [00:07:34]Write to MH i2c: 01 00 00 86 88 0E [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: 01 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: 01 07 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: 01 07 00 86 88 00 00 00 00 00 FF 0F 23 [00:07:34]RasterBufferAndPrint [00:07:34]line Х отчет [00:07:34]line ИНН: 02508201610067 [00:07:34]line Кассир: Асанбаев Н. [00:07:34]line 19.06.2024 00:07 [00:07:34]line Смена: 266 [00:07:34]line РНМ: 0000000000092785 [00:07:34]line ЗНМ: 0300000164 [00:07:34]line СНО: Общий режим [00:07:34]line Всего чеков: 252 [00:07:34]line ИТОГИ ПРИХОД [00:07:34]line Чеков: 249 [00:07:34]line Общий итог: 384975.02 [00:07:34]line Итого наличными: 217748.00 [00:07:34]line Итого безнал.: 167227.02 [00:07:34]line НДС 0% : 0.00 [00:07:34]line НДС 12% : 40890.72 [00:07:34]line НСП 0% : 0.00 [00:07:34]line НСП 1,50% : 0.00 [00:07:34]line НСП 0,50% : 0.00 [00:07:34]line НСП 5% : 0.00 [00:07:34]line НСП 3% : 0.00 [00:07:34]line НСП 2% : 0.00 [00:07:34]line НСП 1% : 3407.23 [00:07:34]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:34]line Чеков: 3 [00:07:34]line Общий итог: 7375.00 [00:07:34]line Итого наличными: 7375.00 [00:07:34]line Итого безнал.: 0.00 [00:07:34]line НДС 0% : 0.00 [00:07:34]line НДС 12% : 783.30 [00:07:34]line НСП 0% : 0.00 [00:07:34]line НСП 1,50% : 0.00 [00:07:34]line НСП 0,50% : 0.00 [00:07:34]line НСП 5% : 0.00 [00:07:34]line НСП 3% : 0.00 [00:07:34]line НСП 2% : 0.00 [00:07:34]line НСП 1% : 65.27 [00:07:34]line ИТОГИ РАСХОД [00:07:34]line Чеков: 0 [00:07:34]line Общий итог: 0.00 [00:07:34]line Итого наличными: 0.00 [00:07:34]line Итого безнал.: 0.00 [00:07:34]line НДС 0% : 0.00 [00:07:34]line НДС 12% : 0.00 [00:07:34]line НСП 0% : 0.00 [00:07:34]line НСП 1,50% : 0.00 [00:07:34]line НСП 0,50% : 0.00 [00:07:34]line НСП 5% : 0.00 [00:07:34]line НСП 3% : 0.00 [00:07:34]line НСП 2% : 0.00 [00:07:34]line НСП 1% : 0.00 [00:07:34]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:34]line Чеков: 0 [00:07:34]line Общий итог: 0.00 [00:07:34]line Итого наличными: 0.00 [00:07:34]line Итого безнал.: 0.00 [00:07:34]line НДС 0% : 0.00 [00:07:34]line НДС 12% : 0.00 [00:07:34]line НСП 0% : 0.00 [00:07:34]line НСП 1,50% : 0.00 [00:07:34]line НСП 0,50% : 0.00 [00:07:34]line НСП 5% : 0.00 [00:07:34]line НСП 3% : 0.00 [00:07:34]line НСП 2% : 0.00 [00:07:34]line НСП 1% : 0.00 [00:07:34]line Сумма внесений: 0.00 [00:07:34]line Сумма выплат: 0.00 [00:07:34]line Нал. в кассе: 210373.00 [00:07:34]line НС Приход: 181579167.18 [00:07:34]line НС Возвр.Прихода: 4030363.00 [00:07:34]line НС Расход: 0.00 [00:07:34]line НС Возвр.Расхода: 0.00 [00:07:34]line ФМ: 0000000000875093 [00:07:34]written 0, free lines is 4095 [00:07:35]OFD Sender: No OFD packet to send [00:07:35]Write to MH i2c: 01 00 00 D1 88 59 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 07 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 07 00 D1 88 00 00 00 00 00 CC 0A 36 [00:07:35]RasterBufferAndPrint [00:07:35]line [00:07:35]line [00:07:35]line [00:07:35]line [00:07:35]line [00:07:35]written 0, free lines is 2807 [00:07:35]MH_Cut [00:07:35]Write to MH i2c: D1 01 00 D8 88 01 32 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: D1 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: D1 01 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: D1 01 00 D8 88 00 31 [00:07:35]Write to MH i2c: 01 00 00 D9 88 61 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:36]*** Cut start [00:07:36]*** Partial cut [00:07:36]*** CUTSNS_PIN = 1 [00:07:36]*** CUTSNS_PIN = 0 [00:07:36]*** Brake cut motor [00:07:37]Read from MH i2c: 01 [00:07:37]MH_I2C_Read... [00:07:37]*** Stop cut motor [00:07:37]*** Cut end [00:07:37]Read from MH i2c: 01 07 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: 01 07 00 D9 88 00 00 00 00 00 FF 0F 76 [00:07:37]process_action x_report done [00:07:37]requested_data is exist [00:07:37]produce_requested_data [00:07:37]requested_item fd.num is exist - process it [00:07:37]SAM_PROTO_GetFieldsCounters [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 00 00 [00:07:37]Write to MH i2c: E2 08 00 DA 88 80 13 00 00 00 00 00 00 DE [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 DA 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetFieldsCounters done [00:07:37]requested_item shift.num is exist - process it [00:07:37]requested_item shift.opened is exist - process it [00:07:37]req_shift_opened [00:07:37]FM_GetShiftState [00:07:37]SAM_PROTO_GetShiftState [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 01 00 [00:07:37]Write to MH i2c: E2 08 00 DB 88 80 13 01 00 00 00 00 00 E0 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 DB 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 61 [00:07:37]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetShiftState done [00:07:37]FM_GetShiftState done [00:07:37]req_shift_opened done [00:07:37]requested_item shift.open_date is exist - process it [00:07:37]req_shift_open_date [00:07:37]req_shift_open_date done [00:07:37]produce_requested_data done [00:07:37]produce_requested_data return {"fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [00:07:37]process_action_free x_report [00:07:37]json_value_free [00:07:37]json_value_free done [00:07:37]process_json_proto returns [00:07:37]Send response to host [00:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [00:07:37]free response buf [00:07:37]execute_script done [00:07:37]execute_script returns [00:07:37]free content buf [00:07:37]Sock 7.Close socket [00:07:37]Sock 7.Thread stoped [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:07:59]accept exits with 9 [00:07:59]New connection [00:07:59]New thread 3067084132 created [00:07:59]Thread 3067227492 joined [00:07:59]Waiting for new connection... [00:07:59] Sock 9.Parse request [00:07:59]Sock 9.Check first char [00:07:59]Sock 9.First char is OK [00:07:59]request: POST /json_proto HTTP/1.0 [00:07:59]Method: POST [00:07:59]URL: /json_proto [00:07:59]Method is POST - this is cgi request [00:07:59]url: /json_proto [00:07:59]query_string will be loaded in cgi processing [00:07:59]execute_cgi json_proto POST (null) [00:07:59]execute_cgi path=json_proto method=POST [00:07:59]POST find Content-Length [00:07:59]Host: 172.17.38.133:8080 [00:07:59]Content-Length: 215 [00:07:59]Content-Type: application/json [00:07:59] [00:07:59]POST finish read [00:07:59]Found Content-Length = 215 [00:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:59]execute_script... [00:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:59]POST & json_proto [00:07:59]process_json_proto [00:07:59]json parsed OK: [00:07:59]protocol is kg_v1.0 [00:07:59]action value=get_value [00:07:59]process_action get_value [00:07:59]cmd_get_value [00:07:59]process_action get_value done [00:07:59]requested_data is exist [00:07:59]produce_requested_data [00:07:59]requested_item kkm.sn is exist - process it [00:07:59]requested_item kkm.ver is exist - process it [00:07:59]requested_item fm.sn is exist - process it [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 11 00 00 [00:07:59]Write to MH i2c: E2 08 00 DC 88 80 11 00 00 00 00 00 00 DE [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 17 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 17 00 DC 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [00:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:07:59]wFMCommunicate OK [00:07:59]requested_item fd.num is exist - process it [00:07:59]SAM_PROTO_GetFieldsCounters [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 00 00 [00:07:59]Write to MH i2c: E2 08 00 DD 88 80 13 00 00 00 00 00 00 E1 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 62 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 62 00 DD 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [00:07: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFieldsCounters done [00:07:59]requested_item shift.num is exist - process it [00:07:59]requested_item shift.opened is exist - process it [00:07:59]req_shift_opened [00:07:59]FM_GetShiftState [00:07:59]SAM_PROTO_GetShiftState [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 01 00 [00:07:59]Write to MH i2c: E2 08 00 DE 88 80 13 01 00 00 00 00 00 E3 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 0E 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 0E 00 DE 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 64 [00:08:00]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:08:00]wFMCommunicate OK [00:08:00]SAM_PROTO_GetShiftState done [00:08:00]FM_GetShiftState done [00:08:00]req_shift_opened done [00:08:00]requested_item shift.open_date is exist - process it [00:08:00]req_shift_open_date [00:08:00]req_shift_open_date done [00:08:00]produce_requested_data done [00:08:00]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284} [00:08:00]process_action_free get_value [00:08:00]json_value_free [00:08:00]json_value_free done [00:08:00]process_json_proto returns [00:08:00]Send response to host [00:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103568,"shift.num":352,"shift.opened":1,"shift.open_date":1718670284}}} [00:08:00]free response buf [00:08:00]execute_script done [00:08:00]execute_script returns [00:08:00]free content buf [00:08:00]Sock 9.Close socket [00:08:00]Sock 9.Thread stoped [00:08:00]accept exits with 7 [00:08:00]New connection [00:08:00]New thread 3067227492 created [00:08:00]Thread 3067084132 joined [00:08:00]Waiting for new connection... [00:08:00] Sock 7.Parse request [00:08:00]Sock 7.Check first char [00:08:00]Sock 7.First char is OK [00:08:00]request: POST /json_proto HTTP/1.0 [00:08:00]Method: POST [00:08:00]URL: /json_proto [00:08:00]Method is POST - this is cgi request [00:08:00]url: /json_proto [00:08:00]query_string will be loaded in cgi processing [00:08:00]execute_cgi json_proto POST (null) [00:08:00]execute_cgi path=json_proto method=POST [00:08:00]POST find Content-Length [00:08:00]Host: 172.17.38.133:8080 [00:08:00]Content-Length: 331 [00:08:00]Content-Type: application/json [00:08:00] [00:08:00]POST finish read [00:08:00]Found Content-Length = 331 [00:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:00]execute_script... [00:08:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:00]POST & json_proto [00:08:00]process_json_proto [00:08:00]json parsed OK: [00:08:00]protocol is kg_v1.0 [00:08:00]action value=get_value [00:08:00]process_action get_value [00:08:00]cmd_get_value [00:08:00]process_action get_value done [00:08:00]requested_data is exist [00:08:00]produce_requested_data [00:08:00]requested_item fm.sale.total is exist - process it [00:08:00]SAM_PROTO_GetFMData [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 13 03 00 [00:08:00]Write to MH i2c: E2 08 00 DF 88 80 13 03 00 00 00 00 00 E6 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 DF 88 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 OFD Sender: No OFD packet to send [00:08:00]03 04 00 EC 1F 8D 02 EF 03 09 90 00 32 [00:08:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 E0 88 80 17 00 00 00 00 00 00 E8 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 E0 88 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 45 [00:08:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 E1 88 80 17 00 00 00 00 00 00 E9 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 E1 88 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 FB [00:08:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 E2 88 80 17 00 00 00 00 00 00 EA [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 E2 88 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:08:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 E3 88 80 17 00 00 00 00 00 00 EB [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 E2 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 E2 00 E3 88 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:08:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_GetFMData done [00:08:02]requested_item fm.sale_refund.total is exist - process it [00:08:02]requested_item fm.buy.total is exist - process it [00:08:02]requested_item shift.sale.total is exist - process it [00:08:02]SAM_PROTO_GetShiftData [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 13 02 00 [00:08:02]Write to MH i2c: E2 08 00 E4 88 80 13 02 00 00 00 00 00 EA [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 E4 88 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 59 [00:08:03]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 E5 88 80 17 00 00 00 00 00 00 ED [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 E5 88 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 2F [00:08:03]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 E6 88 80 17 00 00 00 00 00 00 EE [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 E6 88 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 17 [00:08:04]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 E7 88 80 17 00 00 00 00 00 00 EF [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 E7 88 00 03 00 00 EF 03 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 90 00 70 [00:08:04]RAPDU: 03 00 00 EF 03 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 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 E8 88 80 17 00 00 00 00 00 00 F0 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 D9 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 D9 00 E8 88 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:08:05]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetShiftData done [00:08:05]requested_item shift.sale.total_cash is exist - process it [00:08:05]requested_item shift.sale_refund.total is exist - process it [00:08:05]requested_item shift.sale_refund.total_cash is exist - process it [00:08:05]requested_item shift.buy.total is exist - process it [00:08:05]requested_item shift.buy.total_cash is exist - process it [00:08:05]produce_requested_data done [00:08:05]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:05]process_action_free get_value [00:08:05]json_value_free [00:08:05]json_value_free done [00:08:05]process_json_proto returns [00:08:05]Send response to host [00:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:05]free response buf [00:08:05]execute_script done [00:08:05]execute_script returns [00:08:05]free content buf [00:08:05]Sock 7.Close socket [00:08:05]Sock 7.Thread stoped [00:08:05]accept exits with 9 [00:08:05]New connection [00:08:05]New thread 3067084132 created [00:08:05]Thread 3067227492 joined [00:08:05]Waiting for new connection... [00:08:05] Sock 9.Parse request [00:08:05]Sock 9.Check first char [00:08:05]Sock 9.First char is OK [00:08:05]request: POST /json_proto HTTP/1.0 [00:08:05]Method: POST [00:08:05]URL: /json_proto [00:08:05]Method is POST - this is cgi request [00:08:05]url: /json_proto [00:08:05]query_string will be loaded in cgi processing [00:08:05]execute_cgi json_proto POST (null) [00:08:05]execute_cgi path=json_proto method=POST [00:08:05]POST find Content-Length [00:08:05]Host: 172.17.38.133:8080 [00:08:05]Content-Length: 331 [00:08:05]Content-Type: application/json [00:08:05] [00:08:05]POST finish read [00:08:05]Found Content-Length = 331 [00:08: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" ] } } [00:08:05]execute_script... [00:08: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" ] } } [00:08:05]POST & json_proto [00:08:05]process_json_proto [00:08:05]json parsed OK: [00:08:05]protocol is kg_v1.0 [00:08:05]action value=get_value [00:08:05]process_action get_value [00:08:05]cmd_get_value [00:08:05]process_action get_value done [00:08:05]requested_data is exist [00:08:05]produce_requested_data [00:08:05]requested_item fm.sale.total is exist - process it [00:08:05]SAM_PROTO_GetFMData [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 13 03 00 [00:08:05]Write to MH i2c: E2 08 00 E9 88 80 13 03 00 00 00 00 00 F0 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]OFD Sender: No OFD packet to send [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 E9 88 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 3C [00:08:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 EA 88 80 17 00 00 00 00 00 00 F2 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 EA 88 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 4F [00:08:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 EB 88 80 17 00 00 00 00 00 00 F3 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 EB 88 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 05 [00:08:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 EC 88 80 17 00 00 00 00 00 00 F4 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 EC 88 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [00:08:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 ED 88 80 17 00 00 00 00 00 00 F5 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 E2 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 E2 00 ED 88 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:08:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:08]wFMCommunicate OK [00:08:08]SAM_PROTO_GetFMData done [00:08:08]requested_item fm.sale_refund.total is exist - process it [00:08:08]requested_item fm.buy.total is exist - process it [00:08:08]requested_item shift.sale.total is exist - process it [00:08:08]SAM_PROTO_GetShiftData [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 13 02 00 [00:08:08]Write to MH i2c: E2 08 00 EE 88 80 13 02 00 00 00 00 00 F4 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 EE 88 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 63 [00:08:09]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 EF 88 80 17 00 00 00 00 00 00 F7 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 EF 88 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 39 [00:08:09]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 F0 88 80 17 00 00 00 00 00 00 F8 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 F0 88 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 21 [00:08:10]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 F1 88 80 17 00 00 00 00 00 00 F9 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 F1 88 00 03 00 00 EF 03 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 90 00 7A [00:08:10]RAPDU: 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:08:11]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 17 00 00 [00:08:11]Write to MH i2c: E2 08 00 F2 88 80 17 00 00 00 00 00 00 FA [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 D9 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 D9 00 F2 88 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [00:08:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetShiftData done [00:08:11]requested_item shift.sale.total_cash is exist - process it [00:08:11]requested_item shift.sale_refund.total is exist - process it [00:08:11]requested_item shift.sale_refund.total_cash is exist - process it [00:08:11]requested_item shift.buy.total is exist - process it [00:08:11]requested_item shift.buy.total_cash is exist - process it [00:08:11]produce_requested_data done [00:08:11]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:11]process_action_free get_value [00:08:11]json_value_free [00:08:11]json_value_free done [00:08:11]process_json_proto returns [00:08:11]Send response to host [00:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:11]free response buf [00:08:11]execute_script done [00:08:11]execute_script returns [00:08:11]free content buf [00:08:11]Sock 9.Close socket [00:08:11]Sock 9.Thread stoped [00:08:11]accept exits with 7 [00:08:11]New connection [00:08:11]New thread 3067227492 created [00:08:11]Thread 3067084132 joined [00:08:11]Waiting for new connection... [00:08:11] Sock 7.Parse request [00:08:11]Sock 7.Check first char [00:08:11]Sock 7.First char is OK [00:08:11]request: POST /json_proto HTTP/1.0 [00:08:11]Method: POST [00:08:11]URL: /json_proto [00:08:11]Method is POST - this is cgi request [00:08:11]url: /json_proto [00:08:11]query_string will be loaded in cgi processing [00:08:11]execute_cgi json_proto POST (null) [00:08:11]execute_cgi path=json_proto method=POST [00:08:11]POST find Content-Length [00:08:11]Host: 172.17.38.133:8080 [00:08:11]Content-Length: 260 [00:08:11]Content-Type: application/json [00:08:11] [00:08:11]POST finish read [00:08:11]Found Content-Length = 260 [00:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:11]execute_script... [00:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:11]POST & json_proto [00:08:11]process_json_proto [00:08:11]json parsed OK: [00:08:11]protocol is kg_v1.0 [00:08:11]action value=close_shift [00:08:11]process_action close_shift [00:08:11]cmd_close_shift [00:08:11]MH_GetDate [00:08:11]Write to MH i2c: F0 00 00 F3 88 6A [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 09 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 09 00 F3 88 00 75 21 72 66 BD 8F 7C 64 0D [00:08:11]GetLastDocTimeStamp 1718755655 [00:08:11]current date 1718755701 [00:08:11]FM_GetShiftState [00:08:11]SAM_PROTO_GetShiftState [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 13 01 00 [00:08:11]Write to MH i2c: E2 08 00 F4 88 80 13 01 00 00 00 00 00 F9 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0E 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0E 00 F4 88 00 09 00 01 CC D3 70 66 00 00 00 00 90 00 7A [00:08:11]RAPDU: 09 00 01 CC D3 70 66 00 00 00 00 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetShiftState done [00:08:11]FM_GetShiftState done [00:08:11]KKMCreateCloseShiftDocument [00:08:11]Load OK [00:08:11]Malloc new data [00:08:11]MH_GetDate [00:08:11]Write to MH i2c: F0 00 00 F5 88 6C [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 09 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: F0 09 00 F5 88 00 75 21 72 66 BD 8F 7C 64 0F [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]KKMCreateCloseShiftDocument OK [00:08:11]KKMSetCloseShiftData OK [00:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:08:11]tlvbuf is 0132CAD0 [00:08:11]KKMLoadAndSignCloseShiftData [00:08:11]SAM_PROTO_ProcessDocument [00:08:11]wFMCommunicate request_size=9 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 15 01 00 04 05 00 47 00 [00:08:11]Write to MH i2c: E2 0C 00 F6 88 80 15 01 00 04 00 05 00 47 00 00 00 51 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 F6 88 00 90 00 F2 [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=23 [00:08:12]MH_SAM_APDU [00:08:12]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:08:12]Write to MH i2c: E2 1A 00 F7 88 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 F4 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 F7 88 00 90 00 F3 [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=30 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:08:12]Write to MH i2c: E2 21 00 F8 88 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 E9 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 F8 88 00 90 00 F4 [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=13 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 15 02 00 08 F4 03 04 00 75 21 72 66 [00:08:12]Write to MH i2c: E2 10 00 F9 88 80 15 02 00 08 00 F4 03 04 00 75 21 72 66 00 00 7A [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 F9 88 00 90 00 F5 [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=25 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:08:12]Write to MH i2c: E2 1C 00 FA 88 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 6A [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 FA 88 00 90 00 F6 [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 15 03 00 [00:08:12]Write to MH i2c: E2 08 00 FB 88 80 15 03 00 00 00 00 00 04 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 FB 88 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 90 00 60 [00:08:13]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 90 00 [00:08:13]wFMCommunicate OK [00:08:13]SAM_PROTO_ProcessDocument answer len = 1279 [00:08:13]SAM_PROTO_ProcessDocument remain to read = 1031 [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 FC 88 80 17 00 00 00 00 00 00 04 [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 FC 88 00 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 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 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 13 [00:08:13]RAPDU: 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 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 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:08:14]wFMCommunicate OK [00:08:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:14]SAM_PROTO_ProcessDocument remain to read = 781 [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 FD 88 80 17 00 00 00 00 00 00 05 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 FD 88 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 6B [00:08:14]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:08:14]wFMCommunicate OK [00:08:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:14]SAM_PROTO_ProcessDocument remain to read = 531 [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 FE 88 80 17 00 00 00 00 00 00 06 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 FE 88 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [00:08:15]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:15]wFMCommunicate OK [00:08:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:15]SAM_PROTO_ProcessDocument remain to read = 281 [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 FF 88 80 17 00 00 00 00 00 00 07 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 FF 88 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 B3 [00:08:15]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:08:15]wFMCommunicate OK [00:08:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:15]SAM_PROTO_ProcessDocument remain to read = 31 [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 00 89 80 17 00 00 00 00 00 00 09 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 22 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 22 00 00 89 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FC 05 27 6C 71 DE 90 00 36 [00:08:16]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 FC 05 27 6C 71 DE 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:08:16]SAM_PROTO_ProcessDocument done [00:08:16]1209 (1) - 1.0 - номер версии ФФД [00:08:16]1041 (16) - 0000000000875093 - номер ФМ [00:08:16]1040 (4) - 103569 - номер ФД [00:08:16]1038 (4) - 352 - номер смены [00:08:16]1118 (4) - 252 - количество кассовых чеков за смену [00:08:16]1111 (4) - 254 - общее количество ФД за смену [00:08:16]1194 (1208) - счетчики итогов смены [00:08:16] 1134 (4) - 252 - количество чеков со всеми признаками расчетов [00:08:16] 1129 (158) - счетчики операций «приход» [00:08:16] 1135 (4) - 249 - количество чеков по признаку расчетов [00:08:16] 1201 (4) - 384975.02 - общая итоговая сумма в чеках [00:08:16] 1136 (4) - 217748.00 - итоговая сумма в чеках наличными [00:08:16] 1138 (3) - 167227.02 - итоговая сумма в чеках безналичными [00:08:16] 1024 (123) - суммы налогов [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 0% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] OFD Sender: No OFD packet to send [00:08:16] 1006 (12) - суммы НДС [00:08:16] 1010 (1) - 12% - код ставки НДС [00:08:16] 1011 (3) - 40890.72 - сумма НДС по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (12) - суммы НСП [00:08:16] 1014 (1) - 1% - код ставки НСП [00:08:16] 1015 (3) - 3407.23 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 2% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 3% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 5% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1130 (152) - счетчики операций «возврат прихода» [00:08:16] 1135 (4) - 3 - количество чеков по признаку расчетов [00:08:16] 1201 (3) - 7375.00 - общая итоговая сумма в чеках [00:08:16] 1136 (3) - 7375.00 - итоговая сумма в чеках наличными [00:08:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:16] 1024 (122) - суммы налогов [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 0% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] 1006 (12) - суммы НДС [00:08:16] 1010 (1) - 12% - код ставки НДС [00:08:16] 1011 (3) - 783.30 - сумма НДС по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (11) - суммы НСП [00:08:16] 1014 (1) - 1% - код ставки НСП [00:08:16] 1015 (2) - 65.27 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 2% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 3% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 5% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1131 (141) - счетчики операций «расход» [00:08:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:16] 1024 (117) - суммы налогов [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 0% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 12% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 2% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 3% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 5% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1132 (141) - счетчики операций «возврат расхода» [00:08:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:16] 1024 (117) - суммы налогов [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 0% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] 1006 (9) - суммы НДС [00:08:16] 1010 (1) - 12% - код ставки НДС [00:08:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 2% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 3% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 5% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 0,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1007 (9) - суммы НСП [00:08:16] 1014 (1) - 1,50% - код ставки НСП [00:08:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:16] 1133 (588) - - счетчики коррекции - не используются [00:08:16]1077 (6) - 277099066454494 - ФПД [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1209 (04B9) [00:08:16]Malloc new data [00:08:16]Processing tag 1041 (0411) [00:08:16]Processing tag 1040 (0410) [00:08:16]Malloc new data [00:08:16]Processing tag 1038 (040E) [00:08:16]Malloc new data [00:08:16]Processing tag 1118 (045E) [00:08:16]Malloc new data [00:08:16]Processing tag 1111 (0457) [00:08:16]Malloc new data [00:08:16]Processing tag 1194 (04AA) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1134 (046E) [00:08:16]Malloc new data [00:08:16]Processing tag 1129 (0469) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1135 (046F) [00:08:16]Malloc new data [00:08:16]Processing tag 1201 (04B1) [00:08:16]Malloc new data [00:08:16]Processing tag 1136 (0470) [00:08:16]Malloc new data [00:08:16]Processing tag 1138 (0472) [00:08:16]Malloc new data [00:08:16]Processing tag 1024 (0400) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]SetTLVBufToDocument err=0 [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1130 (046A) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1135 (046F) [00:08:16]Malloc new data [00:08:16]Processing tag 1201 (04B1) [00:08:16]Malloc new data [00:08:16]Processing tag 1136 (0470) [00:08:16]Malloc new data [00:08:16]Processing tag 1138 (0472) [00:08:16]Malloc new data [00:08:16]Processing tag 1024 (0400) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]SetTLVBufToDocument err=0 [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1131 (046B) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1135 (046F) [00:08:16]Malloc new data [00:08:16]Processing tag 1201 (04B1) [00:08:16]Malloc new data [00:08:16]Processing tag 1136 (0470) [00:08:16]Malloc new data [00:08:16]Processing tag 1138 (0472) [00:08:16]Malloc new data [00:08:16]Processing tag 1024 (0400) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1006 (03EE) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1010 (03F2) [00:08:16]Malloc new data [00:08:16]Processing tag 1011 (03F3) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]Processing tag 1007 (03EF) [00:08:16]Load OK [00:08:16]SetTLVBufToDocument [00:08:16]Processing tag 1014 (03F6) [00:08:16]Malloc new data [00:08:16]Processing tag 1015 (03F7) [00:08:16]Malloc new data [00:08:16]SetTLVBufToDocument err=0 [00:08:16]SetTLVBufToDocument err=0 [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1132 (046C) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1135 (046F) [00:08:17]Malloc new data [00:08:17]Processing tag 1201 (04B1) [00:08:17]Malloc new data [00:08:17]Processing tag 1136 (0470) [00:08:17]Malloc new data [00:08:17]Processing tag 1138 (0472) [00:08:17]Malloc new data [00:08:17]Processing tag 1024 (0400) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1006 (03EE) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1010 (03F2) [00:08:17]Malloc new data [00:08:17]Processing tag 1011 (03F3) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1006 (03EE) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1010 (03F2) [00:08:17]Malloc new data [00:08:17]Processing tag 1011 (03F3) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1007 (03EF) [00:08:17]Load OK [00:08:17]SetTLVBufToDocument [00:08:17]Processing tag 1014 (03F6) [00:08:17]Malloc new data [00:08:17]Processing tag 1015 (03F7) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]SetTLVBufToDocument err=0 [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1133 (046D) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Processing tag 1077 (0435) [00:08:17]Malloc new data [00:08:17]SetTLVBufToDocument err=0 [00:08:17]Malloc new data [00:08:17]SAM_PROTO_GetFMData [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 13 03 00 [00:08:17]Write to MH i2c: E2 08 00 01 89 80 13 03 00 00 00 00 00 09 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 01 89 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 55 [00:08:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 02 89 80 17 00 00 00 00 00 00 0B [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 02 89 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 68 [00:08:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 03 89 80 17 00 00 00 00 00 00 0C [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 03 89 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1E [00:08:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:19]wFMCommunicate OK [00:08:19]wFMCommunicate request_size=4 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 17 00 00 [00:08:19]Write to MH i2c: E2 08 00 04 89 80 17 00 00 00 00 00 00 0D [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 04 89 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:08:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 17 00 00 [00:08:20]Write to MH i2c: E2 08 00 05 89 80 17 00 00 00 00 00 00 0E [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 E2 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 E2 00 05 89 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:08:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:08:20]wFMCommunicate OK [00:08:20]SAM_PROTO_GetFMData done [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]KKMLoadAndSignCloseShiftData err=0 [00:08:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асанбаев Н. 19.06.2024 00:08 Смена: 352 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Чеков за смену: 252 ФД за смену: 254 Всего чеков: 252 ИТОГИ ПРИХОД Чеков: 249 Общий итог: 384975.02 Итого наличными: 217748.00 Итого безнал.: 167227.02 НДС 0% : 0.00 НДС 12% : 40890.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3407.23 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 7375.00 Итого наличными: 7375.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 783.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 65.27 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 210373.00 НС Приход: 181579167.18 НС Возвр.Прихода: 4030363.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 103569 ФМ: 0000000000875093 ФПД: 277099066454494 [00:08:20]StoreToDocumentArchive [00:08:20]shift 352 fd 103569 [00:08:20]save to /storage/0352/doc_00103569 [00:08:20]save last doc name /storage/0352/doc_00103569 to /storage/kkm_last_doc_name [00:08:20]save OK [00:08:20]Clear old archive folders... [00:08:20]Remove dir /storage/0266 [00:08:20]opendir ok [00:08:20]file . [00:08:20]file .. [00:08:20]file doc_1718755664 [00:08:20]remove file /storage/0266/doc_1718755664 [00:08:20]remove dir /storage/0266 [00:08:20]NVStorageSaveData kkm_registers [00:08:20]File name is /storage/kkm_registers [00:08:20]Write 24 bytes [00:08:20]NVStorageSaveData done [00:08:20]NVStorageSaveData kkm_registers [00:08:20]File name is /storage/kkm_registers [00:08:20]Write 24 bytes [00:08:20]NVStorageSaveData done [00:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:08:20]tlvbuf is 01636FF0 [00:08:20]SAM_PROTO_ClearQueue [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 09 00 00 [00:08:21]Write to MH i2c: E2 08 00 06 89 80 09 00 00 00 00 00 00 01 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 06 89 00 90 00 03 [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_ClearQueue done [00:08:21]KKMCreateOFDPacket [00:08:21]OFDProtocolAddRootSTLVToBuf [00:08:21]FM_MakeSignedData [00:08:21]FM_MakeSignedData [00:08:21]SAM_PROTO_SignData [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 0D 01 02 [00:08:21]Write to MH i2c: E2 08 00 07 89 80 0D 01 02 00 00 00 00 09 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 07 89 00 90 00 04 [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=255 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 0D 02 02 FA 05 00 6D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 75 OFD Sender: No OFD packet to send [00:08:21]21 72 66 0E 04 04 00 60 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 DF 04 6E 04 04 00 FC 00 00 00 69 04 A5 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 64 3E 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 [00:08:21]Write to MH i2c: E2 02 01 08 89 80 0D 02 02 FA 00 05 00 6D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 75 21 72 66 0E 04 04 00 60 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 DF 04 6E 04 04 00 FC 00 00 00 69 04 A5 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 64 3E 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 00 00 B2 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 08 89 00 90 00 05 [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=255 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F3 32 05 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 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 [00:08:22]Write to MH i2c: E2 02 01 09 89 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F3 32 05 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 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 00 00 D2 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 03 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 03 00 09 89 00 90 00 06 [00:08:22]RAPDU: 90 00 [00:08:22]wFMCommunicate OK [00:08:22]wFMCommunicate request_size=255 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 0D 02 02 FA 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 [00:08:22]Write to MH i2c: E2 02 01 0A 89 80 0D 02 02 FA 00 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 00 00 C5 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 0A 89 00 90 00 07 [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=255 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 [00:08:23]Write to MH i2c: E2 02 01 0B 89 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 00 00 E5 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 03 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 03 00 0B 89 00 90 00 08 [00:08:24]RAPDU: 90 00 [00:08:24]wFMCommunicate OK [00:08:24]wFMCommunicate request_size=255 [00:08:24]MH_SAM_APDU [00:08:24]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [00:08:24]Write to MH i2c: E2 02 01 0C 89 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 9F [00:08:24]Write i2c OK [00:08:24]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 03 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 03 00 0C 89 00 90 00 09 [00:08:25]RAPDU: 90 00 [00:08:25]wFMCommunicate OK [00:08:25]wFMCommunicate request_size=148 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 FC 05 27 6C 71 DE [00:08:25]Write to MH i2c: E2 97 00 0D 89 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 FC 05 27 6C 71 DE 00 00 58 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 03 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 03 00 0D 89 00 90 00 0A [00:08:25]RAPDU: 90 00 [00:08:25]wFMCommunicate OK [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 0D 03 02 [00:08:25]Write to MH i2c: E2 08 00 0E 89 80 0D 03 02 00 00 00 00 12 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0B 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0B 00 0E 89 00 D7 EC EB F5 51 31 7B D1 90 00 84 [00:08:25]RAPDU: D7 EC EB F5 51 31 7B D1 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_SignData done [00:08:25]FM_MakeSignedData done [00:08:25]CreateOFDProtocolMessage [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 11 00 00 [00:08:25]Write to MH i2c: E2 08 00 0F 89 80 11 00 00 00 00 00 00 12 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 17 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 17 00 0F 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [00:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:08:25]wFMCommunicate OK [00:08:25]CreateOFDProtocolMessage done [00:08:25]OFDSenderStorePacket 103569 [00:08:25]StoreOFDPacket docnum=103569 [00:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 81 05 00 00 7F 11 79 05 A5 15 5A 05 01 00 05 00 6D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 75 21 72 66 0E 04 04 00 60 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 DF 04 6E 04 04 00 FC 00 00 00 69 04 A5 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 64 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F3 32 05 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 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 91 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 FC 05 27 6C 71 DE D7 EC EB F5 51 31 7B D1 [00:08:26]CheckFolder [00:08:26]dirname=/storage/ofd_packets [00:08:26]CheckFolder done [00:08:26]ProducePacketName [00:08:26]name=ofd_packets/00103569 [00:08:26]NVStorageSaveData ofd_packets/00103569 [00:08:26]File name is /storage/ofd_packets/00103569 [00:08:26]Write 1439 bytes [00:08:26]NVStorageSaveData done [00:08:26]OFDSenderStorePacket done [00:08:26]KKMCreateOFDPacket done [00:08:26]NVStorageSaveData kkm_last_timestamp [00:08:26]File name is /storage/kkm_last_timestamp [00:08:26]Write 4 bytes [00:08:26]NVStorageSaveData done [00:08:26]ExternCall_PrintAddStr [00:08:26]wPrintStart [00:08:26]Write to MH i2c: 01 00 00 10 89 99 [00:08:26]OFD Sender: Processing packet 103569 [packets to send 17, broken 16] [00:08:26]ProducePacketName [00:08:26]name=ofd_packets/00103569 [00:08:26]OFD Sender: To server: pG, [00:08:26]CommunicateWithHost lk.salyk.kg:30040 [00:08:26]ConnectInit lk.salyk.kg [00:08:26]Write i2c OK [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: 01 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: 01 07 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: 01 07 00 10 89 00 00 00 00 00 FF 0F AE [00:08:26]RasterBufferAndPrint [00:08:26]line Отчет о закрытии смены [00:08:26]line ФФД: 1.0 [00:08:26]line ИНН: 02508201610067 [00:08:26]line Кассир: Асанбаев Н. [00:08:26]line 19.06.2024 00:08 [00:08:26]line Смена: 352 [00:08:26]line РНМ: 0000000000092785 [00:08:26]line ЗНМ: 0300000164 [00:08:26]line СНО: Общий режим [00:08:26]line Чеков за смену: 252 [00:08:26]line ФД за смену: 254 [00:08:26]line Всего чеков: 252 [00:08:26]line ИТОГИ ПРИХОД [00:08:26]line Чеков: 249 [00:08:26]line Общий итог: 384975.02 [00:08:26]line Итого наличными: 217748.00 [00:08:26]line Итого безнал.: 167227.02 [00:08:26]line НДС 0% : 0.00 [00:08:26]line НДС 12% : 40890.72 [00:08:26]line НСП 0% : 0.00 [00:08:26]line НСП 1,50% : 0.00 [00:08:26]line НСП 0,50% : 0.00 [00:08:26]line НСП 5% : 0.00 [00:08:26]line НСП 3% : 0.00 [00:08:26]line НСП 2% : 0.00 [00:08:26]line НСП 1% : 3407.23 [00:08:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:26]line Чеков: 3 [00:08:26]line Общий итог: 7375.00 [00:08:26]line Итого наличными: 7375.00 [00:08:26]line Итого безнал.: 0.00 [00:08:26]line НДС 0% : 0.00 [00:08:26]line НДС 12% : 783.30 [00:08:26]line НСП 0% : 0.00 [00:08:26]line НСП 1,50% : 0.00 [00:08:26]line НСП 0,50% : 0.00 [00:08:26]line НСП 5% : 0.00 [00:08:26]line НСП 3% : 0.00 [00:08:26]line НСП 2% : 0.00 [00:08:26]line НСП 1% : 65.27 [00:08:26]line ИТОГИ РАСХОД [00:08:26]line Чеков: 0 [00:08:26]line Общий итог: 0.00 [00:08:26]line Итого наличными: 0.00 [00:08:26]line Итого безнал.: 0.00 [00:08:26]line НДС 0% : 0.00 [00:08:26]line НДС 12% : 0.00 [00:08:26]line НСП 0% : 0.00 [00:08:26]line НСП 1,50% : 0.00 [00:08:26]line НСП 0,50% : 0.00 [00:08:26]line НСП 5% : 0.00 [00:08:26]line НСП 3% : 0.00 [00:08:26]line НСП 2% : 0.00 [00:08:26]line НСП 1% : 0.00 [00:08:26]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:26]line Чеков: 0 [00:08:26]line Общий итог: 0.00 [00:08:26]line Итого наличными: 0.00 [00:08:26]line Итого безнал.: 0.00 [00:08:26]line НДС 0% : 0.00 [00:08:26]line НДС 12% : 0.00 [00:08:26]line НСП 0% : 0.00 [00:08:26]line НСП 1,50% : 0.00 [00:08:26]line НСП 0,50% : 0.00 [00:08:26]line НСП 5% : 0.00 [00:08:26]line НСП 3% : 0.00 [00:08:26]line НСП 2% : 0.00 [00:08:26]line НСП 1% : 0.00 [00:08:26]line Сумма внесений: 0.00 [00:08:26]line Сумма выплат: 0.00 [00:08:26]line Нал. в кассе: 210373.00 [00:08:26]line НС Приход: 181579167.18 [00:08:26]line НС Возвр.Прихода: 4030363.00 [00:08:26]line НС Расход: 0.00 [00:08:26]line НС Возвр.Расхода: 0.00 [00:08:26]line ФД: 103569 [00:08:26]line ФМ: 0000000000875093 [00:08:26]line ФПД: 277099066454494 [00:08:26]written 0, free lines is 4095 [00:08:26]Connected sock=9 [00:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 81 05 00 00 7F 11 79 05 A5 15 5A 05 01 00 05 00 6D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 75 21 72 66 0E 04 04 00 60 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 AA 04 DF 04 6E 04 04 00 FC 00 00 00 69 04 A5 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F0 64 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F3 32 05 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 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 Write to MH i2c: 00 01 F3 00 03 00 01 60 00 00 EE 03 0A 00 F2 03 01 00 01 89 F3 E9 03 [00:08:27]01 Write i2c OK [00:08:27]00 MH_I2C_Read... [00:08:27]00 EF 03 0A 00 F6 03 01 00 00 F7 Read from MH i2c: 03 01 01 [00:08:27]MH_I2C_Read... [00:08:27]00 Read from MH i2c: 00 01 EF 07 03 00 0A [00:08:27]00 MH_I2C_Read... [00:08:27]F6 03 01 00 06 F7 03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 03 60 89 01 00 00 00 05 00 F7 00 03 00 01 6F 00 0B 00 6A EF [00:08:27]03 RasterBufferAndPrint [00:08:27]0A line [00:08:27]00 line [00:08:27]F6 line [00:08:27]03 line [00:08:27]01 00 04 F7 03 01 00 00 EF 03 0A line [00:08:27]00 F6 written 0, free lines is 3120 [00:08:27]03 01 00 03 F7 03 01 00 00 EF MH_Cut [00:08:27]03 Write to MH i2c: 0A D1 00 01 F6 00 03 67 01 89 01 C2 [00:08:27]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 Write i2c OK [00:08:27]00 MH_I2C_Read... [00:08:27]F6 Read from MH i2c: 03 D1 01 [00:08:27]00 02 F7 03 00 00 EF 03 09 00 MH_I2C_Read... [00:08:27]F6 Read from MH i2c: 03 D1 01 01 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 [00:08:27]01 MH_I2C_Read... [00:08:27]00 Read from MH i2c: 04 D1 F7 01 03 00 00 EF 03 09 00 F6 03 01 00 00 05 67 F7 89 03 00 00 C1 00 EF 03 09 00 F6 03 01 00 06 F7 [00:08:27]03 Write to MH i2c: 00 01 00 00 D0 00 04 8D 00 6F 04 04 00 00 00 00 68 00 89 B1 F1 04 [00:08:27]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:08:27]03 MH_I2C_Read... [00:08:27]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 *** Cut start [00:08:28]*** Partial cut [00:08:28]*** CUTSNS_PIN = 1 [00:08:28]*** CUTSNS_PIN = 0 [00:08:28]F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 *** Brake cut motor [00:08:28]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 FC 05 27 6C 71 DE D7 EC EB F5 51 31 7B D1 [00:08:28]Read from MH i2c: 01 [00:08:28]MH_I2C_Read... [00:08:28]*** Stop cut motor [00:08:28]*** Cut end [00:08:28]Read from MH i2c: 01 07 00 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: 01 07 00 68 89 00 00 00 00 00 FF 0F 06 [00:08:28]process_action close_shift done [00:08:28]requested_data is exist [00:08:28]produce_requested_data [00:08:28]requested_item fd.num is exist - process it [00:08:28]SAM_PROTO_GetFieldsCounters [00:08:28]wFMCommunicate request_size=4 [00:08:28]MH_SAM_APDU [00:08:28]CAPDU: 80 13 00 00 [00:08:28]Write to MH i2c: E2 08 00 69 89 80 13 00 00 00 00 00 00 6E [00:08:28]Write i2c OK [00:08:28]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 62 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 62 00 69 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [00:08:29]RAPDU: 5D Received data: 00 87 B9 95 04 F6 01 70 00 47 01 2C 11 01 04 00 10 30 00 30 30 30 30 30 30 30 30 30 30 30 38 37 30 35 30 30 30 39 30 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 30 30 30 38 39 37 32 35 37 30 38 39 35 33 10 4F 04 00 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 00 00 31 12 43 04 47 04 00 00 85 FC 66 00 A5 00 07 00 01 5E 04 04 00 FC 00 00 00 57 04 04 00 00 FE 07 00 00 3B 00 00 00 F9 19 03 04 0E 04 00 00 00 00 00 90 00 [00:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_GetFieldsCounters done [00:08:29]requested_item shift.num is exist - process it [00:08:29]requested_item shift.opened is exist - process it [00:08:29]req_shift_opened [00:08:29]FM_GetShiftState [00:08:29]SAM_PROTO_GetShiftState [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 13 01 00 [00:08:29]Write to MH i2c: E2 08 00 6A 89 80 13 01 00 00 00 00 00 70 [00:08:29]00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:29]37 35 30 39 33 10 04 04 00 91 94 01 00 F4 03 04 00 0E C8 71 66 B6 04 01 00 00 59 FD 0B 80 35 76 7C 54 [00:08:29]Write i2c OK [00:08:29]CommunicateWithHost err = 0 [00:08:29]MH_I2C_Read... [00:08:29]CheckOFDResponse [00:08:29]1017 (14) - 77093643461234 [00:08:29]1041 (16) - 0000000000875093 [00:08:29]1040 (4) - 103569 [00:08:29]1012 (4) - 18.06.2024 17:46 [00:08:29]Read from MH i2c: 1206 (1) - 0 [00:08:29]E2 OFD Sender: Remove packet 103569 [00:08:29] [00:08:29]ProducePacketName [00:08:29]MH_I2C_Read... [00:08:29]name=ofd_packets/00103569 [00:08:29]NVStorageDeleteData [00:08:29]Read from MH i2c: E2 0E 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 0E 00 6A 89 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7B [00:08:29]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_GetShiftState done [00:08:29]FM_GetShiftState done [00:08:29]req_shift_opened done [00:08:29]requested_item shift.open_date is exist - process it [00:08:29]req_shift_open_date [00:08:29]FM_GetShiftState [00:08:29]SAM_PROTO_GetShiftState [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 13 01 00 [00:08:29]Write to MH i2c: E2 08 00 6B 89 80 13 01 00 00 00 00 00 71 [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 0E 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 0E 00 6B 89 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7C [00:08:29]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_GetShiftState done [00:08:29]FM_GetShiftState done [00:08:29]req_shift_open_date done [00:08:29]produce_requested_data done [00:08:29]produce_requested_data return {"fd.num":103569,"shift.num":352,"shift.opened":0,"shift.open_date":0} [00:08:29]process_action_free close_shift [00:08:29]json_value_free [00:08:29]json_value_free done [00:08:29]process_json_proto returns [00:08:29]Send response to host [00:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103569,"shift.num":352,"shift.opened":0,"shift.open_date":0}}} [00:08:29]free response buf [00:08:29]execute_script done [00:08:29]execute_script returns [00:08:29]free content buf [00:08:29]Sock 7.Close socket [00:08:29]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:35]accept exits with 10 [00:27:35]New connection [00:27:35]New thread 3067084132 created [00:27:35]Thread 3067227492 joined [00:27:35]Waiting for new connection... [00:27:35] Sock 10.Parse request [00:27:35]Sock 10.Check first char [00:27:35]Sock 10.First char is OK [00:27:35]request: POST /json_proto HTTP/1.0 [00:27:35]Method: POST [00:27:35]URL: /json_proto [00:27:35]Method is POST - this is cgi request [00:27:35]url: /json_proto [00:27:35]query_string will be loaded in cgi processing [00:27:35]execute_cgi json_proto POST (null) [00:27:35]execute_cgi path=json_proto method=POST [00:27:35]POST find Content-Length [00:27:35]Host: 172.17.38.133:8080 [00:27:35]Content-Length: 215 [00:27:35]Content-Type: application/json [00:27:35] [00:27:35]POST finish read [00:27:35]Found Content-Length = 215 [00:27: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" ] } } [00:27:35]execute_script... [00:27: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" ] } } [00:27:35]POST & json_proto [00:27:35]process_json_proto [00:27:35]json parsed OK: [00:27:35]protocol is kg_v1.0 [00:27:35]action value=get_value [00:27:35]process_action get_value [00:27:35]cmd_get_value [00:27:35]process_action get_value done [00:27:35]requested_data is exist [00:27:35]produce_requested_data [00:27:35]requested_item kkm.sn is exist - process it [00:27:35]requested_item kkm.ver is exist - process it [00:27:35]requested_item fm.sn is exist - process it [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 11 00 00 [00:27:35]Write to MH i2c: E2 08 00 6C 89 80 11 00 00 00 00 00 00 6F [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 17 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 17 00 6C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [00:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:27:35]wFMCommunicate OK [00:27:35]requested_item fd.num is exist - process it [00:27:35]SAM_PROTO_GetFieldsCounters [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 13 00 00 [00:27:35]Write to MH i2c: E2 08 00 6D 89 80 13 00 00 00 00 00 00 72 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 62 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 62 00 6D 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [00:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 94 01 00 0E 04 04 00 60 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:35]wFMCommunicate OK [00:27:35]SAM_PROTO_GetFieldsCounters done [00:27:35]requested_item shift.num is exist - process it [00:27:35]requested_item shift.opened is exist - process it [00:27:35]req_shift_opened [00:27:35]FM_GetShiftState [00:27:35]SAM_PROTO_GetShiftState [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 13 01 00 [00:27:35]Write to MH i2c: E2 08 00 6E 89 80 13 01 00 00 00 00 00 74 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0E 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0E 00 6E 89 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7F [00:27:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:35]wFMCommunicate OK [00:27:35]SAM_PROTO_GetShiftState done [00:27:35]FM_GetShiftState done [00:27:35]req_shift_opened done [00:27:35]requested_item shift.open_date is exist - process it [00:27:35]req_shift_open_date [00:27:35]FM_GetShiftState [00:27:35]SAM_PROTO_GetShiftState [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 13 01 00 [00:27:35]Write to MH i2c: E2 08 00 6F 89 80 13 01 00 00 00 00 00 75 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0E 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0E 00 6F 89 00 09 00 00 00 00 00 00 00 00 00 00 90 00 80 [00:27:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:35]wFMCommunicate OK [00:27:35]SAM_PROTO_GetShiftState done [00:27:35]FM_GetShiftState done [00:27:35]req_shift_open_date done [00:27:35]produce_requested_data done [00:27:35]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103569,"shift.num":352,"shift.opened":0,"shift.open_date":0} [00:27:35]process_action_free get_value [00:27:35]json_value_free [00:27:35]json_value_free done [00:27:35]process_json_proto returns [00:27:35]Send response to host [00:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103569,"shift.num":352,"shift.opened":0,"shift.open_date":0}}} [00:27:35]free response buf [00:27:35]execute_script done [00:27:35]execute_script returns [00:27:35]free content buf [00:27:35]Sock 10.Close socket [00:27:35]Sock 10.Thread stoped [00:27:35]accept exits with 7 [00:27:35]New connection [00:27:35]New thread 3067227492 created [00:27:35]Thread 3067084132 joined [00:27:35]Waiting for new connection... [00:27:35] Sock 7.Parse request [00:27:35]Sock 7.Check first char [00:27:35]Sock 7.First char is OK [00:27:35]request: POST /json_proto HTTP/1.0 [00:27:35]Method: POST [00:27:35]URL: /json_proto [00:27:35]Method is POST - this is cgi request [00:27:35]url: /json_proto [00:27:35]query_string will be loaded in cgi processing [00:27:35]execute_cgi json_proto POST (null) [00:27:35]execute_cgi path=json_proto method=POST [00:27:35]POST find Content-Length [00:27:35]Host: 172.17.38.133:8080 [00:27:35]Content-Length: 331 [00:27:35]Content-Type: application/json [00:27:35] [00:27:35]POST finish read [00:27:35]Found Content-Length = 331 [00:27:35]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:35]execute_script... [00:27:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:35]POST & json_proto [00:27:35]process_json_proto [00:27:35]json parsed OK: [00:27:35]protocol is kg_v1.0 [00:27:35]action value=get_value [00:27:35]process_action get_value [00:27:35]cmd_get_value [00:27:35]process_action get_value done [00:27:35]requested_data is exist [00:27:35]produce_requested_data [00:27:35]requested_item fm.sale.total is exist - process it [00:27:35]SAM_PROTO_GetFMData [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 13 03 00 [00:27:35]Write to MH i2c: E2 08 00 70 89 80 13 03 00 00 00 00 00 78 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]OFD Sender: No OFD packet to send [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 70 89 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 C4 [00:27:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:27:36]wFMCommunicate OK [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 17 00 00 [00:27:36]Write to MH i2c: E2 08 00 71 89 80 17 00 00 00 00 00 00 7A [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 71 89 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 D7 [00:27:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:27:36]wFMCommunicate OK [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 17 00 00 [00:27:36]Write to MH i2c: E2 08 00 72 89 80 17 00 00 00 00 00 00 7B [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 72 89 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8D [00:27:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:27:36]wFMCommunicate OK [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 17 00 00 [00:27:36]Write to MH i2c: E2 08 00 73 89 80 17 00 00 00 00 00 00 7C [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:36]Read from MH i2c: E2 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: E2 FD 00 73 89 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [00:27:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:36]wFMCommunicate OK [00:27:36]wFMCommunicate request_size=4 [00:27:36]MH_SAM_APDU [00:27:36]CAPDU: 80 17 00 00 [00:27:36]Write to MH i2c: E2 08 00 74 89 80 17 00 00 00 00 00 00 7D [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 E2 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 E2 00 74 89 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [00:27:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:37]wFMCommunicate OK [00:27:37]SAM_PROTO_GetFMData done [00:27:37]requested_item fm.sale_refund.total is exist - process it [00:27:37]requested_item fm.buy.total is exist - process it [00:27:37]requested_item shift.sale.total is exist - process it [00:27:37]SAM_PROTO_GetShiftData [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 13 02 00 [00:27:37]Write to MH i2c: E2 08 00 75 89 80 13 02 00 00 00 00 00 7C [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 75 89 00 BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 EB [00:27:37]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 FC 00 00 00 69 04 9E 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 DE 6C 4B 02 70 04 04 00 D0 41 4C 01 72 04 03 00 0E 2B FF 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 F0 64 3E 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 F3 32 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 DC 40 0B 70 04 03 00 DC 40 0B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FA 31 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 17 00 00 [00:27:37]Write to MH i2c: E2 08 00 76 89 80 17 00 00 00 00 00 00 7F [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:37]Read from MH i2c: E2 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 [00:27:37]MH_I2C_Read... [00:27:37]Read from MH i2c: E2 FD 00 76 89 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 C1 [00:27:37]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:27:37]wFMCommunicate OK [00:27:37]wFMCommunicate request_size=4 [00:27:37]MH_SAM_APDU [00:27:37]CAPDU: 80 17 00 00 [00:27:37]Write to MH i2c: E2 08 00 77 89 80 17 00 00 00 00 00 00 80 [00:27:37]Write i2c OK [00:27:37]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 FD 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 FD 00 77 89 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 A9 [00:27:38]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:27:38]wFMCommunicate OK [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 17 00 00 [00:27:38]Write to MH i2c: E2 08 00 78 89 80 17 00 00 00 00 00 00 81 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 FD 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 FD 00 78 89 00 03 00 00 EF 03 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 90 00 02 [00:27:38]RAPDU: 03 00 00 EF 03 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 90 00 [00:27:38]wFMCommunicate OK [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 17 00 00 [00:27:38]Write to MH i2c: E2 08 00 79 89 80 17 00 00 00 00 00 00 82 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 D9 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 D9 00 79 89 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:27:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:38]wFMCommunicate OK [00:27:38]SAM_PROTO_GetShiftData done [00:27:38]requested_item shift.sale.total_cash is exist - process it [00:27:38]requested_item shift.sale_refund.total is exist - process it [00:27:38]requested_item shift.sale_refund.total_cash is exist - process it [00:27:38]requested_item shift.buy.total is exist - process it [00:27:38]requested_item shift.buy.total_cash is exist - process it [00:27:38]produce_requested_data done [00:27:38]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:38]process_action_free get_value [00:27:38]json_value_free [00:27:38]json_value_free done [00:27:38]process_json_proto returns [00:27:38]Send response to host [00:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":384975.02,"shift.sale.total_cash":217748.00,"shift.sale_refund.total":7375.00,"shift.sale_refund.total_cash":7375.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:38]free response buf [00:27:38]execute_script done [00:27:38]execute_script returns [00:27:38]free content buf [00:27:38]Sock 7.Close socket [00:27:38]Sock 7.Thread stoped [00:27:38]accept exits with 9 [00:27:38]New connection [00:27:38]New thread 3067084132 created [00:27:38]Thread 3067227492 joined [00:27:38]Waiting for new connection... [00:27:38] Sock 9.Parse request [00:27:38]Sock 9.Check first char [00:27:38]Sock 9.First char is OK [00:27:38]request: POST /json_proto HTTP/1.0 [00:27:38]Method: POST [00:27:38]URL: /json_proto [00:27:38]Method is POST - this is cgi request [00:27:38]url: /json_proto [00:27:38]query_string will be loaded in cgi processing [00:27:38]execute_cgi json_proto POST (null) [00:27:38]execute_cgi path=json_proto method=POST [00:27:38]POST find Content-Length [00:27:38]Host: 172.17.38.133:8080 [00:27:38]Content-Length: 271 [00:27:38]Content-Type: application/json [00:27:38] [00:27:38]POST finish read [00:27:38]Found Content-Length = 271 [00:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:38]execute_script... [00:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:38]POST & json_proto [00:27:38]process_json_proto [00:27:38]json parsed OK: [00:27:38]protocol is kg_v1.0 [00:27:38]action value=open_shift [00:27:38]process_action open_shift [00:27:38]cmd_open_shift [00:27:38]MH_GetDate [00:27:38]Write to MH i2c: F0 00 00 7A 89 F2 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 09 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 09 00 7A 89 00 04 26 72 66 BD 8F 7C 64 29 [00:27:38]GetLastDocTimeStamp 1718755701 [00:27:38]current date 1718756868 [00:27:38]FM_GetShiftState [00:27:38]SAM_PROTO_GetShiftState [00:27:38]wFMCommunicate request_size=4 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 13 01 00 [00:27:38]Write to MH i2c: E2 08 00 7B 89 80 13 01 00 00 00 00 00 81 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 0E 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 0E 00 7B 89 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8C [00:27:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:38]wFMCommunicate OK [00:27:38]SAM_PROTO_GetShiftState done [00:27:38]FM_GetShiftState done [00:27:38]KKMCreateOpenShiftDocument [00:27:38]Load OK [00:27:38]Malloc new data [00:27:38]MH_GetDate [00:27:38]Write to MH i2c: F0 00 00 7C 89 F4 [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 09 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: F0 09 00 7C 89 00 04 26 72 66 BD 8F 7C 64 2B [00:27:38]Malloc new data [00:27:38]KKMCreateOpenShiftDocument OK [00:27:38]KKMSetOpenShiftData OK [00:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:27:38]tlvbuf is 013FFF90 [00:27:38]KKMLoadAndSignOpenShiftData [00:27:38]SAM_PROTO_ProcessDocument [00:27:38]wFMCommunicate request_size=9 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:27:38]Write to MH i2c: E2 0C 00 7D 89 80 15 01 00 04 00 02 00 CB 00 00 00 5A [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:38]Read from MH i2c: E2 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 03 00 [00:27:38]MH_I2C_Read... [00:27:38]Read from MH i2c: E2 03 00 7D 89 00 90 00 7A [00:27:38]RAPDU: 90 00 [00:27:38]wFMCommunicate OK [00:27:38]wFMCommunicate request_size=23 [00:27:38]MH_SAM_APDU [00:27:38]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:27:38]Write to MH i2c: E2 1A 00 7E 89 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 7C [00:27:38]Write i2c OK [00:27:38]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 7E 89 00 90 00 7B [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=34 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:27:39]Write to MH i2c: E2 25 00 7F 89 80 15 02 00 1D 00 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 49 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 7F 89 00 90 00 7C [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=87 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 [00:27:39]Write to MH i2c: E2 5A 00 80 89 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 00 00 FD [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 80 89 00 90 00 7D [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=51 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 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:27:39]Write to MH i2c: E2 36 00 81 89 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 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 2F [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 81 89 00 90 00 7E [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=13 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 02 00 08 F4 03 04 00 04 26 72 66 [00:27:39]Write to MH i2c: E2 10 00 82 89 80 15 02 00 08 00 F4 03 04 00 04 26 72 66 00 00 98 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 82 89 00 90 00 7F [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=25 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:27:39]Write to MH i2c: E2 1C 00 83 89 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 F4 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 03 00 83 89 00 90 00 80 [00:27:39]RAPDU: 90 00 [00:27:39]wFMCommunicate OK [00:27:39]wFMCommunicate request_size=4 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 15 03 00 [00:27:39]Write to MH i2c: E2 08 00 84 89 80 15 03 00 00 00 00 00 8E [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 38 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 38 00 84 89 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 94 01 00 0E 04 04 00 61 01 00 00 35 04 06 00 0F 17 A0 67 FC 75 90 00 81 [00:27:39]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 94 01 00 0E 04 04 00 61 01 00 00 35 04 06 00 0F 17 A0 67 FC 75 90 00 [00:27:39]wFMCommunicate OK [00:27:39]SAM_PROTO_ProcessDocument answer len = 51 [00:27:39]SAM_PROTO_ProcessDocument done [00:27:39]SetTLVBufToDocument [00:27:39]Processing tag 1209 (04B9) [00:27:39]Malloc new data [00:27:39]Processing tag 1041 (0411) [00:27:39]Processing tag 1040 (0410) [00:27:39]Malloc new data [00:27:39]Processing tag 1038 (040E) [00:27:39]Malloc new data [00:27:39]Processing tag 1077 (0435) [00:27:39]Malloc new data [00:27:39]SetTLVBufToDocument err=0 [00:27:39]KKMLoadAndSignOpenShiftData store KKM data [00:27:39]KKMLoadAndSignOpenShiftData err=0 [00:27:39]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байбугуева Г. Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 Место: АЗС № 120 "Партнер Нефть" 19.06.2024 00:27 Смена: 353 РНМ: 0000000000092785 ЗНМ: 0300000164 ФД: 103570 ФМ: 0000000000875093 ФПД: 16594149833845 [00:27:39]StoreToDocumentArchive [00:27:39]shift 353 fd 103570 [00:27:39]Create dir for shift 0353 [00:27:39]save to /storage/0353/doc_00103570 [00:27:39]save last doc name /storage/0353/doc_00103570 to /storage/kkm_last_doc_name [00:27:39]save OK [00:27:39]Clear old archive folders... [00:27:39]Remove dir /storage/0352 [00:27:39]opendir ok [00:27:39]file . [00:27:39]file .. [00:27:39]file doc_00103316 [00:27:39]remove file /storage/0352/doc_00103316 [00:27:39]file doc_00103317 [00:27:39]remove file /storage/0352/doc_00103317 [00:27:39]file doc_00103318 [00:27:39]remove file /storage/0352/doc_00103318 [00:27:39]file doc_00103319 [00:27:39]remove file /storage/0352/doc_00103319 [00:27:39]file doc_00103320 [00:27:39]remove file /storage/0352/doc_00103320 [00:27:39]file doc_00103321 [00:27:39]remove file /storage/0352/doc_00103321 [00:27:39]file doc_00103322 [00:27:39]remove file /storage/0352/doc_00103322 [00:27:39]file doc_00103323 [00:27:39]remove file /storage/0352/doc_00103323 [00:27:39]file doc_00103324 [00:27:39]remove file /storage/0352/doc_00103324 [00:27:39]file doc_00103325 [00:27:39]remove file /storage/0352/doc_00103325 [00:27:39]file doc_00103326 [00:27:39]remove file /storage/0352/doc_00103326 [00:27:39]file doc_00103327 [00:27:39]remove file /storage/0352/doc_00103327 [00:27:39]file doc_00103328 [00:27:39]remove file /storage/0352/doc_00103328 [00:27:39]file doc_00103329 [00:27:39]remove file /storage/0352/doc_00103329 [00:27:39]file doc_00103330 [00:27:39]remove file /storage/0352/doc_00103330 [00:27:39]file doc_00103331 [00:27:39]remove file /storage/0352/doc_00103331 [00:27:39]file doc_00103332 [00:27:39]remove file /storage/0352/doc_00103332 [00:27:39]file doc_00103333 [00:27:39]remove file /storage/0352/doc_00103333 [00:27:39]file doc_00103334 [00:27:39]remove file /storage/0352/doc_00103334 [00:27:39]file doc_00103335 [00:27:39]remove file /storage/0352/doc_00103335 [00:27:39]file doc_00103336 [00:27:39]remove file /storage/0352/doc_00103336 [00:27:39]file doc_00103337 [00:27:39]remove file /storage/0352/doc_00103337 [00:27:39]file doc_00103338 [00:27:39]remove file /storage/0352/doc_00103338 [00:27:39]file doc_00103339 [00:27:39]remove file /storage/0352/doc_00103339 [00:27:39]file doc_00103340 [00:27:39]remove file /storage/0352/doc_00103340 [00:27:39]file doc_00103341 [00:27:39]remove file /storage/0352/doc_00103341 [00:27:39]file doc_00103342 [00:27:39]remove file /storage/0352/doc_00103342 [00:27:39]file doc_00103343 [00:27:39]remove file /storage/0352/doc_00103343 [00:27:39]file doc_00103344 [00:27:39]remove file /storage/0352/doc_00103344 [00:27:39]file doc_00103345 [00:27:39]remove file /storage/0352/doc_00103345 [00:27:39]file doc_00103346 [00:27:39]remove file /storage/0352/doc_00103346 [00:27:39]file doc_00103347 [00:27:39]remove file /storage/0352/doc_00103347 [00:27:39]file doc_00103348 [00:27:39]remove file /storage/0352/doc_00103348 [00:27:39]file doc_00103349 [00:27:39]remove file /storage/0352/doc_00103349 [00:27:39]file doc_00103350 [00:27:39]remove file /storage/0352/doc_00103350 [00:27:39]file doc_00103351 [00:27:39]remove file /storage/0352/doc_00103351 [00:27:39]file doc_00103352 [00:27:39]remove file /storage/0352/doc_00103352 [00:27:39]file doc_00103353 [00:27:39]remove file /storage/0352/doc_00103353 [00:27:39]file doc_00103354 [00:27:39]remove file /storage/0352/doc_00103354 [00:27:39]file doc_00103355 [00:27:39]remove file /storage/0352/doc_00103355 [00:27:39]file doc_00103356 [00:27:39]remove file /storage/0352/doc_00103356 [00:27:39]file doc_00103357 [00:27:39]remove file /storage/0352/doc_00103357 [00:27:39]file doc_00103358 [00:27:39]remove file /storage/0352/doc_00103358 [00:27:39]file doc_00103359 [00:27:39]remove file /storage/0352/doc_00103359 [00:27:39]file doc_00103360 [00:27:39]remove file /storage/0352/doc_00103360 [00:27:39]file doc_00103361 [00:27:39]remove file /storage/0352/doc_00103361 [00:27:39]file doc_00103362 [00:27:39]remove file /storage/0352/doc_00103362 [00:27:39]file doc_00103363 [00:27:39]remove file /storage/0352/doc_00103363 [00:27:39]file doc_00103364 [00:27:39]remove file /storage/0352/doc_00103364 [00:27:39]file doc_00103365 [00:27:39]remove file /storage/0352/doc_00103365 [00:27:39]file doc_00103366 [00:27:39]remove file /storage/0352/doc_00103366 [00:27:39]file doc_00103367 [00:27:39]remove file /storage/0352/doc_00103367 [00:27:39]file doc_00103368 [00:27:39]remove file /storage/0352/doc_00103368 [00:27:39]file doc_00103369 [00:27:39]remove file /storage/0352/doc_00103369 [00:27:39]file doc_00103370 [00:27:40]remove file /storage/0352/doc_00103370 [00:27:40]file doc_00103371 [00:27:40]remove file /storage/0352/doc_00103371 [00:27:40]file doc_00103372 [00:27:40]remove file /storage/0352/doc_00103372 [00:27:40]file doc_00103373 [00:27:40]remove file /storage/0352/doc_00103373 [00:27:40]file doc_00103374 [00:27:40]remove file /storage/0352/doc_00103374 [00:27:40]file doc_00103375 [00:27:40]remove file /storage/0352/doc_00103375 [00:27:40]file doc_00103376 [00:27:40]remove file /storage/0352/doc_00103376 [00:27:40]file doc_00103377 [00:27:40]remove file /storage/0352/doc_00103377 [00:27:40]file doc_00103378 [00:27:40]remove file /storage/0352/doc_00103378 [00:27:40]file doc_00103379 [00:27:40]remove file /storage/0352/doc_00103379 [00:27:40]file doc_00103380 [00:27:40]remove file /storage/0352/doc_00103380 [00:27:40]file doc_00103381 [00:27:40]remove file /storage/0352/doc_00103381 [00:27:40]file doc_00103382 [00:27:40]remove file /storage/0352/doc_00103382 [00:27:40]file doc_00103383 [00:27:40]remove file /storage/0352/doc_00103383 [00:27:40]file doc_00103384 [00:27:40]remove file /storage/0352/doc_00103384 [00:27:40]file doc_00103385 [00:27:40]remove file /storage/0352/doc_00103385 [00:27:40]file doc_00103386 [00:27:40]remove file /storage/0352/doc_00103386 [00:27:40]file doc_00103387 [00:27:40]remove file /storage/0352/doc_00103387 [00:27:40]file doc_00103388 [00:27:40]remove file /storage/0352/doc_00103388 [00:27:40]file doc_00103389 [00:27:40]remove file /storage/0352/doc_00103389 [00:27:40]file doc_00103390 [00:27:40]remove file /storage/0352/doc_00103390 [00:27:40]file doc_00103391 [00:27:40]remove file /storage/0352/doc_00103391 [00:27:40]file doc_00103392 [00:27:40]remove file /storage/0352/doc_00103392 [00:27:40]file doc_00103393 [00:27:40]remove file /storage/0352/doc_00103393 [00:27:40]file doc_00103394 [00:27:40]remove file /storage/0352/doc_00103394 [00:27:40]file doc_00103395 [00:27:40]remove file /storage/0352/doc_00103395 [00:27:40]file doc_00103396 [00:27:40]remove file /storage/0352/doc_00103396 [00:27:40]file doc_00103397 [00:27:40]remove file /storage/0352/doc_00103397 [00:27:40]file doc_00103398 [00:27:40]remove file /storage/0352/doc_00103398 [00:27:40]file doc_00103399 [00:27:40]remove file /storage/0352/doc_00103399 [00:27:40]file doc_00103400 [00:27:40]remove file /storage/0352/doc_00103400 [00:27:40]file doc_00103401 [00:27:40]remove file /storage/0352/doc_00103401 [00:27:40]file doc_00103402 [00:27:40]remove file /storage/0352/doc_00103402 [00:27:40]file doc_00103403 [00:27:40]remove file /storage/0352/doc_00103403 [00:27:40]file doc_00103404 [00:27:40]remove file /storage/0352/doc_00103404 [00:27:40]file doc_00103405 [00:27:40]remove file /storage/0352/doc_00103405 [00:27:40]file doc_00103406 [00:27:40]remove file /storage/0352/doc_00103406 [00:27:40]file doc_00103407 [00:27:40]remove file /storage/0352/doc_00103407 [00:27:40]file doc_00103408 [00:27:40]remove file /storage/0352/doc_00103408 [00:27:40]file doc_00103409 [00:27:40]remove file /storage/0352/doc_00103409 [00:27:40]file doc_00103410 [00:27:40]remove file /storage/0352/doc_00103410 [00:27:40]file doc_00103411 [00:27:40]remove file /storage/0352/doc_00103411 [00:27:40]file doc_00103412 [00:27:40]remove file /storage/0352/doc_00103412 [00:27:40]file doc_00103413 [00:27:40]remove file /storage/0352/doc_00103413 [00:27:40]file doc_00103414 [00:27:40]remove file /storage/0352/doc_00103414 [00:27:40]file doc_00103415 [00:27:40]remove file /storage/0352/doc_00103415 [00:27:40]file doc_00103416 [00:27:40]remove file /storage/0352/doc_00103416 [00:27:40]file doc_00103417 [00:27:40]remove file /storage/0352/doc_00103417 [00:27:40]file doc_00103418 [00:27:40]remove file /storage/0352/doc_00103418 [00:27:40]file doc_00103419 [00:27:40]remove file /storage/0352/doc_00103419 [00:27:40]file doc_00103420 [00:27:40]remove file /storage/0352/doc_00103420 [00:27:40]file doc_00103421 [00:27:40]remove file /storage/0352/doc_00103421 [00:27:40]file doc_00103422 [00:27:40]remove file /storage/0352/doc_00103422 [00:27:40]file doc_00103423 [00:27:40]remove file /storage/0352/doc_00103423 [00:27:40]file doc_00103424 [00:27:40]remove file /storage/0352/doc_00103424 [00:27:40]file doc_00103425 [00:27:40]remove file /storage/0352/doc_00103425 [00:27:40]file doc_00103426 [00:27:40]remove file /storage/0352/doc_00103426 [00:27:40]file doc_00103427 [00:27:40]remove file /storage/0352/doc_00103427 [00:27:40]file doc_00103428 [00:27:40]remove file /storage/0352/doc_00103428 [00:27:40]file doc_00103429 [00:27:40]remove file /storage/0352/doc_00103429 [00:27:40]file doc_00103430 [00:27:40]remove file /storage/0352/doc_00103430 [00:27:40]file doc_00103431 [00:27:40]remove file /storage/0352/doc_00103431 [00:27:40]file doc_00103432 [00:27:40]remove file /storage/0352/doc_00103432 [00:27:40]file doc_00103433 [00:27:40]remove file /storage/0352/doc_00103433 [00:27:40]file doc_00103434 [00:27:40]remove file /storage/0352/doc_00103434 [00:27:40]file doc_00103435 [00:27:40]remove file /storage/0352/doc_00103435 [00:27:40]file doc_00103436 [00:27:40]remove file /storage/0352/doc_00103436 [00:27:40]file doc_00103437 [00:27:40]remove file /storage/0352/doc_00103437 [00:27:40]file doc_00103438 [00:27:40]remove file /storage/0352/doc_00103438 [00:27:40]file doc_00103439 [00:27:40]remove file /storage/0352/doc_00103439 [00:27:40]file doc_00103440 [00:27:40]remove file /storage/0352/doc_00103440 [00:27:40]file doc_00103441 [00:27:40]remove file /storage/0352/doc_00103441 [00:27:40]file doc_00103442 [00:27:40]remove file /storage/0352/doc_00103442 [00:27:40]file doc_00103443 [00:27:40]remove file /storage/0352/doc_00103443 [00:27:40]file doc_00103444 [00:27:40]remove file /storage/0352/doc_00103444 [00:27:40]file doc_00103445 [00:27:40]remove file /storage/0352/doc_00103445 [00:27:40]file doc_00103446 [00:27:40]remove file /storage/0352/doc_00103446 [00:27:40]file doc_00103447 [00:27:40]remove file /storage/0352/doc_00103447 [00:27:40]file doc_00103448 [00:27:40]remove file /storage/0352/doc_00103448 [00:27:40]file doc_00103449 [00:27:40]remove file /storage/0352/doc_00103449 [00:27:40]file doc_00103450 [00:27:40]remove file /storage/0352/doc_00103450 [00:27:40]file doc_00103451 [00:27:40]remove file /storage/0352/doc_00103451 [00:27:40]file doc_00103452 [00:27:40]remove file /storage/0352/doc_00103452 [00:27:40]file doc_00103453 [00:27:40]remove file /storage/0352/doc_00103453 [00:27:40]file doc_00103454 [00:27:40]remove file /storage/0352/doc_00103454 [00:27:40]file doc_00103455 [00:27:40]remove file /storage/0352/doc_00103455 [00:27:40]file doc_00103456 [00:27:40]remove file /storage/0352/doc_00103456 [00:27:40]file doc_00103457 [00:27:40]remove file /storage/0352/doc_00103457 [00:27:40]file doc_00103458 [00:27:40]remove file /storage/0352/doc_00103458 [00:27:40]file doc_00103459 [00:27:40]remove file /storage/0352/doc_00103459 [00:27:40]file doc_00103460 [00:27:40]remove file /storage/0352/doc_00103460 [00:27:40]file doc_00103461 [00:27:40]remove file /storage/0352/doc_00103461 [00:27:40]file doc_00103462 [00:27:40]remove file /storage/0352/doc_00103462 [00:27:40]file doc_00103463 [00:27:40]remove file /storage/0352/doc_00103463 [00:27:40]file doc_00103464 [00:27:40]remove file /storage/0352/doc_00103464 [00:27:40]file doc_00103465 [00:27:40]remove file /storage/0352/doc_00103465 [00:27:40]file doc_00103466 [00:27:40]remove file /storage/0352/doc_00103466 [00:27:40]file doc_00103467 [00:27:40]remove file /storage/0352/doc_00103467 [00:27:40]file doc_00103468 [00:27:40]remove file /storage/0352/doc_00103468 [00:27:40]file doc_00103469 [00:27:40]remove file /storage/0352/doc_00103469 [00:27:40]file doc_00103470 [00:27:40]remove file /storage/0352/doc_00103470 [00:27:40]file doc_00103471 [00:27:40]remove file /storage/0352/doc_00103471 [00:27:40]file doc_00103472 [00:27:40]remove file /storage/0352/doc_00103472 [00:27:40]file doc_00103473 [00:27:40]remove file /storage/0352/doc_00103473 [00:27:40]file doc_00103474 [00:27:40]remove file /storage/0352/doc_00103474 [00:27:40]file doc_00103475 [00:27:40]remove file /storage/0352/doc_00103475 [00:27:40]file doc_00103476 [00:27:40]remove file /storage/0352/doc_00103476 [00:27:40]file doc_00103477 [00:27:40]remove file /storage/0352/doc_00103477 [00:27:40]file doc_00103478 [00:27:40]remove file /storage/0352/doc_00103478 [00:27:40]file doc_00103479 [00:27:40]remove file /storage/0352/doc_00103479 [00:27:40]file doc_00103480 [00:27:40]remove file /storage/0352/doc_00103480 [00:27:40]file doc_00103481 [00:27:40]remove file /storage/0352/doc_00103481 [00:27:40]file doc_00103482 [00:27:40]remove file /storage/0352/doc_00103482 [00:27:40]file doc_00103483 [00:27:40]remove file /storage/0352/doc_00103483 [00:27:40]file doc_00103484 [00:27:40]remove file /storage/0352/doc_00103484 [00:27:40]file doc_00103485 [00:27:40]remove file /storage/0352/doc_00103485 [00:27:40]file doc_00103486 [00:27:40]remove file /storage/0352/doc_00103486 [00:27:40]file doc_00103487 [00:27:40]remove file /storage/0352/doc_00103487 [00:27:40]file doc_00103488 [00:27:40]remove file /storage/0352/doc_00103488 [00:27:40]file doc_00103489 [00:27:40]remove file /storage/0352/doc_00103489 [00:27:40]file doc_00103490 [00:27:40]remove file /storage/0352/doc_00103490 [00:27:40]file doc_00103491 [00:27:40]remove file /storage/0352/doc_00103491 [00:27:40]file doc_00103492 [00:27:40]remove file /storage/0352/doc_00103492 [00:27:40]file doc_00103493 [00:27:40]remove file /storage/0352/doc_00103493 [00:27:40]file doc_00103494 [00:27:40]remove file /storage/0352/doc_00103494 [00:27:40]file doc_00103495 [00:27:40]remove file /storage/0352/doc_00103495 [00:27:40]file doc_00103496 [00:27:40]remove file /storage/0352/doc_00103496 [00:27:40]file doc_00103497 [00:27:40]remove file /storage/0352/doc_00103497 [00:27:40]file doc_00103498 [00:27:40]remove file /storage/0352/doc_00103498 [00:27:40]file doc_00103499 [00:27:40]remove file /storage/0352/doc_00103499 [00:27:40]file doc_00103500 [00:27:40]remove file /storage/0352/doc_00103500 [00:27:40]file doc_00103501 [00:27:40]remove file /storage/0352/doc_00103501 [00:27:40]file doc_00103502 [00:27:40]remove file /storage/0352/doc_00103502 [00:27:40]file doc_00103503 [00:27:40]remove file /storage/0352/doc_00103503 [00:27:40]file doc_00103504 [00:27:40]remove file /storage/0352/doc_00103504 [00:27:40]file doc_00103505 [00:27:40]remove file /storage/0352/doc_00103505 [00:27:40]file doc_00103506 [00:27:40]remove file /storage/0352/doc_00103506 [00:27:40]file doc_00103507 [00:27:40]remove file /storage/0352/doc_00103507 [00:27:40]file doc_00103508 [00:27:40]remove file /storage/0352/doc_00103508 [00:27:40]file doc_00103509 [00:27:40]remove file /storage/0352/doc_00103509 [00:27:40]file doc_00103510 [00:27:40]remove file /storage/0352/doc_00103510 [00:27:40]file doc_00103511 [00:27:40]remove file /storage/0352/doc_00103511 [00:27:40]file doc_00103512 [00:27:40]remove file /storage/0352/doc_00103512 [00:27:40]file doc_00103513 [00:27:41]remove file /storage/0352/doc_00103513 [00:27:41]file doc_00103514 [00:27:41]remove file /storage/0352/doc_00103514 [00:27:41]file doc_00103515 [00:27:41]remove file /storage/0352/doc_00103515 [00:27:41]file doc_00103516 [00:27:41]remove file /storage/0352/doc_00103516 [00:27:41]file doc_00103517 [00:27:41]remove file /storage/0352/doc_00103517 [00:27:41]file doc_00103518 [00:27:41]remove file /storage/0352/doc_00103518 [00:27:41]file doc_00103519 [00:27:41]remove file /storage/0352/doc_00103519 [00:27:41]file doc_00103520 [00:27:41]remove file /storage/0352/doc_00103520 [00:27:41]OFD Sender: No OFD packet to send [00:27:41]file doc_00103521 [00:27:41]remove file /storage/0352/doc_00103521 [00:27:41]file doc_00103522 [00:27:41]remove file /storage/0352/doc_00103522 [00:27:41]file doc_00103523 [00:27:41]remove file /storage/0352/doc_00103523 [00:27:41]file doc_00103524 [00:27:41]remove file /storage/0352/doc_00103524 [00:27:41]file doc_00103525 [00:27:41]remove file /storage/0352/doc_00103525 [00:27:41]file doc_00103526 [00:27:41]remove file /storage/0352/doc_00103526 [00:27:41]file doc_00103527 [00:27:41]remove file /storage/0352/doc_00103527 [00:27:41]file doc_00103528 [00:27:41]remove file /storage/0352/doc_00103528 [00:27:41]file doc_00103529 [00:27:41]remove file /storage/0352/doc_00103529 [00:27:41]file doc_00103530 [00:27:41]remove file /storage/0352/doc_00103530 [00:27:41]file doc_00103531 [00:27:41]remove file /storage/0352/doc_00103531 [00:27:41]file doc_00103532 [00:27:41]remove file /storage/0352/doc_00103532 [00:27:41]file doc_00103533 [00:27:41]remove file /storage/0352/doc_00103533 [00:27:41]file doc_00103534 [00:27:41]remove file /storage/0352/doc_00103534 [00:27:41]file doc_00103535 [00:27:41]remove file /storage/0352/doc_00103535 [00:27:41]file doc_00103536 [00:27:41]remove file /storage/0352/doc_00103536 [00:27:41]file doc_00103537 [00:27:41]remove file /storage/0352/doc_00103537 [00:27:41]file doc_00103538 [00:27:41]remove file /storage/0352/doc_00103538 [00:27:41]file doc_00103539 [00:27:41]remove file /storage/0352/doc_00103539 [00:27:41]file doc_00103540 [00:27:41]remove file /storage/0352/doc_00103540 [00:27:41]file doc_00103541 [00:27:41]remove file /storage/0352/doc_00103541 [00:27:41]file doc_00103542 [00:27:41]remove file /storage/0352/doc_00103542 [00:27:41]file doc_00103543 [00:27:41]remove file /storage/0352/doc_00103543 [00:27:41]file doc_00103544 [00:27:41]remove file /storage/0352/doc_00103544 [00:27:41]file doc_00103545 [00:27:41]remove file /storage/0352/doc_00103545 [00:27:41]file doc_00103546 [00:27:41]remove file /storage/0352/doc_00103546 [00:27:41]file doc_00103547 [00:27:41]remove file /storage/0352/doc_00103547 [00:27:41]file doc_00103548 [00:27:41]remove file /storage/0352/doc_00103548 [00:27:41]file doc_00103549 [00:27:41]remove file /storage/0352/doc_00103549 [00:27:41]file doc_00103550 [00:27:41]remove file /storage/0352/doc_00103550 [00:27:41]file doc_00103551 [00:27:41]remove file /storage/0352/doc_00103551 [00:27:41]file doc_00103552 [00:27:41]remove file /storage/0352/doc_00103552 [00:27:41]file doc_00103553 [00:27:41]remove file /storage/0352/doc_00103553 [00:27:41]file doc_00103554 [00:27:41]remove file /storage/0352/doc_00103554 [00:27:41]file doc_00103555 [00:27:41]remove file /storage/0352/doc_00103555 [00:27:41]file doc_00103556 [00:27:41]remove file /storage/0352/doc_00103556 [00:27:41]file doc_00103557 [00:27:41]remove file /storage/0352/doc_00103557 [00:27:41]file doc_00103558 [00:27:41]remove file /storage/0352/doc_00103558 [00:27:41]file doc_00103559 [00:27:41]remove file /storage/0352/doc_00103559 [00:27:41]file doc_00103560 [00:27:41]remove file /storage/0352/doc_00103560 [00:27:41]file doc_00103561 [00:27:41]remove file /storage/0352/doc_00103561 [00:27:41]file doc_00103562 [00:27:41]remove file /storage/0352/doc_00103562 [00:27:41]file doc_00103563 [00:27:41]remove file /storage/0352/doc_00103563 [00:27:41]file doc_00103564 [00:27:41]remove file /storage/0352/doc_00103564 [00:27:41]file doc_00103565 [00:27:41]remove file /storage/0352/doc_00103565 [00:27:41]file doc_00103566 [00:27:41]remove file /storage/0352/doc_00103566 [00:27:41]file doc_00103567 [00:27:41]remove file /storage/0352/doc_00103567 [00:27:41]file doc_00103568 [00:27:41]remove file /storage/0352/doc_00103568 [00:27:41]file doc_00103569 [00:27:41]remove file /storage/0352/doc_00103569 [00:27:41]remove dir /storage/0352 [00:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:27:41]tlvbuf is 01579EC0 [00:27:41]SAM_PROTO_ClearQueue [00:27:41]wFMCommunicate request_size=4 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 09 00 00 [00:27:41]Write to MH i2c: E2 08 00 85 89 80 09 00 00 00 00 00 00 80 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 85 89 00 90 00 82 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]SAM_PROTO_ClearQueue done [00:27:41]KKMCreateOFDPacket [00:27:41]OFDProtocolAddRootSTLVToBuf [00:27:41]FM_MakeSignedData [00:27:41]FM_MakeSignedData [00:27:41]SAM_PROTO_SignData [00:27:41]wFMCommunicate request_size=4 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 01 02 [00:27:41]Write to MH i2c: E2 08 00 86 89 80 0D 01 02 00 00 00 00 88 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 86 89 00 90 00 83 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]wFMCommunicate request_size=255 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 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 04 26 72 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 [00:27:41]Write to MH i2c: E2 02 01 87 89 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 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 04 26 72 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 00 00 21 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 87 89 00 90 00 84 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]wFMCommunicate request_size=13 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 02 02 08 06 00 0F 17 A0 67 FC 75 [00:27:41]Write to MH i2c: E2 10 00 88 89 80 0D 02 02 08 00 06 00 0F 17 A0 67 FC 75 00 00 3F [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 03 00 88 89 00 90 00 85 [00:27:41]RAPDU: 90 00 [00:27:41]wFMCommunicate OK [00:27:41]wFMCommunicate request_size=4 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 0D 03 02 [00:27:41]Write to MH i2c: E2 08 00 89 89 80 0D 03 02 00 00 00 00 8D [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 0B 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 0B 00 89 89 00 C5 65 9D D8 A0 AE 8D 68 90 00 70 [00:27:41]RAPDU: C5 65 9D D8 A0 AE 8D 68 90 00 [00:27:41]wFMCommunicate OK [00:27:41]SAM_PROTO_SignData done [00:27:41]FM_MakeSignedData done [00:27:41]CreateOFDProtocolMessage [00:27:41]wFMCommunicate request_size=4 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 11 00 00 [00:27:41]Write to MH i2c: E2 08 00 8A 89 80 11 00 00 00 00 00 00 8D [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 17 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 17 00 8A 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [00:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:27:41]wFMCommunicate OK [00:27:41]CreateOFDProtocolMessage done [00:27:41]OFDSenderStorePacket 103570 [00:27:41]StoreOFDPacket docnum=103570 [00:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 12 01 00 00 DC FB 0A 01 E5 A1 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 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 04 26 72 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 0F 17 A0 67 FC 75 C5 65 9D D8 A0 AE 8D 68 [00:27:41]CheckFolder [00:27:41]dirname=/storage/ofd_packets [00:27:41]CheckFolder done [00:27:41]ProducePacketName [00:27:41]name=ofd_packets/00103570 [00:27:41]NVStorageSaveData ofd_packets/00103570 [00:27:41]File name is /storage/ofd_packets/00103570 [00:27:41]Write 304 bytes [00:27:41]NVStorageSaveData done [00:27:41]OFDSenderStorePacket done [00:27:41]KKMCreateOFDPacket done [00:27:41]NVStorageSaveData kkm_last_timestamp [00:27:41]File name is /storage/kkm_last_timestamp [00:27:41]Write 4 bytes [00:27:41]NVStorageSaveData done [00:27:41]ExternCall_PrintAddStr [00:27:41]wPrintStart [00:27:41]Write to MH i2c: 01 00 00 8B 89 14 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: 01 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: 01 07 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: 01 07 00 8B 89 00 00 00 00 00 FF 0F 29 [00:27:41]RasterBufferAndPrint [00:27:41]line Отчет об открытии смены [00:27:41]line ФФД: 1.0 [00:27:41]line ИНН: 02508201610067 [00:27:41]line Кассир: Байбугуева Г. [00:27:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:27:41]line Место: АЗС № 120 "Партнер Нефть" [00:27:41]line 19.06.2024 00:27 [00:27:41]line Смена: 353 [00:27:41]line РНМ: 0000000000092785 [00:27:41]line ЗНМ: 0300000164 [00:27:41]line ФД: 103570 [00:27:41]line ФМ: 0000000000875093 [00:27:41]line ФПД: 16594149833845 [00:27:41]written 0, free lines is 4095 [00:27:42]OFD Sender: Processing packet 103570 [packets to send 17, broken 16] [00:27:42]ProducePacketName [00:27:42]name=ofd_packets/00103570 [00:27:42]OFD Sender: To server: pG, [00:27:42]CommunicateWithHost lk.salyk.kg:30040 [00:27:42]ConnectInit lk.salyk.kg [00:27:42]Connected sock=10 [00:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 12 01 00 00 DC FB 0A 01 E5 A1 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 Write to MH i2c: D1 01 82 00 D0 00 BD 9D D0 89 B5 26 D1 [00:27:42]80 20 D0 Write i2c OK [00:27:42]9D MH_I2C_Read... [00:27:42]D0 Read from MH i2c: B5 01 D1 [00:27:42]84 MH_I2C_Read... [00:27:42]D1 82 D1 8C 22 F4 03 04 00 04 26 72 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [00:27:42]30 MH_I2C_Read... [00:27:42]30 30 Read from MH i2c: 30 01 30 07 39 00 32 9D 37 89 38 00 35 00 10 00 04 00 04 00 00 C4 92 0E 94 FF 01 [00:27:42]00 RasterBufferAndPrint [00:27:42]11 line [00:27:42]04 line [00:27:42]10 line [00:27:42]00 line [00:27:42]30 line [00:27:42]30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 0F 17 A0 67 FC 75 C5 65 9D D8 A0 AE 8D 68 [00:27:42]written 0, free lines is 3828 [00:27:42]MH_Cut [00:27:42]Write to MH i2c: D1 01 00 A4 89 01 FF [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: D1 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: D1 01 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: D1 01 00 A4 89 00 FE [00:27:42]Write to MH i2c: 01 00 00 A5 89 2E [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6F 82 47 00 B6 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 94 01 00 F4 03 04 00 90 CC 71 66 B6 04 01 00 00 BB 75 2A 37 CE 34 5D D5 [00:27:42]CommunicateWithHost err = 0 [00:27:42]CheckOFDResponse [00:27:42]1017 (14) - 77093643461234 [00:27:42]1041 (16) - 0000000000875093 [00:27:42]1040 (4) - 103570 [00:27:42]1012 (4) - 18.06.2024 18:06 [00:27:42]1206 (1) - 0 [00:27:42]OFD Sender: Remove packet 103570 [00:27:42]ProducePacketName [00:27:42]name=ofd_packets/00103570 [00:27:42]NVStorageDeleteData [00:27:42]*** Cut start [00:27:42]*** Partial cut [00:27:42]*** CUTSNS_PIN = 1 [00:27:42]*** CUTSNS_PIN = 0 [00:27:42]*** Brake cut motor [00:27:43]OFD Sender: No OFD packet to send [00:27:43]Read from MH i2c: 01 [00:27:43]MH_I2C_Read... [00:27:43]*** Stop cut motor [00:27:43]*** Cut end [00:27:43]Read from MH i2c: 01 07 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 07 00 A5 89 00 00 00 00 00 FF 0F 43 [00:27:43]process_action open_shift done [00:27:43]requested_data is exist [00:27:43]produce_requested_data [00:27:43]requested_item fd.num is exist - process it [00:27:43]SAM_PROTO_GetFieldsCounters [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 13 00 00 [00:27:43]Write to MH i2c: E2 08 00 A6 89 80 13 00 00 00 00 00 00 AB [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 62 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 62 00 A6 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:43]wFMCommunicate OK [00:27:43]SAM_PROTO_GetFieldsCounters done [00:27:43]requested_item shift.num is exist - process it [00:27:43]requested_item shift.opened is exist - process it [00:27:43]req_shift_opened [00:27:43]FM_GetShiftState [00:27:43]SAM_PROTO_GetShiftState [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 13 01 00 [00:27:43]Write to MH i2c: E2 08 00 A7 89 80 13 01 00 00 00 00 00 AD [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 0E 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 0E 00 A7 89 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BB [00:27:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:27:43]wFMCommunicate OK [00:27:43]SAM_PROTO_GetShiftState done [00:27:43]FM_GetShiftState done [00:27:43]req_shift_opened done [00:27:43]requested_item shift.open_date is exist - process it [00:27:43]req_shift_open_date [00:27:43]req_shift_open_date done [00:27:43]produce_requested_data done [00:27:43]produce_requested_data return {"fd.num":103570,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:27:43]process_action_free open_shift [00:27:43]json_value_free [00:27:43]json_value_free done [00:27:43]process_json_proto returns [00:27:43]Send response to host [00:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103570,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:27:43]free response buf [00:27:43]execute_script done [00:27:43]execute_script returns [00:27:43]free content buf [00:27:43]Sock 9.Close socket [00:27:43]Sock 9.Thread stoped [00:27:43]accept exits with 7 [00:27:43]New connection [00:27:43]New thread 3067227492 created [00:27:43]Thread 3067084132 joined [00:27:43]Waiting for new connection... [00:27:43] Sock 7.Parse request [00:27:43]Sock 7.Check first char [00:27:43]Sock 7.First char is OK [00:27:43]request: POST /json_proto HTTP/1.0 [00:27:43]Method: POST [00:27:43]URL: /json_proto [00:27:43]Method is POST - this is cgi request [00:27:43]url: /json_proto [00:27:43]query_string will be loaded in cgi processing [00:27:43]execute_cgi json_proto POST (null) [00:27:43]execute_cgi path=json_proto method=POST [00:27:43]POST find Content-Length [00:27:43]Host: 172.17.38.133:8080 [00:27:43]Content-Length: 331 [00:27:43]Content-Type: application/json [00:27:43] [00:27:43]POST finish read [00:27:43]Found Content-Length = 331 [00:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:43]execute_script... [00:27:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:43]POST & json_proto [00:27:43]process_json_proto [00:27:43]json parsed OK: [00:27:43]protocol is kg_v1.0 [00:27:43]action value=get_value [00:27:43]process_action get_value [00:27:43]cmd_get_value [00:27:43]process_action get_value done [00:27:43]requested_data is exist [00:27:43]produce_requested_data [00:27:43]requested_item fm.sale.total is exist - process it [00:27:43]SAM_PROTO_GetFMData [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 13 03 00 [00:27:43]Write to MH i2c: E2 08 00 A8 89 80 13 03 00 00 00 00 00 B0 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 A8 89 00 C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 FC [00:27:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 D0 91 01 00 69 04 A3 00 6F 04 04 00 7E 8D 01 00 B1 04 05 00 2E D2 4B 3A 04 70 04 05 00 D0 96 5C 57 03 72 04 04 00 5E 3B EF E2 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 A0 1A F3 72 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 DD 20 94 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC 1F 8D 02 EF 03 09 90 00 [00:27:44]wFMCommunicate OK [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 17 00 00 [00:27:44]Write to MH i2c: E2 08 00 A9 89 80 17 00 00 00 00 00 00 B2 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 A9 89 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 0F [00:27:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:27:44]wFMCommunicate OK [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 17 00 00 [00:27:44]Write to MH i2c: E2 08 00 AA 89 80 17 00 00 00 00 00 00 B3 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 AA 89 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C5 [00:27:44]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 17 00 00 [00:27:45]Write to MH i2c: E2 08 00 AB 89 80 17 00 00 00 00 00 00 B4 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 AB 89 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [00:27:45]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 17 00 00 [00:27:45]Write to MH i2c: E2 08 00 AC 89 80 17 00 00 00 00 00 00 B5 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 E2 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 E2 00 AC 89 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [00:27:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:45]wFMCommunicate OK [00:27:45]SAM_PROTO_GetFMData done [00:27:45]requested_item fm.sale_refund.total is exist - process it [00:27:45]requested_item fm.buy.total is exist - process it [00:27:45]requested_item shift.sale.total is exist - process it [00:27:45]SAM_PROTO_GetShiftData [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 13 02 00 [00:27:45]Write to MH i2c: E2 08 00 AD 89 80 13 02 00 00 00 00 00 B4 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 AD 89 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 27 [00:27:46]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:27:46]wFMCommunicate OK [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 17 00 00 [00:27:46]Write to MH i2c: E2 08 00 AE 89 80 17 00 00 00 00 00 00 B7 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 AE 89 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 BF [00:27:46]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:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 AF 89 80 17 00 00 00 00 00 00 B8 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 AF 89 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 8A [00:27:47]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:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 B0 89 80 17 00 00 00 00 00 00 B9 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 B0 89 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 2B [00:27:47]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:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 17 00 00 [00:27:48]Write to MH i2c: E2 08 00 B1 89 80 17 00 00 00 00 00 00 BA [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]OFD Sender: No OFD packet to send [00:27:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 BD 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 BD 00 B1 89 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 A0 [00:27:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:48]wFMCommunicate OK [00:27:48]SAM_PROTO_GetShiftData done [00:27:48]requested_item shift.sale.total_cash is exist - process it [00:27:48]requested_item shift.sale_refund.total is exist - process it [00:27:48]requested_item shift.sale_refund.total_cash is exist - process it [00:27:48]requested_item shift.buy.total is exist - process it [00:27:48]requested_item shift.buy.total_cash is exist - process it [00:27:48]produce_requested_data done [00:27:48]produce_requested_data return {"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.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:27:48]process_action_free get_value [00:27:48]json_value_free [00:27:48]json_value_free done [00:27:48]process_json_proto returns [00:27:48]Send response to host [00:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181579167.18,"fm.sale_refund.total":4030363.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:27:48]free response buf [00:27:48]execute_script done [00:27:48]execute_script returns [00:27:48]free content buf [00:27:48]Sock 7.Close socket [00:27:48]Sock 7.Thread stoped [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:02]accept exits with 9 [00:30:02]New connection [00:30:02]New thread 3067084132 created [00:30:02]Thread 3067227492 joined [00:30:02]Waiting for new connection... [00:30:02] Sock 9.Parse request [00:30:02]Sock 9.Check first char [00:30:02]Sock 9.First char is OK [00:30:02]request: POST /json_proto HTTP/1.0 [00:30:02]Method: POST [00:30:02]URL: /json_proto [00:30:02]Method is POST - this is cgi request [00:30:02]url: /json_proto [00:30:02]query_string will be loaded in cgi processing [00:30:02]execute_cgi json_proto POST (null) [00:30:02]execute_cgi path=json_proto method=POST [00:30:02]POST find Content-Length [00:30:02]Host: 172.17.38.133:8080 [00:30:02]Content-Length: 682 [00:30:02]Content-Type: application/json [00:30:02] [00:30:02]POST finish read [00:30:02]Found Content-Length = 682 [00:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [00:30:02]execute_script... [00:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [00:30:02]POST & json_proto [00:30:02]process_json_proto [00:30:02]json parsed OK: [00:30:02]protocol is kg_v1.0 [00:30:02]action value=close_receipt [00:30:02]process_action close_receipt [00:30:02]cmd_close_receipt [00:30:02]MH_GetDate [00:30:02]Write to MH i2c: F0 00 00 B2 89 2A [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 B2 89 00 94 26 72 66 BD 8F 7C 64 F1 [00:30:02]GetLastDocTimeStamp 1718756868 [00:30:02]current date 1718757012 [00:30:02]FM_GetShiftState [00:30:02]SAM_PROTO_GetShiftState [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 13 01 00 [00:30:02]Write to MH i2c: E2 08 00 B3 89 80 13 01 00 00 00 00 00 B9 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0E 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0E 00 B3 89 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [00:30:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_GetShiftState done [00:30:02]FM_GetShiftState done [00:30:02]opened in 1718756868 [00:30:02]opened+sec_in_day 1718843268 [00:30:02]quantity*price = 100064 [00:30:02]sum+1 = 100066 [00:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 1 19.06.2024 00:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103571 ФПД: 80227275590712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103571&fm=80227275590712&tin=02508201610067®Number=0000000000092785&sum=100000 [00:30:04]StoreToDocumentArchive [00:30:04]shift 353 fd 103571 [00:30:04]save to /storage/0353/doc_00103571 [00:30:04]save last doc name /storage/0353/doc_00103571 to /storage/kkm_last_doc_name [00:30:04]save OK [00:30:04]Clear old archive folders... [00:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:30:04]tlvbuf is 014F3E00 [00:30:04]SAM_PROTO_ClearQueue [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 09 00 00 [00:30:04]Write to MH i2c: E2 08 00 C0 89 80 09 00 00 00 00 00 00 BB [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 09 00 00... 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 C0 89 00 90 00 BD [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_ClearQueue done [00:30:04]KKMCreateOFDPacket [00:30:04]OFDProtocolAddRootSTLVToBuf [00:30:04]FM_MakeSignedData [00:30:04]FM_MakeSignedData [00:30:04]SAM_PROTO_SignData [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 01 02 [00:30:04]Write to MH i2c: E2 08 00 C1 89 80 0D 01 02 00 00 00 00 C3 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 01 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 C1 89 00 90 00 BE [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 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 26 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 94 01 00 35 04 06 00 48 [00:30:04]Write to MH i2c: E2 02 01 C2 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 26 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 94 01 00 35 04 06 00 48 00 00 32 [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 C2 89 00 90 00 BF [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=10 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 02 02 05 F7 5E 43 4C 38 [00:30:04]Write to MH i2c: E2 0D 00 C3 89 80 0D 02 02 05 00 F7 5E 43 4C 38 00 00 EC [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 C3 89 00 90 00 C0 [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 03 02 [00:30:04]Write to MH i2c: E2 08 00 C4 89 80 0D 03 02 00 00 00 00 C8 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0B 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0B 00 C4 89 00 43 8A EF 7D B2 29 0B 3D 90 00 25 [00:30:04]RAPDU: 43 8A EF 7D B2 29 0B 3D 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_SignData done [00:30:04]FM_MakeSignedData done [00:30:04]CreateOFDProtocolMessage [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 11 00 00 [00:30:04]Write to MH i2c: E2 08 00 C5 89 80 11 00 00 00 00 00 00 C8 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 17 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 17 00 C5 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [00:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:30:04]wFMCommunicate OK [00:30:04]CreateOFDProtocolMessage done [00:30:04]OFDSenderStorePacket 103571 [00:30:04]StoreOFDPacket docnum=103571 [00:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 91 7F 07 01 65 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 26 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 94 01 00 35 04 06 00 48 F7 5E 43 4C 38 43 8A EF 7D B2 29 0B 3D [00:30:04]CheckFolder [00:30:04]dirname=/storage/ofd_packets [00:30:04]CheckFolder done [00:30:04]ProducePacketName [00:30:04]name=ofd_packets/00103571 [00:30:04]NVStorageSaveData ofd_packets/00103571 [00:30:04]File name is /storage/ofd_packets/00103571 [00:30:04]Write 301 bytes [00:30:04]NVStorageSaveData done [00:30:04]OFDSenderStorePacket done [00:30:04]KKMCreateOFDPacket done [00:30:04]NVStorageSaveData kkm_last_timestamp [00:30:04]File name is /storage/kkm_last_timestamp [00:30:04]Write 4 bytes [00:30:04]NVStorageSaveData done [00:30:04]ExternCall_PrintAddStr [00:30:04]wPrintStart [00:30:04]Write to MH i2c: 01 00 00 C6 89 4F [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 07 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: 01 07 00 C6 89 00 00 00 00 00 FF 0F 64 [00:30:04]RasterBufferAndPrint [00:30:04]line Счет N : (1)672789 [00:30:04]line ИНН: 02508201610067 [00:30:04]line Контрольно-Кассовый Чек [00:30:04]line ПРОДАЖА [00:30:04]line ТРК (МРК, ГНК) : 42 [00:30:04]line Товар: 2710124130 [00:30:04]line Аи-92-К-5 [00:30:04]line 15.070 * 66.40 [00:30:04]line = 1000.65 [00:30:04]line НДС 12% НСП 1% [00:30:04]line > о реализуемом товаре [00:30:04]line ОКРУГЛЕНИЕ: -0.65 [00:30:04]line ИТОГО: 1000.00 [00:30:04]line Внесено: 1000.00 [00:30:04]line СДАЧА: 0.00 [00:30:04]line НСП 1% : 8.85 [00:30:04]line НДС 12% : 106.26 [00:30:04]line Наличными: 1000.00 [00:30:04]line Безнал.: 0.00 [00:30:04]line Место: АЗС № 120 "Партнер Нефть" [00:30:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:30:04]line СНО: Общий режим [00:30:04]line Чек 1 19.06.2024 00:30 [00:30:04]line Смена: 353 ФФД: 1.0 [00:30:04]line ЗНМ: 0300000164 [00:30:04]line РНМ: 0000000000092785 [00:30:04]line Версия ККМ: 001 [00:30:04]line ФМ: 0000000000875093 [00:30:04]line ФД: 103571 [00:30:04]line ФПД: 80227275590712 [00:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103571&fm=80227275590712&tin=02508201610067®Number=0000000000092785&sum=100000 [00:30:04]OFD Sender: Processing packet 103571 [packets to send 17, broken 16] [00:30:04]ProducePacketName [00:30:04]name=ofd_packets/00103571 [00:30:04]OFD Sender: To server: pG, [00:30:04]CommunicateWithHost lk.salyk.kg:30040 [00:30:04]ConnectInit lk.salyk.kg [00:30:04]written 0, free lines is 4095 [00:30:05]Connected sock=10 [00:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 91 7F 07 01 65 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 26 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 94 01 00 35 04 06 00 48 F7 5E 43 4C 38 43 8A EF 7D B2 29 0B 3D [00:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D5 B5 47 00 AA 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 94 01 00 F4 03 04 00 1E CD 71 66 B6 04 01 00 00 42 14 7F 31 90 17 5B 79 [00:30:05]CommunicateWithHost err = 0 [00:30:05]CheckOFDResponse [00:30:05]1017 (14) - 77093643461234 [00:30:05]1041 (16) - 0000000000875093 [00:30:05]1040 (4) - 103571 [00:30:05]1012 (4) - 18.06.2024 18:08 [00:30:05]1206 (1) - 0 [00:30:05]OFD Sender: Remove packet 103571 [00:30:05]ProducePacketName [00:30:05]name=ofd_packets/00103571 [00:30:05]NVStorageDeleteData [00:30:05]Write to MH i2c: 01 00 00 F1 89 7A [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 07 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: 01 07 00 F1 89 00 00 00 00 00 DD 0C 6A [00:30:05]RasterBufferAndPrint [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]line [00:30:05]written 0, free lines is 3302 [00:30:05]MH_Cut [00:30:05]Write to MH i2c: D1 01 00 F8 89 01 53 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 01 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: D1 01 00 F8 89 00 52 [00:30:05]Write to MH i2c: 01 00 00 F9 89 82 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]OFD Sender: No OFD packet to send [00:30:06]*** Cut start [00:30:06]*** Partial cut [00:30:06]*** CUTSNS_PIN = 1 [00:30:06]*** CUTSNS_PIN = 0 [00:30:06]*** Brake cut motor [00:30:06]Read from MH i2c: 01 [00:30:06]MH_I2C_Read... [00:30:06]*** Stop cut motor [00:30:06]*** Cut end [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 F9 89 00 00 00 00 00 FF 0F 97 [00:30:06]process_action close_receipt done [00:30:06]requested_data is exist [00:30:06]produce_requested_data [00:30:06]requested_item fm.sn is exist - process it [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 FA 89 80 11 00 00 00 00 00 00 FD [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 FA 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [00:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:30:06]wFMCommunicate OK [00:30:06]requested_item fd.num is exist - process it [00:30:06]SAM_PROTO_GetFieldsCounters [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 13 00 00 [00:30:06]Write to MH i2c: E2 08 00 FB 89 80 13 00 00 00 00 00 00 00 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 62 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 62 00 FB 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [00:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:06]wFMCommunicate OK [00:30:06]SAM_PROTO_GetFieldsCounters done [00:30:06]requested_item shift.num is exist - process it [00:30:06]requested_item shift.opened is exist - process it [00:30:06]req_shift_opened [00:30:06]FM_GetShiftState [00:30:06]SAM_PROTO_GetShiftState [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 13 01 00 [00:30:06]Write to MH i2c: E2 08 00 FC 89 80 13 01 00 00 00 00 00 02 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 0E 00 FC 89 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [00:30:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:30:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetShiftState done [00:30:07]FM_GetShiftState done [00:30:07]req_shift_opened done [00:30:07]requested_item shift.open_date is exist - process it [00:30:07]req_shift_open_date [00:30:07]req_shift_open_date done [00:30:07]produce_requested_data done [00:30:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103571,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:30:07]process_action_free close_receipt [00:30:07]json_value_free [00:30:07]json_value_free done [00:30:07]process_json_proto returns [00:30:07]Send response to host [00:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103571,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:30:07]free response buf [00:30:07]execute_script done [00:30:07]execute_script returns [00:30:07]free content buf [00:30:07]Sock 9.Close socket [00:30:07]Sock 9.Thread stoped [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:31:58]accept exits with 7 [00:31:58]New connection [00:31:58]New thread 3067227492 created [00:31:58]Thread 3067084132 joined [00:31:58]Waiting for new connection... [00:31:58] Sock 7.Parse request [00:31:58]Sock 7.Check first char [00:31:58]Sock 7.First char is OK [00:31:58]request: POST /json_proto HTTP/1.0 [00:31:58]Method: POST [00:31:58]URL: /json_proto [00:31:58]Method is POST - this is cgi request [00:31:58]url: /json_proto [00:31:58]query_string will be loaded in cgi processing [00:31:58]execute_cgi json_proto POST (null) [00:31:58]execute_cgi path=json_proto method=POST [00:31:58]POST find Content-Length [00:31:58]Host: 172.17.38.133:8080 [00:31:58]Content-Length: 677 [00:31:58]Content-Type: application/json [00:31:58] [00:31:58]POST finish read [00:31:58]Found Content-Length = 677 [00:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:58]execute_script... [00:31:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:58]POST & json_proto [00:31:58]process_json_proto [00:31:58]json parsed OK: [00:31:58]protocol is kg_v1.0 [00:31:58]action value=close_receipt [00:31:58]process_action close_receipt [00:31:58]cmd_close_receipt [00:31:58]MH_GetDate [00:31:58]Write to MH i2c: F0 00 00 FD 89 75 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: F0 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: F0 09 00 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: F0 09 00 FD 89 00 07 27 72 66 BD 8F 7C 64 B0 [00:31:58]GetLastDocTimeStamp 1718757012 [00:31:58]current date 1718757127 [00:31:58]FM_GetShiftState [00:31:58]SAM_PROTO_GetShiftState [00:31:58]wFMCommunicate request_size=4 [00:31:58]MH_SAM_APDU [00:31:58]CAPDU: 80 13 01 00 [00:31:58]Write to MH i2c: E2 08 00 FE 89 80 13 01 00 00 00 00 00 04 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:58]Read from MH i2c: E2 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 0E 00 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 0E 00 FE 89 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [00:31:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:31:58]wFMCommunicate OK [00:31:58]SAM_PROTO_GetShiftState done [00:31:58]FM_GetShiftState done [00:31:58]opened in 1718756868 [00:31:58]opened+sec_in_day 1718843268 [00:31:58]quantity*price = 60025 [00:31:58]sum+1 = 60027 [00:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 19.06.2024 00:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103572 ФПД: 233090802952700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003207&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103572&fm=233090802952700&tin=02508201610067®Number=0000000000092785&sum=60000 [00:31:59]StoreToDocumentArchive [00:31:59]shift 353 fd 103572 [00:31:59]save to /storage/0353/doc_00103572 [00:31:59]save last doc name /storage/0353/doc_00103572 to /storage/kkm_last_doc_name [00:31:59]save OK [00:31:59]Clear old archive folders... [00:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:31:59]tlvbuf is 013544A0 [00:31:59]SAM_PROTO_ClearQueue [00:31:59]wFMCommunicate request_size=4 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 09 00 00 [00:31:59]Write to MH i2c: E2 08 00 0B 8A 80 09 00 00 00 00 00 00 07 [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 0B 8A 00 90 00 09 [00:31:59]RAPDU: 90 00 [00:31:59]wFMCommunicate OK [00:31:59]SAM_PROTO_ClearQueue done [00:31:59]KKMCreateOFDPacket [00:31:59]OFDProtocolAddRootSTLVToBuf [00:31:59]FM_MakeSignedData [00:31:59]FM_MakeSignedData [00:31:59]SAM_PROTO_SignData [00:31:59]wFMCommunicate request_size=4 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 0D 01 02 [00:31:59]Write to MH i2c: E2 08 00 0C 8A 80 0D 01 02 00 00 00 00 0F [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 0C 8A 00 90 00 0A [00:31:59]RAPDU: 90 00 [00:31:59]wFMCommunicate OK [00:31:59]wFMCommunicate request_size=255 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 27 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 94 01 00 35 04 06 00 D3 [00:31:59]Write to MH i2c: E2 02 01 0D 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 27 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 94 01 00 35 04 06 00 D3 00 00 0C [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 0D 8A 00 90 00 0B [00:31:59]RAPDU: 90 00 [00:31:59]wFMCommunicate OK [00:31:59]wFMCommunicate request_size=10 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 0D 02 02 05 FE AE 82 A9 FC [00:31:59]Write to MH i2c: E2 0D 00 0E 8A 80 0D 02 02 05 00 FE AE 82 A9 FC 00 00 EF [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:59]Read from MH i2c: E2 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 [00:31:59]MH_I2C_Read... [00:31:59]Read from MH i2c: E2 03 00 0E 8A 00 90 00 0C [00:31:59]RAPDU: 90 00 [00:31:59]wFMCommunicate OK [00:31:59]wFMCommunicate request_size=4 [00:31:59]MH_SAM_APDU [00:31:59]CAPDU: 80 0D 03 02 [00:31:59]Write to MH i2c: E2 08 00 0F 8A 80 0D 03 02 00 00 00 00 14 [00:31:59]Write i2c OK [00:31:59]MH_I2C_Read... [00:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:00]Read from MH i2c: E2 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 0B 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 0B 00 0F 8A 00 56 8E A7 9F 31 AE 85 88 90 00 2B [00:32:00]RAPDU: 56 8E A7 9F 31 AE 85 88 90 00 [00:32:00]wFMCommunicate OK [00:32:00]SAM_PROTO_SignData done [00:32:00]FM_MakeSignedData done [00:32:00]CreateOFDProtocolMessage [00:32:00]wFMCommunicate request_size=4 [00:32:00]MH_SAM_APDU [00:32:00]CAPDU: 80 11 00 00 [00:32:00]Write to MH i2c: E2 08 00 10 8A 80 11 00 00 00 00 00 00 14 [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:00]Read from MH i2c: E2 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 17 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 17 00 10 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [00:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:32:00]wFMCommunicate OK [00:32:00]CreateOFDProtocolMessage done [00:32:00]OFDSenderStorePacket 103572 [00:32:00]StoreOFDPacket docnum=103572 [00:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1B 35 07 01 60 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 27 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 94 01 00 35 04 06 00 D3 FE AE 82 A9 FC 56 8E A7 9F 31 AE 85 88 [00:32:00]CheckFolder [00:32:00]dirname=/storage/ofd_packets [00:32:00]CheckFolder done [00:32:00]ProducePacketName [00:32:00]name=ofd_packets/00103572 [00:32:00]NVStorageSaveData ofd_packets/00103572 [00:32:00]File name is /storage/ofd_packets/00103572 [00:32:00]Write 301 bytes [00:32:00]NVStorageSaveData done [00:32:00]OFDSenderStorePacket done [00:32:00]KKMCreateOFDPacket done [00:32:00]NVStorageSaveData kkm_last_timestamp [00:32:00]File name is /storage/kkm_last_timestamp [00:32:00]Write 4 bytes [00:32:00]NVStorageSaveData done [00:32:00]ExternCall_PrintAddStr [00:32:00]wPrintStart [00:32:00]Write to MH i2c: 01 00 00 11 8A 9B [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 07 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 07 00 11 8A 00 00 00 00 00 FF 0F B0 [00:32:00]RasterBufferAndPrint [00:32:00]line Счет N : (1)672791 [00:32:00]line ИНН: 02508201610067 [00:32:00]line Контрольно-Кассовый Чек [00:32:00]line ПРОДАЖА [00:32:00]line ТРК (МРК, ГНК) : 42 [00:32:00]line Товар: 2710124130 [00:32:00]line Аи-92-К-5 [00:32:00]line 9.040 * 66.40 [00:32:00]line = 600.26 [00:32:00]line НДС 12% НСП 1% [00:32:00]line > о реализуемом товаре [00:32:00]line ОКРУГЛЕНИЕ: -0.26 [00:32:00]line ИТОГО: 600.00 [00:32:00]line Внесено: 600.00 [00:32:00]line СДАЧА: 0.00 [00:32:00]line НСП 1% : 5.31 [00:32:00]line НДС 12% : 63.74 [00:32:00]line Наличными: 600.00 [00:32:00]line Безнал.: 0.00 [00:32:00]line Место: АЗС № 120 "Партнер Нефть" [00:32:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:32:00]line СНО: Общий режим [00:32:00]line Чек 2 19.06.2024 00:32 [00:32:00]line Смена: 353 ФФД: 1.0 [00:32:00]line ЗНМ: 0300000164 [00:32:00]line РНМ: 0000000000092785 [00:32:00]line Версия ККМ: 001 [00:32:00]line ФМ: 0000000000875093 [00:32:00]line ФД: 103572 [00:32:00]line ФПД: 233090802952700 [00:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003207&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103572&fm=233090802952700&tin=02508201610067®Number=0000000000092785&sum=60000 [00:32:00]OFD Sender: Processing packet 103572 [packets to send 17, broken 16] [00:32:00]ProducePacketName [00:32:00]name=ofd_packets/00103572 [00:32:00]OFD Sender: To server: pG, [00:32:00]CommunicateWithHost lk.salyk.kg:30040 [00:32:00]ConnectInit lk.salyk.kg [00:32:00]written 0, free lines is 4095 [00:32:00]Connected sock=10 [00:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1B 35 07 01 60 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 07 27 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 94 01 00 35 04 06 00 D3 FE AE 82 A9 FC 56 8E A7 9F 31 AE 85 88 [00:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BC 51 47 00 B8 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 35 30 39 33 10 04 04 00 94 94 01 00 F4 03 04 00 92 CD 71 66 B6 04 01 00 00 87 D5 31 47 E2 43 DF D8 [00:32:00]CommunicateWithHost err = 0 [00:32:00]CheckOFDResponse [00:32:00]1017 (14) - 77093643461234 [00:32:00]1041 (16) - 0000000000875093 [00:32:00]1040 (4) - 103572 [00:32:00]1012 (4) - 18.06.2024 18:10 [00:32:00]1206 (1) - 0 [00:32:00]OFD Sender: Remove packet 103572 [00:32:00]ProducePacketName [00:32:00]name=ofd_packets/00103572 [00:32:00]NVStorageDeleteData [00:32:00]Write to MH i2c: 01 00 00 3C 8A C6 [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 07 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: 01 07 00 3C 8A 00 00 00 00 00 D8 0C B1 [00:32:00]RasterBufferAndPrint [00:32:00]line [00:32:00]line [00:32:00]line [00:32:00]line [00:32:00]line [00:32:00]written 0, free lines is 3295 [00:32:00]MH_Cut [00:32:00]Write to MH i2c: D1 01 00 43 8A 01 9F [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: D1 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: D1 01 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: D1 01 00 43 8A 00 9E [00:32:00]Write to MH i2c: 01 00 00 44 8A CE [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:01]OFD Sender: No OFD packet to send [00:32:01]*** Cut start [00:32:01]*** Partial cut [00:32:01]*** CUTSNS_PIN = 1 [00:32:01]*** CUTSNS_PIN = 0 [00:32:01]*** Brake cut motor [00:32:02]Read from MH i2c: 01 [00:32:02]MH_I2C_Read... [00:32:02]*** Stop cut motor [00:32:02]*** Cut end [00:32:02]Read from MH i2c: 01 07 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: 01 07 00 44 8A 00 00 00 00 00 FF 0F E3 [00:32:02]process_action close_receipt done [00:32:02]requested_data is exist [00:32:02]produce_requested_data [00:32:02]requested_item fm.sn is exist - process it [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 11 00 00 [00:32:02]Write to MH i2c: E2 08 00 45 8A 80 11 00 00 00 00 00 00 49 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 17 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 17 00 45 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [00:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:32:02]wFMCommunicate OK [00:32:02]requested_item fd.num is exist - process it [00:32:02]SAM_PROTO_GetFieldsCounters [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 00 00 [00:32:02]Write to MH i2c: E2 08 00 46 8A 80 13 00 00 00 00 00 00 4C [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 62 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 62 00 46 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [00:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetFieldsCounters done [00:32:02]requested_item shift.num is exist - process it [00:32:02]requested_item shift.opened is exist - process it [00:32:02]req_shift_opened [00:32:02]FM_GetShiftState [00:32:02]SAM_PROTO_GetShiftState [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 01 00 [00:32:02]Write to MH i2c: E2 08 00 47 8A 80 13 01 00 00 00 00 00 4E [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 47 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5C [00:32:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetShiftState done [00:32:02]FM_GetShiftState done [00:32:02]req_shift_opened done [00:32:02]requested_item shift.open_date is exist - process it [00:32:02]req_shift_open_date [00:32:02]req_shift_open_date done [00:32:02]produce_requested_data done [00:32:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103572,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:32:02]process_action_free close_receipt [00:32:02]json_value_free [00:32:02]json_value_free done [00:32:02]process_json_proto returns [00:32:02]Send response to host [00:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103572,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:32:02]free response buf [00:32:02]execute_script done [00:32:02]execute_script returns [00:32:02]free content buf [00:32:02]Sock 7.Close socket [00:32:02]Sock 7.Thread stoped [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:48]accept exits with 9 [00:36:48]New connection [00:36:48]New thread 3067084132 created [00:36:48]Thread 3067227492 joined [00:36:48]Waiting for new connection... [00:36:48] Sock 9.Parse request [00:36:48]Sock 9.Check first char [00:36:48]Sock 9.First char is OK [00:36:48]request: POST /json_proto HTTP/1.0 [00:36:48]Method: POST [00:36:48]URL: /json_proto [00:36:48]Method is POST - this is cgi request [00:36:48]url: /json_proto [00:36:48]query_string will be loaded in cgi processing [00:36:48]execute_cgi json_proto POST (null) [00:36:48]execute_cgi path=json_proto method=POST [00:36:48]POST find Content-Length [00:36:48]Host: 172.17.38.133:8080 [00:36:48]Content-Length: 692 [00:36:48]Content-Type: application/json [00:36:48] [00:36:48]POST finish read [00:36:48]Found Content-Length = 692 [00:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:48]execute_script... [00:36: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)672790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:48]POST & json_proto [00:36:48]process_json_proto [00:36:48]json parsed OK: [00:36:48]protocol is kg_v1.0 [00:36:48]action value=close_receipt [00:36:48]process_action close_receipt [00:36:48]cmd_close_receipt [00:36:48]MH_GetDate [00:36:48]Write to MH i2c: F0 00 00 48 8A C1 [00:36:48]Write i2c OK [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 09 00 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 09 00 48 8A 00 2A 28 72 66 BD 8F 7C 64 20 [00:36:48]GetLastDocTimeStamp 1718757127 [00:36:48]current date 1718757418 [00:36:48]FM_GetShiftState [00:36:48]SAM_PROTO_GetShiftState [00:36:48]wFMCommunicate request_size=4 [00:36:48]MH_SAM_APDU [00:36:48]CAPDU: 80 13 01 00 [00:36:48]Write to MH i2c: E2 08 00 49 8A 80 13 01 00 00 00 00 00 50 [00:36:48]Write i2c OK [00:36:48]MH_I2C_Read... [00:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:48]Read from MH i2c: E2 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: E2 0E 00 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: E2 0E 00 49 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [00:36:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:36:48]wFMCommunicate OK [00:36:48]SAM_PROTO_GetShiftState done [00:36:48]FM_GetShiftState done [00:36:48]opened in 1718756868 [00:36:48]opened+sec_in_day 1718843268 [00:36:48]quantity*price = 1000042 [00:36:48]sum+1 = 1000043 [00:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 19.06.2024 00:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103573 ФПД: 121923663330821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003658&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103573&fm=121923663330821&tin=02508201610067®Number=0000000000092785&sum=1000000 [00:36:49]StoreToDocumentArchive [00:36:49]shift 353 fd 103573 [00:36:49]save to /storage/0353/doc_00103573 [00:36:49]save last doc name /storage/0353/doc_00103573 to /storage/kkm_last_doc_name [00:36:49]save OK [00:36:49]Clear old archive folders... [00:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:36:49]tlvbuf is 015B12C0 [00:36:49]SAM_PROTO_ClearQueue [00:36:49]wFMCommunicate request_size=4 [00:36:49]MH_SAM_APDU [00:36:49]CAPDU: 80 09 00 00 [00:36:49]Write to MH i2c: E2 08 00 56 8A 80 09 00 00 00 00 00 00 52 [00:36:49]Write i2c OK [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 [00:36:49]MH_I2C_Read... [00:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:49]Read from MH i2c: E2 03 00 [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 03 00 56 8A 00 90 00 54 [00:36:49]RAPDU: 90 00 [00:36:49]wFMCommunicate OK [00:36:49]SAM_PROTO_ClearQueue done [00:36:49]KKMCreateOFDPacket [00:36:49]OFDProtocolAddRootSTLVToBuf [00:36:49]FM_MakeSignedData [00:36:49]FM_MakeSignedData [00:36:49]SAM_PROTO_SignData [00:36:49]wFMCommunicate request_size=4 [00:36:49]MH_SAM_APDU [00:36:49]CAPDU: 80 0D 01 02 [00:36:49]Write to MH i2c: E2 08 00 57 8A 80 0D 01 02 00 00 00 00 5A [00:36:49]Write i2c OK [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 [00:36:49]MH_I2C_Read... [00:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:49]Read from MH i2c: E2 03 00 [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 03 00 57 8A 00 90 00 55 [00:36:49]RAPDU: 90 00 [00:36:49]wFMCommunicate OK [00:36:49]wFMCommunicate request_size=255 [00:36:49]MH_SAM_APDU [00:36:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 2A 28 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 94 01 00 35 04 06 00 [00:36:49]Write to MH i2c: E2 02 01 58 8A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 2A 28 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 94 01 00 35 04 06 00 00 00 F0 [00:36:49]Write i2c OK [00:36:49]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 58 8A 00 90 00 56 [00:36:50]RAPDU: 90 00 [00:36:50]wFMCommunicate OK [00:36:50]wFMCommunicate request_size=11 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 0D 02 02 06 6E E3 90 A4 7E 05 [00:36:50]Write to MH i2c: E2 0E 00 59 8A 80 0D 02 02 06 00 6E E3 90 A4 7E 05 00 00 71 [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 59 8A 00 90 00 57 [00:36:50]RAPDU: 90 00 [00:36:50]wFMCommunicate OK [00:36:50]wFMCommunicate request_size=4 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 0D 03 02 [00:36:50]Write to MH i2c: E2 08 00 5A 8A 80 0D 03 02 00 00 00 00 5F [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 0B 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 0B 00 5A 8A 00 4A 21 80 3E 80 0F 8A 1B 90 00 BD [00:36:50]RAPDU: 4A 21 80 3E 80 0F 8A 1B 90 00 [00:36:50]wFMCommunicate OK [00:36:50]SAM_PROTO_SignData done [00:36:50]FM_MakeSignedData done [00:36:50]CreateOFDProtocolMessage [00:36:50]wFMCommunicate request_size=4 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 11 00 00 [00:36:50]Write to MH i2c: E2 08 00 5B 8A 80 11 00 00 00 00 00 00 5F [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 17 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 17 00 5B 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [00:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:36:50]wFMCommunicate OK [00:36:50]CreateOFDProtocolMessage done [00:36:50]OFDSenderStorePacket 103573 [00:36:50]StoreOFDPacket docnum=103573 [00:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 17 D3 08 01 D8 F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 2A 28 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 94 01 00 35 04 06 00 6E E3 90 A4 7E 05 4A 21 80 3E 80 0F 8A 1B [00:36:50]CheckFolder [00:36:50]dirname=/storage/ofd_packets [00:36:50]CheckFolder done [00:36:50]ProducePacketName [00:36:50]name=ofd_packets/00103573 [00:36:50]NVStorageSaveData ofd_packets/00103573 [00:36:50]File name is /storage/ofd_packets/00103573 [00:36:50]Write 302 bytes [00:36:50]NVStorageSaveData done [00:36:50]OFDSenderStorePacket done [00:36:50]KKMCreateOFDPacket done [00:36:50]NVStorageSaveData kkm_last_timestamp [00:36:50]File name is /storage/kkm_last_timestamp [00:36:50]Write 4 bytes [00:36:50]NVStorageSaveData done [00:36:50]ExternCall_PrintAddStr [00:36:50]wPrintStart [00:36:50]Write to MH i2c: 01 00 00 5C 8A E6 [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 07 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 07 00 5C 8A 00 00 00 00 00 FF 0F FB [00:36:50]RasterBufferAndPrint [00:36:50]line Счет N : (1)672790 [00:36:50]line ИНН: 02508201610067 [00:36:50]line Контрольно-Кассовый Чек [00:36:50]line ПРОДАЖА [00:36:50]line ТРК (МРК, ГНК) : 11 [00:36:50]line Товар: 2710194210 [00:36:50]line ДТ(л)-К-5 [00:36:50]line 137.180 * 72.90 [00:36:50]line = 10000.42 [00:36:50]line НДС 12% НСП 1% [00:36:50]line > о реализуемом товаре [00:36:50]line ОКРУГЛЕНИЕ: -0.42 [00:36:50]line ИТОГО: 10000.00 [00:36:50]line Внесено: 10000.00 [00:36:50]line СДАЧА: 0.00 [00:36:50]line НСП 1% : 88.50 [00:36:50]line НДС 12% : 1061.99 [00:36:50]line Наличными: 10000.00 [00:36:50]line Безнал.: 0.00 [00:36:50]line Место: АЗС № 120 "Партнер Нефть" [00:36:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:36:50]line СНО: Общий режим [00:36:50]line Чек 3 19.06.2024 00:36 [00:36:50]line Смена: 353 ФФД: 1.0 [00:36:50]line ЗНМ: 0300000164 [00:36:50]line РНМ: 0000000000092785 [00:36:50]line Версия ККМ: 001 [00:36:50]line ФМ: 0000000000875093 [00:36:50]line ФД: 103573 [00:36:50]line ФПД: 121923663330821 [00:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T003658&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103573&fm=121923663330821&tin=02508201610067®Number=0000000000092785&sum=1000000 [00:36:50]OFD Sender: Processing packet 103573 [packets to send 17, broken 16] [00:36:50]ProducePacketName [00:36:50]name=ofd_packets/00103573 [00:36:50]OFD Sender: To server: pG, [00:36:50]CommunicateWithHost lk.salyk.kg:30040 [00:36:50]ConnectInit lk.salyk.kg [00:36:50]written 0, free lines is 4095 [00:36:50]Connected sock=10 [00:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 17 D3 08 01 D8 F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 2A 28 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 94 01 00 35 04 06 00 6E E3 90 A4 7E 05 4A 21 80 3E 80 0F 8A 1B [00:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D7 09 47 00 19 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 94 01 00 F4 03 04 00 B4 CE 71 66 B6 04 01 00 00 FC 8B B7 3F 3E 54 DC AE [00:36:50]CommunicateWithHost err = 0 [00:36:50]CheckOFDResponse [00:36:50]1017 (14) - 77093643461234 [00:36:50]1041 (16) - 0000000000875093 [00:36:50]1040 (4) - 103573 [00:36:50]1012 (4) - 18.06.2024 18:15 [00:36:50]1206 (1) - 0 [00:36:50]OFD Sender: Remove packet 103573 [00:36:50]ProducePacketName [00:36:50]name=ofd_packets/00103573 [00:36:50]NVStorageDeleteData [00:36:51]Write to MH i2c: 01 00 00 87 8A 11 [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 07 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 07 00 87 8A 00 00 00 00 00 DA 0C FE [00:36:51]RasterBufferAndPrint [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]written 0, free lines is 3297 [00:36:51]MH_Cut [00:36:51]Write to MH i2c: D1 01 00 8E 8A 01 EA [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 01 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 01 00 8E 8A 00 E9 [00:36:51]Write to MH i2c: 01 00 00 8F 8A 19 [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]OFD Sender: No OFD packet to send [00:36:51]*** Cut start [00:36:51]*** Partial cut [00:36:51]*** CUTSNS_PIN = 1 [00:36:51]*** CUTSNS_PIN = 0 [00:36:52]*** Brake cut motor [00:36:52]Read from MH i2c: 01 [00:36:52]MH_I2C_Read... [00:36:52]*** Stop cut motor [00:36:52]*** Cut end [00:36:52]Read from MH i2c: 01 07 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: 01 07 00 8F 8A 00 00 00 00 00 FF 0F 2E [00:36:52]process_action close_receipt done [00:36:52]requested_data is exist [00:36:52]produce_requested_data [00:36:52]requested_item fm.sn is exist - process it [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 11 00 00 [00:36:52]Write to MH i2c: E2 08 00 90 8A 80 11 00 00 00 00 00 00 94 [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 17 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 17 00 90 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [00:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:36:52]wFMCommunicate OK [00:36:52]requested_item fd.num is exist - process it [00:36:52]SAM_PROTO_GetFieldsCounters [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 13 00 00 [00:36:52]Write to MH i2c: E2 08 00 91 8A 80 13 00 00 00 00 00 00 97 [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 62 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 62 00 91 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:52]wFMCommunicate OK [00:36:52]SAM_PROTO_GetFieldsCounters done [00:36:52]requested_item shift.num is exist - process it [00:36:52]requested_item shift.opened is exist - process it [00:36:52]req_shift_opened [00:36:52]FM_GetShiftState [00:36:52]SAM_PROTO_GetShiftState [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 13 01 00 [00:36:52]Write to MH i2c: E2 08 00 92 8A 80 13 01 00 00 00 00 00 99 [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 0E 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 0E 00 92 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [00:36:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:36:52]wFMCommunicate OK [00:36:52]SAM_PROTO_GetShiftState done [00:36:52]FM_GetShiftState done [00:36:52]req_shift_opened done [00:36:52]requested_item shift.open_date is exist - process it [00:36:52]req_shift_open_date [00:36:52]req_shift_open_date done [00:36:52]produce_requested_data done [00:36:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103573,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:36:52]process_action_free close_receipt [00:36:52]json_value_free [00:36:52]json_value_free done [00:36:52]process_json_proto returns [00:36:52]Send response to host [00:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103573,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:36:52]free response buf [00:36:52]execute_script done [00:36:52]execute_script returns [00:36:52]free content buf [00:36:52]Sock 9.Close socket [00:36:52]Sock 9.Thread stoped [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:17]accept exits with 7 [00:45:17]New connection [00:45:17]New thread 3067227492 created [00:45:17]Thread 3067084132 joined [00:45:17]Waiting for new connection... [00:45:17] Sock 7.Parse request [00:45:17]Sock 7.Check first char [00:45:17]Sock 7.First char is OK [00:45:17]request: POST /json_proto HTTP/1.0 [00:45:17]Method: POST [00:45:17]URL: /json_proto [00:45:17]Method is POST - this is cgi request [00:45:17]url: /json_proto [00:45:17]query_string will be loaded in cgi processing [00:45:17]execute_cgi json_proto POST (null) [00:45:17]execute_cgi path=json_proto method=POST [00:45:17]POST find Content-Length [00:45:17]Host: 172.17.38.133:8080 [00:45:17]Content-Length: 682 [00:45:17]Content-Type: application/json [00:45:17] [00:45:17]POST finish read [00:45:17]Found Content-Length = 682 [00:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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" ] } } [00:45:17]execute_script... [00:45:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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" ] } } [00:45:17]POST & json_proto [00:45:17]process_json_proto [00:45:17]json parsed OK: [00:45:17]protocol is kg_v1.0 [00:45:17]action value=close_receipt [00:45:17]process_action close_receipt [00:45:17]cmd_close_receipt [00:45:17]MH_GetDate [00:45:17]Write to MH i2c: F0 00 00 93 8A 0C [00:45:17]Write i2c OK [00:45:17]MH_I2C_Read... [00:45:17]Read from MH i2c: F0 [00:45:17]MH_I2C_Read... [00:45:17]Read from MH i2c: F0 09 00 [00:45:17]MH_I2C_Read... [00:45:17]Read from MH i2c: F0 09 00 93 8A 00 27 2A 72 66 BD 8F 7C 64 6A [00:45:17]GetLastDocTimeStamp 1718757418 [00:45:17]current date 1718757927 [00:45:17]FM_GetShiftState [00:45:17]SAM_PROTO_GetShiftState [00:45:17]wFMCommunicate request_size=4 [00:45:17]MH_SAM_APDU [00:45:17]CAPDU: 80 13 01 00 [00:45:17]Write to MH i2c: E2 08 00 94 8A 80 13 01 00 00 00 00 00 9B [00:45:17]Write i2c OK [00:45:17]MH_I2C_Read... [00:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:18]Read from MH i2c: E2 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 0E 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 0E 00 94 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [00:45:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:45:18]wFMCommunicate OK [00:45:18]SAM_PROTO_GetShiftState done [00:45:18]FM_GetShiftState done [00:45:18]opened in 1718756868 [00:45:18]opened+sec_in_day 1718843268 [00:45:18]quantity*price = 100060 [00:45:18]sum+1 = 100062 [00:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 19.06.2024 00:45 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103574 ФПД: 240738089542358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T004527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103574&fm=240738089542358&tin=02508201610067®Number=0000000000092785&sum=100000 [00:45:19]StoreToDocumentArchive [00:45:19]shift 353 fd 103574 [00:45:19]save to /storage/0353/doc_00103574 [00:45:19]save last doc name /storage/0353/doc_00103574 to /storage/kkm_last_doc_name [00:45:19]save OK [00:45:19]Clear old archive folders... [00:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:19]tlvbuf is 013B1C10 [00:45:19]SAM_PROTO_ClearQueue [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 09 00 00 [00:45:19]Write to MH i2c: E2 08 00 A1 8A 80 09 00 00 00 00 00 00 9D [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 A1 8A 00 90 00 9F [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]SAM_PROTO_ClearQueue done [00:45:19]KKMCreateOFDPacket [00:45:19]OFDProtocolAddRootSTLVToBuf [00:45:19]FM_MakeSignedData [00:45:19]FM_MakeSignedData [00:45:19]SAM_PROTO_SignData [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 0D 01 02 [00:45:19]Write to MH i2c: E2 08 00 A2 8A 80 0D 01 02 00 00 00 00 A5 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 A2 8A 00 90 00 A0 [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=255 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 2A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 94 01 00 35 04 06 00 DA [00:45:19]Write to MH i2c: E2 02 01 A3 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 2A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 94 01 00 35 04 06 00 DA 00 00 34 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 A3 8A 00 90 00 A1 [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=10 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 0D 02 02 05 F3 34 4F A2 D6 [00:45:19]Write to MH i2c: E2 0D 00 A4 8A 80 0D 02 02 05 00 F3 34 4F A2 D6 00 00 A0 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 A4 8A 00 90 00 A2 [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 0D 03 02 [00:45:19]Write to MH i2c: E2 08 00 A5 8A 80 0D 03 02 00 00 00 00 AA [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 0B 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 0B 00 A5 8A 00 94 0E 6C 33 E9 D7 75 66 90 00 87 [00:45:19]RAPDU: 94 0E 6C 33 E9 D7 75 66 90 00 [00:45:19]wFMCommunicate OK [00:45:19]SAM_PROTO_SignData done [00:45:19]FM_MakeSignedData done [00:45:19]CreateOFDProtocolMessage [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 11 00 00 [00:45:19]Write to MH i2c: E2 08 00 A6 8A 80 11 00 00 00 00 00 00 AA [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 17 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 17 00 A6 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [00:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:45:19]wFMCommunicate OK [00:45:19]CreateOFDProtocolMessage done [00:45:19]OFDSenderStorePacket 103574 [00:45:19]StoreOFDPacket docnum=103574 [00:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 58 07 01 97 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 2A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 94 01 00 35 04 06 00 DA F3 34 4F A2 D6 94 0E 6C 33 E9 D7 75 66 [00:45:19]CheckFolder [00:45:19]dirname=/storage/ofd_packets [00:45:19]CheckFolder done [00:45:19]ProducePacketName [00:45:19]name=ofd_packets/00103574 [00:45:19]NVStorageSaveData ofd_packets/00103574 [00:45:19]File name is /storage/ofd_packets/00103574 [00:45:19]Write 301 bytes [00:45:19]NVStorageSaveData done [00:45:19]OFDSenderStorePacket done [00:45:19]KKMCreateOFDPacket done [00:45:19]NVStorageSaveData kkm_last_timestamp [00:45:19]File name is /storage/kkm_last_timestamp [00:45:19]Write 4 bytes [00:45:19]NVStorageSaveData done [00:45:19]ExternCall_PrintAddStr [00:45:19]wPrintStart [00:45:19]Write to MH i2c: 01 00 00 A7 8A 31 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: 01 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: 01 07 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: 01 07 00 A7 8A 00 00 00 00 00 FF 0F 46 [00:45:19]RasterBufferAndPrint [00:45:19]line Счет N : (1)672792 [00:45:19]line ИНН: 02508201610067 [00:45:19]line Контрольно-Кассовый Чек [00:45:19]line ПРОДАЖА [00:45:19]line ТРК (МРК, ГНК) : 41 [00:45:19]line Товар: 2710124500 [00:45:19]line Аи-95-К-5 [00:45:19]line 13.540 * 73.90 [00:45:19]line = 1000.61 [00:45:19]line НДС 12% НСП 1% [00:45:19]line > о реализуемом товаре [00:45:19]line ОКРУГЛЕНИЕ: -0.61 [00:45:19]line ИТОГО: 1000.00 [00:45:19]line Внесено: 1000.00 [00:45:19]line СДАЧА: 0.00 [00:45:19]line НСП 1% : 8.85 [00:45:19]line НДС 12% : 106.26 [00:45:19]line Наличными: 1000.00 [00:45:19]line Безнал.: 0.00 [00:45:19]line Место: АЗС № 120 "Партнер Нефть" [00:45:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:45:19]line СНО: Общий режим [00:45:19]line Чек 4 19.06.2024 00:45 [00:45:19]line Смена: 353 ФФД: 1.0 [00:45:19]line ЗНМ: 0300000164 [00:45:19]line РНМ: 0000000000092785 [00:45:19]line Версия ККМ: 001 [00:45:19]line ФМ: 0000000000875093 [00:45:19]line ФД: 103574 [00:45:19]line ФПД: 240738089542358 [00:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T004527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103574&fm=240738089542358&tin=02508201610067®Number=0000000000092785&sum=100000 [00:45:20]OFD Sender: Processing packet 103574 [packets to send 17, broken 16] [00:45:20]ProducePacketName [00:45:20]name=ofd_packets/00103574 [00:45:20]OFD Sender: To server: pG, [00:45:20]CommunicateWithHost lk.salyk.kg:30040 [00:45:20]ConnectInit lk.salyk.kg [00:45:20]written 0, free lines is 4095 [00:45:20]Connected sock=10 [00:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 58 07 01 97 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 27 2A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 94 01 00 35 04 06 00 DA F3 34 4F A2 D6 94 0E 6C 33 E9 D7 75 66 [00:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 23 9D 47 00 DB 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 94 01 00 F4 03 04 00 B2 D0 71 66 B6 04 01 00 00 4E 24 88 EE 4D 5D 55 38 [00:45:20]CommunicateWithHost err = 0 [00:45:20]CheckOFDResponse [00:45:20]1017 (14) - 77093643461234 [00:45:20]1041 (16) - 0000000000875093 [00:45:20]1040 (4) - 103574 [00:45:20]1012 (4) - 18.06.2024 18:23 [00:45:20]1206 (1) - 0 [00:45:20]OFD Sender: Remove packet 103574 [00:45:20]ProducePacketName [00:45:20]name=ofd_packets/00103574 [00:45:20]NVStorageDeleteData [00:45:20]Write to MH i2c: 01 00 00 D2 8A 5C [00:45:20]Write i2c OK [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: 01 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: 01 07 00 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: 01 07 00 D2 8A 00 00 00 00 00 DF 0C 4E [00:45:20]RasterBufferAndPrint [00:45:20]line [00:45:20]line [00:45:20]line [00:45:20]line [00:45:20]line [00:45:20]written 0, free lines is 3302 [00:45:20]MH_Cut [00:45:20]Write to MH i2c: D1 01 00 D9 8A 01 35 [00:45:20]Write i2c OK [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: D1 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: D1 01 00 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: D1 01 00 D9 8A 00 34 [00:45:20]Write to MH i2c: 01 00 00 DA 8A 64 [00:45:20]Write i2c OK [00:45:20]MH_I2C_Read... [00:45:20]OFD Sender: No OFD packet to send [00:45:21]*** Cut start [00:45:21]*** Partial cut [00:45:21]*** CUTSNS_PIN = 1 [00:45:21]*** CUTSNS_PIN = 0 [00:45:21]*** Brake cut motor [00:45:21]Read from MH i2c: 01 [00:45:21]MH_I2C_Read... [00:45:21]*** Stop cut motor [00:45:21]*** Cut end [00:45:21]Read from MH i2c: 01 07 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: 01 07 00 DA 8A 00 00 00 00 00 FF 0F 79 [00:45:21]process_action close_receipt done [00:45:21]requested_data is exist [00:45:21]produce_requested_data [00:45:21]requested_item fm.sn is exist - process it [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 11 00 00 [00:45:21]Write to MH i2c: E2 08 00 DB 8A 80 11 00 00 00 00 00 00 DF [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 17 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 17 00 DB 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [00:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:45:21]wFMCommunicate OK [00:45:21]requested_item fd.num is exist - process it [00:45:21]SAM_PROTO_GetFieldsCounters [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 13 00 00 [00:45:21]Write to MH i2c: E2 08 00 DC 8A 80 13 00 00 00 00 00 00 E2 [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 62 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 62 00 DC 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:22]wFMCommunicate OK [00:45:22]SAM_PROTO_GetFieldsCounters done [00:45:22]requested_item shift.num is exist - process it [00:45:22]requested_item shift.opened is exist - process it [00:45:22]req_shift_opened [00:45:22]FM_GetShiftState [00:45:22]SAM_PROTO_GetShiftState [00:45:22]wFMCommunicate request_size=4 [00:45:22]MH_SAM_APDU [00:45:22]CAPDU: 80 13 01 00 [00:45:22]Write to MH i2c: E2 08 00 DD 8A 80 13 01 00 00 00 00 00 E4 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0E 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0E 00 DD 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F2 [00:45:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:45:22]wFMCommunicate OK [00:45:22]SAM_PROTO_GetShiftState done [00:45:22]FM_GetShiftState done [00:45:22]req_shift_opened done [00:45:22]requested_item shift.open_date is exist - process it [00:45:22]req_shift_open_date [00:45:22]req_shift_open_date done [00:45:22]produce_requested_data done [00:45:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103574,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:45:22]process_action_free close_receipt [00:45:22]json_value_free [00:45:22]json_value_free done [00:45:22]process_json_proto returns [00:45:22]Send response to host [00:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103574,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:45:22]free response buf [00:45:22]execute_script done [00:45:22]execute_script returns [00:45:22]free content buf [00:45:22]Sock 7.Close socket [00:45:22]Sock 7.Thread stoped [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47: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:03]accept exits with 9 [00:54:03]New connection [00:54:03]New thread 3067084132 created [00:54:03]Thread 3067227492 joined [00:54:03]Waiting for new connection... [00:54:03] Sock 9.Parse request [00:54:03]Sock 9.Check first char [00:54:03]Sock 9.First char is OK [00:54:03]request: POST /json_proto HTTP/1.0 [00:54:03]Method: POST [00:54:03]URL: /json_proto [00:54:03]Method is POST - this is cgi request [00:54:03]url: /json_proto [00:54:03]query_string will be loaded in cgi processing [00:54:03]execute_cgi json_proto POST (null) [00:54:03]execute_cgi path=json_proto method=POST [00:54:03]POST find Content-Length [00:54:03]Host: 172.17.38.133:8080 [00:54:03]Content-Length: 800 [00:54:03]Content-Type: application/json [00:54:03] [00:54:03]POST finish read [00:54:03]Found Content-Length = 800 [00:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:03]execute_script... [00:54:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:03]POST & json_proto [00:54:03]process_json_proto [00:54:03]json parsed OK: [00:54:03]protocol is kg_v1.0 [00:54:03]action value=close_receipt [00:54:03]process_action close_receipt [00:54:03]cmd_close_receipt [00:54:03]MH_GetDate [00:54:03]Write to MH i2c: F0 00 00 DE 8A 57 [00:54:03]Write i2c OK [00:54:03]MH_I2C_Read... [00:54:03]Read from MH i2c: F0 [00:54:03]MH_I2C_Read... [00:54:03]Read from MH i2c: F0 09 00 [00:54:03]MH_I2C_Read... [00:54:03]Read from MH i2c: F0 09 00 DE 8A 00 34 2C 72 66 BD 8F 7C 64 C4 [00:54:03]GetLastDocTimeStamp 1718757927 [00:54:03]current date 1718758452 [00:54:03]FM_GetShiftState [00:54:03]SAM_PROTO_GetShiftState [00:54:03]wFMCommunicate request_size=4 [00:54:03]MH_SAM_APDU [00:54:03]CAPDU: 80 13 01 00 [00:54:03]Write to MH i2c: E2 08 00 DF 8A 80 13 01 00 00 00 00 00 E6 [00:54:03]Write i2c OK [00:54:03]MH_I2C_Read... [00:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:03]Read from MH i2c: E2 [00:54:03]MH_I2C_Read... [00:54:03]Read from MH i2c: E2 0E 00 [00:54:03]MH_I2C_Read... [00:54:03]Read from MH i2c: E2 0E 00 DF 8A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F4 [00:54:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:54:03]wFMCommunicate OK [00:54:03]SAM_PROTO_GetShiftState done [00:54:03]FM_GetShiftState done [00:54:03]opened in 1718756868 [00:54:03]opened+sec_in_day 1718843268 [00:54:03]quantity*price = 50065 [00:54:03]sum+1 = 50067 [00:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 19.06.2024 00:54 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103575 ФПД: 55956765129645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T005412&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103575&fm=55956765129645&tin=02508201610067®Number=0000000000092785&sum=50066 [00:54:04]StoreToDocumentArchive [00:54:04]shift 353 fd 103575 [00:54:04]save to /storage/0353/doc_00103575 [00:54:04]save last doc name /storage/0353/doc_00103575 to /storage/kkm_last_doc_name [00:54:04]save OK [00:54:04]Clear old archive folders... [00:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:54:04]tlvbuf is 0134FA40 [00:54:04]SAM_PROTO_ClearQueue [00:54:04]wFMCommunicate request_size=4 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 09 00 00 [00:54:04]Write to MH i2c: E2 08 00 EC 8A 80 09 00 00 00 00 00 00 E8 [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 EC 8A 00 90 00 EA [00:54:04]RAPDU: 90 00 [00:54:04]wFMCommunicate OK [00:54:04]SAM_PROTO_ClearQueue done [00:54:04]KKMCreateOFDPacket [00:54:04]OFDProtocolAddRootSTLVToBuf [00:54:04]FM_MakeSignedData [00:54:04]FM_MakeSignedData [00:54:04]SAM_PROTO_SignData [00:54:04]wFMCommunicate request_size=4 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 0D 01 02 [00:54:04]Write to MH i2c: E2 08 00 ED 8A 80 0D 01 02 00 00 00 00 F0 [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 ED 8A 00 90 00 EB [00:54:04]RAPDU: 90 00 [00:54:04]wFMCommunicate OK [00:54:04]wFMCommunicate request_size=255 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 34 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 94 01 00 35 04 06 00 32 [00:54:04]Write to MH i2c: E2 02 01 EE 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 34 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 94 01 00 35 04 06 00 32 00 00 2B [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 EE 8A 00 90 00 EC [00:54:04]RAPDU: 90 00 [00:54:04]wFMCommunicate OK [00:54:04]wFMCommunicate request_size=10 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 0D 02 02 05 E4 73 1B BB AD [00:54:04]Write to MH i2c: E2 0D 00 EF 8A 80 0D 02 02 05 00 E4 73 1B BB AD 00 00 D7 [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 03 00 EF 8A 00 90 00 ED [00:54:04]RAPDU: 90 00 [00:54:04]wFMCommunicate OK [00:54:04]wFMCommunicate request_size=4 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 0D 03 02 [00:54:04]Write to MH i2c: E2 08 00 F0 8A 80 0D 03 02 00 00 00 00 F5 [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 0B 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 0B 00 F0 8A 00 0E 0B 4A EA FF FC 0B F3 90 00 3C [00:54:04]RAPDU: 0E 0B 4A EA FF FC 0B F3 90 00 [00:54:04]wFMCommunicate OK [00:54:04]SAM_PROTO_SignData done [00:54:04]FM_MakeSignedData done [00:54:04]CreateOFDProtocolMessage [00:54:04]wFMCommunicate request_size=4 [00:54:04]MH_SAM_APDU [00:54:04]CAPDU: 80 11 00 00 [00:54:04]Write to MH i2c: E2 08 00 F1 8A 80 11 00 00 00 00 00 00 F5 [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:04]Read from MH i2c: E2 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 17 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: E2 17 00 F1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [00:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:54:04]wFMCommunicate OK [00:54:04]CreateOFDProtocolMessage done [00:54:04]OFDSenderStorePacket 103575 [00:54:04]StoreOFDPacket docnum=103575 [00:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 6F 07 01 34 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 34 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 94 01 00 35 04 06 00 32 E4 73 1B BB AD 0E 0B 4A EA FF FC 0B F3 [00:54:04]CheckFolder [00:54:04]dirname=/storage/ofd_packets [00:54:04]CheckFolder done [00:54:04]ProducePacketName [00:54:04]name=ofd_packets/00103575 [00:54:04]NVStorageSaveData ofd_packets/00103575 [00:54:04]File name is /storage/ofd_packets/00103575 [00:54:04]Write 301 bytes [00:54:04]NVStorageSaveData done [00:54:04]OFDSenderStorePacket done [00:54:04]KKMCreateOFDPacket done [00:54:04]NVStorageSaveData kkm_last_timestamp [00:54:04]File name is /storage/kkm_last_timestamp [00:54:04]Write 4 bytes [00:54:04]NVStorageSaveData done [00:54:04]ExternCall_PrintAddStr [00:54:04]wPrintStart [00:54:04]Write to MH i2c: 01 00 00 F2 8A 7C [00:54:04]Write i2c OK [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: 01 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: 01 07 00 [00:54:04]MH_I2C_Read... [00:54:04]Read from MH i2c: 01 07 00 F2 8A 00 00 00 00 00 FF 0F 91 [00:54:04]RasterBufferAndPrint [00:54:04]line Счет N : (1)672793 [00:54:04]line ИНН: 02508201610067 [00:54:04]line Контрольно-Кассовый Чек [00:54:04]line ПРОДАЖА [00:54:04]line ТРК (МРК, ГНК) : 42 [00:54:04]line Товар: 2710124130 [00:54:04]line Аи-92-К-5 [00:54:04]line 7.540 * 66.40 [00:54:04]line = 500.66 [00:54:04]line НДС 12% НСП 1% [00:54:04]line > о реализуемом товаре [00:54:04]line ИТОГО: 500.66 [00:54:04]line НСП 1% : 4.43 [00:54:04]line НДС 12% : 53.17 [00:54:04]line Наличными: 0.00 [00:54:04]line Безнал.: 500.66 [00:54:04]line Место: АЗС № 120 "Партнер Нефть" [00:54:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:54:04]line СНО: Общий режим [00:54:04]line Чек 5 19.06.2024 00:54 [00:54:04]line Смена: 353 ФФД: 1.0 [00:54:04]line ЗНМ: 0300000164 [00:54:04]line РНМ: 0000000000092785 [00:54:04]line Версия ККМ: 001 [00:54:04]line Платежная система: O! деньги [00:54:04]line ФМ: 0000000000875093 [00:54:04]line ФД: 103575 [00:54:04]line ФПД: 55956765129645 [00:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T005412&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103575&fm=55956765129645&tin=02508201610067®Number=0000000000092785&sum=50066 [00:54:05]OFD Sender: Processing packet 103575 [packets to send 17, broken 16] [00:54:05]ProducePacketName [00:54:05]name=ofd_packets/00103575 [00:54:05]OFD Sender: To server: pG, [00:54:05]CommunicateWithHost lk.salyk.kg:30040 [00:54:05]ConnectInit lk.salyk.kg [00:54:05]written 0, free lines is 4095 [00:54:05]Connected sock=10 [00:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 6F 07 01 34 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 34 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 94 01 00 35 04 06 00 32 E4 73 1B BB AD 0E 0B 4A EA FF FC 0B F3 [00:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 04 20 47 00 38 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 35 30 39 33 10 04 04 00 97 94 01 00 F4 03 04 00 BF D2 71 66 B6 04 01 00 00 1A DD BC A8 07 09 BB CA [00:54:05]CommunicateWithHost err = 0 [00:54:05]CheckOFDResponse [00:54:05]1017 (14) - 77093643461234 [00:54:05]1041 (16) - 0000000000875093 [00:54:05]1040 (4) - 103575 [00:54:05]1012 (4) - 18.06.2024 18:32 [00:54:05]1206 (1) - 0 [00:54:05]OFD Sender: Remove packet 103575 [00:54:05]ProducePacketName [00:54:05]name=ofd_packets/00103575 [00:54:05]NVStorageDeleteData [00:54:05]Write to MH i2c: 01 00 00 1C 8B A7 [00:54:05]Write i2c OK [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: 01 [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: 01 07 00 [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: 01 07 00 1C 8B 00 00 00 00 00 DC 0C 96 [00:54:05]RasterBufferAndPrint [00:54:05]line [00:54:05]line [00:54:05]line [00:54:05]line [00:54:05]line [00:54:05]written 0, free lines is 3298 [00:54:05]MH_Cut [00:54:05]Write to MH i2c: D1 01 00 23 8B 01 80 [00:54:05]Write i2c OK [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: D1 [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: D1 01 00 [00:54:05]MH_I2C_Read... [00:54:05]Read from MH i2c: D1 01 00 23 8B 00 7F [00:54:05]Write to MH i2c: 01 00 00 24 8B AF [00:54:05]Write i2c OK [00:54:05]MH_I2C_Read... [00:54:06]OFD Sender: No OFD packet to send [00:54:06]*** Cut start [00:54:06]*** Partial cut [00:54:06]*** CUTSNS_PIN = 1 [00:54:06]*** CUTSNS_PIN = 0 [00:54:06]*** Brake cut motor [00:54:06]Read from MH i2c: 01 [00:54:06]MH_I2C_Read... [00:54:06]*** Stop cut motor [00:54:06]*** Cut end [00:54:06]Read from MH i2c: 01 07 00 [00:54:06]MH_I2C_Read... [00:54:06]Read from MH i2c: 01 07 00 24 8B 00 00 00 00 00 FF 0F C4 [00:54:06]process_action close_receipt done [00:54:06]requested_data is exist [00:54:06]produce_requested_data [00:54:06]requested_item fm.sn is exist - process it [00:54:06]wFMCommunicate request_size=4 [00:54:06]MH_SAM_APDU [00:54:06]CAPDU: 80 11 00 00 [00:54:06]Write to MH i2c: E2 08 00 25 8B 80 11 00 00 00 00 00 00 2A [00:54:06]Write i2c OK [00:54:06]MH_I2C_Read... [00:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:07]Read from MH i2c: E2 [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 17 00 [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 17 00 25 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [00:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:54:07]wFMCommunicate OK [00:54:07]requested_item fd.num is exist - process it [00:54:07]SAM_PROTO_GetFieldsCounters [00:54:07]wFMCommunicate request_size=4 [00:54:07]MH_SAM_APDU [00:54:07]CAPDU: 80 13 00 00 [00:54:07]Write to MH i2c: E2 08 00 26 8B 80 13 00 00 00 00 00 00 2D [00:54:07]Write i2c OK [00:54:07]MH_I2C_Read... [00:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:07]Read from MH i2c: E2 [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 62 00 [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 62 00 26 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 97 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [00:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 97 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:07]wFMCommunicate OK [00:54:07]SAM_PROTO_GetFieldsCounters done [00:54:07]requested_item shift.num is exist - process it [00:54:07]requested_item shift.opened is exist - process it [00:54:07]req_shift_opened [00:54:07]FM_GetShiftState [00:54:07]SAM_PROTO_GetShiftState [00:54:07]wFMCommunicate request_size=4 [00:54:07]MH_SAM_APDU [00:54:07]CAPDU: 80 13 01 00 [00:54:07]Write to MH i2c: E2 08 00 27 8B 80 13 01 00 00 00 00 00 2F [00:54:07]Write i2c OK [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 [00:54:07]MH_I2C_Read... [00:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:07]Read from MH i2c: E2 0E 00 [00:54:07]MH_I2C_Read... [00:54:07]Read from MH i2c: E2 0E 00 27 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3D [00:54:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:54:07]wFMCommunicate OK [00:54:07]SAM_PROTO_GetShiftState done [00:54:07]FM_GetShiftState done [00:54:07]req_shift_opened done [00:54:07]requested_item shift.open_date is exist - process it [00:54:07]req_shift_open_date [00:54:07]req_shift_open_date done [00:54:07]produce_requested_data done [00:54:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103575,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:54:07]process_action_free close_receipt [00:54:07]json_value_free [00:54:07]json_value_free done [00:54:07]process_json_proto returns [00:54:07]Send response to host [00:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103575,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:54:07]free response buf [00:54:07]execute_script done [00:54:07]execute_script returns [00:54:07]free content buf [00:54:07]Sock 9.Close socket [00:54:07]Sock 9.Thread stoped [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:01]accept exits with 7 [00:55:01]New connection [00:55:01]New thread 3067227492 created [00:55:01]Thread 3067084132 joined [00:55:01]Waiting for new connection... [00:55:01] Sock 7.Parse request [00:55:01]Sock 7.Check first char [00:55:01]Sock 7.First char is OK [00:55:01]request: POST /json_proto HTTP/1.0 [00:55:01]Method: POST [00:55:01]URL: /json_proto [00:55:01]Method is POST - this is cgi request [00:55:01]url: /json_proto [00:55:01]query_string will be loaded in cgi processing [00:55:01]execute_cgi json_proto POST (null) [00:55:01]execute_cgi path=json_proto method=POST [00:55:01]POST find Content-Length [00:55:01]Host: 172.17.38.133:8080 [00:55:01]Content-Length: 677 [00:55:01]Content-Type: application/json [00:55:01] [00:55:01]POST finish read [00:55:01]Found Content-Length = 677 [00:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:55:01]execute_script... [00:55:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:55:01]POST & json_proto [00:55:01]process_json_proto [00:55:01]json parsed OK: [00:55:01]protocol is kg_v1.0 [00:55:01]action value=close_receipt [00:55:01]process_action close_receipt [00:55:01]cmd_close_receipt [00:55:01]MH_GetDate [00:55:01]Write to MH i2c: F0 00 00 28 8B A2 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: F0 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: F0 09 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: F0 09 00 28 8B 00 6E 2C 72 66 BD 8F 7C 64 49 [00:55:01]GetLastDocTimeStamp 1718758452 [00:55:01]current date 1718758510 [00:55:01]FM_GetShiftState [00:55:01]SAM_PROTO_GetShiftState [00:55:01]wFMCommunicate request_size=4 [00:55:01]MH_SAM_APDU [00:55:01]CAPDU: 80 13 01 00 [00:55:01]Write to MH i2c: E2 08 00 29 8B 80 13 01 00 00 00 00 00 31 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:01]Read from MH i2c: E2 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 0E 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: E2 0E 00 29 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3F [00:55:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:55:01]wFMCommunicate OK [00:55:01]SAM_PROTO_GetShiftState done [00:55:01]FM_GetShiftState done [00:55:01]opened in 1718756868 [00:55:01]opened+sec_in_day 1718843268 [00:55:01]quantity*price = 50065 [00:55:01]sum+1 = 50067 [00:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 19.06.2024 00:55 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103576 ФПД: 176577951226552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T005510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103576&fm=176577951226552&tin=02508201610067®Number=0000000000092785&sum=50000 [00:55:02]StoreToDocumentArchive [00:55:02]shift 353 fd 103576 [00:55:02]save to /storage/0353/doc_00103576 [00:55:02]save last doc name /storage/0353/doc_00103576 to /storage/kkm_last_doc_name [00:55:02]save OK [00:55:02]Clear old archive folders... [00:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:02]tlvbuf is 014AE890 [00:55:02]SAM_PROTO_ClearQueue [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 09 00 00 [00:55:02]Write to MH i2c: E2 08 00 36 8B 80 09 00 00 00 00 00 00 33 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 36 8B 00 90 00 35 [00:55:02]RAPDU: 90 00 [00:55:02]wFMCommunicate OK [00:55:02]SAM_PROTO_ClearQueue done [00:55:02]KKMCreateOFDPacket [00:55:02]OFDProtocolAddRootSTLVToBuf [00:55:02]FM_MakeSignedData [00:55:02]FM_MakeSignedData [00:55:02]SAM_PROTO_SignData [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 0D 01 02 [00:55:02]Write to MH i2c: E2 08 00 37 8B 80 0D 01 02 00 00 00 00 3B [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 37 8B 00 90 00 36 [00:55:02]RAPDU: 90 00 [00:55:02]wFMCommunicate OK [00:55:02]wFMCommunicate request_size=255 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6E 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 94 01 00 35 04 06 00 A0 [00:55:02]Write to MH i2c: E2 02 01 38 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6E 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 94 01 00 35 04 06 00 A0 00 00 9C [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 38 8B 00 90 00 37 [00:55:02]RAPDU: 90 00 [00:55:02]wFMCommunicate OK [00:55:02]wFMCommunicate request_size=10 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 0D 02 02 05 98 C2 0E DA B8 [00:55:02]Write to MH i2c: E2 0D 00 39 8B 80 0D 02 02 05 00 98 C2 0E DA B8 00 00 42 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 03 00 39 8B 00 90 00 38 [00:55:02]RAPDU: 90 00 [00:55:02]wFMCommunicate OK [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 0D 03 02 [00:55:02]Write to MH i2c: E2 08 00 3A 8B 80 0D 03 02 00 00 00 00 40 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 0B 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 0B 00 3A 8B 00 AE 09 B0 2A 92 86 61 69 90 00 B4 [00:55:02]RAPDU: AE 09 B0 2A 92 86 61 69 90 00 [00:55:02]wFMCommunicate OK [00:55:02]SAM_PROTO_SignData done [00:55:02]FM_MakeSignedData done [00:55:02]CreateOFDProtocolMessage [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 11 00 00 [00:55:02]Write to MH i2c: E2 08 00 3B 8B 80 11 00 00 00 00 00 00 40 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 17 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 17 00 3B 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [00:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:55:02]wFMCommunicate OK [00:55:02]CreateOFDProtocolMessage done [00:55:02]OFDSenderStorePacket 103576 [00:55:02]StoreOFDPacket docnum=103576 [00:55:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5D AB 07 01 87 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6E 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 94 01 00 35 04 06 00 A0 98 C2 0E DA B8 AE 09 B0 2A 92 86 61 69 [00:55:02]CheckFolder [00:55:02]dirname=/storage/ofd_packets [00:55:02]CheckFolder done [00:55:02]ProducePacketName [00:55:02]name=ofd_packets/00103576 [00:55:02]NVStorageSaveData ofd_packets/00103576 [00:55:02]File name is /storage/ofd_packets/00103576 [00:55:02]Write 301 bytes [00:55:02]NVStorageSaveData done [00:55:02]OFDSenderStorePacket done [00:55:02]KKMCreateOFDPacket done [00:55:02]NVStorageSaveData kkm_last_timestamp [00:55:02]File name is /storage/kkm_last_timestamp [00:55:02]Write 4 bytes [00:55:02]NVStorageSaveData done [00:55:02]ExternCall_PrintAddStr [00:55:02]wPrintStart [00:55:02]Write to MH i2c: 01 00 00 3C 8B C7 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: 01 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: 01 07 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: 01 07 00 3C 8B 00 00 00 00 00 FF 0F DC [00:55:02]RasterBufferAndPrint [00:55:02]line Счет N : (1)672794 [00:55:02]line ИНН: 02508201610067 [00:55:02]line Контрольно-Кассовый Чек [00:55:02]line ПРОДАЖА [00:55:02]line ТРК (МРК, ГНК) : 32 [00:55:02]line Товар: 2710124130 [00:55:02]line Аи-92-К-5 [00:55:02]line 7.540 * 66.40 [00:55:02]line = 500.66 [00:55:02]line НДС 12% НСП 1% [00:55:02]line > о реализуемом товаре [00:55:02]line ОКРУГЛЕНИЕ: -0.66 [00:55:02]line ИТОГО: 500.00 [00:55:02]line Внесено: 500.00 [00:55:02]line СДАЧА: 0.00 [00:55:02]line НСП 1% : 4.43 [00:55:02]line НДС 12% : 53.17 [00:55:02]line Наличными: 500.00 [00:55:02]line Безнал.: 0.00 [00:55:02]line Место: АЗС № 120 "Партнер Нефть" [00:55:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:55:02]line СНО: Общий режим [00:55:02]line Чек 6 19.06.2024 00:55 [00:55:02]line Смена: 353 ФФД: 1.0 [00:55:02]line ЗНМ: 0300000164 [00:55:02]line РНМ: 0000000000092785 [00:55:02]line Версия ККМ: 001 [00:55:02]line ФМ: 0000000000875093 [00:55:02]line ФД: 103576 [00:55:02]line ФПД: 176577951226552 [00:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T005510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103576&fm=176577951226552&tin=02508201610067®Number=0000000000092785&sum=50000 [00:55:03]OFD Sender: Processing packet 103576 [packets to send 17, broken 16] [00:55:03]ProducePacketName [00:55:03]name=ofd_packets/00103576 [00:55:03]OFD Sender: To server: pG, [00:55:03]CommunicateWithHost lk.salyk.kg:30040 [00:55:03]ConnectInit lk.salyk.kg [00:55:03]written 0, free lines is 4095 [00:55:03]Connected sock=10 [00:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5D AB 07 01 87 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6E 2C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 94 01 00 35 04 06 00 A0 98 C2 0E DA B8 AE 09 B0 2A 92 86 61 69 [00:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2F 79 47 00 FD 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 94 01 00 F4 03 04 00 F9 D2 71 66 B6 04 01 00 00 FC 6E EF 37 84 1F 0F 81 [00:55:03]CommunicateWithHost err = 0 [00:55:03]CheckOFDResponse [00:55:03]1017 (14) - 77093643461234 [00:55:03]1041 (16) - 0000000000875093 [00:55:03]1040 (4) - 103576 [00:55:03]1012 (4) - 18.06.2024 18:33 [00:55:03]1206 (1) - 0 [00:55:03]OFD Sender: Remove packet 103576 [00:55:03]ProducePacketName [00:55:03]name=ofd_packets/00103576 [00:55:03]NVStorageDeleteData [00:55:03]Write to MH i2c: 01 00 00 67 8B F2 [00:55:03]Write i2c OK [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: 01 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: 01 07 00 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: 01 07 00 67 8B 00 00 00 00 00 CC 0C D1 [00:55:03]RasterBufferAndPrint [00:55:03]line [00:55:03]line [00:55:03]line [00:55:03]line [00:55:03]line [00:55:03]written 0, free lines is 3283 [00:55:03]MH_Cut [00:55:03]Write to MH i2c: D1 01 00 6E 8B 01 CB [00:55:03]Write i2c OK [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: D1 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: D1 01 00 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: D1 01 00 6E 8B 00 CA [00:55:03]Write to MH i2c: 01 00 00 6F 8B FA [00:55:03]Write i2c OK [00:55:03]MH_I2C_Read... [00:55:04]OFD Sender: No OFD packet to send [00:55:04]*** Cut start [00:55:04]*** Partial cut [00:55:04]*** CUTSNS_PIN = 1 [00:55:04]*** CUTSNS_PIN = 0 [00:55:04]*** Brake cut motor [00:55:05]Read from MH i2c: 01 [00:55:05]MH_I2C_Read... [00:55:05]*** Stop cut motor [00:55:05]*** Cut end [00:55:05]Read from MH i2c: 01 07 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: 01 07 00 6F 8B 00 00 00 00 00 FF 0F 0F [00:55:05]process_action close_receipt done [00:55:05]requested_data is exist [00:55:05]produce_requested_data [00:55:05]requested_item fm.sn is exist - process it [00:55:05]wFMCommunicate request_size=4 [00:55:05]MH_SAM_APDU [00:55:05]CAPDU: 80 11 00 00 [00:55:05]Write to MH i2c: E2 08 00 70 8B 80 11 00 00 00 00 00 00 75 [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:05]Read from MH i2c: E2 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 17 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 17 00 70 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [00:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:55:05]wFMCommunicate OK [00:55:05]requested_item fd.num is exist - process it [00:55:05]SAM_PROTO_GetFieldsCounters [00:55:05]wFMCommunicate request_size=4 [00:55:05]MH_SAM_APDU [00:55:05]CAPDU: 80 13 00 00 [00:55:05]Write to MH i2c: E2 08 00 71 8B 80 13 00 00 00 00 00 00 78 [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:05]Read from MH i2c: E2 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 62 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 62 00 71 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 98 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [00:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 98 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:05]wFMCommunicate OK [00:55:05]SAM_PROTO_GetFieldsCounters done [00:55:05]requested_item shift.num is exist - process it [00:55:05]requested_item shift.opened is exist - process it [00:55:05]req_shift_opened [00:55:05]FM_GetShiftState [00:55:05]SAM_PROTO_GetShiftState [00:55:05]wFMCommunicate request_size=4 [00:55:05]MH_SAM_APDU [00:55:05]CAPDU: 80 13 01 00 [00:55:05]Write to MH i2c: E2 08 00 72 8B 80 13 01 00 00 00 00 00 7A [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:05]Read from MH i2c: E2 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 0E 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: E2 0E 00 72 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 88 [00:55:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:55:05]wFMCommunicate OK [00:55:05]SAM_PROTO_GetShiftState done [00:55:05]FM_GetShiftState done [00:55:05]req_shift_opened done [00:55:05]requested_item shift.open_date is exist - process it [00:55:05]req_shift_open_date [00:55:05]req_shift_open_date done [00:55:05]produce_requested_data done [00:55:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103576,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:55:05]process_action_free close_receipt [00:55:05]json_value_free [00:55:05]json_value_free done [00:55:05]process_json_proto returns [00:55:05]Send response to host [00:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103576,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:55:05]free response buf [00:55:05]execute_script done [00:55:05]execute_script returns [00:55:05]free content buf [00:55:05]Sock 7.Close socket [00:55:05]Sock 7.Thread stoped [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]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:39]accept exits with 9 [01:19:39]New connection [01:19:39]New thread 3067084132 created [01:19:39]Thread 3067227492 joined [01:19:39]Waiting for new connection... [01:19:39] Sock 9.Parse request [01:19:39]Sock 9.Check first char [01:19:39]Sock 9.First char is OK [01:19:39]request: POST /json_proto HTTP/1.0 [01:19:39]Method: POST [01:19:39]URL: /json_proto [01:19:39]Method is POST - this is cgi request [01:19:39]url: /json_proto [01:19:39]query_string will be loaded in cgi processing [01:19:39]execute_cgi json_proto POST (null) [01:19:39]execute_cgi path=json_proto method=POST [01:19:39]POST find Content-Length [01:19:39]Host: 172.17.38.133:8080 [01:19:39]Content-Length: 816 [01:19:39]Content-Type: application/json [01:19:39] [01:19:39]POST finish read [01:19:39]Found Content-Length = 816 [01:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:39]execute_script... [01:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:39]POST & json_proto [01:19:39]process_json_proto [01:19:39]json parsed OK: [01:19:39]protocol is kg_v1.0 [01:19:39]action value=close_receipt [01:19:39]process_action close_receipt [01:19:39]cmd_close_receipt [01:19:39]MH_GetDate [01:19:39]Write to MH i2c: F0 00 00 73 8B ED [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: F0 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: F0 09 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: F0 09 00 73 8B 00 35 32 72 66 BD 8F 7C 64 61 [01:19:39]GetLastDocTimeStamp 1718758510 [01:19:39]current date 1718759989 [01:19:39]FM_GetShiftState [01:19:39]SAM_PROTO_GetShiftState [01:19:39]wFMCommunicate request_size=4 [01:19:39]MH_SAM_APDU [01:19:39]CAPDU: 80 13 01 00 [01:19:39]Write to MH i2c: E2 08 00 74 8B 80 13 01 00 00 00 00 00 7C [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:40]Read from MH i2c: E2 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: E2 0E 00 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: E2 0E 00 74 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8A [01:19:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:19:40]wFMCommunicate OK [01:19:40]SAM_PROTO_GetShiftState done [01:19:40]FM_GetShiftState done [01:19:40]opened in 1718756868 [01:19:40]opened+sec_in_day 1718843268 [01:19:40]quantity*price = 30012 [01:19:40]sum+1 = 30014 [01:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 7 19.06.2024 01:19 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103577 ФПД: 74000122886708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T011949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103577&fm=74000122886708&tin=02508201610067®Number=0000000000092785&sum=30013 [01:19:41]StoreToDocumentArchive [01:19:41]shift 353 fd 103577 [01:19:41]save to /storage/0353/doc_00103577 [01:19:41]save last doc name /storage/0353/doc_00103577 to /storage/kkm_last_doc_name [01:19:41]save OK [01:19:41]Clear old archive folders... [01:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:19:41]tlvbuf is 01446870 [01:19:41]SAM_PROTO_ClearQueue [01:19:41]wFMCommunicate request_size=4 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 09 00 00 [01:19:41]Write to MH i2c: E2 08 00 81 8B 80 09 00 00 00 00 00 00 7E [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 81 8B 00 90 00 80 [01:19:41]RAPDU: 90 00 [01:19:41]wFMCommunicate OK [01:19:41]SAM_PROTO_ClearQueue done [01:19:41]KKMCreateOFDPacket [01:19:41]OFDProtocolAddRootSTLVToBuf [01:19:41]FM_MakeSignedData [01:19:41]FM_MakeSignedData [01:19:41]SAM_PROTO_SignData [01:19:41]wFMCommunicate request_size=4 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 0D 01 02 [01:19:41]Write to MH i2c: E2 08 00 82 8B 80 0D 01 02 00 00 00 00 86 [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 82 8B 00 90 00 81 [01:19:41]RAPDU: 90 00 [01:19:41]wFMCommunicate OK [01:19:41]wFMCommunicate request_size=255 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 35 32 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 94 01 00 35 04 06 00 43 [01:19:41]Write to MH i2c: E2 02 01 83 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 35 32 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 94 01 00 35 04 06 00 43 00 00 11 [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 83 8B 00 90 00 82 [01:19:41]RAPDU: 90 00 [01:19:41]wFMCommunicate OK [01:19:41]wFMCommunicate request_size=10 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 0D 02 02 05 4D 7F 09 BA 34 [01:19:41]Write to MH i2c: E2 0D 00 84 8B 80 0D 02 02 05 00 4D 7F 09 BA 34 00 00 56 [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 03 00 84 8B 00 90 00 83 [01:19:41]RAPDU: 90 00 [01:19:41]wFMCommunicate OK [01:19:41]wFMCommunicate request_size=4 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 0D 03 02 [01:19:41]Write to MH i2c: E2 08 00 85 8B 80 0D 03 02 00 00 00 00 8B [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 0B 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 0B 00 85 8B 00 5C F9 D3 85 A0 EE A8 0E 90 00 7D [01:19:41]RAPDU: 5C F9 D3 85 A0 EE A8 0E 90 00 [01:19:41]wFMCommunicate OK [01:19:41]SAM_PROTO_SignData done [01:19:41]FM_MakeSignedData done [01:19:41]CreateOFDProtocolMessage [01:19:41]wFMCommunicate request_size=4 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 11 00 00 [01:19:41]Write to MH i2c: E2 08 00 86 8B 80 11 00 00 00 00 00 00 8B [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 17 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 17 00 86 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [01:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:19:41]wFMCommunicate OK [01:19:41]CreateOFDProtocolMessage done [01:19:41]OFDSenderStorePacket 103577 [01:19:41]StoreOFDPacket docnum=103577 [01:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F3 0F 07 01 1C E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 35 32 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 94 01 00 35 04 06 00 43 4D 7F 09 BA 34 5C F9 D3 85 A0 EE A8 0E [01:19:41]CheckFolder [01:19:41]dirname=/storage/ofd_packets [01:19:41]CheckFolder done [01:19:41]ProducePacketName [01:19:41]name=ofd_packets/00103577 [01:19:41]NVStorageSaveData ofd_packets/00103577 [01:19:41]File name is /storage/ofd_packets/00103577 [01:19:41]Write 301 bytes [01:19:41]NVStorageSaveData done [01:19:41]OFDSenderStorePacket done [01:19:41]KKMCreateOFDPacket done [01:19:41]NVStorageSaveData kkm_last_timestamp [01:19:41]File name is /storage/kkm_last_timestamp [01:19:41]Write 4 bytes [01:19:41]NVStorageSaveData done [01:19:41]ExternCall_PrintAddStr [01:19:41]wPrintStart [01:19:41]Write to MH i2c: 01 00 00 87 8B 12 [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: 01 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: 01 07 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: 01 07 00 87 8B 00 00 00 00 00 FF 0F 27 [01:19:41]RasterBufferAndPrint [01:19:41]line Счет N : (1)672795 [01:19:41]line ИНН: 02508201610067 [01:19:41]line Контрольно-Кассовый Чек [01:19:41]line ПРОДАЖА [01:19:41]line ТРК (МРК, ГНК) : 42 [01:19:41]line Товар: 2710124130 [01:19:41]line Аи-92-К-5 [01:19:41]line 4.520 * 66.40 [01:19:41]line = 300.13 [01:19:41]line НДС 12% НСП 1% [01:19:41]line > о реализуемом товаре [01:19:41]line ИТОГО: 300.13 [01:19:41]line НСП 1% : 2.66 [01:19:41]line НДС 12% : 31.87 [01:19:41]line Наличными: 0.00 [01:19:41]line Безнал.: 300.13 [01:19:41]line Место: АЗС № 120 "Партнер Нефть" [01:19:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:19:41]line СНО: Общий режим [01:19:41]line Чек 7 19.06.2024 01:19 [01:19:41]line Смена: 353 ФФД: 1.0 [01:19:41]line ЗНМ: 0300000164 [01:19:41]line РНМ: 0000000000092785 [01:19:41]line Версия ККМ: 001 [01:19:41]line Платежная система: Бакай Банк [01:19:41]line ФМ: 0000000000875093 [01:19:41]line ФД: 103577 [01:19:41]line ФПД: 74000122886708 [01:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T011949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103577&fm=74000122886708&tin=02508201610067®Number=0000000000092785&sum=30013 [01:19:41]OFD Sender: Processing packet 103577 [packets to send 17, broken 16] [01:19:41]ProducePacketName [01:19:41]name=ofd_packets/00103577 [01:19:41]OFD Sender: To server: pG, [01:19:41]CommunicateWithHost lk.salyk.kg:30040 [01:19:41]ConnectInit lk.salyk.kg [01:19:41]written 0, free lines is 4095 [01:19:42]Connected sock=10 [01:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F3 0F 07 01 1C E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 35 32 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 94 01 00 35 04 06 00 43 4D 7F 09 BA 34 5C F9 D3 85 A0 EE A8 0E [01:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 39 AF 47 00 78 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 35 30 39 33 10 04 04 00 99 94 01 00 F4 03 04 00 C0 D8 71 66 B6 04 01 00 00 68 3F 53 A6 B7 57 45 AB [01:19:42]CommunicateWithHost err = 0 [01:19:42]CheckOFDResponse [01:19:42]1017 (14) - 77093643461234 [01:19:42]1041 (16) - 0000000000875093 [01:19:42]1040 (4) - 103577 [01:19:42]1012 (4) - 18.06.2024 18:58 [01:19:42]1206 (1) - 0 [01:19:42]OFD Sender: Remove packet 103577 [01:19:42]ProducePacketName [01:19:42]name=ofd_packets/00103577 [01:19:42]NVStorageDeleteData [01:19:42]Write to MH i2c: 01 00 00 B1 8B 3C [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 07 00 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 07 00 B1 8B 00 00 00 00 00 DC 0C 2B [01:19:42]RasterBufferAndPrint [01:19:42]line [01:19:42]line [01:19:42]line [01:19:42]line [01:19:42]line [01:19:42]written 0, free lines is 3298 [01:19:42]MH_Cut [01:19:42]Write to MH i2c: D1 01 00 B8 8B 01 15 [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: D1 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: D1 01 00 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: D1 01 00 B8 8B 00 14 [01:19:42]Write to MH i2c: 01 00 00 B9 8B 44 [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:42]OFD Sender: No OFD packet to send [01:19:43]*** Cut start [01:19:43]*** Partial cut [01:19:43]*** CUTSNS_PIN = 1 [01:19:43]*** CUTSNS_PIN = 0 [01:19:43]*** Brake cut motor [01:19:43]Read from MH i2c: 01 [01:19:43]MH_I2C_Read... [01:19:43]*** Stop cut motor [01:19:43]*** Cut end [01:19:43]Read from MH i2c: 01 07 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: 01 07 00 B9 8B 00 00 00 00 00 FF 0F 59 [01:19:43]process_action close_receipt done [01:19:43]requested_data is exist [01:19:43]produce_requested_data [01:19:43]requested_item fm.sn is exist - process it [01:19:43]wFMCommunicate request_size=4 [01:19:43]MH_SAM_APDU [01:19:43]CAPDU: 80 11 00 00 [01:19:43]Write to MH i2c: E2 08 00 BA 8B 80 11 00 00 00 00 00 00 BF [01:19:43]Write i2c OK [01:19:43]MH_I2C_Read... [01:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:43]Read from MH i2c: E2 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 17 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 17 00 BA 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [01:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:19:43]wFMCommunicate OK [01:19:43]requested_item fd.num is exist - process it [01:19:43]SAM_PROTO_GetFieldsCounters [01:19:43]wFMCommunicate request_size=4 [01:19:43]MH_SAM_APDU [01:19:43]CAPDU: 80 13 00 00 [01:19:43]Write to MH i2c: E2 08 00 BB 8B 80 13 00 00 00 00 00 00 C2 [01:19:43]Write i2c OK [01:19:43]MH_I2C_Read... [01:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:43]Read from MH i2c: E2 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 62 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 62 00 BB 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 99 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [01:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 99 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:44]wFMCommunicate OK [01:19:44]SAM_PROTO_GetFieldsCounters done [01:19:44]requested_item shift.num is exist - process it [01:19:44]requested_item shift.opened is exist - process it [01:19:44]req_shift_opened [01:19:44]FM_GetShiftState [01:19:44]SAM_PROTO_GetShiftState [01:19:44]wFMCommunicate request_size=4 [01:19:44]MH_SAM_APDU [01:19:44]CAPDU: 80 13 01 00 [01:19:44]Write to MH i2c: E2 08 00 BC 8B 80 13 01 00 00 00 00 00 C4 [01:19:44]Write i2c OK [01:19:44]MH_I2C_Read... [01:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:44]Read from MH i2c: E2 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 0E 00 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 0E 00 BC 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D2 [01:19:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:19:44]wFMCommunicate OK [01:19:44]SAM_PROTO_GetShiftState done [01:19:44]FM_GetShiftState done [01:19:44]req_shift_opened done [01:19:44]requested_item shift.open_date is exist - process it [01:19:44]req_shift_open_date [01:19:44]req_shift_open_date done [01:19:44]produce_requested_data done [01:19:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103577,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [01:19:44]process_action_free close_receipt [01:19:44]json_value_free [01:19:44]json_value_free done [01:19:44]process_json_proto returns [01:19:44]Send response to host [01:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103577,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [01:19:44]free response buf [01:19:44]execute_script done [01:19:44]execute_script returns [01:19:44]free content buf [01:19:44]Sock 9.Close socket [01:19:44]Sock 9.Thread stoped [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]accept exits with 7 [01:29:28]New connection [01:29:28]New thread 3067227492 created [01:29:28]Thread 3067084132 joined [01:29:28]Waiting for new connection... [01:29:28] Sock 7.Parse request [01:29:28]Sock 7.Check first char [01:29:28]Sock 7.First char is OK [01:29:28]request: POST /json_proto HTTP/1.0 [01:29:28]Method: POST [01:29:28]URL: /json_proto [01:29:28]Method is POST - this is cgi request [01:29:28]url: /json_proto [01:29:28]query_string will be loaded in cgi processing [01:29:28]execute_cgi json_proto POST (null) [01:29:28]execute_cgi path=json_proto method=POST [01:29:28]POST find Content-Length [01:29:28]Host: 172.17.38.133:8080 [01:29:28]Content-Length: 819 [01:29:28]Content-Type: application/json [01:29:28] [01:29:28]POST finish read [01:29:28]Found Content-Length = 819 [01:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:28]execute_script... [01:29:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:28]POST & json_proto [01:29:28]process_json_proto [01:29:28]json parsed OK: [01:29:28]protocol is kg_v1.0 [01:29:28]action value=close_receipt [01:29:28]process_action close_receipt [01:29:28]cmd_close_receipt [01:29:28]MH_GetDate [01:29:28]Write to MH i2c: F0 00 00 BD 8B 37 [01:29:28]OFD Sender: No OFD packet to send [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 09 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: F0 09 00 BD 8B 00 82 34 72 66 BD 8F 7C 64 FA [01:29:28]GetLastDocTimeStamp 1718759989 [01:29:28]current date 1718760578 [01:29:28]FM_GetShiftState [01:29:28]SAM_PROTO_GetShiftState [01:29:28]wFMCommunicate request_size=4 [01:29:28]MH_SAM_APDU [01:29:28]CAPDU: 80 13 01 00 [01:29:28]Write to MH i2c: E2 08 00 BE 8B 80 13 01 00 00 00 00 00 C6 [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:28]Read from MH i2c: E2 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: E2 0E 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: E2 0E 00 BE 8B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D4 [01:29:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:29:28]wFMCommunicate OK [01:29:28]SAM_PROTO_GetShiftState done [01:29:28]FM_GetShiftState done [01:29:28]opened in 1718756868 [01:29:28]opened+sec_in_day 1718843268 [01:29:28]quantity*price = 100064 [01:29:28]sum+1 = 100066 [01:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 19.06.2024 01:29 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103578 ФПД: 241346513933673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T012938&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103578&fm=241346513933673&tin=02508201610067®Number=0000000000092785&sum=100065 [01:29:29]StoreToDocumentArchive [01:29:29]shift 353 fd 103578 [01:29:29]save to /storage/0353/doc_00103578 [01:29:29]save last doc name /storage/0353/doc_00103578 to /storage/kkm_last_doc_name [01:29:29]save OK [01:29:29]Clear old archive folders... [01:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:29:29]tlvbuf is 01446440 [01:29:29]SAM_PROTO_ClearQueue [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 09 00 00 [01:29:29]Write to MH i2c: E2 08 00 CB 8B 80 09 00 00 00 00 00 00 C8 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 CB 8B 00 90 00 CA [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]SAM_PROTO_ClearQueue done [01:29:29]KKMCreateOFDPacket [01:29:29]OFDProtocolAddRootSTLVToBuf [01:29:29]FM_MakeSignedData [01:29:29]FM_MakeSignedData [01:29:29]SAM_PROTO_SignData [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 01 02 [01:29:29]Write to MH i2c: E2 08 00 CC 8B 80 0D 01 02 00 00 00 00 D0 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 CC 8B 00 90 00 CB [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]wFMCommunicate request_size=255 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 82 34 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 94 01 00 35 04 06 00 DB [01:29:29]Write to MH i2c: E2 02 01 CD 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 82 34 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 94 01 00 35 04 06 00 DB 00 00 5E [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 CD 8B 00 90 00 CC [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]wFMCommunicate request_size=10 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 02 02 05 80 DD 3B 15 69 [01:29:29]Write to MH i2c: E2 0D 00 CE 8B 80 0D 02 02 05 00 80 DD 3B 15 69 00 00 F3 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 03 00 CE 8B 00 90 00 CD [01:29:29]RAPDU: 90 00 [01:29:29]wFMCommunicate OK [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 0D 03 02 [01:29:29]Write to MH i2c: E2 08 00 CF 8B 80 0D 03 02 00 00 00 00 D5 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 0B 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 0B 00 CF 8B 00 EC 28 46 A2 E2 5E 37 88 90 00 D1 [01:29:29]RAPDU: EC 28 46 A2 E2 5E 37 88 90 00 [01:29:29]wFMCommunicate OK [01:29:29]SAM_PROTO_SignData done [01:29:29]FM_MakeSignedData done [01:29:29]CreateOFDProtocolMessage [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 11 00 00 [01:29:29]Write to MH i2c: E2 08 00 D0 8B 80 11 00 00 00 00 00 00 D5 [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:30]Read from MH i2c: E2 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 17 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: E2 17 00 D0 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [01:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:29:30]wFMCommunicate OK [01:29:30]CreateOFDProtocolMessage done [01:29:30]OFDSenderStorePacket 103578 [01:29:30]StoreOFDPacket docnum=103578 [01:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E 3B 07 01 26 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 82 34 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 94 01 00 35 04 06 00 DB 80 DD 3B 15 69 EC 28 46 A2 E2 5E 37 88 [01:29:30]CheckFolder [01:29:30]dirname=/storage/ofd_packets [01:29:30]CheckFolder done [01:29:30]ProducePacketName [01:29:30]name=ofd_packets/00103578 [01:29:30]NVStorageSaveData ofd_packets/00103578 [01:29:30]File name is /storage/ofd_packets/00103578 [01:29:30]Write 301 bytes [01:29:30]NVStorageSaveData done [01:29:30]OFDSenderStorePacket done [01:29:30]KKMCreateOFDPacket done [01:29:30]NVStorageSaveData kkm_last_timestamp [01:29:30]File name is /storage/kkm_last_timestamp [01:29:30]Write 4 bytes [01:29:30]NVStorageSaveData done [01:29:30]ExternCall_PrintAddStr [01:29:30]wPrintStart [01:29:30]Write to MH i2c: 01 00 00 D1 8B 5C [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 D1 8B 00 00 00 00 00 FF 0F 71 [01:29:30]RasterBufferAndPrint [01:29:30]line Счет N : (1)672796 [01:29:30]line ИНН: 02508201610067 [01:29:30]line Контрольно-Кассовый Чек [01:29:30]line ПРОДАЖА [01:29:30]line ТРК (МРК, ГНК) : 42 [01:29:30]line Товар: 2710124130 [01:29:30]line Аи-92-К-5 [01:29:30]line 15.070 * 66.40 [01:29:30]line = 1000.65 [01:29:30]line НДС 12% НСП 1% [01:29:30]line > о реализуемом товаре [01:29:30]line ИТОГО: 1000.65 [01:29:30]line НСП 1% : 8.85 [01:29:30]line НДС 12% : 106.26 [01:29:30]line Наличными: 0.00 [01:29:30]line Безнал.: 1000.65 [01:29:30]line Место: АЗС № 120 "Партнер Нефть" [01:29:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:29:30]line СНО: Общий режим [01:29:30]line Чек 8 19.06.2024 01:29 [01:29:30]line Смена: 353 ФФД: 1.0 [01:29:30]line ЗНМ: 0300000164 [01:29:30]line РНМ: 0000000000092785 [01:29:30]line Версия ККМ: 001 [01:29:30]line Платежная система: Бакай Банк [01:29:30]line ФМ: 0000000000875093 [01:29:30]line ФД: 103578 [01:29:30]line ФПД: 241346513933673 [01:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T012938&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103578&fm=241346513933673&tin=02508201610067®Number=0000000000092785&sum=100065 [01:29:30]written 0, free lines is 4095 [01:29:30]OFD Sender: Processing packet 103578 [packets to send 17, broken 16] [01:29:30]ProducePacketName [01:29:30]name=ofd_packets/00103578 [01:29:30]OFD Sender: To server: pG, [01:29:30]CommunicateWithHost lk.salyk.kg:30040 [01:29:30]ConnectInit lk.salyk.kg [01:29:30]Connected sock=10 [01:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E 3B 07 01 26 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 82 34 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 94 01 00 35 04 06 00 DB 80 DD 3B 15 69 EC 28 46 A2 E2 5E 37 88 [01:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7D DE 47 00 6F C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 94 01 00 F4 03 04 00 0C DB 71 66 B6 04 01 00 00 80 47 1D FA EC CF A4 09 [01:29:30]CommunicateWithHost err = 0 [01:29:30]CheckOFDResponse [01:29:30]1017 (14) - 77093643461234 [01:29:30]1041 (16) - 0000000000875093 [01:29:30]1040 (4) - 103578 [01:29:30]1012 (4) - 18.06.2024 19:07 [01:29:30]1206 (1) - 0 [01:29:30]OFD Sender: Remove packet 103578 [01:29:30]ProducePacketName [01:29:30]name=ofd_packets/00103578 [01:29:30]NVStorageDeleteData [01:29:30]Write to MH i2c: 01 00 00 FB 8B 86 [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: 01 07 00 FB 8B 00 00 00 00 00 E3 0C 7C [01:29:30]RasterBufferAndPrint [01:29:30]line [01:29:30]line [01:29:30]line [01:29:30]line [01:29:30]line [01:29:30]written 0, free lines is 3306 [01:29:30]MH_Cut [01:29:30]Write to MH i2c: D1 01 00 02 8C 01 60 [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: D1 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: D1 01 00 [01:29:30]MH_I2C_Read... [01:29:30]Read from MH i2c: D1 01 00 02 8C 00 5F [01:29:30]Write to MH i2c: 01 00 00 03 8C 8F [01:29:30]Write i2c OK [01:29:30]MH_I2C_Read... [01:29:31]OFD Sender: No OFD packet to send [01:29:31]*** Cut start [01:29:31]*** Partial cut [01:29:31]*** CUTSNS_PIN = 1 [01:29:31]*** CUTSNS_PIN = 0 [01:29:31]*** Brake cut motor [01:29:32]Read from MH i2c: 01 [01:29:32]MH_I2C_Read... [01:29:32]*** Stop cut motor [01:29:32]*** Cut end [01:29:32]Read from MH i2c: 01 07 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: 01 07 00 03 8C 00 00 00 00 00 FF 0F A4 [01:29:32]process_action close_receipt done [01:29:32]requested_data is exist [01:29:32]produce_requested_data [01:29:32]requested_item fm.sn is exist - process it [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 11 00 00 [01:29:32]Write to MH i2c: E2 08 00 04 8C 80 11 00 00 00 00 00 00 0A [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 17 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 17 00 04 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [01:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:29:32]wFMCommunicate OK [01:29:32]requested_item fd.num is exist - process it [01:29:32]SAM_PROTO_GetFieldsCounters [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 13 00 00 [01:29:32]Write to MH i2c: E2 08 00 05 8C 80 13 00 00 00 00 00 00 0D [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 62 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 62 00 05 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9A 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [01:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9A 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:32]wFMCommunicate OK [01:29:32]SAM_PROTO_GetFieldsCounters done [01:29:32]requested_item shift.num is exist - process it [01:29:32]requested_item shift.opened is exist - process it [01:29:32]req_shift_opened [01:29:32]FM_GetShiftState [01:29:32]SAM_PROTO_GetShiftState [01:29:32]wFMCommunicate request_size=4 [01:29:32]MH_SAM_APDU [01:29:32]CAPDU: 80 13 01 00 [01:29:32]Write to MH i2c: E2 08 00 06 8C 80 13 01 00 00 00 00 00 0F [01:29:32]Write i2c OK [01:29:32]MH_I2C_Read... [01:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:32]Read from MH i2c: E2 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 0E 00 [01:29:32]MH_I2C_Read... [01:29:32]Read from MH i2c: E2 0E 00 06 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1D [01:29:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:29:32]wFMCommunicate OK [01:29:32]SAM_PROTO_GetShiftState done [01:29:32]FM_GetShiftState done [01:29:32]req_shift_opened done [01:29:32]requested_item shift.open_date is exist - process it [01:29:32]req_shift_open_date [01:29:32]req_shift_open_date done [01:29:32]produce_requested_data done [01:29:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103578,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [01:29:32]process_action_free close_receipt [01:29:32]json_value_free [01:29:32]json_value_free done [01:29:32]process_json_proto returns [01:29:32]Send response to host [01:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103578,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [01:29:32]free response buf [01:29:32]execute_script done [01:29:32]execute_script returns [01:29:32]free content buf [01:29:32]Sock 7.Close socket [01:29:32]Sock 7.Thread stoped [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:04]accept exits with 9 [01:37:04]New connection [01:37:04]New thread 3067084132 created [01:37:04]Thread 3067227492 joined [01:37:04]Waiting for new connection... [01:37:04] Sock 9.Parse request [01:37:04]Sock 9.Check first char [01:37:04]Sock 9.First char is OK [01:37:04]request: POST /json_proto HTTP/1.0 [01:37:04]Method: POST [01:37:04]URL: /json_proto [01:37:04]Method is POST - this is cgi request [01:37:04]url: /json_proto [01:37:04]query_string will be loaded in cgi processing [01:37:04]execute_cgi json_proto POST (null) [01:37:04]execute_cgi path=json_proto method=POST [01:37:04]POST find Content-Length [01:37:04]Host: 172.17.38.133:8080 [01:37:04]Content-Length: 687 [01:37:04]Content-Type: application/json [01:37:04] [01:37:04]POST finish read [01:37:04]Found Content-Length = 687 [01:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:04]execute_script... [01:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:04]POST & json_proto [01:37:04]process_json_proto [01:37:04]json parsed OK: [01:37:04]protocol is kg_v1.0 [01:37:04]action value=close_receipt [01:37:04]process_action close_receipt [01:37:04]cmd_close_receipt [01:37:04]MH_GetDate [01:37:04]Write to MH i2c: F0 00 00 07 8C 82 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: F0 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: F0 09 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: F0 09 00 07 8C 00 4A 36 72 66 BD 8F 7C 64 0F [01:37:04]GetLastDocTimeStamp 1718760578 [01:37:04]current date 1718761034 [01:37:04]FM_GetShiftState [01:37:04]SAM_PROTO_GetShiftState [01:37:04]wFMCommunicate request_size=4 [01:37:04]MH_SAM_APDU [01:37:04]CAPDU: 80 13 01 00 [01:37:04]Write to MH i2c: E2 08 00 08 8C 80 13 01 00 00 00 00 00 11 [01:37:04]Write i2c OK [01:37:04]MH_I2C_Read... [01:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:04]Read from MH i2c: E2 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 0E 00 [01:37:04]MH_I2C_Read... [01:37:04]Read from MH i2c: E2 0E 00 08 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1F [01:37:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:37:04]wFMCommunicate OK [01:37:04]SAM_PROTO_GetShiftState done [01:37:04]FM_GetShiftState done [01:37:04]opened in 1718756868 [01:37:04]opened+sec_in_day 1718843268 [01:37:04]quantity*price = 300056 [01:37:04]sum+1 = 300057 [01:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 19.06.2024 01:37 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103579 ФПД: 206604903570980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T013714&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103579&fm=206604903570980&tin=02508201610067®Number=0000000000092785&sum=300000 [01:37:05]StoreToDocumentArchive [01:37:05]shift 353 fd 103579 [01:37:05]save to /storage/0353/doc_00103579 [01:37:05]save last doc name /storage/0353/doc_00103579 to /storage/kkm_last_doc_name [01:37:05]save OK [01:37:05]Clear old archive folders... [01:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:37:05]tlvbuf is 0152BBD0 [01:37:05]SAM_PROTO_ClearQueue [01:37:05]wFMCommunicate request_size=4 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 09 00 00 [01:37:05]Write to MH i2c: E2 08 00 15 8C 80 09 00 00 00 00 00 00 13 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 15 8C 00 90 00 15 [01:37:05]RAPDU: 90 00 [01:37:05]wFMCommunicate OK [01:37:05]SAM_PROTO_ClearQueue done [01:37:05]KKMCreateOFDPacket [01:37:05]OFDProtocolAddRootSTLVToBuf [01:37:05]FM_MakeSignedData [01:37:05]FM_MakeSignedData [01:37:05]SAM_PROTO_SignData [01:37:05]wFMCommunicate request_size=4 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 0D 01 02 [01:37:05]Write to MH i2c: E2 08 00 16 8C 80 0D 01 02 00 00 00 00 1B [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 16 8C 00 90 00 16 [01:37:05]RAPDU: 90 00 [01:37:05]wFMCommunicate OK [01:37:05]wFMCommunicate request_size=255 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 36 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 94 01 00 35 04 06 00 [01:37:05]Write to MH i2c: E2 02 01 17 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 36 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 94 01 00 35 04 06 00 00 00 52 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:05]Read from MH i2c: E2 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 [01:37:05]MH_I2C_Read... [01:37:05]Read from MH i2c: E2 03 00 17 8C 00 90 00 17 [01:37:05]RAPDU: 90 00 [01:37:05]wFMCommunicate OK [01:37:05]wFMCommunicate request_size=11 [01:37:05]MH_SAM_APDU [01:37:05]CAPDU: 80 0D 02 02 06 BB E7 F3 E2 DE 24 [01:37:05]Write to MH i2c: E2 0E 00 18 8C 80 0D 02 02 06 00 BB E7 F3 E2 DE 24 00 00 A3 [01:37:05]Write i2c OK [01:37:05]MH_I2C_Read... [01:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:06]Read from MH i2c: E2 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 03 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 03 00 18 8C 00 90 00 18 [01:37:06]RAPDU: 90 00 [01:37:06]wFMCommunicate OK [01:37:06]wFMCommunicate request_size=4 [01:37:06]MH_SAM_APDU [01:37:06]CAPDU: 80 0D 03 02 [01:37:06]Write to MH i2c: E2 08 00 19 8C 80 0D 03 02 00 00 00 00 20 [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:06]Read from MH i2c: E2 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 0B 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 0B 00 19 8C 00 A1 48 2E 42 1A 5A 21 E6 90 00 F5 [01:37:06]RAPDU: A1 48 2E 42 1A 5A 21 E6 90 00 [01:37:06]wFMCommunicate OK [01:37:06]SAM_PROTO_SignData done [01:37:06]FM_MakeSignedData done [01:37:06]CreateOFDProtocolMessage [01:37:06]wFMCommunicate request_size=4 [01:37:06]MH_SAM_APDU [01:37:06]CAPDU: 80 11 00 00 [01:37:06]Write to MH i2c: E2 08 00 1A 8C 80 11 00 00 00 00 00 00 20 [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:06]Read from MH i2c: E2 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 17 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: E2 17 00 1A 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [01:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:37:06]wFMCommunicate OK [01:37:06]CreateOFDProtocolMessage done [01:37:06]OFDSenderStorePacket 103579 [01:37:06]StoreOFDPacket docnum=103579 [01:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E9 65 08 01 4A CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 36 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 94 01 00 35 04 06 00 BB E7 F3 E2 DE 24 A1 48 2E 42 1A 5A 21 E6 [01:37:06]CheckFolder [01:37:06]dirname=/storage/ofd_packets [01:37:06]CheckFolder done [01:37:06]ProducePacketName [01:37:06]name=ofd_packets/00103579 [01:37:06]NVStorageSaveData ofd_packets/00103579 [01:37:06]File name is /storage/ofd_packets/00103579 [01:37:06]Write 302 bytes [01:37:06]NVStorageSaveData done [01:37:06]OFDSenderStorePacket done [01:37:06]KKMCreateOFDPacket done [01:37:06]NVStorageSaveData kkm_last_timestamp [01:37:06]File name is /storage/kkm_last_timestamp [01:37:06]Write 4 bytes [01:37:06]NVStorageSaveData done [01:37:06]ExternCall_PrintAddStr [01:37:06]wPrintStart [01:37:06]Write to MH i2c: 01 00 00 1B 8C A7 [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 07 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 07 00 1B 8C 00 00 00 00 00 FF 0F BC [01:37:06]RasterBufferAndPrint [01:37:06]line Счет N : (1)672797 [01:37:06]line ИНН: 02508201610067 [01:37:06]line Контрольно-Кассовый Чек [01:37:06]line ПРОДАЖА [01:37:06]line ТРК (МРК, ГНК) : 21 [01:37:06]line Товар: 2710194210 [01:37:06]line ДТ(л)-К-5 [01:37:06]line 41.160 * 72.90 [01:37:06]line = 3000.56 [01:37:06]line НДС 12% НСП 1% [01:37:06]line > о реализуемом товаре [01:37:06]line ОКРУГЛЕНИЕ: -0.56 [01:37:06]line ИТОГО: 3000.00 [01:37:06]line Внесено: 3000.00 [01:37:06]line СДАЧА: 0.00 [01:37:06]line НСП 1% : 26.55 [01:37:06]line НДС 12% : 318.64 [01:37:06]line Наличными: 3000.00 [01:37:06]line Безнал.: 0.00 [01:37:06]line Место: АЗС № 120 "Партнер Нефть" [01:37:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:37:06]line СНО: Общий режим [01:37:06]line Чек 9 19.06.2024 01:37 [01:37:06]line Смена: 353 ФФД: 1.0 [01:37:06]line ЗНМ: 0300000164 [01:37:06]line РНМ: 0000000000092785 [01:37:06]line Версия ККМ: 001 [01:37:06]line ФМ: 0000000000875093 [01:37:06]line ФД: 103579 [01:37:06]line ФПД: 206604903570980 [01:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T013714&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103579&fm=206604903570980&tin=02508201610067®Number=0000000000092785&sum=300000 [01:37:06]OFD Sender: Processing packet 103579 [packets to send 17, broken 16] [01:37:06]ProducePacketName [01:37:06]name=ofd_packets/00103579 [01:37:06]OFD Sender: To server: pG, [01:37:06]CommunicateWithHost lk.salyk.kg:30040 [01:37:06]ConnectInit lk.salyk.kg [01:37:06]written 0, free lines is 4095 [01:37:06]Connected sock=10 [01:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E9 65 08 01 4A CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 36 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 94 01 00 35 04 06 00 BB E7 F3 E2 DE 24 A1 48 2E 42 1A 5A 21 E6 [01:37:06]Write to MH i2c: 01 00 00 46 8C D2 [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 07 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: 01 07 00 46 8C 00 00 00 00 00 E2 0C C7 [01:37:06]RasterBufferAndPrint [01:37:06]line [01:37:06]line [01:37:06]line [01:37:06]line [01:37:06]line [01:37:06]written 0, free lines is 3304 [01:37:06]MH_Cut [01:37:06]Write to MH i2c: D1 01 00 4D 8C 01 AB [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: D1 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: D1 01 00 [01:37:06]MH_I2C_Read... [01:37:06]Read from MH i2c: D1 01 00 4D 8C 00 AA [01:37:06]Write to MH i2c: 01 00 00 4E 8C DA [01:37:06]Write i2c OK [01:37:06]MH_I2C_Read... [01:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 83 32 47 00 FF B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 94 01 00 F4 03 04 00 D4 DC 71 66 B6 04 01 00 00 D5 91 B1 3D 7B 69 91 BC [01:37:07]CommunicateWithHost err = 0 [01:37:07]CheckOFDResponse [01:37:07]1017 (14) - 77093643461234 [01:37:07]1041 (16) - 0000000000875093 [01:37:07]1040 (4) - 103579 [01:37:07]1012 (4) - 18.06.2024 19:15 [01:37:07]1206 (1) - 0 [01:37:07]OFD Sender: Remove packet 103579 [01:37:07]ProducePacketName [01:37:07]name=ofd_packets/00103579 [01:37:07]NVStorageDeleteData [01:37:07]OFD Sender: No OFD packet to send [01:37:07]*** Cut start [01:37:07]*** Partial cut [01:37:07]*** CUTSNS_PIN = 1 [01:37:07]*** CUTSNS_PIN = 0 [01:37:07]*** Brake cut motor [01:37:08]Read from MH i2c: 01 [01:37:08]MH_I2C_Read... [01:37:08]*** Stop cut motor [01:37:08]*** Cut end [01:37:08]Read from MH i2c: 01 07 00 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: 01 07 00 4E 8C 00 00 00 00 00 FF 0F EF [01:37:08]process_action close_receipt done [01:37:08]requested_data is exist [01:37:08]produce_requested_data [01:37:08]requested_item fm.sn is exist - process it [01:37:08]wFMCommunicate request_size=4 [01:37:08]MH_SAM_APDU [01:37:08]CAPDU: 80 11 00 00 [01:37:08]Write to MH i2c: E2 08 00 4F 8C 80 11 00 00 00 00 00 00 55 [01:37:08]Write i2c OK [01:37:08]MH_I2C_Read... [01:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:08]Read from MH i2c: E2 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 17 00 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 17 00 4F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A8 [01:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:37:08]wFMCommunicate OK [01:37:08]requested_item fd.num is exist - process it [01:37:08]SAM_PROTO_GetFieldsCounters [01:37:08]wFMCommunicate request_size=4 [01:37:08]MH_SAM_APDU [01:37:08]CAPDU: 80 13 00 00 [01:37:08]Write to MH i2c: E2 08 00 50 8C 80 13 00 00 00 00 00 00 58 [01:37:08]Write i2c OK [01:37:08]MH_I2C_Read... [01:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:08]Read from MH i2c: E2 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 62 00 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 62 00 50 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9B 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [01:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9B 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:08]wFMCommunicate OK [01:37:08]SAM_PROTO_GetFieldsCounters done [01:37:08]requested_item shift.num is exist - process it [01:37:08]requested_item shift.opened is exist - process it [01:37:08]req_shift_opened [01:37:08]FM_GetShiftState [01:37:08]SAM_PROTO_GetShiftState [01:37:08]wFMCommunicate request_size=4 [01:37:08]MH_SAM_APDU [01:37:08]CAPDU: 80 13 01 00 [01:37:08]Write to MH i2c: E2 08 00 51 8C 80 13 01 00 00 00 00 00 5A [01:37:08]Write i2c OK [01:37:08]MH_I2C_Read... [01:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:08]Read from MH i2c: E2 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 0E 00 [01:37:08]MH_I2C_Read... [01:37:08]Read from MH i2c: E2 0E 00 51 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 68 [01:37:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [01:37:08]wFMCommunicate OK [01:37:08]SAM_PROTO_GetShiftState done [01:37:08]FM_GetShiftState done [01:37:08]req_shift_opened done [01:37:08]requested_item shift.open_date is exist - process it [01:37:08]req_shift_open_date [01:37:08]req_shift_open_date done [01:37:08]produce_requested_data done [01:37:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103579,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [01:37:08]process_action_free close_receipt [01:37:08]json_value_free [01:37:08]json_value_free done [01:37:08]process_json_proto returns [01:37:08]Send response to host [01:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103579,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [01:37:08]free response buf [01:37:08]execute_script done [01:37:08]execute_script returns [01:37:08]free content buf [01:37:08]Sock 9.Close socket [01:37:08]Sock 9.Thread stoped [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]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:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]accept exits with 7 [02:03:33]New connection [02:03:33]New thread 3067227492 created [02:03:33]Thread 3067084132 joined [02:03:33]Waiting for new connection... [02:03:33] Sock 7.Parse request [02:03:33]Sock 7.Check first char [02:03:33]Sock 7.First char is OK [02:03:33]request: POST /json_proto HTTP/1.0 [02:03:33]Method: POST [02:03:33]URL: /json_proto [02:03:33]Method is POST - this is cgi request [02:03:33]url: /json_proto [02:03:33]query_string will be loaded in cgi processing [02:03:33]execute_cgi json_proto POST (null) [02:03:33]execute_cgi path=json_proto method=POST [02:03:33]POST find Content-Length [02:03:33]Host: 172.17.38.133:8080 [02:03:33]Content-Length: 687 [02:03:33]Content-Type: application/json [02:03:33] [02:03:33]POST finish read [02:03:33]Found Content-Length = 687 [02:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 53.710, "sum" : 3915.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3915.00, "total" : 3915.00, "payments": [ { "type": 0, "sum" : 3915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:33]execute_script... [02:03:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 53.710, "sum" : 3915.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3915.00, "total" : 3915.00, "payments": [ { "type": 0, "sum" : 3915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:33]POST & json_proto [02:03:33]process_json_proto [02:03:33]json parsed OK: [02:03:33]protocol is kg_v1.0 [02:03:33]action value=close_receipt [02:03:33]process_action close_receipt [02:03:33]cmd_close_receipt [02:03:33]MH_GetDate [02:03:33]Write to MH i2c: F0 00 00 52 8C CD [02:03:33]Write i2c OK [02:03:33]MH_I2C_Read... [02:03:33]Read from MH i2c: F0 [02:03:33]MH_I2C_Read... [02:03:33]Read from MH i2c: F0 09 00 [02:03:33]MH_I2C_Read... [02:03:33]Read from MH i2c: F0 09 00 52 8C 00 7F 3C 72 66 BD 8F 7C 64 95 [02:03:33]GetLastDocTimeStamp 1718761034 [02:03:33]current date 1718762623 [02:03:33]FM_GetShiftState [02:03:33]SAM_PROTO_GetShiftState [02:03:33]wFMCommunicate request_size=4 [02:03:33]MH_SAM_APDU [02:03:33]CAPDU: 80 13 01 00 [02:03:33]Write to MH i2c: E2 08 00 53 8C 80 13 01 00 00 00 00 00 5C [02:03:33]Write i2c OK [02:03:33]MH_I2C_Read... [02:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:33]Read from MH i2c: E2 [02:03:33]MH_I2C_Read... [02:03:33]Read from MH i2c: E2 0E 00 [02:03:33]MH_I2C_Read... [02:03:33]Read from MH i2c: E2 0E 00 53 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6A [02:03:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:03:33]wFMCommunicate OK [02:03:33]SAM_PROTO_GetShiftState done [02:03:33]FM_GetShiftState done [02:03:33]opened in 1718756868 [02:03:33]opened+sec_in_day 1718843268 [02:03:33]quantity*price = 391545 [02:03:33]sum+1 = 391547 [02:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 3915.00 Внесено: 3915.00 СДАЧА: 0.00 НСП 1% : 34.65 НДС 12% : 415.80 Наличными: 3915.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 19.06.2024 02:03 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103580 ФПД: 178191714908567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T020343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103580&fm=178191714908567&tin=02508201610067®Number=0000000000092785&sum=391500 [02:03:34]StoreToDocumentArchive [02:03:34]shift 353 fd 103580 [02:03:34]save to /storage/0353/doc_00103580 [02:03:34]save last doc name /storage/0353/doc_00103580 to /storage/kkm_last_doc_name [02:03:34]save OK [02:03:34]Clear old archive folders... [02:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:03:34]tlvbuf is 0144D890 [02:03:34]SAM_PROTO_ClearQueue [02:03:34]wFMCommunicate request_size=4 [02:03:34]MH_SAM_APDU [02:03:34]CAPDU: 80 09 00 00 [02:03:34]Write to MH i2c: E2 08 00 60 8C 80 09 00 00 00 00 00 00 5E [02:03:34]Write i2c OK [02:03:34]MH_I2C_Read... [02:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:03:34]Read from MH i2c: E2 [02:03:34]MH_I2C_Read... [02:03:34]Read from MH i2c: E2 03 00 [02:03:34]MH_I2C_Read... [02:03:34]Read from MH i2c: E2 03 00 60 8C 00 90 00 60 [02:03:34]RAPDU: 90 00 [02:03:34]wFMCommunicate OK [02:03:34]SAM_PROTO_ClearQueue done [02:03:34]KKMCreateOFDPacket [02:03:34]OFDProtocolAddRootSTLVToBuf [02:03:34]FM_MakeSignedData [02:03:34]FM_MakeSignedData [02:03:34]SAM_PROTO_SignData [02:03:34]wFMCommunicate request_size=4 [02:03:34]MH_SAM_APDU [02:03:34]CAPDU: 80 0D 01 02 [02:03:34]Write to MH i2c: E2 08 00 61 8C 80 0D 01 02 00 00 00 00 66 [02:03:34]Write i2c OK [02:03:34]MH_I2C_Read... [02:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:03:34]Read from MH i2c: E2 [02:03:34]MH_I2C_Read... [02:03:34]Read from MH i2c: E2 03 00 [02:03:34]MH_I2C_Read... [02:03:34]Read from MH i2c: E2 03 00 61 8C 00 90 00 61 [02:03:34]RAPDU: 90 00 [02:03:34]wFMCommunicate OK [02:03:34]wFMCommunicate request_size=255 [02:03:34]MH_SAM_APDU [02:03:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE D1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C F9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C A2 00 00 00 00 07 04 06 00 4C F9 05 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 7F 3C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 94 01 00 35 04 06 00 [02:03:34]Write to MH i2c: E2 02 01 62 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE D1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C F9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C A2 00 00 00 00 07 04 06 00 4C F9 05 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 7F 3C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 94 01 00 35 04 06 00 00 00 C6 [02:03:34]Write i2c OK [02:03:34]MH_I2C_Read... [02:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:35]Read from MH i2c: E2 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 03 00 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 03 00 62 8C 00 90 00 62 [02:03:35]RAPDU: 90 00 [02:03:35]wFMCommunicate OK [02:03:35]wFMCommunicate request_size=11 [02:03:35]MH_SAM_APDU [02:03:35]CAPDU: 80 0D 02 02 06 A2 10 7D DE 79 97 [02:03:35]Write to MH i2c: E2 0E 00 63 8C 80 0D 02 02 06 00 A2 10 7D DE 79 97 00 00 92 [02:03:35]Write i2c OK [02:03:35]MH_I2C_Read... [02:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:35]Read from MH i2c: E2 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 03 00 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 03 00 63 8C 00 90 00 63 [02:03:35]RAPDU: 90 00 [02:03:35]wFMCommunicate OK [02:03:35]wFMCommunicate request_size=4 [02:03:35]MH_SAM_APDU [02:03:35]CAPDU: 80 0D 03 02 [02:03:35]Write to MH i2c: E2 08 00 64 8C 80 0D 03 02 00 00 00 00 6B [02:03:35]Write i2c OK [02:03:35]MH_I2C_Read... [02:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:03:35]Read from MH i2c: E2 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 0B 00 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 0B 00 64 8C 00 30 21 79 DC 1A E1 89 E4 90 00 7A [02:03:35]RAPDU: 30 21 79 DC 1A E1 89 E4 90 00 [02:03:35]wFMCommunicate OK [02:03:35]SAM_PROTO_SignData done [02:03:35]FM_MakeSignedData done [02:03:35]CreateOFDProtocolMessage [02:03:35]wFMCommunicate request_size=4 [02:03:35]MH_SAM_APDU [02:03:35]CAPDU: 80 11 00 00 [02:03:35]Write to MH i2c: E2 08 00 65 8C 80 11 00 00 00 00 00 00 6B [02:03:35]Write i2c OK [02:03:35]MH_I2C_Read... [02:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:35]Read from MH i2c: E2 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 17 00 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: E2 17 00 65 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [02:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:03:35]wFMCommunicate OK [02:03:35]CreateOFDProtocolMessage done [02:03:35]OFDSenderStorePacket 103580 [02:03:35]StoreOFDPacket docnum=103580 [02:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D2 D9 08 01 79 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE D1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C F9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C A2 00 00 00 00 07 04 06 00 4C F9 05 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 7F 3C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 94 01 00 35 04 06 00 A2 10 7D DE 79 97 30 21 79 DC 1A E1 89 E4 [02:03:35]CheckFolder [02:03:35]dirname=/storage/ofd_packets [02:03:35]CheckFolder done [02:03:35]ProducePacketName [02:03:35]name=ofd_packets/00103580 [02:03:35]NVStorageSaveData ofd_packets/00103580 [02:03:35]File name is /storage/ofd_packets/00103580 [02:03:35]Write 302 bytes [02:03:35]NVStorageSaveData done [02:03:35]OFDSenderStorePacket done [02:03:35]KKMCreateOFDPacket done [02:03:35]NVStorageSaveData kkm_last_timestamp [02:03:35]File name is /storage/kkm_last_timestamp [02:03:35]Write 4 bytes [02:03:35]NVStorageSaveData done [02:03:35]ExternCall_PrintAddStr [02:03:35]wPrintStart [02:03:35]Write to MH i2c: 01 00 00 66 8C F2 [02:03:35]Write i2c OK [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: 01 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: 01 07 00 [02:03:35]MH_I2C_Read... [02:03:35]Read from MH i2c: 01 07 00 66 8C 00 00 00 00 00 FF 0F 07 [02:03:35]RasterBufferAndPrint [02:03:35]line Счет N : (1)672798 [02:03:35]line ИНН: 02508201610067 [02:03:35]line Контрольно-Кассовый Чек [02:03:35]line ПРОДАЖА [02:03:35]line ТРК (МРК, ГНК) : 11 [02:03:35]line Товар: 2710194210 [02:03:35]line ДТ(л)-К-5 [02:03:35]line 53.710 * 72.90 [02:03:35]line = 3915.46 [02:03:35]line НДС 12% НСП 1% [02:03:35]line > о реализуемом товаре [02:03:35]line ОКРУГЛЕНИЕ: -0.46 [02:03:35]line ИТОГО: 3915.00 [02:03:35]line Внесено: 3915.00 [02:03:35]line СДАЧА: 0.00 [02:03:35]line НСП 1% : 34.65 [02:03:35]line НДС 12% : 415.80 [02:03:35]line Наличными: 3915.00 [02:03:35]line Безнал.: 0.00 [02:03:35]line Место: АЗС № 120 "Партнер Нефть" [02:03:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:03:35]line СНО: Общий режим [02:03:35]line Чек 10 19.06.2024 02:03 [02:03:35]line Смена: 353 ФФД: 1.0 [02:03:35]line ЗНМ: 0300000164 [02:03:35]line РНМ: 0000000000092785 [02:03:35]line Версия ККМ: 001 [02:03:35]line ФМ: 0000000000875093 [02:03:35]line ФД: 103580 [02:03:35]line ФПД: 178191714908567 [02:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T020343&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103580&fm=178191714908567&tin=02508201610067®Number=0000000000092785&sum=391500 [02:03:35]OFD Sender: Processing packet 103580 [packets to send 17, broken 16] [02:03:35]ProducePacketName [02:03:35]name=ofd_packets/00103580 [02:03:35]OFD Sender: To server: pG, [02:03:35]CommunicateWithHost lk.salyk.kg:30040 [02:03:35]ConnectInit lk.salyk.kg [02:03:35]written 0, free lines is 4095 [02:03:35]Connected sock=10 [02:03:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D2 D9 08 01 79 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE D1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7A F9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C F9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C A2 00 00 00 00 07 04 06 00 4C F9 05 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 7F 3C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 94 01 00 35 04 06 00 A2 10 7D DE 79 97 30 21 79 DC 1A E1 89 E4 [02:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 51 62 47 00 65 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 94 01 00 F4 03 04 00 09 E3 71 66 B6 04 01 00 00 09 0E C7 A8 75 C5 82 2F [02:03:35]CommunicateWithHost err = 0 [02:03:35]CheckOFDResponse [02:03:35]1017 (14) - 77093643461234 [02:03:35]1041 (16) - 0000000000875093 [02:03:35]1040 (4) - 103580 [02:03:35]1012 (4) - 18.06.2024 19:42 [02:03:35]1206 (1) - 0 [02:03:35]OFD Sender: Remove packet 103580 [02:03:35]ProducePacketName [02:03:35]name=ofd_packets/00103580 [02:03:35]NVStorageDeleteData [02:03:36]Write to MH i2c: 01 00 00 91 8C 1D [02:03:36]Write i2c OK [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: 01 [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: 01 07 00 [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: 01 07 00 91 8C 00 00 00 00 00 D6 0C 06 [02:03:36]RasterBufferAndPrint [02:03:36]line [02:03:36]line [02:03:36]line [02:03:36]line [02:03:36]line [02:03:36]written 0, free lines is 3293 [02:03:36]MH_Cut [02:03:36]Write to MH i2c: D1 01 00 98 8C 01 F6 [02:03:36]Write i2c OK [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: D1 [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: D1 01 00 [02:03:36]MH_I2C_Read... [02:03:36]Read from MH i2c: D1 01 00 98 8C 00 F5 [02:03:36]Write to MH i2c: 01 00 00 99 8C 25 [02:03:36]Write i2c OK [02:03:36]MH_I2C_Read... [02:03:36]OFD Sender: No OFD packet to send [02:03:36]*** Cut start [02:03:36]*** Partial cut [02:03:36]*** CUTSNS_PIN = 1 [02:03:36]*** CUTSNS_PIN = 0 [02:03:37]*** Brake cut motor [02:03:37]Read from MH i2c: 01 [02:03:37]MH_I2C_Read... [02:03:37]*** Stop cut motor [02:03:37]*** Cut end [02:03:37]Read from MH i2c: 01 07 00 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: 01 07 00 99 8C 00 00 00 00 00 FF 0F 3A [02:03:37]process_action close_receipt done [02:03:37]requested_data is exist [02:03:37]produce_requested_data [02:03:37]requested_item fm.sn is exist - process it [02:03:37]wFMCommunicate request_size=4 [02:03:37]MH_SAM_APDU [02:03:37]CAPDU: 80 11 00 00 [02:03:37]Write to MH i2c: E2 08 00 9A 8C 80 11 00 00 00 00 00 00 A0 [02:03:37]Write i2c OK [02:03:37]MH_I2C_Read... [02:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:37]Read from MH i2c: E2 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 17 00 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 17 00 9A 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F3 [02:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:03:37]wFMCommunicate OK [02:03:37]requested_item fd.num is exist - process it [02:03:37]SAM_PROTO_GetFieldsCounters [02:03:37]wFMCommunicate request_size=4 [02:03:37]MH_SAM_APDU [02:03:37]CAPDU: 80 13 00 00 [02:03:37]Write to MH i2c: E2 08 00 9B 8C 80 13 00 00 00 00 00 00 A3 [02:03:37]Write i2c OK [02:03:37]MH_I2C_Read... [02:03:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:03:37]Read from MH i2c: E2 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 62 00 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 62 00 9B 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [02:03:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:03:37]wFMCommunicate OK [02:03:37]SAM_PROTO_GetFieldsCounters done [02:03:37]requested_item shift.num is exist - process it [02:03:37]requested_item shift.opened is exist - process it [02:03:37]req_shift_opened [02:03:37]FM_GetShiftState [02:03:37]SAM_PROTO_GetShiftState [02:03:37]wFMCommunicate request_size=4 [02:03:37]MH_SAM_APDU [02:03:37]CAPDU: 80 13 01 00 [02:03:37]Write to MH i2c: E2 08 00 9C 8C 80 13 01 00 00 00 00 00 A5 [02:03:37]Write i2c OK [02:03:37]MH_I2C_Read... [02:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:37]Read from MH i2c: E2 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 0E 00 [02:03:37]MH_I2C_Read... [02:03:37]Read from MH i2c: E2 0E 00 9C 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B3 [02:03:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:03:37]wFMCommunicate OK [02:03:37]SAM_PROTO_GetShiftState done [02:03:37]FM_GetShiftState done [02:03:37]req_shift_opened done [02:03:37]requested_item shift.open_date is exist - process it [02:03:37]req_shift_open_date [02:03:37]req_shift_open_date done [02:03:37]produce_requested_data done [02:03:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103580,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [02:03:37]process_action_free close_receipt [02:03:37]json_value_free [02:03:37]json_value_free done [02:03:37]process_json_proto returns [02:03:37]Send response to host [02:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103580,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [02:03:37]free response buf [02:03:37]execute_script done [02:03:37]execute_script returns [02:03:37]free content buf [02:03:37]Sock 7.Close socket [02:03:37]Sock 7.Thread stoped [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:01]accept exits with 9 [02:16:01]New connection [02:16:01]New thread 3067084132 created [02:16:01]Thread 3067227492 joined [02:16:01]Waiting for new connection... [02:16:01] Sock 9.Parse request [02:16:01]Sock 9.Check first char [02:16:01]Sock 9.First char is OK [02:16:01]request: POST /json_proto HTTP/1.0 [02:16:01]Method: POST [02:16:01]URL: /json_proto [02:16:01]Method is POST - this is cgi request [02:16:01]url: /json_proto [02:16:01]query_string will be loaded in cgi processing [02:16:01]execute_cgi json_proto POST (null) [02:16:01]execute_cgi path=json_proto method=POST [02:16:01]POST find Content-Length [02:16:01]Host: 172.17.38.133:8080 [02:16:01]Content-Length: 682 [02:16:01]Content-Type: application/json [02:16:01] [02:16:01]POST finish read [02:16:01]Found Content-Length = 682 [02:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 23.820, "sum" : 1760.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1760.00, "payments": [ { "type": 0, "sum" : 1760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:01]execute_script... [02:16:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 23.820, "sum" : 1760.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1760.00, "payments": [ { "type": 0, "sum" : 1760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:01]POST & json_proto [02:16:01]process_json_proto [02:16:01]json parsed OK: [02:16:01]protocol is kg_v1.0 [02:16:01]action value=close_receipt [02:16:01]process_action close_receipt [02:16:01]cmd_close_receipt [02:16:01]MH_GetDate [02:16:01]Write to MH i2c: F0 00 00 9D 8C 18 [02:16:01]Write i2c OK [02:16:01]MH_I2C_Read... [02:16:01]Read from MH i2c: F0 [02:16:01]MH_I2C_Read... [02:16:01]Read from MH i2c: F0 09 00 [02:16:01]MH_I2C_Read... [02:16:01]Read from MH i2c: F0 09 00 9D 8C 00 6B 3F 72 66 BD 8F 7C 64 CF [02:16:01]GetLastDocTimeStamp 1718762623 [02:16:01]current date 1718763371 [02:16:01]FM_GetShiftState [02:16:01]SAM_PROTO_GetShiftState [02:16:01]wFMCommunicate request_size=4 [02:16:01]MH_SAM_APDU [02:16:01]CAPDU: 80 13 01 00 [02:16:01]Write to MH i2c: E2 08 00 9E 8C 80 13 01 00 00 00 00 00 A7 [02:16:01]Write i2c OK [02:16:01]MH_I2C_Read... [02:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:01]Read from MH i2c: E2 [02:16:01]MH_I2C_Read... [02:16:01]Read from MH i2c: E2 0E 00 [02:16:01]MH_I2C_Read... [02:16:01]Read from MH i2c: E2 0E 00 9E 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B5 [02:16:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:16:01]wFMCommunicate OK [02:16:01]SAM_PROTO_GetShiftState done [02:16:01]FM_GetShiftState done [02:16:01]opened in 1718756868 [02:16:01]opened+sec_in_day 1718843268 [02:16:01]quantity*price = 176029 [02:16:01]sum+1 = 176031 [02:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1760.00 Внесено: 3000.00 СДАЧА: 1240.00 НСП 1% : 15.58 НДС 12% : 186.93 Наличными: 1760.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 19.06.2024 02:16 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103581 ФПД: 220635573686039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T021611&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103581&fm=220635573686039&tin=02508201610067®Number=0000000000092785&sum=176000 [02:16:02]StoreToDocumentArchive [02:16:02]shift 353 fd 103581 [02:16:02]save to /storage/0353/doc_00103581 [02:16:02]save last doc name /storage/0353/doc_00103581 to /storage/kkm_last_doc_name [02:16:02]save OK [02:16:02]Clear old archive folders... [02:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:16:02]tlvbuf is 013375F0 [02:16:02]SAM_PROTO_ClearQueue [02:16:02]wFMCommunicate request_size=4 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 09 00 00 [02:16:02]Write to MH i2c: E2 08 00 AB 8C 80 09 00 00 00 00 00 00 A9 [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:02]Read from MH i2c: E2 03 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 AB 8C 00 90 00 AB [02:16:02]RAPDU: 90 00 [02:16:02]wFMCommunicate OK [02:16:02]SAM_PROTO_ClearQueue done [02:16:02]KKMCreateOFDPacket [02:16:02]OFDProtocolAddRootSTLVToBuf [02:16:02]FM_MakeSignedData [02:16:02]FM_MakeSignedData [02:16:02]SAM_PROTO_SignData [02:16:02]wFMCommunicate request_size=4 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 0D 01 02 [02:16:02]Write to MH i2c: E2 08 00 AC 8C 80 0D 01 02 00 00 00 00 B1 [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:02]Read from MH i2c: E2 03 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 AC 8C 00 90 00 AC [02:16:02]RAPDU: 90 00 [02:16:02]wFMCommunicate OK [02:16:02]wFMCommunicate request_size=255 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 5D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9E AF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 AF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 49 00 00 00 00 07 04 06 00 80 AF 02 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 6B 3F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 94 01 00 35 04 06 00 C8 [02:16:02]Write to MH i2c: E2 02 01 AD 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 5D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9E AF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 AF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 49 00 00 00 00 07 04 06 00 80 AF 02 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 6B 3F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 94 01 00 35 04 06 00 C8 00 00 2C [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 AD 8C 00 90 00 AD [02:16:02]RAPDU: 90 00 [02:16:02]wFMCommunicate OK [02:16:02]wFMCommunicate request_size=10 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 0D 02 02 05 AA B8 FE 8F 17 [02:16:02]Write to MH i2c: E2 0D 00 AE 8C 80 0D 02 02 05 00 AA B8 FE 8F 17 00 00 C4 [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 03 00 AE 8C 00 90 00 AE [02:16:02]RAPDU: 90 00 [02:16:02]wFMCommunicate OK [02:16:02]wFMCommunicate request_size=4 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 0D 03 02 [02:16:02]Write to MH i2c: E2 08 00 AF 8C 80 0D 03 02 00 00 00 00 B6 [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 0B 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 0B 00 AF 8C 00 DA 83 C6 B5 36 39 09 20 90 00 27 [02:16:02]RAPDU: DA 83 C6 B5 36 39 09 20 90 00 [02:16:02]wFMCommunicate OK [02:16:02]SAM_PROTO_SignData done [02:16:02]FM_MakeSignedData done [02:16:02]CreateOFDProtocolMessage [02:16:02]wFMCommunicate request_size=4 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 11 00 00 [02:16:02]Write to MH i2c: E2 08 00 B0 8C 80 11 00 00 00 00 00 00 B6 [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 17 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 17 00 B0 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [02:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:16:02]wFMCommunicate OK [02:16:02]CreateOFDProtocolMessage done [02:16:02]OFDSenderStorePacket 103581 [02:16:02]StoreOFDPacket docnum=103581 [02:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3C 3C 07 01 A0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 5D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9E AF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 AF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 49 00 00 00 00 07 04 06 00 80 AF 02 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 6B 3F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 94 01 00 35 04 06 00 C8 AA B8 FE 8F 17 DA 83 C6 B5 36 39 09 20 [02:16:02]CheckFolder [02:16:02]dirname=/storage/ofd_packets [02:16:02]CheckFolder done [02:16:02]ProducePacketName [02:16:02]name=ofd_packets/00103581 [02:16:02]NVStorageSaveData ofd_packets/00103581 [02:16:02]File name is /storage/ofd_packets/00103581 [02:16:02]Write 301 bytes [02:16:02]NVStorageSaveData done [02:16:02]OFDSenderStorePacket done [02:16:02]KKMCreateOFDPacket done [02:16:02]NVStorageSaveData kkm_last_timestamp [02:16:02]File name is /storage/kkm_last_timestamp [02:16:02]Write 4 bytes [02:16:02]NVStorageSaveData done [02:16:02]ExternCall_PrintAddStr [02:16:02]wPrintStart [02:16:02]Write to MH i2c: 01 00 00 B1 8C 3D [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: 01 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: 01 07 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: 01 07 00 B1 8C 00 00 00 00 00 FF 0F 52 [02:16:02]RasterBufferAndPrint [02:16:02]line Счет N : (1)672799 [02:16:02]line ИНН: 02508201610067 [02:16:02]line Контрольно-Кассовый Чек [02:16:02]line ПРОДАЖА [02:16:02]line ТРК (МРК, ГНК) : 31 [02:16:02]line Товар: 2710124500 [02:16:02]line Аи-95-К-5 [02:16:02]line 23.820 * 73.90 [02:16:02]line = 1760.30 [02:16:02]line НДС 12% НСП 1% [02:16:02]line > о реализуемом товаре [02:16:02]line ОКРУГЛЕНИЕ: -0.30 [02:16:02]line ИТОГО: 1760.00 [02:16:02]line Внесено: 3000.00 [02:16:02]line СДАЧА: 1240.00 [02:16:02]line НСП 1% : 15.58 [02:16:02]line НДС 12% : 186.93 [02:16:02]line Наличными: 1760.00 [02:16:02]line Безнал.: 0.00 [02:16:02]line Место: АЗС № 120 "Партнер Нефть" [02:16:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:16:02]line СНО: Общий режим [02:16:02]line Чек 11 19.06.2024 02:16 [02:16:02]line Смена: 353 ФФД: 1.0 [02:16:02]line ЗНМ: 0300000164 [02:16:02]line РНМ: 0000000000092785 [02:16:02]line Версия ККМ: 001 [02:16:02]line ФМ: 0000000000875093 [02:16:02]line ФД: 103581 [02:16:02]line ФПД: 220635573686039 [02:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T021611&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103581&fm=220635573686039&tin=02508201610067®Number=0000000000092785&sum=176000 [02:16:03]OFD Sender: Processing packet 103581 [packets to send 17, broken 16] [02:16:03]ProducePacketName [02:16:03]name=ofd_packets/00103581 [02:16:03]OFD Sender: To server: pG, [02:16:03]CommunicateWithHost lk.salyk.kg:30040 [02:16:03]ConnectInit lk.salyk.kg [02:16:03]written 0, free lines is 4095 [02:16:03]Connected sock=10 [02:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3C 3C 07 01 A0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 5D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9E AF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 AF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 49 00 00 00 00 07 04 06 00 80 AF 02 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 6B 3F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 94 01 00 35 04 06 00 C8 AA B8 FE 8F 17 DA 83 C6 B5 36 39 09 20 [02:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D6 73 47 00 10 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 35 30 39 33 10 04 04 00 9D 94 01 00 F4 03 04 00 F5 E5 71 66 B6 04 01 00 00 46 1A EF 93 9F 0C 4A 86 [02:16:03]CommunicateWithHost err = 0 [02:16:03]CheckOFDResponse [02:16:03]1017 (14) - 77093643461234 [02:16:03]1041 (16) - 0000000000875093 [02:16:03]1040 (4) - 103581 [02:16:03]1012 (4) - 18.06.2024 19:54 [02:16:03]1206 (1) - 0 [02:16:03]OFD Sender: Remove packet 103581 [02:16:03]ProducePacketName [02:16:03]name=ofd_packets/00103581 [02:16:03]NVStorageDeleteData [02:16:03]Write to MH i2c: 01 00 00 DC 8C 68 [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: 01 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: 01 07 00 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: 01 07 00 DC 8C 00 00 00 00 00 EC 0C 67 [02:16:03]RasterBufferAndPrint [02:16:03]line [02:16:03]line [02:16:03]line [02:16:03]line [02:16:03]line [02:16:03]written 0, free lines is 3314 [02:16:03]MH_Cut [02:16:03]Write to MH i2c: D1 01 00 E3 8C 01 41 [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: D1 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: D1 01 00 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: D1 01 00 E3 8C 00 40 [02:16:03]Write to MH i2c: 01 00 00 E4 8C 70 [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:04]OFD Sender: No OFD packet to send [02:16:04]*** Cut start [02:16:04]*** Partial cut [02:16:04]*** CUTSNS_PIN = 1 [02:16:04]*** CUTSNS_PIN = 0 [02:16:04]*** Brake cut motor [02:16:05]Read from MH i2c: 01 [02:16:05]MH_I2C_Read... [02:16:05]*** Stop cut motor [02:16:05]*** Cut end [02:16:05]Read from MH i2c: 01 07 00 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: 01 07 00 E4 8C 00 00 00 00 00 FF 0F 85 [02:16:05]process_action close_receipt done [02:16:05]requested_data is exist [02:16:05]produce_requested_data [02:16:05]requested_item fm.sn is exist - process it [02:16:05]wFMCommunicate request_size=4 [02:16:05]MH_SAM_APDU [02:16:05]CAPDU: 80 11 00 00 [02:16:05]Write to MH i2c: E2 08 00 E5 8C 80 11 00 00 00 00 00 00 EB [02:16:05]Write i2c OK [02:16:05]MH_I2C_Read... [02:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:05]Read from MH i2c: E2 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 17 00 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 17 00 E5 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [02:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:16:05]wFMCommunicate OK [02:16:05]requested_item fd.num is exist - process it [02:16:05]SAM_PROTO_GetFieldsCounters [02:16:05]wFMCommunicate request_size=4 [02:16:05]MH_SAM_APDU [02:16:05]CAPDU: 80 13 00 00 [02:16:05]Write to MH i2c: E2 08 00 E6 8C 80 13 00 00 00 00 00 00 EE [02:16:05]Write i2c OK [02:16:05]MH_I2C_Read... [02:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:05]Read from MH i2c: E2 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 62 00 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 62 00 E6 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [02:16:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:16:05]wFMCommunicate OK [02:16:05]SAM_PROTO_GetFieldsCounters done [02:16:05]requested_item shift.num is exist - process it [02:16:05]requested_item shift.opened is exist - process it [02:16:05]req_shift_opened [02:16:05]FM_GetShiftState [02:16:05]SAM_PROTO_GetShiftState [02:16:05]wFMCommunicate request_size=4 [02:16:05]MH_SAM_APDU [02:16:05]CAPDU: 80 13 01 00 [02:16:05]Write to MH i2c: E2 08 00 E7 8C 80 13 01 00 00 00 00 00 F0 [02:16:05]Write i2c OK [02:16:05]MH_I2C_Read... [02:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:05]Read from MH i2c: E2 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 0E 00 [02:16:05]MH_I2C_Read... [02:16:05]Read from MH i2c: E2 0E 00 E7 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FE [02:16:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:16:05]wFMCommunicate OK [02:16:05]SAM_PROTO_GetShiftState done [02:16:05]FM_GetShiftState done [02:16:05]req_shift_opened done [02:16:05]requested_item shift.open_date is exist - process it [02:16:05]req_shift_open_date [02:16:05]req_shift_open_date done [02:16:05]produce_requested_data done [02:16:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103581,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [02:16:05]process_action_free close_receipt [02:16:05]json_value_free [02:16:05]json_value_free done [02:16:05]process_json_proto returns [02:16:05]Send response to host [02:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103581,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [02:16:05]free response buf [02:16:05]execute_script done [02:16:05]execute_script returns [02:16:05]free content buf [02:16:05]Sock 9.Close socket [02:16:05]Sock 9.Thread stoped [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:33]accept exits with 7 [02:21:33]New connection [02:21:33]New thread 3067227492 created [02:21:33]Thread 3067084132 joined [02:21:33]Waiting for new connection... [02:21:33] Sock 7.Parse request [02:21:33]Sock 7.Check first char [02:21:33]Sock 7.First char is OK [02:21:33]request: POST /json_proto HTTP/1.0 [02:21:33]Method: POST [02:21:33]URL: /json_proto [02:21:33]Method is POST - this is cgi request [02:21:33]url: /json_proto [02:21:33]query_string will be loaded in cgi processing [02:21:33]execute_cgi json_proto POST (null) [02:21:33]execute_cgi path=json_proto method=POST [02:21:33]POST find Content-Length [02:21:33]Host: 172.17.38.133:8080 [02:21:33]Content-Length: 687 [02:21:33]Content-Type: application/json [02:21:33] [02:21:33]POST finish read [02:21:33]Found Content-Length = 687 [02:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:33]execute_script... [02:21:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:33]POST & json_proto [02:21:33]process_json_proto [02:21:33]json parsed OK: [02:21:33]protocol is kg_v1.0 [02:21:33]action value=close_receipt [02:21:33]process_action close_receipt [02:21:33]cmd_close_receipt [02:21:33]MH_GetDate [02:21:33]Write to MH i2c: F0 00 00 E8 8C 63 [02:21:33]Write i2c OK [02:21:33]MH_I2C_Read... [02:21:33]Read from MH i2c: F0 [02:21:33]MH_I2C_Read... [02:21:33]Read from MH i2c: F0 09 00 [02:21:33]MH_I2C_Read... [02:21:33]Read from MH i2c: F0 09 00 E8 8C 00 B7 40 72 66 BD 8F 7C 64 67 [02:21:33]GetLastDocTimeStamp 1718763371 [02:21:33]current date 1718763703 [02:21:33]FM_GetShiftState [02:21:33]SAM_PROTO_GetShiftState [02:21:33]wFMCommunicate request_size=4 [02:21:33]MH_SAM_APDU [02:21:33]CAPDU: 80 13 01 00 [02:21:33]Write to MH i2c: E2 08 00 E9 8C 80 13 01 00 00 00 00 00 F2 [02:21:33]Write i2c OK [02:21:33]MH_I2C_Read... [02:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:33]Read from MH i2c: E2 [02:21:33]MH_I2C_Read... [02:21:33]Read from MH i2c: E2 0E 00 [02:21:33]MH_I2C_Read... [02:21:33]Read from MH i2c: E2 0E 00 E9 8C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 00 [02:21:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:21:33]wFMCommunicate OK [02:21:33]SAM_PROTO_GetShiftState done [02:21:33]FM_GetShiftState done [02:21:33]opened in 1718756868 [02:21:33]opened+sec_in_day 1718843268 [02:21:33]quantity*price = 600039 [02:21:33]sum+1 = 600041 [02:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 19.06.2024 02:21 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103582 ФПД: 225533240096495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T022143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103582&fm=225533240096495&tin=02508201610067®Number=0000000000092785&sum=600000 [02:21:35]StoreToDocumentArchive [02:21:35]shift 353 fd 103582 [02:21:35]save to /storage/0353/doc_00103582 [02:21:35]save last doc name /storage/0353/doc_00103582 to /storage/kkm_last_doc_name [02:21:35]save OK [02:21:35]Clear old archive folders... [02:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:21:35]tlvbuf is 013EBFF0 [02:21:35]SAM_PROTO_ClearQueue [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 09 00 00 [02:21:35]Write to MH i2c: E2 08 00 F6 8C 80 09 00 00 00 00 00 00 F4 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 F6 8C 00 90 00 F6 [02:21:35]RAPDU: 90 00 [02:21:35]wFMCommunicate OK [02:21:35]SAM_PROTO_ClearQueue done [02:21:35]KKMCreateOFDPacket [02:21:35]OFDProtocolAddRootSTLVToBuf [02:21:35]FM_MakeSignedData [02:21:35]FM_MakeSignedData [02:21:35]SAM_PROTO_SignData [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 0D 01 02 [02:21:35]Write to MH i2c: E2 08 00 F7 8C 80 0D 01 02 00 00 00 00 FC [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 F7 8C 00 90 00 F7 [02:21:35]RAPDU: 90 00 [02:21:35]wFMCommunicate OK [02:21:35]wFMCommunicate request_size=255 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B7 40 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 94 01 00 35 04 06 00 [02:21:35]Write to MH i2c: E2 02 01 F8 8C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B7 40 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 94 01 00 35 04 06 00 00 00 C0 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 F8 8C 00 90 00 F8 [02:21:35]RAPDU: 90 00 [02:21:35]wFMCommunicate OK [02:21:35]wFMCommunicate request_size=11 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 0D 02 02 06 CD 1F 0C A9 36 EF [02:21:35]Write to MH i2c: E2 0E 00 F9 8C 80 0D 02 02 06 00 CD 1F 0C A9 36 EF 00 00 D1 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 03 00 F9 8C 00 90 00 F9 [02:21:35]RAPDU: 90 00 [02:21:35]wFMCommunicate OK [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 0D 03 02 [02:21:35]Write to MH i2c: E2 08 00 FA 8C 80 0D 03 02 00 00 00 00 01 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 0B 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 0B 00 FA 8C 00 A7 F6 CB 52 F0 20 72 C4 90 00 02 [02:21:35]RAPDU: A7 F6 CB 52 F0 20 72 C4 90 00 [02:21:35]wFMCommunicate OK [02:21:35]SAM_PROTO_SignData done [02:21:35]FM_MakeSignedData done [02:21:35]CreateOFDProtocolMessage [02:21:35]wFMCommunicate request_size=4 [02:21:35]MH_SAM_APDU [02:21:35]CAPDU: 80 11 00 00 [02:21:35]Write to MH i2c: E2 08 00 FB 8C 80 11 00 00 00 00 00 00 01 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:35]Read from MH i2c: E2 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 17 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: E2 17 00 FB 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [02:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:21:35]wFMCommunicate OK [02:21:35]CreateOFDProtocolMessage done [02:21:35]OFDSenderStorePacket 103582 [02:21:35]StoreOFDPacket docnum=103582 [02:21:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9A 26 08 01 C4 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B7 40 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 94 01 00 35 04 06 00 CD 1F 0C A9 36 EF A7 F6 CB 52 F0 20 72 C4 [02:21:35]CheckFolder [02:21:35]dirname=/storage/ofd_packets [02:21:35]CheckFolder done [02:21:35]ProducePacketName [02:21:35]name=ofd_packets/00103582 [02:21:35]NVStorageSaveData ofd_packets/00103582 [02:21:35]File name is /storage/ofd_packets/00103582 [02:21:35]Write 302 bytes [02:21:35]NVStorageSaveData done [02:21:35]OFDSenderStorePacket done [02:21:35]KKMCreateOFDPacket done [02:21:35]NVStorageSaveData kkm_last_timestamp [02:21:35]File name is /storage/kkm_last_timestamp [02:21:35]Write 4 bytes [02:21:35]NVStorageSaveData done [02:21:35]ExternCall_PrintAddStr [02:21:35]wPrintStart [02:21:35]Write to MH i2c: 01 00 00 FC 8C 88 [02:21:35]Write i2c OK [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: 01 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: 01 07 00 [02:21:35]MH_I2C_Read... [02:21:35]Read from MH i2c: 01 07 00 FC 8C 00 00 00 00 00 FF 0F 9D [02:21:35]RasterBufferAndPrint [02:21:35]line Счет N : (1)672800 [02:21:35]line ИНН: 02508201610067 [02:21:35]line Контрольно-Кассовый Чек [02:21:35]line ПРОДАЖА [02:21:35]line ТРК (МРК, ГНК) : 21 [02:21:35]line Товар: 2710194210 [02:21:35]line ДТ(л)-К-5 [02:21:35]line 82.310 * 72.90 [02:21:35]line = 6000.40 [02:21:35]line НДС 12% НСП 1% [02:21:35]line > о реализуемом товаре [02:21:35]line ОКРУГЛЕНИЕ: -0.40 [02:21:35]line ИТОГО: 6000.00 [02:21:35]line Внесено: 6000.00 [02:21:35]line СДАЧА: 0.00 [02:21:35]line НСП 1% : 53.10 [02:21:35]line НДС 12% : 637.21 [02:21:35]line Наличными: 6000.00 [02:21:35]line Безнал.: 0.00 [02:21:35]line Место: АЗС № 120 "Партнер Нефть" [02:21:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:21:35]line СНО: Общий режим [02:21:35]line Чек 12 19.06.2024 02:21 [02:21:35]line Смена: 353 ФФД: 1.0 [02:21:35]line ЗНМ: 0300000164 [02:21:35]line РНМ: 0000000000092785 [02:21:35]line Версия ККМ: 001 [02:21:35]line ФМ: 0000000000875093 [02:21:35]line ФД: 103582 [02:21:35]line ФПД: 225533240096495 [02:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T022143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103582&fm=225533240096495&tin=02508201610067®Number=0000000000092785&sum=600000 [02:21:35]OFD Sender: Processing packet 103582 [packets to send 17, broken 16] [02:21:35]ProducePacketName [02:21:35]name=ofd_packets/00103582 [02:21:35]OFD Sender: To server: pG, [02:21:35]CommunicateWithHost lk.salyk.kg:30040 [02:21:35]ConnectInit lk.salyk.kg [02:21:35]written 0, free lines is 4095 [02:21:36]Connected sock=11 [02:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9A 26 08 01 C4 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B7 40 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 94 01 00 35 04 06 00 CD 1F 0C A9 36 EF A7 F6 CB 52 F0 20 72 C4 [02:21:36]Write to MH i2c: 01 00 00 27 8D B4 [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 07 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: 01 07 00 27 8D 00 00 00 00 00 D9 0C A0 [02:21:36]RasterBufferAndPrint [02:21:36]line [02:21:36]line [02:21:36]line [02:21:36]line [02:21:36]line [02:21:36]written 0, free lines is 3297 [02:21:36]MH_Cut [02:21:36]Write to MH i2c: D1 01 00 2E 8D 01 8D [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: D1 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: D1 01 00 [02:21:36]MH_I2C_Read... [02:21:36]Read from MH i2c: D1 01 00 2E 8D 00 8C [02:21:36]Write to MH i2c: 01 00 00 2F 8D BC [02:21:36]Write i2c OK [02:21:36]MH_I2C_Read... [02:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8A 01 47 00 5C 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 94 01 00 F4 03 04 00 42 E7 71 66 B6 04 01 00 00 74 CC 7B AC EC 94 15 AB [02:21:36]CommunicateWithHost err = 0 [02:21:36]CheckOFDResponse [02:21:36]1017 (14) - 77093643461234 [02:21:36]1041 (16) - 0000000000875093 [02:21:36]1040 (4) - 103582 [02:21:36]1012 (4) - 18.06.2024 20:00 [02:21:36]1206 (1) - 0 [02:21:36]OFD Sender: Remove packet 103582 [02:21:36]ProducePacketName [02:21:36]name=ofd_packets/00103582 [02:21:36]NVStorageDeleteData [02:21:36]OFD Sender: No OFD packet to send [02:21:37]*** Cut start [02:21:37]*** Partial cut [02:21:37]*** CUTSNS_PIN = 1 [02:21:37]*** CUTSNS_PIN = 0 [02:21:37]*** Brake cut motor [02:21:37]Read from MH i2c: 01 [02:21:37]MH_I2C_Read... [02:21:37]*** Stop cut motor [02:21:37]*** Cut end [02:21:37]Read from MH i2c: 01 07 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: 01 07 00 2F 8D 00 00 00 00 00 FF 0F D1 [02:21:37]process_action close_receipt done [02:21:37]requested_data is exist [02:21:37]produce_requested_data [02:21:37]requested_item fm.sn is exist - process it [02:21:37]wFMCommunicate request_size=4 [02:21:37]MH_SAM_APDU [02:21:37]CAPDU: 80 11 00 00 [02:21:37]Write to MH i2c: E2 08 00 30 8D 80 11 00 00 00 00 00 00 37 [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:37]Read from MH i2c: E2 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 17 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 17 00 30 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [02:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:21:37]wFMCommunicate OK [02:21:37]requested_item fd.num is exist - process it [02:21:37]SAM_PROTO_GetFieldsCounters [02:21:37]wFMCommunicate request_size=4 [02:21:37]MH_SAM_APDU [02:21:37]CAPDU: 80 13 00 00 [02:21:37]Write to MH i2c: E2 08 00 31 8D 80 13 00 00 00 00 00 00 3A [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:21:37]Read from MH i2c: E2 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 62 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 62 00 31 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [02:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:21:37]wFMCommunicate OK [02:21:37]SAM_PROTO_GetFieldsCounters done [02:21:37]requested_item shift.num is exist - process it [02:21:37]requested_item shift.opened is exist - process it [02:21:37]req_shift_opened [02:21:37]FM_GetShiftState [02:21:37]SAM_PROTO_GetShiftState [02:21:37]wFMCommunicate request_size=4 [02:21:37]MH_SAM_APDU [02:21:37]CAPDU: 80 13 01 00 [02:21:37]Write to MH i2c: E2 08 00 32 8D 80 13 01 00 00 00 00 00 3C [02:21:37]Write i2c OK [02:21:37]MH_I2C_Read... [02:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:37]Read from MH i2c: E2 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 0E 00 [02:21:37]MH_I2C_Read... [02:21:37]Read from MH i2c: E2 0E 00 32 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4A [02:21:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:21:37]wFMCommunicate OK [02:21:37]SAM_PROTO_GetShiftState done [02:21:37]FM_GetShiftState done [02:21:37]req_shift_opened done [02:21:37]requested_item shift.open_date is exist - process it [02:21:37]req_shift_open_date [02:21:37]req_shift_open_date done [02:21:37]produce_requested_data done [02:21:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103582,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [02:21:37]process_action_free close_receipt [02:21:37]json_value_free [02:21:37]json_value_free done [02:21:37]process_json_proto returns [02:21:37]Send response to host [02:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103582,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [02:21:37]free response buf [02:21:37]execute_script done [02:21:37]execute_script returns [02:21:37]free content buf [02:21:37]Sock 7.Close socket [02:21:37]Sock 7.Thread stoped [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]accept exits with 9 [02:26:37]New connection [02:26:37]New thread 3067084132 created [02:26:37]Thread 3067227492 joined [02:26:37]Waiting for new connection... [02:26:37] Sock 9.Parse request [02:26:37]Sock 9.Check first char [02:26:37]Sock 9.First char is OK [02:26:37]request: POST /json_proto HTTP/1.0 [02:26:37]Method: POST [02:26:37]URL: /json_proto [02:26:37]Method is POST - this is cgi request [02:26:37]url: /json_proto [02:26:37]query_string will be loaded in cgi processing [02:26:37]execute_cgi json_proto POST (null) [02:26:37]execute_cgi path=json_proto method=POST [02:26:37]POST find Content-Length [02:26:37]Host: 172.17.38.133:8080 [02:26:37]Content-Length: 824 [02:26:37]Content-Type: application/json [02:26:37] [02:26:37]POST finish read [02:26:37]Found Content-Length = 824 [02:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:37]execute_script... [02:26: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)672801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:37]POST & json_proto [02:26:37]process_json_proto [02:26:37]json parsed OK: [02:26:37]protocol is kg_v1.0 [02:26:37]action value=close_receipt [02:26:37]process_action close_receipt [02:26:37]cmd_close_receipt [02:26:37]MH_GetDate [02:26:37]Write to MH i2c: F0 00 00 33 8D AF [02:26:37]Write i2c OK [02:26:37]MH_I2C_Read... [02:26:37]Read from MH i2c: F0 [02:26:37]MH_I2C_Read... [02:26:37]Read from MH i2c: F0 09 00 [02:26:37]MH_I2C_Read... [02:26:37]Read from MH i2c: F0 09 00 33 8D 00 E7 41 72 66 BD 8F 7C 64 E4 [02:26:37]GetLastDocTimeStamp 1718763703 [02:26:37]current date 1718764007 [02:26:37]FM_GetShiftState [02:26:37]SAM_PROTO_GetShiftState [02:26:37]wFMCommunicate request_size=4 [02:26:37]MH_SAM_APDU [02:26:37]CAPDU: 80 13 01 00 [02:26:37]Write to MH i2c: E2 08 00 34 8D 80 13 01 00 00 00 00 00 3E [02:26:37]Write i2c OK [02:26:37]MH_I2C_Read... [02:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:37]Read from MH i2c: E2 [02:26:37]MH_I2C_Read... [02:26:37]Read from MH i2c: E2 0E 00 [02:26:37]MH_I2C_Read... [02:26:37]Read from MH i2c: E2 0E 00 34 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4C [02:26:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:26:37]wFMCommunicate OK [02:26:37]SAM_PROTO_GetShiftState done [02:26:37]FM_GetShiftState done [02:26:37]opened in 1718756868 [02:26:37]opened+sec_in_day 1718843268 [02:26:37]quantity*price = 700058 [02:26:37]sum+1 = 700060 [02:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.59 НСП 1% : 61.95 НДС 12% : 743.42 Наличными: 0.00 Безнал.: 7000.59 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 13 19.06.2024 02:26 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103583 ФПД: 181047170397535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T022647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103583&fm=181047170397535&tin=02508201610067®Number=0000000000092785&sum=700059 [02:26:38]StoreToDocumentArchive [02:26:38]shift 353 fd 103583 [02:26:38]save to /storage/0353/doc_00103583 [02:26:38]save last doc name /storage/0353/doc_00103583 to /storage/kkm_last_doc_name [02:26:38]save OK [02:26:38]Clear old archive folders... [02:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:26:38]tlvbuf is 013A1CD0 [02:26:38]SAM_PROTO_ClearQueue [02:26:38]wFMCommunicate request_size=4 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 09 00 00 [02:26:38]Write to MH i2c: E2 08 00 41 8D 80 09 00 00 00 00 00 00 40 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 41 8D 00 90 00 42 [02:26:38]RAPDU: 90 00 [02:26:38]wFMCommunicate OK [02:26:38]SAM_PROTO_ClearQueue done [02:26:38]KKMCreateOFDPacket [02:26:38]OFDProtocolAddRootSTLVToBuf [02:26:38]FM_MakeSignedData [02:26:38]FM_MakeSignedData [02:26:38]SAM_PROTO_SignData [02:26:38]wFMCommunicate request_size=4 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 0D 01 02 [02:26:38]Write to MH i2c: E2 08 00 42 8D 80 0D 01 02 00 00 00 00 48 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 42 8D 00 90 00 43 [02:26:38]RAPDU: 90 00 [02:26:38]wFMCommunicate OK [02:26:38]wFMCommunicate request_size=255 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E7 41 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 94 01 00 35 04 06 00 [02:26:38]Write to MH i2c: E2 02 01 43 8D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E7 41 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 94 01 00 35 04 06 00 00 00 2F [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 43 8D 00 90 00 44 [02:26:38]RAPDU: 90 00 [02:26:38]wFMCommunicate OK [02:26:38]wFMCommunicate request_size=11 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 0D 02 02 06 A4 A9 54 47 75 5F [02:26:38]Write to MH i2c: E2 0E 00 44 8D 80 0D 02 02 06 00 A4 A9 54 47 75 5F 00 00 13 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 03 00 44 8D 00 90 00 45 [02:26:38]RAPDU: 90 00 [02:26:38]wFMCommunicate OK [02:26:38]wFMCommunicate request_size=4 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 0D 03 02 [02:26:38]Write to MH i2c: E2 08 00 45 8D 80 0D 03 02 00 00 00 00 4D [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 0B 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 0B 00 45 8D 00 51 A6 96 61 EB 1D 57 6B 90 00 06 [02:26:38]RAPDU: 51 A6 96 61 EB 1D 57 6B 90 00 [02:26:38]wFMCommunicate OK [02:26:38]SAM_PROTO_SignData done [02:26:38]FM_MakeSignedData done [02:26:38]CreateOFDProtocolMessage [02:26:38]wFMCommunicate request_size=4 [02:26:38]MH_SAM_APDU [02:26:38]CAPDU: 80 11 00 00 [02:26:38]Write to MH i2c: E2 08 00 46 8D 80 11 00 00 00 00 00 00 4D [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:38]Read from MH i2c: E2 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 17 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: E2 17 00 46 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [02:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:26:38]wFMCommunicate OK [02:26:38]CreateOFDProtocolMessage done [02:26:38]OFDSenderStorePacket 103583 [02:26:38]StoreOFDPacket docnum=103583 [02:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 39 A2 08 01 F9 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E7 41 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 94 01 00 35 04 06 00 A4 A9 54 47 75 5F 51 A6 96 61 EB 1D 57 6B [02:26:38]CheckFolder [02:26:38]dirname=/storage/ofd_packets [02:26:38]CheckFolder done [02:26:38]ProducePacketName [02:26:38]name=ofd_packets/00103583 [02:26:38]NVStorageSaveData ofd_packets/00103583 [02:26:38]File name is /storage/ofd_packets/00103583 [02:26:38]Write 302 bytes [02:26:38]NVStorageSaveData done [02:26:38]OFDSenderStorePacket done [02:26:38]KKMCreateOFDPacket done [02:26:38]NVStorageSaveData kkm_last_timestamp [02:26:38]File name is /storage/kkm_last_timestamp [02:26:38]Write 4 bytes [02:26:38]NVStorageSaveData done [02:26:38]ExternCall_PrintAddStr [02:26:38]wPrintStart [02:26:38]Write to MH i2c: 01 00 00 47 8D D4 [02:26:38]Write i2c OK [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: 01 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: 01 07 00 [02:26:38]MH_I2C_Read... [02:26:38]Read from MH i2c: 01 07 00 47 8D 00 00 00 00 00 FF 0F E9 [02:26:38]RasterBufferAndPrint [02:26:38]line Счет N : (1)672801 [02:26:38]line ИНН: 02508201610067 [02:26:38]line Контрольно-Кассовый Чек [02:26:38]line ПРОДАЖА [02:26:38]line ТРК (МРК, ГНК) : 21 [02:26:38]line Товар: 2710194210 [02:26:38]line ДТ(л)-К-5 [02:26:38]line 96.030 * 72.90 [02:26:38]line = 7000.59 [02:26:38]line НДС 12% НСП 1% [02:26:38]line > о реализуемом товаре [02:26:38]line ИТОГО: 7000.59 [02:26:38]line НСП 1% : 61.95 [02:26:38]line НДС 12% : 743.42 [02:26:38]line Наличными: 0.00 [02:26:38]line Безнал.: 7000.59 [02:26:38]line Место: АЗС № 120 "Партнер Нефть" [02:26:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:26:38]line СНО: Общий режим [02:26:38]line Чек 13 19.06.2024 02:26 [02:26:38]line Смена: 353 ФФД: 1.0 [02:26:38]line ЗНМ: 0300000164 [02:26:38]line РНМ: 0000000000092785 [02:26:38]line Версия ККМ: 001 [02:26:38]line Платежная система: Бакай Банк [02:26:38]line ФМ: 0000000000875093 [02:26:38]line ФД: 103583 [02:26:38]line ФПД: 181047170397535 [02:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T022647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103583&fm=181047170397535&tin=02508201610067®Number=0000000000092785&sum=700059 [02:26:39]OFD Sender: Processing packet 103583 [packets to send 17, broken 16] [02:26:39]ProducePacketName [02:26:39]name=ofd_packets/00103583 [02:26:39]OFD Sender: To server: pG, [02:26:39]CommunicateWithHost lk.salyk.kg:30040 [02:26:39]ConnectInit lk.salyk.kg [02:26:39]written 0, free lines is 4095 [02:26:39]Connected sock=10 [02:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 39 A2 08 01 F9 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E7 41 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 94 01 00 35 04 06 00 A4 A9 54 47 75 5F 51 A6 96 61 EB 1D 57 6B [02:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 18 7B 47 00 2F 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 94 01 00 F4 03 04 00 71 E8 71 66 B6 04 01 00 00 81 E6 27 9D 1C BF 8E 76 [02:26:39]CommunicateWithHost err = 0 [02:26:39]CheckOFDResponse [02:26:39]1017 (14) - 77093643461234 [02:26:39]1041 (16) - 0000000000875093 [02:26:39]1040 (4) - 103583 [02:26:39]1012 (4) - 18.06.2024 20:05 [02:26:39]1206 (1) - 0 [02:26:39]OFD Sender: Remove packet 103583 [02:26:39]ProducePacketName [02:26:39]name=ofd_packets/00103583 [02:26:39]NVStorageDeleteData [02:26:39]Write to MH i2c: 01 00 00 71 8D FE [02:26:39]Write i2c OK [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: 01 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: 01 07 00 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: 01 07 00 71 8D 00 00 00 00 00 DE 0C EF [02:26:39]RasterBufferAndPrint [02:26:39]line [02:26:39]line [02:26:39]line [02:26:39]line [02:26:39]line [02:26:39]written 0, free lines is 3302 [02:26:39]MH_Cut [02:26:39]Write to MH i2c: D1 01 00 78 8D 01 D7 [02:26:39]Write i2c OK [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: D1 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: D1 01 00 [02:26:39]MH_I2C_Read... [02:26:39]Read from MH i2c: D1 01 00 78 8D 00 D6 [02:26:39]Write to MH i2c: 01 00 00 79 8D 06 [02:26:39]Write i2c OK [02:26:39]MH_I2C_Read... [02:26:39]OFD Sender: No OFD packet to send [02:26:40]*** Cut start [02:26:40]*** Partial cut [02:26:40]*** CUTSNS_PIN = 1 [02:26:40]*** CUTSNS_PIN = 0 [02:26:40]*** Brake cut motor [02:26:40]Read from MH i2c: 01 [02:26:40]MH_I2C_Read... [02:26:40]*** Stop cut motor [02:26:40]*** Cut end [02:26:40]Read from MH i2c: 01 07 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: 01 07 00 79 8D 00 00 00 00 00 FF 0F 1B [02:26:40]process_action close_receipt done [02:26:40]requested_data is exist [02:26:40]produce_requested_data [02:26:40]requested_item fm.sn is exist - process it [02:26:40]wFMCommunicate request_size=4 [02:26:40]MH_SAM_APDU [02:26:40]CAPDU: 80 11 00 00 [02:26:40]Write to MH i2c: E2 08 00 7A 8D 80 11 00 00 00 00 00 00 81 [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:40]Read from MH i2c: E2 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 17 00 [02:26:40]MH_I2C_Read... [02:26:40]Read from MH i2c: E2 17 00 7A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [02:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:26:40]wFMCommunicate OK [02:26:40]requested_item fd.num is exist - process it [02:26:40]SAM_PROTO_GetFieldsCounters [02:26:40]wFMCommunicate request_size=4 [02:26:40]MH_SAM_APDU [02:26:40]CAPDU: 80 13 00 00 [02:26:40]Write to MH i2c: E2 08 00 7B 8D 80 13 00 00 00 00 00 00 84 [02:26:40]Write i2c OK [02:26:40]MH_I2C_Read... [02:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:41]Read from MH i2c: E2 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: E2 62 00 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: E2 62 00 7B 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [02:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:26:41]wFMCommunicate OK [02:26:41]SAM_PROTO_GetFieldsCounters done [02:26:41]requested_item shift.num is exist - process it [02:26:41]requested_item shift.opened is exist - process it [02:26:41]req_shift_opened [02:26:41]FM_GetShiftState [02:26:41]SAM_PROTO_GetShiftState [02:26:41]wFMCommunicate request_size=4 [02:26:41]MH_SAM_APDU [02:26:41]CAPDU: 80 13 01 00 [02:26:41]Write to MH i2c: E2 08 00 7C 8D 80 13 01 00 00 00 00 00 86 [02:26:41]Write i2c OK [02:26:41]MH_I2C_Read... [02:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:41]Read from MH i2c: E2 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: E2 0E 00 [02:26:41]MH_I2C_Read... [02:26:41]Read from MH i2c: E2 0E 00 7C 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 94 [02:26:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:26:41]wFMCommunicate OK [02:26:41]SAM_PROTO_GetShiftState done [02:26:41]FM_GetShiftState done [02:26:41]req_shift_opened done [02:26:41]requested_item shift.open_date is exist - process it [02:26:41]req_shift_open_date [02:26:41]req_shift_open_date done [02:26:41]produce_requested_data done [02:26:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103583,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [02:26:41]process_action_free close_receipt [02:26:41]json_value_free [02:26:41]json_value_free done [02:26:41]process_json_proto returns [02:26:41]Send response to host [02:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103583,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [02:26:41]free response buf [02:26:41]execute_script done [02:26:41]execute_script returns [02:26:41]free content buf [02:26:41]Sock 9.Close socket [02:26:41]Sock 9.Thread stoped [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:35]accept exits with 7 [02:59:35]New connection [02:59:35]New thread 3067227492 created [02:59:35]Thread 3067084132 joined [02:59:35]Waiting for new connection... [02:59:35] Sock 7.Parse request [02:59:35]Sock 7.Check first char [02:59:35]Sock 7.First char is OK [02:59:35]request: POST /json_proto HTTP/1.0 [02:59:35]Method: POST [02:59:35]URL: /json_proto [02:59:35]Method is POST - this is cgi request [02:59:35]url: /json_proto [02:59:35]query_string will be loaded in cgi processing [02:59:35]execute_cgi json_proto POST (null) [02:59:35]execute_cgi path=json_proto method=POST [02:59:35]POST find Content-Length [02:59:35]Host: 172.17.38.133:8080 [02:59:35]Content-Length: 682 [02:59:35]Content-Type: application/json [02:59:35] [02:59:35]POST finish read [02:59:35]Found Content-Length = 682 [02:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:35]execute_script... [02:59: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)672802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:35]POST & json_proto [02:59:35]process_json_proto [02:59:35]json parsed OK: [02:59:35]protocol is kg_v1.0 [02:59:35]action value=close_receipt [02:59:35]process_action close_receipt [02:59:35]cmd_close_receipt [02:59:35]MH_GetDate [02:59:35]Write to MH i2c: F0 00 00 7D 8D F9 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: F0 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: F0 09 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: F0 09 00 7D 8D 00 A1 49 72 66 BD 8F 7C 64 F0 [02:59:35]GetLastDocTimeStamp 1718764007 [02:59:35]current date 1718765985 [02:59:35]FM_GetShiftState [02:59:35]SAM_PROTO_GetShiftState [02:59:35]wFMCommunicate request_size=4 [02:59:35]MH_SAM_APDU [02:59:35]CAPDU: 80 13 01 00 [02:59:35]Write to MH i2c: E2 08 00 7E 8D 80 13 01 00 00 00 00 00 88 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:35]Read from MH i2c: E2 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 0E 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 0E 00 7E 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 96 [02:59:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:59:35]wFMCommunicate OK [02:59:35]SAM_PROTO_GetShiftState done [02:59:35]FM_GetShiftState done [02:59:35]opened in 1718756868 [02:59:35]opened+sec_in_day 1718843268 [02:59:35]quantity*price = 50009 [02:59:35]sum+1 = 50010 [02:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 19.06.2024 02:59 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103584 ФПД: 107617857013179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T025945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103584&fm=107617857013179&tin=02508201610067®Number=0000000000092785&sum=50000 [02:59:36]StoreToDocumentArchive [02:59:36]shift 353 fd 103584 [02:59:36]save to /storage/0353/doc_00103584 [02:59:36]save last doc name /storage/0353/doc_00103584 to /storage/kkm_last_doc_name [02:59:36]save OK [02:59:36]Clear old archive folders... [02:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:59:36]tlvbuf is 013818E0 [02:59:36]SAM_PROTO_ClearQueue [02:59:36]wFMCommunicate request_size=4 [02:59:36]MH_SAM_APDU [02:59:36]CAPDU: 80 09 00 00 [02:59:36]Write to MH i2c: E2 08 00 8B 8D 80 09 00 00 00 00 00 00 8A [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:36]Read from MH i2c: E2 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: E2 03 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: E2 03 00 8B 8D 00 90 00 8C [02:59:36]RAPDU: 90 00 [02:59:36]wFMCommunicate OK [02:59:36]SAM_PROTO_ClearQueue done [02:59:36]KKMCreateOFDPacket [02:59:36]OFDProtocolAddRootSTLVToBuf [02:59:36]FM_MakeSignedData [02:59:36]FM_MakeSignedData [02:59:36]SAM_PROTO_SignData [02:59:36]wFMCommunicate request_size=4 [02:59:36]MH_SAM_APDU [02:59:36]CAPDU: 80 0D 01 02 [02:59:36]Write to MH i2c: E2 08 00 8C 8D 80 0D 01 02 00 00 00 00 92 [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:36]Read from MH i2c: E2 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: E2 03 00 [02:59:36]MH_I2C_Read... [02:59:36]Read from MH i2c: E2 03 00 8C 8D 00 90 00 8D [02:59:36]RAPDU: 90 00 [02:59:36]wFMCommunicate OK [02:59:36]wFMCommunicate request_size=255 [02:59:36]MH_SAM_APDU [02:59:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 49 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 94 01 00 35 04 06 00 [02:59:36]Write to MH i2c: E2 02 01 8D 8D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 49 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 94 01 00 35 04 06 00 00 00 91 [02:59:36]Write i2c OK [02:59:36]MH_I2C_Read... [02:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:37]Read from MH i2c: E2 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 03 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 03 00 8D 8D 00 90 00 8E [02:59:37]RAPDU: 90 00 [02:59:37]wFMCommunicate OK [02:59:37]wFMCommunicate request_size=11 [02:59:37]MH_SAM_APDU [02:59:37]CAPDU: 80 0D 02 02 06 61 E0 BC 23 85 BB [02:59:37]Write to MH i2c: E2 0E 00 8E 8D 80 0D 02 02 06 00 61 E0 BC 23 85 BB 00 00 01 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:37]Read from MH i2c: E2 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 03 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 03 00 8E 8D 00 90 00 8F [02:59:37]RAPDU: 90 00 [02:59:37]wFMCommunicate OK [02:59:37]wFMCommunicate request_size=4 [02:59:37]MH_SAM_APDU [02:59:37]CAPDU: 80 0D 03 02 [02:59:37]Write to MH i2c: E2 08 00 8F 8D 80 0D 03 02 00 00 00 00 97 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:37]Read from MH i2c: E2 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 0B 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 0B 00 8F 8D 00 89 76 CF ED 52 17 87 18 90 00 5B [02:59:37]RAPDU: 89 76 CF ED 52 17 87 18 90 00 [02:59:37]wFMCommunicate OK [02:59:37]SAM_PROTO_SignData done [02:59:37]FM_MakeSignedData done [02:59:37]CreateOFDProtocolMessage [02:59:37]wFMCommunicate request_size=4 [02:59:37]MH_SAM_APDU [02:59:37]CAPDU: 80 11 00 00 [02:59:37]Write to MH i2c: E2 08 00 90 8D 80 11 00 00 00 00 00 00 97 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:37]Read from MH i2c: E2 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 17 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: E2 17 00 90 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [02:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:59:37]wFMCommunicate OK [02:59:37]CreateOFDProtocolMessage done [02:59:37]OFDSenderStorePacket 103584 [02:59:37]StoreOFDPacket docnum=103584 [02:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 95 1F 08 01 0F 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 49 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 94 01 00 35 04 06 00 61 E0 BC 23 85 BB 89 76 CF ED 52 17 87 18 [02:59:37]CheckFolder [02:59:37]dirname=/storage/ofd_packets [02:59:37]CheckFolder done [02:59:37]ProducePacketName [02:59:37]name=ofd_packets/00103584 [02:59:37]NVStorageSaveData ofd_packets/00103584 [02:59:37]File name is /storage/ofd_packets/00103584 [02:59:37]Write 302 bytes [02:59:37]NVStorageSaveData done [02:59:37]OFDSenderStorePacket done [02:59:37]KKMCreateOFDPacket done [02:59:37]NVStorageSaveData kkm_last_timestamp [02:59:37]File name is /storage/kkm_last_timestamp [02:59:37]Write 4 bytes [02:59:37]NVStorageSaveData done [02:59:37]ExternCall_PrintAddStr [02:59:37]wPrintStart [02:59:37]Write to MH i2c: 01 00 00 91 8D 1E [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 91 8D 00 00 00 00 00 FF 0F 33 [02:59:37]RasterBufferAndPrint [02:59:37]line Счет N : (1)672802 [02:59:37]line ИНН: 02508201610067 [02:59:37]line Контрольно-Кассовый Чек [02:59:37]line ПРОДАЖА [02:59:37]line ТРК (МРК, ГНК) : 11 [02:59:37]line Товар: 2710194210 [02:59:37]line ДТ(л)-К-5 [02:59:37]line 6.860 * 72.90 [02:59:37]line = 500.09 [02:59:37]line НДС 12% НСП 1% [02:59:37]line > о реализуемом товаре [02:59:37]line ОКРУГЛЕНИЕ: -0.09 [02:59:37]line ИТОГО: 500.00 [02:59:37]line Внесено: 500.00 [02:59:37]line СДАЧА: 0.00 [02:59:37]line НСП 1% : 4.43 [02:59:37]line НДС 12% : 53.11 [02:59:37]line Наличными: 500.00 [02:59:37]line Безнал.: 0.00 [02:59:37]line Место: АЗС № 120 "Партнер Нефть" [02:59:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:59:37]line СНО: Общий режим [02:59:37]line Чек 14 19.06.2024 02:59 [02:59:37]line Смена: 353 ФФД: 1.0 [02:59:37]line ЗНМ: 0300000164 [02:59:37]line РНМ: 0000000000092785 [02:59:37]line Версия ККМ: 001 [02:59:37]line ФМ: 0000000000875093 [02:59:37]line ФД: 103584 [02:59:37]line ФПД: 107617857013179 [02:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T025945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103584&fm=107617857013179&tin=02508201610067®Number=0000000000092785&sum=50000 [02:59:37]written 0, free lines is 4095 [02:59:37]OFD Sender: Processing packet 103584 [packets to send 17, broken 16] [02:59:37]ProducePacketName [02:59:37]name=ofd_packets/00103584 [02:59:37]OFD Sender: To server: pG, [02:59:37]CommunicateWithHost lk.salyk.kg:30040 [02:59:37]ConnectInit lk.salyk.kg [02:59:37]Connected sock=10 [02:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 95 1F 08 01 0F 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 49 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 94 01 00 35 04 06 00 61 E0 BC 23 85 BB 89 76 CF ED 52 17 87 18 [02:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A8 D9 47 00 D1 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 35 30 39 33 10 04 04 00 A0 94 01 00 F4 03 04 00 2B F0 71 66 B6 04 01 00 00 E7 70 EE 78 C0 06 CE 3F [02:59:37]CommunicateWithHost err = 0 [02:59:37]CheckOFDResponse [02:59:37]1017 (14) - 77093643461234 [02:59:37]1041 (16) - 0000000000875093 [02:59:37]1040 (4) - 103584 [02:59:37]1012 (4) - 18.06.2024 20:38 [02:59:37]1206 (1) - 0 [02:59:37]OFD Sender: Remove packet 103584 [02:59:37]ProducePacketName [02:59:37]name=ofd_packets/00103584 [02:59:37]NVStorageDeleteData [02:59:37]Write to MH i2c: 01 00 00 BC 8D 49 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: 01 07 00 BC 8D 00 00 00 00 00 CA 0C 26 [02:59:37]RasterBufferAndPrint [02:59:37]line [02:59:37]line [02:59:37]line [02:59:37]line [02:59:37]line [02:59:37]written 0, free lines is 3280 [02:59:37]MH_Cut [02:59:37]Write to MH i2c: D1 01 00 C3 8D 01 22 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: D1 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: D1 01 00 [02:59:37]MH_I2C_Read... [02:59:37]Read from MH i2c: D1 01 00 C3 8D 00 21 [02:59:37]Write to MH i2c: 01 00 00 C4 8D 51 [02:59:37]Write i2c OK [02:59:37]MH_I2C_Read... [02:59:38]OFD Sender: No OFD packet to send [02:59:38]*** Cut start [02:59:38]*** Partial cut [02:59:38]*** CUTSNS_PIN = 1 [02:59:38]*** CUTSNS_PIN = 0 [02:59:38]*** Brake cut motor [02:59:39]Read from MH i2c: 01 [02:59:39]MH_I2C_Read... [02:59:39]*** Stop cut motor [02:59:39]*** Cut end [02:59:39]Read from MH i2c: 01 07 00 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: 01 07 00 C4 8D 00 00 00 00 00 FF 0F 66 [02:59:39]process_action close_receipt done [02:59:39]requested_data is exist [02:59:39]produce_requested_data [02:59:39]requested_item fm.sn is exist - process it [02:59:39]wFMCommunicate request_size=4 [02:59:39]MH_SAM_APDU [02:59:39]CAPDU: 80 11 00 00 [02:59:39]Write to MH i2c: E2 08 00 C5 8D 80 11 00 00 00 00 00 00 CC [02:59:39]Write i2c OK [02:59:39]MH_I2C_Read... [02:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:39]Read from MH i2c: E2 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 17 00 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 17 00 C5 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [02:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:59:39]wFMCommunicate OK [02:59:39]requested_item fd.num is exist - process it [02:59:39]SAM_PROTO_GetFieldsCounters [02:59:39]wFMCommunicate request_size=4 [02:59:39]MH_SAM_APDU [02:59:39]CAPDU: 80 13 00 00 [02:59:39]Write to MH i2c: E2 08 00 C6 8D 80 13 00 00 00 00 00 00 CF [02:59:39]Write i2c OK [02:59:39]MH_I2C_Read... [02:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:39]Read from MH i2c: E2 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 62 00 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 62 00 C6 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [02:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:59:39]wFMCommunicate OK [02:59:39]SAM_PROTO_GetFieldsCounters done [02:59:39]requested_item shift.num is exist - process it [02:59:39]requested_item shift.opened is exist - process it [02:59:39]req_shift_opened [02:59:39]FM_GetShiftState [02:59:39]SAM_PROTO_GetShiftState [02:59:39]wFMCommunicate request_size=4 [02:59:39]MH_SAM_APDU [02:59:39]CAPDU: 80 13 01 00 [02:59:39]Write to MH i2c: E2 08 00 C7 8D 80 13 01 00 00 00 00 00 D1 [02:59:39]Write i2c OK [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 [02:59:39]MH_I2C_Read... [02:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:39]Read from MH i2c: E2 0E 00 [02:59:39]MH_I2C_Read... [02:59:39]Read from MH i2c: E2 0E 00 C7 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DF [02:59:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [02:59:39]wFMCommunicate OK [02:59:39]SAM_PROTO_GetShiftState done [02:59:39]FM_GetShiftState done [02:59:39]req_shift_opened done [02:59:39]requested_item shift.open_date is exist - process it [02:59:39]req_shift_open_date [02:59:39]req_shift_open_date done [02:59:39]produce_requested_data done [02:59:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103584,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [02:59:39]process_action_free close_receipt [02:59:39]json_value_free [02:59:39]json_value_free done [02:59:39]process_json_proto returns [02:59:39]Send response to host [02:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103584,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [02:59:39]free response buf [02:59:39]execute_script done [02:59:39]execute_script returns [02:59:39]free content buf [02:59:39]Sock 7.Close socket [02:59:39]Sock 7.Thread stoped [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:17]accept exits with 9 [03:13:17]New connection [03:13:17]New thread 3067084132 created [03:13:17]Thread 3067227492 joined [03:13:17]Waiting for new connection... [03:13:17] Sock 9.Parse request [03:13:17]Sock 9.Check first char [03:13:17]Sock 9.First char is OK [03:13:17]request: POST /json_proto HTTP/1.0 [03:13:17]Method: POST [03:13:17]URL: /json_proto [03:13:17]Method is POST - this is cgi request [03:13:17]url: /json_proto [03:13:17]query_string will be loaded in cgi processing [03:13:17]execute_cgi json_proto POST (null) [03:13:17]execute_cgi path=json_proto method=POST [03:13:17]POST find Content-Length [03:13:17]Host: 172.17.38.133:8080 [03:13:17]Content-Length: 682 [03:13:17]Content-Type: application/json [03:13:17] [03:13:17]POST finish read [03:13:17]Found Content-Length = 682 [03:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [03:13:17]execute_script... [03:13:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [03:13:17]POST & json_proto [03:13:17]process_json_proto [03:13:17]json parsed OK: [03:13:17]protocol is kg_v1.0 [03:13:17]action value=close_receipt [03:13:17]process_action close_receipt [03:13:17]cmd_close_receipt [03:13:17]MH_GetDate [03:13:17]Write to MH i2c: F0 00 00 C8 8D 44 [03:13:17]Write i2c OK [03:13:17]MH_I2C_Read... [03:13:17]Read from MH i2c: F0 [03:13:17]MH_I2C_Read... [03:13:17]Read from MH i2c: F0 09 00 [03:13:17]MH_I2C_Read... [03:13:17]Read from MH i2c: F0 09 00 C8 8D 00 D7 4C 72 66 BD 8F 7C 64 74 [03:13:17]GetLastDocTimeStamp 1718765985 [03:13:17]current date 1718766807 [03:13:17]FM_GetShiftState [03:13:17]SAM_PROTO_GetShiftState [03:13:17]wFMCommunicate request_size=4 [03:13:17]MH_SAM_APDU [03:13:17]CAPDU: 80 13 01 00 [03:13:17]Write to MH i2c: E2 08 00 C9 8D 80 13 01 00 00 00 00 00 D3 [03:13:17]Write i2c OK [03:13:17]MH_I2C_Read... [03:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:17]Read from MH i2c: E2 [03:13:17]MH_I2C_Read... [03:13:17]Read from MH i2c: E2 0E 00 [03:13:17]MH_I2C_Read... [03:13:17]Read from MH i2c: E2 0E 00 C9 8D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E1 [03:13:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [03:13:17]wFMCommunicate OK [03:13:17]SAM_PROTO_GetShiftState done [03:13:17]FM_GetShiftState done [03:13:17]opened in 1718756868 [03:13:17]opened+sec_in_day 1718843268 [03:13:17]quantity*price = 150064 [03:13:17]sum+1 = 150065 [03:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 19.06.2024 03:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103585 ФПД: 140038157826899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T031327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103585&fm=140038157826899&tin=02508201610067®Number=0000000000092785&sum=150000 [03:13:18]StoreToDocumentArchive [03:13:18]shift 353 fd 103585 [03:13:18]save to /storage/0353/doc_00103585 [03:13:18]save last doc name /storage/0353/doc_00103585 to /storage/kkm_last_doc_name [03:13:18]save OK [03:13:18]Clear old archive folders... [03:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:13:18]tlvbuf is 0147BDD0 [03:13:18]SAM_PROTO_ClearQueue [03:13:18]wFMCommunicate request_size=4 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 09 00 00 [03:13:18]Write to MH i2c: E2 08 00 D6 8D 80 09 00 00 00 00 00 00 D5 [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 D6 8D 00 90 00 D7 [03:13:18]RAPDU: 90 00 [03:13:18]wFMCommunicate OK [03:13:18]SAM_PROTO_ClearQueue done [03:13:18]KKMCreateOFDPacket [03:13:18]OFDProtocolAddRootSTLVToBuf [03:13:18]FM_MakeSignedData [03:13:18]FM_MakeSignedData [03:13:18]SAM_PROTO_SignData [03:13:18]wFMCommunicate request_size=4 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 0D 01 02 [03:13:18]Write to MH i2c: E2 08 00 D7 8D 80 0D 01 02 00 00 00 00 DD [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 D7 8D 00 90 00 D8 [03:13:18]RAPDU: 90 00 [03:13:18]wFMCommunicate OK [03:13:18]wFMCommunicate request_size=255 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0F 00 00 00 F4 03 04 00 D7 4C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 94 01 00 35 04 06 00 7F [03:13:18]Write to MH i2c: E2 02 01 D8 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0F 00 00 00 F4 03 04 00 D7 4C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 94 01 00 35 04 06 00 7F 00 00 5C [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 D8 8D 00 90 00 D9 [03:13:18]RAPDU: 90 00 [03:13:18]wFMCommunicate OK [03:13:18]wFMCommunicate request_size=10 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 0D 02 02 05 5D 2C A6 FB 53 [03:13:18]Write to MH i2c: E2 0D 00 D9 8D 80 0D 02 02 05 00 5D 2C A6 FB 53 00 00 67 [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]OFD Sender: No OFD packet to send [03:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 03 00 D9 8D 00 90 00 DA [03:13:18]RAPDU: 90 00 [03:13:18]wFMCommunicate OK [03:13:18]wFMCommunicate request_size=4 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 0D 03 02 [03:13:18]Write to MH i2c: E2 08 00 DA 8D 80 0D 03 02 00 00 00 00 E2 [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 0B 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 0B 00 DA 8D 00 AF F2 B2 16 9C 91 B2 87 90 00 B2 [03:13:18]RAPDU: AF F2 B2 16 9C 91 B2 87 90 00 [03:13:18]wFMCommunicate OK [03:13:18]SAM_PROTO_SignData done [03:13:18]FM_MakeSignedData done [03:13:18]CreateOFDProtocolMessage [03:13:18]wFMCommunicate request_size=4 [03:13:18]MH_SAM_APDU [03:13:18]CAPDU: 80 11 00 00 [03:13:18]Write to MH i2c: E2 08 00 DB 8D 80 11 00 00 00 00 00 00 E2 [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:18]Read from MH i2c: E2 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 17 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: E2 17 00 DB 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [03:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:13:18]wFMCommunicate OK [03:13:18]CreateOFDProtocolMessage done [03:13:18]OFDSenderStorePacket 103585 [03:13:18]StoreOFDPacket docnum=103585 [03:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 4C 07 01 65 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0F 00 00 00 F4 03 04 00 D7 4C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 94 01 00 35 04 06 00 7F 5D 2C A6 FB 53 AF F2 B2 16 9C 91 B2 87 [03:13:18]CheckFolder [03:13:18]dirname=/storage/ofd_packets [03:13:18]CheckFolder done [03:13:18]ProducePacketName [03:13:18]name=ofd_packets/00103585 [03:13:18]NVStorageSaveData ofd_packets/00103585 [03:13:18]File name is /storage/ofd_packets/00103585 [03:13:18]Write 301 bytes [03:13:18]NVStorageSaveData done [03:13:18]OFDSenderStorePacket done [03:13:18]KKMCreateOFDPacket done [03:13:18]NVStorageSaveData kkm_last_timestamp [03:13:18]File name is /storage/kkm_last_timestamp [03:13:18]Write 4 bytes [03:13:18]NVStorageSaveData done [03:13:18]ExternCall_PrintAddStr [03:13:18]wPrintStart [03:13:18]Write to MH i2c: 01 00 00 DC 8D 69 [03:13:18]Write i2c OK [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: 01 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: 01 07 00 [03:13:18]MH_I2C_Read... [03:13:18]Read from MH i2c: 01 07 00 DC 8D 00 00 00 00 00 FF 0F 7E [03:13:18]RasterBufferAndPrint [03:13:18]line Счет N : (1)672803 [03:13:18]line ИНН: 02508201610067 [03:13:18]line Контрольно-Кассовый Чек [03:13:18]line ПРОДАЖА [03:13:18]line ТРК (МРК, ГНК) : 42 [03:13:18]line Товар: 2710124130 [03:13:18]line Аи-92-К-5 [03:13:18]line 22.600 * 66.40 [03:13:18]line = 1500.64 [03:13:18]line НДС 12% НСП 1% [03:13:18]line > о реализуемом товаре [03:13:18]line ОКРУГЛЕНИЕ: -0.64 [03:13:18]line ИТОГО: 1500.00 [03:13:18]line Внесено: 1500.00 [03:13:18]line СДАЧА: 0.00 [03:13:18]line НСП 1% : 13.28 [03:13:18]line НДС 12% : 159.36 [03:13:18]line Наличными: 1500.00 [03:13:18]line Безнал.: 0.00 [03:13:18]line Место: АЗС № 120 "Партнер Нефть" [03:13:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [03:13:18]line СНО: Общий режим [03:13:18]line Чек 15 19.06.2024 03:13 [03:13:18]line Смена: 353 ФФД: 1.0 [03:13:18]line ЗНМ: 0300000164 [03:13:18]line РНМ: 0000000000092785 [03:13:18]line Версия ККМ: 001 [03:13:18]line ФМ: 0000000000875093 [03:13:18]line ФД: 103585 [03:13:19]line ФПД: 140038157826899 [03:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T031327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103585&fm=140038157826899&tin=02508201610067®Number=0000000000092785&sum=150000 [03:13:19]OFD Sender: Processing packet 103585 [packets to send 17, broken 16] [03:13:19]ProducePacketName [03:13:19]name=ofd_packets/00103585 [03:13:19]OFD Sender: To server: pG, [03:13:19]CommunicateWithHost lk.salyk.kg:30040 [03:13:19]ConnectInit lk.salyk.kg [03:13:19]written 0, free lines is 4095 [03:13:19]Connected sock=10 [03:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 4C 07 01 65 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 0F 00 00 00 F4 03 04 00 D7 4C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 94 01 00 35 04 06 00 7F 5D 2C A6 FB 53 AF F2 B2 16 9C 91 B2 87 [03:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3A E8 47 00 F7 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 94 01 00 F4 03 04 00 61 F3 71 66 B6 04 01 00 00 06 7B 86 B5 20 13 3B CF [03:13:19]CommunicateWithHost err = 0 [03:13:19]CheckOFDResponse [03:13:19]1017 (14) - 77093643461234 [03:13:19]1041 (16) - 0000000000875093 [03:13:19]1040 (4) - 103585 [03:13:19]1012 (4) - 18.06.2024 20:51 [03:13:19]1206 (1) - 0 [03:13:19]OFD Sender: Remove packet 103585 [03:13:19]ProducePacketName [03:13:19]name=ofd_packets/00103585 [03:13:19]NVStorageDeleteData [03:13:19]Write to MH i2c: 01 00 00 07 8E 95 [03:13:19]Write i2c OK [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: 01 [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: 01 07 00 [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: 01 07 00 07 8E 00 00 00 00 00 E7 0C 8F [03:13:19]RasterBufferAndPrint [03:13:19]line [03:13:19]line [03:13:19]line [03:13:19]line [03:13:19]line [03:13:19]written 0, free lines is 3309 [03:13:19]MH_Cut [03:13:19]Write to MH i2c: D1 01 00 0E 8E 01 6E [03:13:19]Write i2c OK [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: D1 [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: D1 01 00 [03:13:19]MH_I2C_Read... [03:13:19]Read from MH i2c: D1 01 00 0E 8E 00 6D [03:13:19]Write to MH i2c: 01 00 00 0F 8E 9D [03:13:19]Write i2c OK [03:13:19]MH_I2C_Read... [03:13:20]OFD Sender: No OFD packet to send [03:13:20]*** Cut start [03:13:20]*** Partial cut [03:13:20]*** CUTSNS_PIN = 1 [03:13:20]*** CUTSNS_PIN = 0 [03:13:20]*** Brake cut motor [03:13:21]Read from MH i2c: 01 [03:13:21]MH_I2C_Read... [03:13:21]*** Stop cut motor [03:13:21]*** Cut end [03:13:21]Read from MH i2c: 01 07 00 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: 01 07 00 0F 8E 00 00 00 00 00 FF 0F B2 [03:13:21]process_action close_receipt done [03:13:21]requested_data is exist [03:13:21]produce_requested_data [03:13:21]requested_item fm.sn is exist - process it [03:13:21]wFMCommunicate request_size=4 [03:13:21]MH_SAM_APDU [03:13:21]CAPDU: 80 11 00 00 [03:13:21]Write to MH i2c: E2 08 00 10 8E 80 11 00 00 00 00 00 00 18 [03:13:21]Write i2c OK [03:13:21]MH_I2C_Read... [03:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:21]Read from MH i2c: E2 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 17 00 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 17 00 10 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [03:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:13:21]wFMCommunicate OK [03:13:21]requested_item fd.num is exist - process it [03:13:21]SAM_PROTO_GetFieldsCounters [03:13:21]wFMCommunicate request_size=4 [03:13:21]MH_SAM_APDU [03:13:21]CAPDU: 80 13 00 00 [03:13:21]Write to MH i2c: E2 08 00 11 8E 80 13 00 00 00 00 00 00 1B [03:13:21]Write i2c OK [03:13:21]MH_I2C_Read... [03:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:13:21]Read from MH i2c: E2 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 62 00 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 62 00 11 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [03:13:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:13:21]wFMCommunicate OK [03:13:21]SAM_PROTO_GetFieldsCounters done [03:13:21]requested_item shift.num is exist - process it [03:13:21]requested_item shift.opened is exist - process it [03:13:21]req_shift_opened [03:13:21]FM_GetShiftState [03:13:21]SAM_PROTO_GetShiftState [03:13:21]wFMCommunicate request_size=4 [03:13:21]MH_SAM_APDU [03:13:21]CAPDU: 80 13 01 00 [03:13:21]Write to MH i2c: E2 08 00 12 8E 80 13 01 00 00 00 00 00 1D [03:13:21]Write i2c OK [03:13:21]MH_I2C_Read... [03:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:21]Read from MH i2c: E2 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 0E 00 [03:13:21]MH_I2C_Read... [03:13:21]Read from MH i2c: E2 0E 00 12 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2B [03:13:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [03:13:21]wFMCommunicate OK [03:13:21]SAM_PROTO_GetShiftState done [03:13:21]FM_GetShiftState done [03:13:21]req_shift_opened done [03:13:21]requested_item shift.open_date is exist - process it [03:13:21]req_shift_open_date [03:13:21]req_shift_open_date done [03:13:21]produce_requested_data done [03:13:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103585,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [03:13:21]process_action_free close_receipt [03:13:21]json_value_free [03:13:21]json_value_free done [03:13:21]process_json_proto returns [03:13:21]Send response to host [03:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103585,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [03:13:21]free response buf [03:13:21]execute_script done [03:13:21]execute_script returns [03:13:21]free content buf [03:13:21]Sock 9.Close socket [03:13:21]Sock 9.Thread stoped [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send